[03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:22]accept exits with 9 [04:16:22]New connection [04:16:22]New thread 3066961252 created [04:16:22]Thread 3066817892 joined [04:16:22]Waiting for new connection... [04:16:22] Sock 9.Parse request [04:16:22]Sock 9.Check first char [04:16:22]Sock 9.First char is OK [04:16:22]request: POST /json_proto HTTP/1.0 [04:16:22]Method: POST [04:16:22]URL: /json_proto [04:16:22]Method is POST - this is cgi request [04:16:22]url: /json_proto [04:16:22]query_string will be loaded in cgi processing [04:16:22]execute_cgi json_proto POST (null) [04:16:22]execute_cgi path=json_proto method=POST [04:16:22]POST find Content-Length [04:16:22]Host: 172.17.63.131:8080 [04:16:22]Content-Length: 681 [04:16:22]Content-Type: application/json [04:16:22] [04:16:22]POST finish read [04:16:22]Found Content-Length = 681 [04:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:22]execute_script... [04:16:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:22]POST & json_proto [04:16:22]process_json_proto [04:16:22]json parsed OK: [04:16:22]protocol is kg_v1.0 [04:16:22]action value=close_receipt [04:16:22]process_action close_receipt [04:16:22]cmd_close_receipt [04:16:22]MH_GetDate [04:16:22]Write to MH i2c: F0 00 00 1B DE E8 [04:16:22]Write i2c OK [04:16:22]MH_I2C_Read... [04:16:22]Read from MH i2c: F0 [04:16:22]MH_I2C_Read... [04:16:22]Read from MH i2c: F0 09 00 [04:16:22]MH_I2C_Read... [04:16:22]Read from MH i2c: F0 09 00 1B DE 00 22 6D 1C 67 22 05 6E 64 FC [04:16:22]GetLastDocTimeStamp 1729908494 [04:16:22]current date 1729916194 [04:16:22]FM_GetShiftState [04:16:22]SAM_PROTO_GetShiftState [04:16:22]wFMCommunicate request_size=4 [04:16:22]MH_SAM_APDU [04:16:22]CAPDU: 80 13 01 00 [04:16:22]Write to MH i2c: E2 08 00 1C DE 80 13 01 00 00 00 00 00 77 [04:16:22]Write i2c OK [04:16:22]MH_I2C_Read... [04:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:22]Read from MH i2c: E2 [04:16:22]MH_I2C_Read... [04:16:22]Read from MH i2c: E2 0E 00 [04:16:22]MH_I2C_Read... [04:16:22]Read from MH i2c: E2 0E 00 1C DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F0 [04:16:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [04:16:22]wFMCommunicate OK [04:16:22]SAM_PROTO_GetShiftState done [04:16:22]FM_GetShiftState done [04:16:22]opened in 1729902770 [04:16:22]opened+sec_in_day 1729989170 [04:16:22]quantity*price = 100015 [04:16:22]sum+1 = 100017 [04:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 6 26.10.2024 04:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191643 ФПД: 119957947712038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T041634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191643&fm=119957947712038&tin=02508201610067®Number=0000000000091776&sum=100000 [04:16:23]StoreToDocumentArchive [04:16:23]shift 541 fd 191643 [04:16:23]save to /storage/0541/doc_00191643 [04:16:23]save last doc name /storage/0541/doc_00191643 to /storage/kkm_last_doc_name [04:16:23]save OK [04:16:23]Clear old archive folders... [04:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:16:23]tlvbuf is 017F14C0 [04:16:23]SAM_PROTO_ClearQueue [04:16:23]wFMCommunicate request_size=4 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 09 00 00 [04:16:23]Write to MH i2c: E2 08 00 29 DE 80 09 00 00 00 00 00 00 79 [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 29 DE 00 90 00 7B [04:16:23]RAPDU: 90 00 [04:16:23]wFMCommunicate OK [04:16:23]SAM_PROTO_ClearQueue done [04:16:23]KKMCreateOFDPacket [04:16:23]OFDProtocolAddRootSTLVToBuf [04:16:23]FM_MakeSignedData [04:16:23]FM_MakeSignedData [04:16:23]SAM_PROTO_SignData [04:16:23]wFMCommunicate request_size=4 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 0D 01 02 [04:16:23]Write to MH i2c: E2 08 00 2A DE 80 0D 01 02 00 00 00 00 81 [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 2A DE 00 90 00 7C [04:16:23]RAPDU: 90 00 [04:16:23]wFMCommunicate OK [04:16:23]wFMCommunicate request_size=255 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 22 6D 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EC 02 00 35 04 06 00 6D [04:16:23]Write to MH i2c: E2 02 01 2B DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 22 6D 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EC 02 00 35 04 06 00 6D 00 00 3C [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 2B DE 00 90 00 7D [04:16:23]RAPDU: 90 00 [04:16:23]wFMCommunicate OK [04:16:23]wFMCommunicate request_size=10 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 0D 02 02 05 19 E2 DC 82 26 [04:16:23]Write to MH i2c: E2 0D 00 2C DE 80 0D 02 02 05 00 19 E2 DC 82 26 00 00 0D [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 03 00 2C DE 00 90 00 7E [04:16:23]RAPDU: 90 00 [04:16:23]wFMCommunicate OK [04:16:23]wFMCommunicate request_size=4 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 0D 03 02 [04:16:23]Write to MH i2c: E2 08 00 2D DE 80 0D 03 02 00 00 00 00 86 [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 0B 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 0B 00 2D DE 00 65 E8 B9 97 0D 3D 61 0C 90 00 DB [04:16:23]RAPDU: 65 E8 B9 97 0D 3D 61 0C 90 00 [04:16:23]wFMCommunicate OK [04:16:23]SAM_PROTO_SignData done [04:16:23]FM_MakeSignedData done [04:16:23]CreateOFDProtocolMessage [04:16:23]wFMCommunicate request_size=4 [04:16:23]MH_SAM_APDU [04:16:23]CAPDU: 80 11 00 00 [04:16:23]Write to MH i2c: E2 08 00 2E DE 80 11 00 00 00 00 00 00 86 [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:23]Read from MH i2c: E2 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 17 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: E2 17 00 2E DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [04:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [04:16:23]wFMCommunicate OK [04:16:23]CreateOFDProtocolMessage done [04:16:23]OFDSenderStorePacket 191643 [04:16:23]StoreOFDPacket docnum=191643 [04:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 25 07 01 7F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 22 6D 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EC 02 00 35 04 06 00 6D 19 E2 DC 82 26 65 E8 B9 97 0D 3D 61 0C [04:16:23]CheckFolder [04:16:23]dirname=/storage/ofd_packets [04:16:23]CheckFolder done [04:16:23]ProducePacketName [04:16:23]name=ofd_packets/00191643 [04:16:23]NVStorageSaveData ofd_packets/00191643 [04:16:23]File name is /storage/ofd_packets/00191643 [04:16:23]Write 301 bytes [04:16:23]NVStorageSaveData done [04:16:23]OFDSenderStorePacket done [04:16:23]KKMCreateOFDPacket done [04:16:23]NVStorageSaveData kkm_last_timestamp [04:16:23]File name is /storage/kkm_last_timestamp [04:16:23]Write 4 bytes [04:16:23]NVStorageSaveData done [04:16:23]ExternCall_PrintAddStr [04:16:23]wPrintStart [04:16:23]Write to MH i2c: 01 00 00 2F DE 0D [04:16:23]Write i2c OK [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: 01 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: 01 07 00 [04:16:23]MH_I2C_Read... [04:16:23]Read from MH i2c: 01 07 00 2F DE 00 00 00 00 00 FF 0F 22 [04:16:23]RasterBufferAndPrint [04:16:23]line Счет N : (1)30945 [04:16:23]line ИНН: 02508201610067 [04:16:23]line Контрольно-Кассовый Чек [04:16:23]line ПРОДАЖА [04:16:23]line ТРК (МРК, ГНК) : 21 [04:16:23]line Товар: 2710124130 [04:16:23]line Аи-92-К-5 [04:16:23]line 14.950 * 66.90 [04:16:23]line = 1000.16 [04:16:23]line НДС 12% НСП 1% [04:16:23]line > о реализуемом товаре [04:16:23]line ОКРУГЛЕНИЕ: -0.16 [04:16:23]line ИТОГО: 1000.00 [04:16:23]line Внесено: 1000.00 [04:16:23]line СДАЧА: 0.00 [04:16:23]line НСП 1% : 8.85 [04:16:23]line НДС 12% : 106.21 [04:16:23]line Наличными: 1000.00 [04:16:23]line Безнал.: 0.00 [04:16:23]line Место: АЗС № 170 "Партнер Нефть" [04:16:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [04:16:23]line СНО: Общий режим [04:16:23]line Чек 6 26.10.2024 04:16 [04:16:23]line Смена: 541 ФФД: 1.0 [04:16:23]line ЗНМ: 0300000110 [04:16:23]line РНМ: 0000000000091776 [04:16:23]line Версия ККМ: 001 [04:16:23]line ФМ: 0000000000871754 [04:16:23]line ФД: 191643 [04:16:23]line ФПД: 119957947712038 [04:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T041634&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191643&fm=119957947712038&tin=02508201610067®Number=0000000000091776&sum=100000 [04:16:24]OFD Sender: Processing packet 191643 [packets to send 75, broken 74] [04:16:24]ProducePacketName [04:16:24]name=ofd_packets/00191643 [04:16:24]OFD Sender: To server: pG, [04:16:24]CommunicateWithHost lk.salyk.kg:30040 [04:16:24]ConnectInit lk.salyk.kg [04:16:24]written 0, free lines is 4095 [04:16:24]Connected sock=10 [04:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 25 07 01 7F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 22 6D 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EC 02 00 35 04 06 00 6D 19 E2 DC 82 26 65 E8 B9 97 0D 3D 61 0C [04:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 10 AC 47 00 E2 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B EC 02 00 F4 03 04 00 EF 11 1C 67 B6 04 01 00 00 74 80 75 92 11 1B 07 5D [04:16:24]CommunicateWithHost err = 0 [04:16:24]CheckOFDResponse [04:16:24]1017 (14) - 77093643461234 [04:16:24]1041 (16) - 0000000000871754 [04:16:24]1040 (4) - 191643 [04:16:24]1012 (4) - 25.10.2024 21:47 [04:16:24]1206 (1) - 0 [04:16:24]OFD Sender: Remove packet 191643 [04:16:24]ProducePacketName [04:16:24]name=ofd_packets/00191643 [04:16:24]NVStorageDeleteData [04:16:24]Write to MH i2c: 01 00 00 5A DE 38 [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: 01 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: 01 07 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: 01 07 00 5A DE 00 00 00 00 00 BB 0C 06 [04:16:24]RasterBufferAndPrint [04:16:24]line [04:16:24]line [04:16:24]line [04:16:24]line [04:16:24]line [04:16:24]written 0, free lines is 3266 [04:16:24]MH_Cut [04:16:24]Write to MH i2c: D1 01 00 61 DE 01 11 [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: D1 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: D1 01 00 [04:16:24]MH_I2C_Read... [04:16:24]Read from MH i2c: D1 01 00 61 DE 00 10 [04:16:24]Write to MH i2c: 01 00 00 62 DE 40 [04:16:24]Write i2c OK [04:16:24]MH_I2C_Read... [04:16:24]OFD Sender: No OFD packet to send [04:16:25]*** Cut start [04:16:25]*** Partial cut [04:16:25]*** CUTSNS_PIN = 1 [04:16:25]*** CUTSNS_PIN = 0 [04:16:25]*** Brake cut motor [04:16:25]Read from MH i2c: 01 [04:16:25]MH_I2C_Read... [04:16:25]*** Stop cut motor [04:16:25]*** Cut end [04:16:25]Read from MH i2c: 01 07 00 [04:16:25]MH_I2C_Read... [04:16:25]Read from MH i2c: 01 07 00 62 DE 00 00 00 00 00 FF 0F 55 [04:16:25]process_action close_receipt done [04:16:25]requested_data is exist [04:16:25]produce_requested_data [04:16:25]requested_item fm.sn is exist - process it [04:16:25]wFMCommunicate request_size=4 [04:16:25]MH_SAM_APDU [04:16:25]CAPDU: 80 11 00 00 [04:16:25]Write to MH i2c: E2 08 00 63 DE 80 11 00 00 00 00 00 00 BB [04:16:25]Write i2c OK [04:16:25]MH_I2C_Read... [04:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:25]Read from MH i2c: E2 [04:16:25]MH_I2C_Read... [04:16:25]Read from MH i2c: E2 17 00 [04:16:25]MH_I2C_Read... [04:16:25]Read from MH i2c: E2 17 00 63 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [04:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [04:16:25]wFMCommunicate OK [04:16:25]requested_item fd.num is exist - process it [04:16:25]SAM_PROTO_GetFieldsCounters [04:16:25]wFMCommunicate request_size=4 [04:16:25]MH_SAM_APDU [04:16:25]CAPDU: 80 13 00 00 [04:16:25]Write to MH i2c: E2 08 00 64 DE 80 13 00 00 00 00 00 00 BE [04:16:25]Write i2c OK [04:16:25]MH_I2C_Read... [04:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:26]Read from MH i2c: E2 [04:16:26]MH_I2C_Read... [04:16:26]Read from MH i2c: E2 62 00 [04:16:26]MH_I2C_Read... [04:16:26]Read from MH i2c: E2 62 00 64 DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [04:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:16:26]wFMCommunicate OK [04:16:26]SAM_PROTO_GetFieldsCounters done [04:16:26]requested_item shift.num is exist - process it [04:16:26]requested_item shift.opened is exist - process it [04:16:26]req_shift_opened [04:16:26]FM_GetShiftState [04:16:26]SAM_PROTO_GetShiftState [04:16:26]wFMCommunicate request_size=4 [04:16:26]MH_SAM_APDU [04:16:26]CAPDU: 80 13 01 00 [04:16:26]Write to MH i2c: E2 08 00 65 DE 80 13 01 00 00 00 00 00 C0 [04:16:26]Write i2c OK [04:16:26]MH_I2C_Read... [04:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:26]Read from MH i2c: E2 [04:16:26]MH_I2C_Read... [04:16:26]Read from MH i2c: E2 0E 00 [04:16:26]MH_I2C_Read... [04:16:26]Read from MH i2c: E2 0E 00 65 DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 39 [04:16:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [04:16:26]wFMCommunicate OK [04:16:26]SAM_PROTO_GetShiftState done [04:16:26]FM_GetShiftState done [04:16:26]req_shift_opened done [04:16:26]requested_item shift.open_date is exist - process it [04:16:26]req_shift_open_date [04:16:26]req_shift_open_date done [04:16:26]produce_requested_data done [04:16:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191643,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [04:16:26]process_action_free close_receipt [04:16:26]json_value_free [04:16:26]json_value_free done [04:16:26]process_json_proto returns [04:16:26]Send response to host [04:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191643,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [04:16:26]free response buf [04:16:26]execute_script done [04:16:26]execute_script returns [04:16:26]free content buf [04:16:26]Sock 9.Close socket [04:16:26]Sock 9.Thread stoped [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37: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:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56: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:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19: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:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:36]accept exits with 8 [05:32:36]New connection [05:32:36]New thread 3066817892 created [05:32:36]Thread 3066961252 joined [05:32:36]Waiting for new connection... [05:32:36] Sock 8.Parse request [05:32:36]Sock 8.Check first char [05:32:36]Sock 8.First char is OK [05:32:36]request: POST /json_proto HTTP/1.0 [05:32:36]Method: POST [05:32:36]URL: /json_proto [05:32:36]Method is POST - this is cgi request [05:32:36]url: /json_proto [05:32:36]query_string will be loaded in cgi processing [05:32:36]execute_cgi json_proto POST (null) [05:32:36]execute_cgi path=json_proto method=POST [05:32:36]POST find Content-Length [05:32:36]Host: 172.17.63.131:8080 [05:32:36]Content-Length: 678 [05:32:36]Content-Type: application/json [05:32:36] [05:32:36]POST finish read [05:32:36]Found Content-Length = 678 [05:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30946", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:36]execute_script... [05:32:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30946", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:36]POST & json_proto [05:32:36]process_json_proto [05:32:36]json parsed OK: [05:32:36]protocol is kg_v1.0 [05:32:36]action value=close_receipt [05:32:36]process_action close_receipt [05:32:36]cmd_close_receipt [05:32:36]MH_GetDate [05:32:36]Write to MH i2c: F0 00 00 66 DE 33 [05:32:36]Write i2c OK [05:32:36]MH_I2C_Read... [05:32:36]Read from MH i2c: F0 [05:32:36]MH_I2C_Read... [05:32:36]Read from MH i2c: F0 09 00 [05:32:36]MH_I2C_Read... [05:32:36]Read from MH i2c: F0 09 00 66 DE 00 01 7F 1C 67 22 05 6E 64 38 [05:32:36]GetLastDocTimeStamp 1729916194 [05:32:36]current date 1729920769 [05:32:36]FM_GetShiftState [05:32:36]SAM_PROTO_GetShiftState [05:32:36]wFMCommunicate request_size=4 [05:32:36]MH_SAM_APDU [05:32:36]CAPDU: 80 13 01 00 [05:32:36]Write to MH i2c: E2 08 00 67 DE 80 13 01 00 00 00 00 00 C2 [05:32:36]Write i2c OK [05:32:36]MH_I2C_Read... [05:32:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:36]Read from MH i2c: E2 [05:32:36]MH_I2C_Read... [05:32:36]Read from MH i2c: E2 0E 00 [05:32:36]MH_I2C_Read... [05:32:36]Read from MH i2c: E2 0E 00 67 DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3B [05:32:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [05:32:36]wFMCommunicate OK [05:32:36]SAM_PROTO_GetShiftState done [05:32:36]FM_GetShiftState done [05:32:36]opened in 1729902770 [05:32:36]opened+sec_in_day 1729989170 [05:32:36]quantity*price = 200025 [05:32:36]sum+1 = 200026 [05:32:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 7 26.10.2024 05:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191644 ФПД: 151999065974151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T053249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191644&fm=151999065974151&tin=02508201610067®Number=0000000000091776&sum=200000 [05:32:37]StoreToDocumentArchive [05:32:37]shift 541 fd 191644 [05:32:37]save to /storage/0541/doc_00191644 [05:32:37]save last doc name /storage/0541/doc_00191644 to /storage/kkm_last_doc_name [05:32:37]save OK [05:32:37]Clear old archive folders... [05:32:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:32:37]tlvbuf is 016B02C0 [05:32:37]SAM_PROTO_ClearQueue [05:32:37]wFMCommunicate request_size=4 [05:32:37]MH_SAM_APDU [05:32:37]CAPDU: 80 09 00 00 [05:32:37]Write to MH i2c: E2 08 00 74 DE 80 09 00 00 00 00 00 00 C4 [05:32:37]Write i2c OK [05:32:37]MH_I2C_Read... [05:32:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 74 DE 00 90 00 C6 [05:32:38]RAPDU: 90 00 [05:32:38]wFMCommunicate OK [05:32:38]SAM_PROTO_ClearQueue done [05:32:38]KKMCreateOFDPacket [05:32:38]OFDProtocolAddRootSTLVToBuf [05:32:38]FM_MakeSignedData [05:32:38]FM_MakeSignedData [05:32:38]SAM_PROTO_SignData [05:32:38]wFMCommunicate request_size=4 [05:32:38]MH_SAM_APDU [05:32:38]CAPDU: 80 0D 01 02 [05:32:38]Write to MH i2c: E2 08 00 75 DE 80 0D 01 02 00 00 00 00 CC [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 75 DE 00 90 00 C7 [05:32:38]RAPDU: 90 00 [05:32:38]wFMCommunicate OK [05:32:38]wFMCommunicate request_size=255 [05:32:38]MH_SAM_APDU [05:32:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 01 7F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EC 02 00 35 04 06 00 8A 3E 0A 55 [05:32:38]Write to MH i2c: E2 02 01 76 DE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 01 7F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EC 02 00 35 04 06 00 8A 3E 0A 55 00 00 1E [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 76 DE 00 90 00 C8 [05:32:38]RAPDU: 90 00 [05:32:38]wFMCommunicate OK [05:32:38]wFMCommunicate request_size=7 [05:32:38]MH_SAM_APDU [05:32:38]CAPDU: 80 0D 02 02 02 65 87 [05:32:38]Write to MH i2c: E2 0A 00 77 DE 80 0D 02 02 02 00 65 87 00 00 BF [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 03 00 77 DE 00 90 00 C9 [05:32:38]RAPDU: 90 00 [05:32:38]wFMCommunicate OK [05:32:38]wFMCommunicate request_size=4 [05:32:38]MH_SAM_APDU [05:32:38]CAPDU: 80 0D 03 02 [05:32:38]Write to MH i2c: E2 08 00 78 DE 80 0D 03 02 00 00 00 00 D1 [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 0B 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 0B 00 78 DE 00 7A 5C 1D 90 D8 D1 6B 0C 90 00 75 [05:32:38]RAPDU: 7A 5C 1D 90 D8 D1 6B 0C 90 00 [05:32:38]wFMCommunicate OK [05:32:38]SAM_PROTO_SignData done [05:32:38]FM_MakeSignedData done [05:32:38]CreateOFDProtocolMessage [05:32:38]wFMCommunicate request_size=4 [05:32:38]MH_SAM_APDU [05:32:38]CAPDU: 80 11 00 00 [05:32:38]Write to MH i2c: E2 08 00 79 DE 80 11 00 00 00 00 00 00 D1 [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:38]Read from MH i2c: E2 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 17 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: E2 17 00 79 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [05:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:32:38]wFMCommunicate OK [05:32:38]CreateOFDProtocolMessage done [05:32:38]OFDSenderStorePacket 191644 [05:32:38]StoreOFDPacket docnum=191644 [05:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 54 04 01 C0 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 01 7F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EC 02 00 35 04 06 00 8A 3E 0A 55 65 87 7A 5C 1D 90 D8 D1 6B 0C [05:32:38]CheckFolder [05:32:38]dirname=/storage/ofd_packets [05:32:38]CheckFolder done [05:32:38]ProducePacketName [05:32:38]name=ofd_packets/00191644 [05:32:38]NVStorageSaveData ofd_packets/00191644 [05:32:38]File name is /storage/ofd_packets/00191644 [05:32:38]Write 298 bytes [05:32:38]NVStorageSaveData done [05:32:38]OFDSenderStorePacket done [05:32:38]KKMCreateOFDPacket done [05:32:38]NVStorageSaveData kkm_last_timestamp [05:32:38]File name is /storage/kkm_last_timestamp [05:32:38]Write 4 bytes [05:32:38]NVStorageSaveData done [05:32:38]ExternCall_PrintAddStr [05:32:38]wPrintStart [05:32:38]Write to MH i2c: 01 00 00 7A DE 58 [05:32:38]Write i2c OK [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: 01 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: 01 07 00 [05:32:38]MH_I2C_Read... [05:32:38]Read from MH i2c: 01 07 00 7A DE 00 00 00 00 00 FF 0F 6D [05:32:38]RasterBufferAndPrint [05:32:38]line Счет N : (1)30946 [05:32:38]line ИНН: 02508201610067 [05:32:38]line Контрольно-Кассовый Чек [05:32:38]line ПРОДАЖА [05:32:38]line ТРК (МРК, ГНК) : 22 [05:32:38]line Товар: 2710194210 [05:32:38]line ДТ-К-5 [05:32:38]line 26.250 * 76.20 [05:32:38]line = 2000.25 [05:32:38]line НДС 12% НСП 1% [05:32:38]line > о реализуемом товаре [05:32:38]line ОКРУГЛЕНИЕ: -0.25 [05:32:38]line ИТОГО: 2000.00 [05:32:38]line Внесено: 2000.00 [05:32:38]line СДАЧА: 0.00 [05:32:38]line НСП 1% : 17.70 [05:32:38]line НДС 12% : 212.42 [05:32:38]line Наличными: 2000.00 [05:32:38]line Безнал.: 0.00 [05:32:38]line Место: АЗС № 170 "Партнер Нефть" [05:32:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [05:32:38]line СНО: Общий режим [05:32:38]line Чек 7 26.10.2024 05:32 [05:32:38]line Смена: 541 ФФД: 1.0 [05:32:38]line ЗНМ: 0300000110 [05:32:38]line РНМ: 0000000000091776 [05:32:38]line Версия ККМ: 001 [05:32:38]line ФМ: 0000000000871754 [05:32:38]line ФД: 191644 [05:32:38]line ФПД: 151999065974151 [05:32:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T053249&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191644&fm=151999065974151&tin=02508201610067®Number=0000000000091776&sum=200000 [05:32:38]OFD Sender: Processing packet 191644 [packets to send 75, broken 74] [05:32:38]ProducePacketName [05:32:38]name=ofd_packets/00191644 [05:32:38]OFD Sender: To server: pG, [05:32:38]CommunicateWithHost lk.salyk.kg:30040 [05:32:38]ConnectInit lk.salyk.kg [05:32:38]written 0, free lines is 4095 [05:32:38]Connected sock=10 [05:32:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 54 04 01 C0 23 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 01 7F 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EC 02 00 35 04 06 00 8A 3E 0A 55 65 87 7A 5C 1D 90 D8 D1 6B 0C [05:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5A 89 47 00 3D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C EC 02 00 F4 03 04 00 CD 23 1C 67 B6 04 01 00 00 A9 B4 4D 77 DA 74 19 F6 [05:32:39]CommunicateWithHost err = 0 [05:32:39]CheckOFDResponse [05:32:39]1017 (14) - 77093643461234 [05:32:39]1041 (16) - 0000000000871754 [05:32:39]1040 (4) - 191644 [05:32:39]1012 (4) - 25.10.2024 23:03 [05:32:39]1206 (1) - 0 [05:32:39]OFD Sender: Remove packet 191644 [05:32:39]ProducePacketName [05:32:39]name=ofd_packets/00191644 [05:32:39]NVStorageDeleteData [05:32:39]Write to MH i2c: 01 00 00 A5 DE 83 [05:32:39]Write i2c OK [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 07 00 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: 01 07 00 A5 DE 00 00 00 00 00 C0 0C 56 [05:32:39]RasterBufferAndPrint [05:32:39]line [05:32:39]line [05:32:39]line [05:32:39]line [05:32:39]line [05:32:39]written 0, free lines is 3271 [05:32:39]MH_Cut [05:32:39]Write to MH i2c: D1 01 00 AC DE 01 5C [05:32:39]Write i2c OK [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: D1 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: D1 01 00 [05:32:39]MH_I2C_Read... [05:32:39]Read from MH i2c: D1 01 00 AC DE 00 5B [05:32:39]Write to MH i2c: 01 00 00 AD DE 8B [05:32:39]Write i2c OK [05:32:39]MH_I2C_Read... [05:32:39]OFD Sender: No OFD packet to send [05:32:40]*** Cut start [05:32:40]*** Partial cut [05:32:40]*** CUTSNS_PIN = 1 [05:32:40]*** CUTSNS_PIN = 0 [05:32:40]*** Brake cut motor [05:32:40]Read from MH i2c: 01 [05:32:40]MH_I2C_Read... [05:32:40]*** Stop cut motor [05:32:40]*** Cut end [05:32:40]Read from MH i2c: 01 07 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: 01 07 00 AD DE 00 00 00 00 00 FF 0F A0 [05:32:40]process_action close_receipt done [05:32:40]requested_data is exist [05:32:40]produce_requested_data [05:32:40]requested_item fm.sn is exist - process it [05:32:40]wFMCommunicate request_size=4 [05:32:40]MH_SAM_APDU [05:32:40]CAPDU: 80 11 00 00 [05:32:40]Write to MH i2c: E2 08 00 AE DE 80 11 00 00 00 00 00 00 06 [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 [05:32:40]MH_I2C_Read... [05:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:40]Read from MH i2c: E2 17 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 17 00 AE DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [05:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [05:32:40]wFMCommunicate OK [05:32:40]requested_item fd.num is exist - process it [05:32:40]SAM_PROTO_GetFieldsCounters [05:32:40]wFMCommunicate request_size=4 [05:32:40]MH_SAM_APDU [05:32:40]CAPDU: 80 13 00 00 [05:32:40]Write to MH i2c: E2 08 00 AF DE 80 13 00 00 00 00 00 00 09 [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:40]Read from MH i2c: E2 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 62 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 62 00 AF DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [05:32:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:32:40]wFMCommunicate OK [05:32:40]SAM_PROTO_GetFieldsCounters done [05:32:40]requested_item shift.num is exist - process it [05:32:40]requested_item shift.opened is exist - process it [05:32:40]req_shift_opened [05:32:40]FM_GetShiftState [05:32:40]SAM_PROTO_GetShiftState [05:32:40]wFMCommunicate request_size=4 [05:32:40]MH_SAM_APDU [05:32:40]CAPDU: 80 13 01 00 [05:32:40]Write to MH i2c: E2 08 00 B0 DE 80 13 01 00 00 00 00 00 0B [05:32:40]Write i2c OK [05:32:40]MH_I2C_Read... [05:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:40]Read from MH i2c: E2 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 0E 00 [05:32:40]MH_I2C_Read... [05:32:40]Read from MH i2c: E2 0E 00 B0 DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 84 [05:32:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [05:32:40]wFMCommunicate OK [05:32:40]SAM_PROTO_GetShiftState done [05:32:40]FM_GetShiftState done [05:32:40]req_shift_opened done [05:32:40]requested_item shift.open_date is exist - process it [05:32:40]req_shift_open_date [05:32:40]req_shift_open_date done [05:32:40]produce_requested_data done [05:32:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191644,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [05:32:40]process_action_free close_receipt [05:32:40]json_value_free [05:32:40]json_value_free done [05:32:40]process_json_proto returns [05:32:40]Send response to host [05:32:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191644,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [05:32:40]free response buf [05:32:40]execute_script done [05:32:40]execute_script returns [05:32:40]free content buf [05:32:40]Sock 8.Close socket [05:32:40]Sock 8.Thread stoped [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:43]OFD Sender: No OFD packet to send [06:40:48]OFD Sender: No OFD packet to send [06:40:53]OFD Sender: No OFD packet to send [06:40:58]OFD Sender: No OFD packet to send [06:41:03]OFD Sender: No OFD packet to send [06:41:08]OFD Sender: No OFD packet to send [06:41:13]OFD Sender: No OFD packet to send [06:41:18]OFD Sender: No OFD packet to send [06:41:23]OFD Sender: No OFD packet to send [06:41:28]OFD Sender: No OFD packet to send [06:41:33]OFD Sender: No OFD packet to send [06:41:38]OFD Sender: No OFD packet to send [06:41:43]OFD Sender: No OFD packet to send [06:41:48]OFD Sender: No OFD packet to send [06:41:53]OFD Sender: No OFD packet to send [06:41:58]OFD Sender: No OFD packet to send [06:42:03]OFD Sender: No OFD packet to send [06:42:08]OFD Sender: No OFD packet to send [06:42:13]OFD Sender: No OFD packet to send [06:42:18]OFD Sender: No OFD packet to send [06:42:23]OFD Sender: No OFD packet to send [06:42:28]OFD Sender: No OFD packet to send [06:42:33]OFD Sender: No OFD packet to send [06:42:38]OFD Sender: No OFD packet to send [06:42:43]OFD Sender: No OFD packet to send [06:42:48]OFD Sender: No OFD packet to send [06:42:53]OFD Sender: No OFD packet to send [06:42:58]OFD Sender: No OFD packet to send [06:43:03]OFD Sender: No OFD packet to send [06:43:08]OFD Sender: No OFD packet to send [06:43:13]OFD Sender: No OFD packet to send [06:43:18]OFD Sender: No OFD packet to send [06:43:23]OFD Sender: No OFD packet to send [06:43:28]OFD Sender: No OFD packet to send [06:43:33]OFD Sender: No OFD packet to send [06:43:38]OFD Sender: No OFD packet to send [06:43:43]OFD Sender: No OFD packet to send [06:43:48]OFD Sender: No OFD packet to send [06:43:53]OFD Sender: No OFD packet to send [06:43:58]OFD Sender: No OFD packet to send [06:44:03]OFD Sender: No OFD packet to send [06:44:08]OFD Sender: No OFD packet to send [06:44:13]OFD Sender: No OFD packet to send [06:44:18]OFD Sender: No OFD packet to send [06:44:23]OFD Sender: No OFD packet to send [06:44:28]OFD Sender: No OFD packet to send [06:44:33]OFD Sender: No OFD packet to send [06:44:38]OFD Sender: No OFD packet to send [06:44:43]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:01]accept exits with 9 [06:52:01]New connection [06:52:01]New thread 3066961252 created [06:52:01]Thread 3066817892 joined [06:52:01]Waiting for new connection... [06:52:01] Sock 9.Parse request [06:52:01]Sock 9.Check first char [06:52:01]Sock 9.First char is OK [06:52:01]request: POST /json_proto HTTP/1.0 [06:52:01]Method: POST [06:52:01]URL: /json_proto [06:52:01]Method is POST - this is cgi request [06:52:01]url: /json_proto [06:52:01]query_string will be loaded in cgi processing [06:52:01]execute_cgi json_proto POST (null) [06:52:01]execute_cgi path=json_proto method=POST [06:52:01]POST find Content-Length [06:52:01]Host: 172.17.63.131:8080 [06:52:01]Content-Length: 681 [06:52:01]Content-Type: application/json [06:52:01] [06:52:01]POST finish read [06:52:01]Found Content-Length = 681 [06:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:01]execute_script... [06:52: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)30947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:01]POST & json_proto [06:52:01]process_json_proto [06:52:01]json parsed OK: [06:52:01]protocol is kg_v1.0 [06:52:01]action value=close_receipt [06:52:01]process_action close_receipt [06:52:01]cmd_close_receipt [06:52:01]MH_GetDate [06:52:01]Write to MH i2c: F0 00 00 B1 DE 7E [06:52:01]Write i2c OK [06:52:01]MH_I2C_Read... [06:52:01]Read from MH i2c: F0 [06:52:01]MH_I2C_Read... [06:52:01]Read from MH i2c: F0 09 00 [06:52:01]MH_I2C_Read... [06:52:01]Read from MH i2c: F0 09 00 B1 DE 00 9E 91 1C 67 22 05 6E 64 32 [06:52:01]GetLastDocTimeStamp 1729920769 [06:52:01]current date 1729925534 [06:52:01]FM_GetShiftState [06:52:01]SAM_PROTO_GetShiftState [06:52:01]wFMCommunicate request_size=4 [06:52:01]MH_SAM_APDU [06:52:01]CAPDU: 80 13 01 00 [06:52:01]Write to MH i2c: E2 08 00 B2 DE 80 13 01 00 00 00 00 00 0D [06:52:01]Write i2c OK [06:52:01]MH_I2C_Read... [06:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:01]Read from MH i2c: E2 [06:52:01]MH_I2C_Read... [06:52:01]Read from MH i2c: E2 0E 00 [06:52:01]MH_I2C_Read... [06:52:01]Read from MH i2c: E2 0E 00 B2 DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 86 [06:52:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [06:52:01]wFMCommunicate OK [06:52:01]SAM_PROTO_GetShiftState done [06:52:01]FM_GetShiftState done [06:52:01]opened in 1729902770 [06:52:01]opened+sec_in_day 1729989170 [06:52:01]quantity*price = 100015 [06:52:01]sum+1 = 100017 [06:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 8 26.10.2024 06:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191645 ФПД: 157275416801953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T065214&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191645&fm=157275416801953&tin=02508201610067®Number=0000000000091776&sum=100000 [06:52:02]StoreToDocumentArchive [06:52:02]shift 541 fd 191645 [06:52:02]save to /storage/0541/doc_00191645 [06:52:02]save last doc name /storage/0541/doc_00191645 to /storage/kkm_last_doc_name [06:52:02]save OK [06:52:02]Clear old archive folders... [06:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:02]tlvbuf is 01709330 [06:52:02]SAM_PROTO_ClearQueue [06:52:02]wFMCommunicate request_size=4 [06:52:02]MH_SAM_APDU [06:52:02]CAPDU: 80 09 00 00 [06:52:02]Write to MH i2c: E2 08 00 BF DE 80 09 00 00 00 00 00 00 0F [06:52:02]Write i2c OK [06:52:02]MH_I2C_Read... [06:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:02]Read from MH i2c: E2 [06:52:02]MH_I2C_Read... [06:52:02]Read from MH i2c: E2 03 00 [06:52:02]MH_I2C_Read... [06:52:02]Read from MH i2c: E2 03 00 BF DE 00 90 00 11 [06:52:02]RAPDU: 90 00 [06:52:02]wFMCommunicate OK [06:52:02]SAM_PROTO_ClearQueue done [06:52:02]KKMCreateOFDPacket [06:52:02]OFDProtocolAddRootSTLVToBuf [06:52:02]FM_MakeSignedData [06:52:02]FM_MakeSignedData [06:52:02]SAM_PROTO_SignData [06:52:02]wFMCommunicate request_size=4 [06:52:02]MH_SAM_APDU [06:52:02]CAPDU: 80 0D 01 02 [06:52:02]Write to MH i2c: E2 08 00 C0 DE 80 0D 01 02 00 00 00 00 17 [06:52:02]Write i2c OK [06:52:02]MH_I2C_Read... [06:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:02]Read from MH i2c: E2 [06:52:02]MH_I2C_Read... [06:52:02]Read from MH i2c: E2 03 00 [06:52:02]MH_I2C_Read... [06:52:02]Read from MH i2c: E2 03 00 C0 DE 00 90 00 12 [06:52:02]RAPDU: 90 00 [06:52:02]wFMCommunicate OK [06:52:02]wFMCommunicate request_size=255 [06:52:02]MH_SAM_APDU [06:52:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9E 91 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EC 02 00 35 04 06 00 8F [06:52:02]Write to MH i2c: E2 02 01 C1 DE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9E 91 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EC 02 00 35 04 06 00 8F 00 00 98 [06:52:02]Write i2c OK [06:52:02]MH_I2C_Read... [06:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:03]Read from MH i2c: E2 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 03 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 03 00 C1 DE 00 90 00 13 [06:52:03]RAPDU: 90 00 [06:52:03]wFMCommunicate OK [06:52:03]wFMCommunicate request_size=10 [06:52:03]MH_SAM_APDU [06:52:03]CAPDU: 80 0D 02 02 05 0A 89 59 B2 A1 [06:52:03]Write to MH i2c: E2 0D 00 C2 DE 80 0D 02 02 05 00 0A 89 59 B2 A1 00 00 63 [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:03]Read from MH i2c: E2 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 03 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 03 00 C2 DE 00 90 00 14 [06:52:03]RAPDU: 90 00 [06:52:03]wFMCommunicate OK [06:52:03]wFMCommunicate request_size=4 [06:52:03]MH_SAM_APDU [06:52:03]CAPDU: 80 0D 03 02 [06:52:03]Write to MH i2c: E2 08 00 C3 DE 80 0D 03 02 00 00 00 00 1C [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:03]Read from MH i2c: E2 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 0B 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 0B 00 C3 DE 00 83 DF 16 D8 1C 1B 03 95 90 00 3C [06:52:03]RAPDU: 83 DF 16 D8 1C 1B 03 95 90 00 [06:52:03]wFMCommunicate OK [06:52:03]SAM_PROTO_SignData done [06:52:03]FM_MakeSignedData done [06:52:03]CreateOFDProtocolMessage [06:52:03]wFMCommunicate request_size=4 [06:52:03]MH_SAM_APDU [06:52:03]CAPDU: 80 11 00 00 [06:52:03]Write to MH i2c: E2 08 00 C4 DE 80 11 00 00 00 00 00 00 1C [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:03]Read from MH i2c: E2 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 17 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: E2 17 00 C4 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [06:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:52:03]wFMCommunicate OK [06:52:03]CreateOFDProtocolMessage done [06:52:03]OFDSenderStorePacket 191645 [06:52:03]StoreOFDPacket docnum=191645 [06:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 89 07 01 51 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9E 91 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EC 02 00 35 04 06 00 8F 0A 89 59 B2 A1 83 DF 16 D8 1C 1B 03 95 [06:52:03]CheckFolder [06:52:03]dirname=/storage/ofd_packets [06:52:03]CheckFolder done [06:52:03]ProducePacketName [06:52:03]name=ofd_packets/00191645 [06:52:03]NVStorageSaveData ofd_packets/00191645 [06:52:03]File name is /storage/ofd_packets/00191645 [06:52:03]Write 301 bytes [06:52:03]NVStorageSaveData done [06:52:03]OFDSenderStorePacket done [06:52:03]KKMCreateOFDPacket done [06:52:03]NVStorageSaveData kkm_last_timestamp [06:52:03]File name is /storage/kkm_last_timestamp [06:52:03]Write 4 bytes [06:52:03]NVStorageSaveData done [06:52:03]ExternCall_PrintAddStr [06:52:03]wPrintStart [06:52:03]Write to MH i2c: 01 00 00 C5 DE A3 [06:52:03]Write i2c OK [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: 01 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: 01 07 00 [06:52:03]MH_I2C_Read... [06:52:03]Read from MH i2c: 01 07 00 C5 DE 00 00 00 00 00 FF 0F B8 [06:52:03]RasterBufferAndPrint [06:52:03]line Счет N : (1)30947 [06:52:03]line ИНН: 02508201610067 [06:52:03]line Контрольно-Кассовый Чек [06:52:03]line ПРОДАЖА [06:52:03]line ТРК (МРК, ГНК) : 12 [06:52:03]line Товар: 2710124130 [06:52:03]line Аи-92-К-5 [06:52:03]line 14.950 * 66.90 [06:52:03]line = 1000.16 [06:52:03]line НДС 12% НСП 1% [06:52:03]line > о реализуемом товаре [06:52:03]line ОКРУГЛЕНИЕ: -0.16 [06:52:03]line ИТОГО: 1000.00 [06:52:03]line Внесено: 1000.00 [06:52:03]line СДАЧА: 0.00 [06:52:03]line НСП 1% : 8.85 [06:52:03]line НДС 12% : 106.21 [06:52:03]line Наличными: 1000.00 [06:52:03]line Безнал.: 0.00 [06:52:03]line Место: АЗС № 170 "Партнер Нефть" [06:52:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [06:52:03]line СНО: Общий режим [06:52:03]line Чек 8 26.10.2024 06:52 [06:52:03]line Смена: 541 ФФД: 1.0 [06:52:03]line ЗНМ: 0300000110 [06:52:03]line РНМ: 0000000000091776 [06:52:03]line Версия ККМ: 001 [06:52:03]line ФМ: 0000000000871754 [06:52:03]line ФД: 191645 [06:52:03]line ФПД: 157275416801953 [06:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T065214&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191645&fm=157275416801953&tin=02508201610067®Number=0000000000091776&sum=100000 [06:52:03]OFD Sender: Processing packet 191645 [packets to send 75, broken 74] [06:52:03]ProducePacketName [06:52:03]name=ofd_packets/00191645 [06:52:03]OFD Sender: To server: pG, [06:52:03]CommunicateWithHost lk.salyk.kg:30040 [06:52:03]ConnectInit lk.salyk.kg [06:52:03]written 0, free lines is 4095 [06:52:03]Connected sock=10 [06:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8D 89 07 01 51 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 9E 91 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EC 02 00 35 04 06 00 8F 0A 89 59 B2 A1 83 DF 16 D8 1C 1B 03 95 [06:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 3B 47 00 92 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D EC 02 00 F4 03 04 00 6A 36 1C 67 B6 04 01 00 00 42 C7 E0 7B C6 C1 D6 B4 [06:52:03]CommunicateWithHost err = 0 [06:52:03]CheckOFDResponse [06:52:03]1017 (14) - 77093643461234 [06:52:03]1041 (16) - 0000000000871754 [06:52:03]1040 (4) - 191645 [06:52:03]1012 (4) - 26.10.2024 00:23 [06:52:03]1206 (1) - 0 [06:52:03]OFD Sender: Remove packet 191645 [06:52:03]ProducePacketName [06:52:03]name=ofd_packets/00191645 [06:52:03]NVStorageDeleteData [06:52:04]Write to MH i2c: 01 00 00 F0 DE CE [06:52:04]Write i2c OK [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: 01 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: 01 07 00 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: 01 07 00 F0 DE 00 00 00 00 00 C7 0C A8 [06:52:04]RasterBufferAndPrint [06:52:04]line [06:52:04]line [06:52:04]line [06:52:04]line [06:52:04]line [06:52:04]written 0, free lines is 3277 [06:52:04]MH_Cut [06:52:04]Write to MH i2c: D1 01 00 F7 DE 01 A7 [06:52:04]Write i2c OK [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: D1 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: D1 01 00 [06:52:04]MH_I2C_Read... [06:52:04]Read from MH i2c: D1 01 00 F7 DE 00 A6 [06:52:04]Write to MH i2c: 01 00 00 F8 DE D6 [06:52:04]Write i2c OK [06:52:04]MH_I2C_Read... [06:52:04]OFD Sender: No OFD packet to send [06:52:04]*** Cut start [06:52:04]*** Partial cut [06:52:04]*** CUTSNS_PIN = 1 [06:52:04]*** CUTSNS_PIN = 0 [06:52:05]*** Brake cut motor [06:52:05]Read from MH i2c: 01 [06:52:05]MH_I2C_Read... [06:52:05]*** Stop cut motor [06:52:05]*** Cut end [06:52:05]Read from MH i2c: 01 07 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: 01 07 00 F8 DE 00 00 00 00 00 FF 0F EB [06:52:05]process_action close_receipt done [06:52:05]requested_data is exist [06:52:05]produce_requested_data [06:52:05]requested_item fm.sn is exist - process it [06:52:05]wFMCommunicate request_size=4 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 11 00 00 [06:52:05]Write to MH i2c: E2 08 00 F9 DE 80 11 00 00 00 00 00 00 51 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 17 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 17 00 F9 DE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A4 [06:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [06:52:05]wFMCommunicate OK [06:52:05]requested_item fd.num is exist - process it [06:52:05]SAM_PROTO_GetFieldsCounters [06:52:05]wFMCommunicate request_size=4 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 13 00 00 [06:52:05]Write to MH i2c: E2 08 00 FA DE 80 13 00 00 00 00 00 00 54 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 62 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 62 00 FA DE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [06:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:05]wFMCommunicate OK [06:52:05]SAM_PROTO_GetFieldsCounters done [06:52:05]requested_item shift.num is exist - process it [06:52:05]requested_item shift.opened is exist - process it [06:52:05]req_shift_opened [06:52:05]FM_GetShiftState [06:52:05]SAM_PROTO_GetShiftState [06:52:05]wFMCommunicate request_size=4 [06:52:05]MH_SAM_APDU [06:52:05]CAPDU: 80 13 01 00 [06:52:05]Write to MH i2c: E2 08 00 FB DE 80 13 01 00 00 00 00 00 56 [06:52:05]Write i2c OK [06:52:05]MH_I2C_Read... [06:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:05]Read from MH i2c: E2 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 0E 00 [06:52:05]MH_I2C_Read... [06:52:05]Read from MH i2c: E2 0E 00 FB DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CF [06:52:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [06:52:05]wFMCommunicate OK [06:52:05]SAM_PROTO_GetShiftState done [06:52:05]FM_GetShiftState done [06:52:05]req_shift_opened done [06:52:05]requested_item shift.open_date is exist - process it [06:52:05]req_shift_open_date [06:52:05]req_shift_open_date done [06:52:05]produce_requested_data done [06:52:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191645,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [06:52:05]process_action_free close_receipt [06:52:05]json_value_free [06:52:05]json_value_free done [06:52:05]process_json_proto returns [06:52:05]Send response to host [06:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191645,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [06:52:05]free response buf [06:52:05]execute_script done [06:52:05]execute_script returns [06:52:05]free content buf [06:52:05]Sock 9.Close socket [06:52:05]Sock 9.Thread stoped [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:06]ConnectInit Can't connect to host [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:27]accept exits with 8 [07:30:27]New connection [07:30:27]New thread 3066817892 created [07:30:27]Thread 3066961252 joined [07:30:27]Waiting for new connection... [07:30:27] Sock 8.Parse request [07:30:27]Sock 8.Check first char [07:30:27]Sock 8.First char is OK [07:30:27]request: POST /json_proto HTTP/1.0 [07:30:27]Method: POST [07:30:27]URL: /json_proto [07:30:27]Method is POST - this is cgi request [07:30:27]url: /json_proto [07:30:27]query_string will be loaded in cgi processing [07:30:27]execute_cgi json_proto POST (null) [07:30:27]execute_cgi path=json_proto method=POST [07:30:27]POST find Content-Length [07:30:27]Host: 172.17.63.131:8080 [07:30:27]Content-Length: 678 [07:30:27]Content-Type: application/json [07:30:27] [07:30:27]POST finish read [07:30:27]Found Content-Length = 678 [07:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30948", "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" : 76.20, "quantity" : 54.940, "sum" : 4186.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4186.00, "payments": [ { "type": 0, "sum" : 4186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:27]execute_script... [07:30: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)30948", "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" : 76.20, "quantity" : 54.940, "sum" : 4186.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4186.00, "payments": [ { "type": 0, "sum" : 4186.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:27]POST & json_proto [07:30:27]process_json_proto [07:30:27]json parsed OK: [07:30:27]protocol is kg_v1.0 [07:30:27]action value=close_receipt [07:30:27]process_action close_receipt [07:30:27]cmd_close_receipt [07:30:27]MH_GetDate [07:30:27]Write to MH i2c: F0 00 00 FC DE C9 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: F0 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: F0 09 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: F0 09 00 FC DE 00 A0 9A 1C 67 22 05 6E 64 88 [07:30:27]GetLastDocTimeStamp 1729925534 [07:30:27]current date 1729927840 [07:30:27]FM_GetShiftState [07:30:27]SAM_PROTO_GetShiftState [07:30:27]wFMCommunicate request_size=4 [07:30:27]MH_SAM_APDU [07:30:27]CAPDU: 80 13 01 00 [07:30:27]Write to MH i2c: E2 08 00 FD DE 80 13 01 00 00 00 00 00 58 [07:30:27]Write i2c OK [07:30:27]MH_I2C_Read... [07:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:27]Read from MH i2c: E2 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 0E 00 [07:30:27]MH_I2C_Read... [07:30:27]Read from MH i2c: E2 0E 00 FD DE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D1 [07:30:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [07:30:27]wFMCommunicate OK [07:30:27]SAM_PROTO_GetShiftState done [07:30:27]FM_GetShiftState done [07:30:27]opened in 1729902770 [07:30:27]opened+sec_in_day 1729989170 [07:30:27]quantity*price = 418642 [07:30:27]sum+1 = 418644 [07:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 4186.00 Внесено: 5000.00 СДАЧА: 814.00 НСП 1% : 37.05 НДС 12% : 444.58 Наличными: 4186.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 9 26.10.2024 07:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191646 ФПД: 217711579974688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191646&fm=217711579974688&tin=02508201610067®Number=0000000000091776&sum=418600 [07:30:28]StoreToDocumentArchive [07:30:28]shift 541 fd 191646 [07:30:28]save to /storage/0541/doc_00191646 [07:30:28]save last doc name /storage/0541/doc_00191646 to /storage/kkm_last_doc_name [07:30:28]save OK [07:30:28]Clear old archive folders... [07:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:30:28]tlvbuf is 015D84B0 [07:30:28]SAM_PROTO_ClearQueue [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 09 00 00 [07:30:28]Write to MH i2c: E2 08 00 0A DF 80 09 00 00 00 00 00 00 5B [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 0A DF 00 90 00 5D [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]SAM_PROTO_ClearQueue done [07:30:28]KKMCreateOFDPacket [07:30:28]OFDProtocolAddRootSTLVToBuf [07:30:28]FM_MakeSignedData [07:30:28]FM_MakeSignedData [07:30:28]SAM_PROTO_SignData [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 0D 01 02 [07:30:28]Write to MH i2c: E2 08 00 0B DF 80 0D 01 02 00 00 00 00 63 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 0B DF 00 90 00 5E [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]wFMCommunicate request_size=255 [07:30:28]MH_SAM_APDU [07:30: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 9C D6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 53 63 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 63 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA AD 00 00 00 00 07 04 06 00 28 63 06 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 A0 9A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EC 02 00 35 04 06 00 C6 01 ED 63 [07:30:28]Write to MH i2c: E2 02 01 0C DF 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 9C D6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 53 63 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 63 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA AD 00 00 00 00 07 04 06 00 28 63 06 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 A0 9A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EC 02 00 35 04 06 00 C6 01 ED 63 00 00 5C [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 0C DF 00 90 00 5F [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]wFMCommunicate request_size=7 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 0D 02 02 02 4C 20 [07:30:28]Write to MH i2c: E2 0A 00 0D DF 80 0D 02 02 02 00 4C 20 00 00 D6 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 03 00 0D DF 00 90 00 60 [07:30:28]RAPDU: 90 00 [07:30:28]wFMCommunicate OK [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 0D 03 02 [07:30:28]Write to MH i2c: E2 08 00 0E DF 80 0D 03 02 00 00 00 00 68 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 0B 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 0B 00 0E DF 00 50 73 07 2C FF 4D DD 99 90 00 21 [07:30:28]RAPDU: 50 73 07 2C FF 4D DD 99 90 00 [07:30:28]wFMCommunicate OK [07:30:28]SAM_PROTO_SignData done [07:30:28]FM_MakeSignedData done [07:30:28]CreateOFDProtocolMessage [07:30:28]wFMCommunicate request_size=4 [07:30:28]MH_SAM_APDU [07:30:28]CAPDU: 80 11 00 00 [07:30:28]Write to MH i2c: E2 08 00 0F DF 80 11 00 00 00 00 00 00 68 [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:28]Read from MH i2c: E2 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 17 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: E2 17 00 0F DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [07:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:30:28]wFMCommunicate OK [07:30:28]CreateOFDProtocolMessage done [07:30:28]OFDSenderStorePacket 191646 [07:30:28]StoreOFDPacket docnum=191646 [07:30:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A4 4B 04 01 1B 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 9C D6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 53 63 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 63 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA AD 00 00 00 00 07 04 06 00 28 63 06 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 A0 9A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EC 02 00 35 04 06 00 C6 01 ED 63 4C 20 50 73 07 2C FF 4D DD 99 [07:30:28]CheckFolder [07:30:28]dirname=/storage/ofd_packets [07:30:28]CheckFolder done [07:30:28]ProducePacketName [07:30:28]name=ofd_packets/00191646 [07:30:28]NVStorageSaveData ofd_packets/00191646 [07:30:28]File name is /storage/ofd_packets/00191646 [07:30:28]Write 298 bytes [07:30:28]NVStorageSaveData done [07:30:28]OFDSenderStorePacket done [07:30:28]KKMCreateOFDPacket done [07:30:28]NVStorageSaveData kkm_last_timestamp [07:30:28]File name is /storage/kkm_last_timestamp [07:30:28]Write 4 bytes [07:30:28]NVStorageSaveData done [07:30:28]ExternCall_PrintAddStr [07:30:28]wPrintStart [07:30:28]Write to MH i2c: 01 00 00 10 DF EF [07:30:28]Write i2c OK [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 [07:30:28]MH_I2C_Read... [07:30:28]Read from MH i2c: 01 07 00 10 DF 00 00 00 00 00 FF 0F 04 [07:30:28]RasterBufferAndPrint [07:30:28]line Счет N : (1)30948 [07:30:28]line ИНН: 02508201610067 [07:30:28]line Контрольно-Кассовый Чек [07:30:28]line ПРОДАЖА [07:30:28]line ТРК (МРК, ГНК) : 22 [07:30:28]line Товар: 2710194210 [07:30:28]line ДТ-К-5 [07:30:28]line 54.940 * 76.20 [07:30:28]line = 4186.43 [07:30:28]line НДС 12% НСП 1% [07:30:28]line > о реализуемом товаре [07:30:28]line ОКРУГЛЕНИЕ: -0.43 [07:30:28]line ИТОГО: 4186.00 [07:30:28]line Внесено: 5000.00 [07:30:28]line СДАЧА: 814.00 [07:30:28]line НСП 1% : 37.05 [07:30:28]line НДС 12% : 444.58 [07:30:28]line Наличными: 4186.00 [07:30:28]line Безнал.: 0.00 [07:30:28]line Место: АЗС № 170 "Партнер Нефть" [07:30:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:30:28]line СНО: Общий режим [07:30:28]line Чек 9 26.10.2024 07:30 [07:30:28]line Смена: 541 ФФД: 1.0 [07:30:28]line ЗНМ: 0300000110 [07:30:28]line РНМ: 0000000000091776 [07:30:28]line Версия ККМ: 001 [07:30:28]line ФМ: 0000000000871754 [07:30:28]line ФД: 191646 [07:30:28]line ФПД: 217711579974688 [07:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T073040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191646&fm=217711579974688&tin=02508201610067®Number=0000000000091776&sum=418600 [07:30:29]OFD Sender: Processing packet 191646 [packets to send 75, broken 74] [07:30:29]ProducePacketName [07:30:29]name=ofd_packets/00191646 [07:30:29]OFD Sender: To server: pG, [07:30:29]CommunicateWithHost lk.salyk.kg:30040 [07:30:29]ConnectInit lk.salyk.kg [07:30:29]written 0, free lines is 4095 [07:30:29]Connected sock=10 [07:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A4 4B 04 01 1B 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 9C D6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 53 63 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 63 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA AD 00 00 00 00 07 04 06 00 28 63 06 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 A0 9A 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EC 02 00 35 04 06 00 C6 01 ED 63 4C 20 50 73 07 2C FF 4D DD 99 [07:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 3E 47 00 0E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E EC 02 00 F4 03 04 00 6C 3F 1C 67 B6 04 01 00 00 24 BF 66 DF BC C4 D3 9C [07:30:29]CommunicateWithHost err = 0 [07:30:29]CheckOFDResponse [07:30:29]1017 (14) - 77093643461234 [07:30:29]1041 (16) - 0000000000871754 [07:30:29]1040 (4) - 191646 [07:30:29]1012 (4) - 26.10.2024 01:01 [07:30:29]1206 (1) - 0 [07:30:29]OFD Sender: Remove packet 191646 [07:30:29]ProducePacketName [07:30:29]name=ofd_packets/00191646 [07:30:29]NVStorageDeleteData [07:30:29]Write to MH i2c: 01 00 00 3B DF 1A [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 07 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: 01 07 00 3B DF 00 00 00 00 00 C8 0C F5 [07:30:29]RasterBufferAndPrint [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]line [07:30:29]written 0, free lines is 3278 [07:30:29]MH_Cut [07:30:29]Write to MH i2c: D1 01 00 42 DF 01 F3 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 01 00 [07:30:29]MH_I2C_Read... [07:30:29]Read from MH i2c: D1 01 00 42 DF 00 F2 [07:30:29]Write to MH i2c: 01 00 00 43 DF 22 [07:30:29]Write i2c OK [07:30:29]MH_I2C_Read... [07:30:29]OFD Sender: No OFD packet to send [07:30:30]*** Cut start [07:30:30]*** Partial cut [07:30:30]*** CUTSNS_PIN = 1 [07:30:30]*** CUTSNS_PIN = 0 [07:30:30]*** Brake cut motor [07:30:30]Read from MH i2c: 01 [07:30:30]MH_I2C_Read... [07:30:30]*** Stop cut motor [07:30:30]*** Cut end [07:30:30]Read from MH i2c: 01 07 00 [07:30:30]MH_I2C_Read... [07:30:30]Read from MH i2c: 01 07 00 43 DF 00 00 00 00 00 FF 0F 37 [07:30:30]process_action close_receipt done [07:30:30]requested_data is exist [07:30:30]produce_requested_data [07:30:30]requested_item fm.sn is exist - process it [07:30:30]wFMCommunicate request_size=4 [07:30:30]MH_SAM_APDU [07:30:30]CAPDU: 80 11 00 00 [07:30:30]Write to MH i2c: E2 08 00 44 DF 80 11 00 00 00 00 00 00 9D [07:30:30]Write i2c OK [07:30:30]MH_I2C_Read... [07:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:31]Read from MH i2c: E2 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 17 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 17 00 44 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [07:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:30:31]wFMCommunicate OK [07:30:31]requested_item fd.num is exist - process it [07:30:31]SAM_PROTO_GetFieldsCounters [07:30:31]wFMCommunicate request_size=4 [07:30:31]MH_SAM_APDU [07:30:31]CAPDU: 80 13 00 00 [07:30:31]Write to MH i2c: E2 08 00 45 DF 80 13 00 00 00 00 00 00 A0 [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:31]Read from MH i2c: E2 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 62 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 62 00 45 DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [07:30:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:30:31]wFMCommunicate OK [07:30:31]SAM_PROTO_GetFieldsCounters done [07:30:31]requested_item shift.num is exist - process it [07:30:31]requested_item shift.opened is exist - process it [07:30:31]req_shift_opened [07:30:31]FM_GetShiftState [07:30:31]SAM_PROTO_GetShiftState [07:30:31]wFMCommunicate request_size=4 [07:30:31]MH_SAM_APDU [07:30:31]CAPDU: 80 13 01 00 [07:30:31]Write to MH i2c: E2 08 00 46 DF 80 13 01 00 00 00 00 00 A2 [07:30:31]Write i2c OK [07:30:31]MH_I2C_Read... [07:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:31]Read from MH i2c: E2 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 0E 00 [07:30:31]MH_I2C_Read... [07:30:31]Read from MH i2c: E2 0E 00 46 DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1B [07:30:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [07:30:31]wFMCommunicate OK [07:30:31]SAM_PROTO_GetShiftState done [07:30:31]FM_GetShiftState done [07:30:31]req_shift_opened done [07:30:31]requested_item shift.open_date is exist - process it [07:30:31]req_shift_open_date [07:30:31]req_shift_open_date done [07:30:31]produce_requested_data done [07:30:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191646,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [07:30:31]process_action_free close_receipt [07:30:31]json_value_free [07:30:31]json_value_free done [07:30:31]process_json_proto returns [07:30:31]Send response to host [07:30:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191646,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [07:30:31]free response buf [07:30:31]execute_script done [07:30:31]execute_script returns [07:30:31]free content buf [07:30:31]Sock 8.Close socket [07:30:31]Sock 8.Thread stoped [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32: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:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:28]ConnectInit Can't connect to host [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:08]ConnectInit Can't connect to host [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:49]accept exits with 9 [07:48:49]New connection [07:48:49]New thread 3066961252 created [07:48:49]Thread 3066817892 joined [07:48:49]Waiting for new connection... [07:48:49] Sock 9.Parse request [07:48:49]Sock 9.Check first char [07:48:49]Sock 9.First char is OK [07:48:49]request: POST /json_proto HTTP/1.0 [07:48:49]Method: POST [07:48:49]URL: /json_proto [07:48:49]Method is POST - this is cgi request [07:48:49]url: /json_proto [07:48:49]query_string will be loaded in cgi processing [07:48:49]execute_cgi json_proto POST (null) [07:48:49]execute_cgi path=json_proto method=POST [07:48:49]POST find Content-Length [07:48:49]Host: 172.17.63.131:8080 [07:48:49]Content-Length: 676 [07:48:49]Content-Type: application/json [07:48:49] [07:48:49]POST finish read [07:48:49]Found Content-Length = 676 [07:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:49]execute_script... [07:48: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)30949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:48:49]POST & json_proto [07:48:49]process_json_proto [07:48:49]json parsed OK: [07:48:49]protocol is kg_v1.0 [07:48:49]action value=close_receipt [07:48:49]process_action close_receipt [07:48:49]cmd_close_receipt [07:48:49]MH_GetDate [07:48:49]Write to MH i2c: F0 00 00 47 DF 15 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 09 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: F0 09 00 47 DF 00 EE 9E 1C 67 22 05 6E 64 26 [07:48:49]GetLastDocTimeStamp 1729927840 [07:48:49]current date 1729928942 [07:48:49]FM_GetShiftState [07:48:49]SAM_PROTO_GetShiftState [07:48:49]wFMCommunicate request_size=4 [07:48:49]MH_SAM_APDU [07:48:49]CAPDU: 80 13 01 00 [07:48:49]Write to MH i2c: E2 08 00 48 DF 80 13 01 00 00 00 00 00 A4 [07:48:49]Write i2c OK [07:48:49]MH_I2C_Read... [07:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:49]Read from MH i2c: E2 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 [07:48:49]MH_I2C_Read... [07:48:49]Read from MH i2c: E2 0E 00 48 DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1D [07:48:49]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [07:48:49]wFMCommunicate OK [07:48:49]SAM_PROTO_GetShiftState done [07:48:49]FM_GetShiftState done [07:48:49]opened in 1729902770 [07:48:49]opened+sec_in_day 1729989170 [07:48:49]quantity*price = 50041 [07:48:49]sum+1 = 50042 [07:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 10 26.10.2024 07:49 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191647 ФПД: 214134321322447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074902&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191647&fm=214134321322447&tin=02508201610067®Number=0000000000091776&sum=50000 [07:48:50]StoreToDocumentArchive [07:48:50]shift 541 fd 191647 [07:48:50]save to /storage/0541/doc_00191647 [07:48:50]save last doc name /storage/0541/doc_00191647 to /storage/kkm_last_doc_name [07:48:50]save OK [07:48:50]Clear old archive folders... [07:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:50]tlvbuf is 016B0350 [07:48:50]SAM_PROTO_ClearQueue [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 09 00 00 [07:48:50]Write to MH i2c: E2 08 00 55 DF 80 09 00 00 00 00 00 00 A6 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 55 DF 00 90 00 A8 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]SAM_PROTO_ClearQueue done [07:48:50]KKMCreateOFDPacket [07:48:50]OFDProtocolAddRootSTLVToBuf [07:48:50]FM_MakeSignedData [07:48:50]FM_MakeSignedData [07:48:50]SAM_PROTO_SignData [07:48:50]wFMCommunicate request_size=4 [07:48:50]MH_SAM_APDU [07:48:50]CAPDU: 80 0D 01 02 [07:48:50]Write to MH i2c: E2 08 00 56 DF 80 0D 01 02 00 00 00 00 AE [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:50]Read from MH i2c: E2 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 [07:48:50]MH_I2C_Read... [07:48:50]Read from MH i2c: E2 03 00 56 DF 00 90 00 A9 [07:48:50]RAPDU: 90 00 [07:48:50]wFMCommunicate OK [07:48:50]wFMCommunicate request_size=255 [07:48:50]MH_SAM_APDU [07:48: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EE 9E 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EC 02 00 35 04 06 00 C2 [07:48:50]Write to MH i2c: E2 02 01 57 DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EE 9E 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EC 02 00 35 04 06 00 C2 00 00 C9 [07:48:50]Write i2c OK [07:48:50]MH_I2C_Read... [07:48:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 57 DF 00 90 00 AA [07:48:51]RAPDU: 90 00 [07:48:51]wFMCommunicate OK [07:48:51]wFMCommunicate request_size=10 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 0D 02 02 05 C1 08 28 19 CF [07:48:51]Write to MH i2c: E2 0D 00 58 DF 80 0D 02 02 05 00 C1 08 28 19 CF 00 00 94 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 03 00 58 DF 00 90 00 AB [07:48:51]RAPDU: 90 00 [07:48:51]wFMCommunicate OK [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 0D 03 02 [07:48:51]Write to MH i2c: E2 08 00 59 DF 80 0D 03 02 00 00 00 00 B3 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]OFD Sender: No OFD packet to send [07:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0B 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 0B 00 59 DF 00 EC 87 36 B5 09 CB 44 36 90 00 60 [07:48:51]RAPDU: EC 87 36 B5 09 CB 44 36 90 00 [07:48:51]wFMCommunicate OK [07:48:51]SAM_PROTO_SignData done [07:48:51]FM_MakeSignedData done [07:48:51]CreateOFDProtocolMessage [07:48:51]wFMCommunicate request_size=4 [07:48:51]MH_SAM_APDU [07:48:51]CAPDU: 80 11 00 00 [07:48:51]Write to MH i2c: E2 08 00 5A DF 80 11 00 00 00 00 00 00 B3 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:51]Read from MH i2c: E2 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 17 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: E2 17 00 5A DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [07:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:48:51]wFMCommunicate OK [07:48:51]CreateOFDProtocolMessage done [07:48:51]OFDSenderStorePacket 191647 [07:48:51]StoreOFDPacket docnum=191647 [07:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 16 07 01 05 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EE 9E 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EC 02 00 35 04 06 00 C2 C1 08 28 19 CF EC 87 36 B5 09 CB 44 36 [07:48:51]CheckFolder [07:48:51]dirname=/storage/ofd_packets [07:48:51]CheckFolder done [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00191647 [07:48:51]NVStorageSaveData ofd_packets/00191647 [07:48:51]File name is /storage/ofd_packets/00191647 [07:48:51]Write 301 bytes [07:48:51]NVStorageSaveData done [07:48:51]OFDSenderStorePacket done [07:48:51]KKMCreateOFDPacket done [07:48:51]NVStorageSaveData kkm_last_timestamp [07:48:51]File name is /storage/kkm_last_timestamp [07:48:51]Write 4 bytes [07:48:51]NVStorageSaveData done [07:48:51]ExternCall_PrintAddStr [07:48:51]wPrintStart [07:48:51]Write to MH i2c: 01 00 00 5B DF 3A [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 5B DF 00 00 00 00 00 FF 0F 4F [07:48:51]RasterBufferAndPrint [07:48:51]line Счет N : (1)30949 [07:48:51]line ИНН: 02508201610067 [07:48:51]line Контрольно-Кассовый Чек [07:48:51]line ПРОДАЖА [07:48:51]line ТРК (МРК, ГНК) : 21 [07:48:51]line Товар: 2710124130 [07:48:51]line Аи-92-К-5 [07:48:51]line 7.480 * 66.90 [07:48:51]line = 500.41 [07:48:51]line НДС 12% НСП 1% [07:48:51]line > о реализуемом товаре [07:48:51]line ОКРУГЛЕНИЕ: -0.41 [07:48:51]line ИТОГО: 500.00 [07:48:51]line Внесено: 500.00 [07:48:51]line СДАЧА: 0.00 [07:48:51]line НСП 1% : 4.43 [07:48:51]line НДС 12% : 53.14 [07:48:51]line Наличными: 500.00 [07:48:51]line Безнал.: 0.00 [07:48:51]line Место: АЗС № 170 "Партнер Нефть" [07:48:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [07:48:51]line СНО: Общий режим [07:48:51]line Чек 10 26.10.2024 07:49 [07:48:51]line Смена: 541 ФФД: 1.0 [07:48:51]line ЗНМ: 0300000110 [07:48:51]line РНМ: 0000000000091776 [07:48:51]line Версия ККМ: 001 [07:48:51]line ФМ: 0000000000871754 [07:48:51]line ФД: 191647 [07:48:51]line ФПД: 214134321322447 [07:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T074902&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191647&fm=214134321322447&tin=02508201610067®Number=0000000000091776&sum=50000 [07:48:51]OFD Sender: Processing packet 191647 [packets to send 75, broken 74] [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00191647 [07:48:51]OFD Sender: To server: pG, [07:48:51]CommunicateWithHost lk.salyk.kg:30040 [07:48:51]ConnectInit lk.salyk.kg [07:48:51]written 0, free lines is 4095 [07:48:51]Connected sock=8 [07:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 16 07 01 05 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EE 9E 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EC 02 00 35 04 06 00 C2 C1 08 28 19 CF EC 87 36 B5 09 CB 44 36 [07:48:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 95 CB 47 00 02 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F EC 02 00 F4 03 04 00 BA 43 1C 67 B6 04 01 00 00 98 04 F7 FE A6 95 1D D9 [07:48:51]CommunicateWithHost err = 0 [07:48:51]CheckOFDResponse [07:48:51]1017 (14) - 77093643461234 [07:48:51]1041 (16) - 0000000000871754 [07:48:51]1040 (4) - 191647 [07:48:51]1012 (4) - 26.10.2024 01:19 [07:48:51]1206 (1) - 0 [07:48:51]OFD Sender: Remove packet 191647 [07:48:51]ProducePacketName [07:48:51]name=ofd_packets/00191647 [07:48:51]NVStorageDeleteData [07:48:51]Write to MH i2c: 01 00 00 86 DF 65 [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: 01 07 00 86 DF 00 00 00 00 00 D4 0C 4C [07:48:51]RasterBufferAndPrint [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]line [07:48:51]written 0, free lines is 3292 [07:48:51]MH_Cut [07:48:51]Write to MH i2c: D1 01 00 8D DF 01 3E [07:48:51]Write i2c OK [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: D1 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: D1 01 00 [07:48:51]MH_I2C_Read... [07:48:51]Read from MH i2c: D1 01 00 8D DF 00 3D [07:48:52]Write to MH i2c: 01 00 00 8E DF 6D [07:48:52]Write i2c OK [07:48:52]MH_I2C_Read... [07:48:52]OFD Sender: No OFD packet to send [07:48:52]*** Cut start [07:48:52]*** Partial cut [07:48:52]*** CUTSNS_PIN = 1 [07:48:52]*** CUTSNS_PIN = 0 [07:48:53]*** Brake cut motor [07:48:53]Read from MH i2c: 01 [07:48:53]MH_I2C_Read... [07:48:53]*** Stop cut motor [07:48:53]*** Cut end [07:48:53]Read from MH i2c: 01 07 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: 01 07 00 8E DF 00 00 00 00 00 FF 0F 82 [07:48:53]process_action close_receipt done [07:48:53]requested_data is exist [07:48:53]produce_requested_data [07:48:53]requested_item fm.sn is exist - process it [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 11 00 00 [07:48:53]Write to MH i2c: E2 08 00 8F DF 80 11 00 00 00 00 00 00 E8 [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 17 00 8F DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3B [07:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [07:48:53]wFMCommunicate OK [07:48:53]requested_item fd.num is exist - process it [07:48:53]SAM_PROTO_GetFieldsCounters [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 13 00 00 [07:48:53]Write to MH i2c: E2 08 00 90 DF 80 13 00 00 00 00 00 00 EB [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 62 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 62 00 90 DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [07:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_GetFieldsCounters done [07:48:53]requested_item shift.num is exist - process it [07:48:53]requested_item shift.opened is exist - process it [07:48:53]req_shift_opened [07:48:53]FM_GetShiftState [07:48:53]SAM_PROTO_GetShiftState [07:48:53]wFMCommunicate request_size=4 [07:48:53]MH_SAM_APDU [07:48:53]CAPDU: 80 13 01 00 [07:48:53]Write to MH i2c: E2 08 00 91 DF 80 13 01 00 00 00 00 00 ED [07:48:53]Write i2c OK [07:48:53]MH_I2C_Read... [07:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:53]Read from MH i2c: E2 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0E 00 [07:48:53]MH_I2C_Read... [07:48:53]Read from MH i2c: E2 0E 00 91 DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 66 [07:48:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [07:48:53]wFMCommunicate OK [07:48:53]SAM_PROTO_GetShiftState done [07:48:53]FM_GetShiftState done [07:48:53]req_shift_opened done [07:48:53]requested_item shift.open_date is exist - process it [07:48:53]req_shift_open_date [07:48:53]req_shift_open_date done [07:48:53]produce_requested_data done [07:48:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191647,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [07:48:53]process_action_free close_receipt [07:48:53]json_value_free [07:48:53]json_value_free done [07:48:53]process_json_proto returns [07:48:53]Send response to host [07:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191647,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [07:48:53]free response buf [07:48:53]execute_script done [07:48:53]execute_script returns [07:48:53]free content buf [07:48:53]Sock 9.Close socket [07:48:53]Sock 9.Thread stoped [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59: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:21]accept exits with 10 [08:06:21]New connection [08:06:21]New thread 3066817892 created [08:06:21]Thread 3066961252 joined [08:06:21]Waiting for new connection... [08:06:21] Sock 10.Parse request [08:06:21]Sock 10.Check first char [08:06:21]Sock 10.First char is OK [08:06:21]request: POST /json_proto HTTP/1.0 [08:06:21]Method: POST [08:06:21]URL: /json_proto [08:06:21]Method is POST - this is cgi request [08:06:21]url: /json_proto [08:06:21]query_string will be loaded in cgi processing [08:06:21]execute_cgi json_proto POST (null) [08:06:21]execute_cgi path=json_proto method=POST [08:06:21]POST find Content-Length [08:06:21]Host: 172.17.63.131:8080 [08:06:21]Content-Length: 676 [08:06:21]Content-Type: application/json [08:06:21] [08:06:21]POST finish read [08:06:21]Found Content-Length = 676 [08:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:21]execute_script... [08:06:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:21]POST & json_proto [08:06:21]process_json_proto [08:06:21]json parsed OK: [08:06:21]protocol is kg_v1.0 [08:06:21]action value=close_receipt [08:06:21]process_action close_receipt [08:06:21]cmd_close_receipt [08:06:21]MH_GetDate [08:06:21]Write to MH i2c: F0 00 00 92 DF 60 [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: F0 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: F0 09 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: F0 09 00 92 DF 00 0B A3 1C 67 22 05 6E 64 93 [08:06:21]GetLastDocTimeStamp 1729928942 [08:06:21]current date 1729929995 [08:06:21]FM_GetShiftState [08:06:21]SAM_PROTO_GetShiftState [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 13 01 00 [08:06:21]Write to MH i2c: E2 08 00 93 DF 80 13 01 00 00 00 00 00 EF [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0E 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0E 00 93 DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 68 [08:06:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:06:21]wFMCommunicate OK [08:06:21]SAM_PROTO_GetShiftState done [08:06:21]FM_GetShiftState done [08:06:21]opened in 1729902770 [08:06:21]opened+sec_in_day 1729989170 [08:06:21]quantity*price = 50041 [08:06:21]sum+1 = 50042 [08:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 11 26.10.2024 08:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191648 ФПД: 270580460349415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191648&fm=270580460349415&tin=02508201610067®Number=0000000000091776&sum=50000 [08:06:23]StoreToDocumentArchive [08:06:23]shift 541 fd 191648 [08:06:23]save to /storage/0541/doc_00191648 [08:06:23]save last doc name /storage/0541/doc_00191648 to /storage/kkm_last_doc_name [08:06:23]save OK [08:06:23]Clear old archive folders... [08:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:23]tlvbuf is 016AFF70 [08:06:23]SAM_PROTO_ClearQueue [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 09 00 00 [08:06:23]Write to MH i2c: E2 08 00 A0 DF 80 09 00 00 00 00 00 00 F1 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 A0 DF 00 90 00 F3 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]SAM_PROTO_ClearQueue done [08:06:23]KKMCreateOFDPacket [08:06:23]OFDProtocolAddRootSTLVToBuf [08:06:23]FM_MakeSignedData [08:06:23]FM_MakeSignedData [08:06:23]SAM_PROTO_SignData [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 01 02 [08:06:23]Write to MH i2c: E2 08 00 A1 DF 80 0D 01 02 00 00 00 00 F9 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 A1 DF 00 90 00 F4 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]wFMCommunicate request_size=255 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0B A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EC 02 00 35 04 06 00 F6 [08:06:23]Write to MH i2c: E2 02 01 A2 DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0B A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EC 02 00 35 04 06 00 F6 00 00 6C [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]OFD Sender: No OFD packet to send [08:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 A2 DF 00 90 00 F5 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]wFMCommunicate request_size=10 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 02 02 05 17 6C 38 E7 E7 [08:06:23]Write to MH i2c: E2 0D 00 A3 DF 80 0D 02 02 05 00 17 6C 38 E7 E7 00 00 8F [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 03 00 A3 DF 00 90 00 F6 [08:06:23]RAPDU: 90 00 [08:06:23]wFMCommunicate OK [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 0D 03 02 [08:06:23]Write to MH i2c: E2 08 00 A4 DF 80 0D 03 02 00 00 00 00 FE [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 0B 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 0B 00 A4 DF 00 41 CF EE 34 5C 9D C8 00 90 00 F2 [08:06:23]RAPDU: 41 CF EE 34 5C 9D C8 00 90 00 [08:06:23]wFMCommunicate OK [08:06:23]SAM_PROTO_SignData done [08:06:23]FM_MakeSignedData done [08:06:23]CreateOFDProtocolMessage [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 11 00 00 [08:06:23]Write to MH i2c: E2 08 00 A5 DF 80 11 00 00 00 00 00 00 FE [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 17 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 17 00 A5 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [08:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:06:23]wFMCommunicate OK [08:06:23]CreateOFDProtocolMessage done [08:06:23]OFDSenderStorePacket 191648 [08:06:23]StoreOFDPacket docnum=191648 [08:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 8A 07 01 A6 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0B A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EC 02 00 35 04 06 00 F6 17 6C 38 E7 E7 41 CF EE 34 5C 9D C8 00 [08:06:23]CheckFolder [08:06:23]dirname=/storage/ofd_packets [08:06:23]CheckFolder done [08:06:23]ProducePacketName [08:06:23]name=ofd_packets/00191648 [08:06:23]NVStorageSaveData ofd_packets/00191648 [08:06:23]File name is /storage/ofd_packets/00191648 [08:06:23]Write 301 bytes [08:06:23]NVStorageSaveData done [08:06:23]OFDSenderStorePacket done [08:06:23]KKMCreateOFDPacket done [08:06:23]NVStorageSaveData kkm_last_timestamp [08:06:23]File name is /storage/kkm_last_timestamp [08:06:23]Write 4 bytes [08:06:23]NVStorageSaveData done [08:06:23]ExternCall_PrintAddStr [08:06:23]wPrintStart [08:06:23]Write to MH i2c: 01 00 00 A6 DF 85 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: 01 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: 01 07 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: 01 07 00 A6 DF 00 00 00 00 00 FF 0F 9A [08:06:23]RasterBufferAndPrint [08:06:23]line Счет N : (1)30950 [08:06:23]line ИНН: 02508201610067 [08:06:23]line Контрольно-Кассовый Чек [08:06:23]line ПРОДАЖА [08:06:23]line ТРК (МРК, ГНК) : 21 [08:06:23]line Товар: 2710124130 [08:06:23]line Аи-92-К-5 [08:06:23]line 7.480 * 66.90 [08:06:23]line = 500.41 [08:06:23]line НДС 12% НСП 1% [08:06:23]line > о реализуемом товаре [08:06:23]line ОКРУГЛЕНИЕ: -0.41 [08:06:23]line ИТОГО: 500.00 [08:06:23]line Внесено: 500.00 [08:06:23]line СДАЧА: 0.00 [08:06:23]line НСП 1% : 4.43 [08:06:23]line НДС 12% : 53.14 [08:06:23]line Наличными: 500.00 [08:06:23]line Безнал.: 0.00 [08:06:23]line Место: АЗС № 170 "Партнер Нефть" [08:06:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:06:23]line СНО: Общий режим [08:06:23]line Чек 11 26.10.2024 08:06 [08:06:23]line Смена: 541 ФФД: 1.0 [08:06:23]line ЗНМ: 0300000110 [08:06:23]line РНМ: 0000000000091776 [08:06:23]line Версия ККМ: 001 [08:06:23]line ФМ: 0000000000871754 [08:06:23]line ФД: 191648 [08:06:23]line ФПД: 270580460349415 [08:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191648&fm=270580460349415&tin=02508201610067®Number=0000000000091776&sum=50000 [08:06:23]OFD Sender: Processing packet 191648 [packets to send 75, broken 74] [08:06:23]ProducePacketName [08:06:23]name=ofd_packets/00191648 [08:06:23]OFD Sender: To server: pG, [08:06:23]CommunicateWithHost lk.salyk.kg:30040 [08:06:23]ConnectInit lk.salyk.kg [08:06:23]written 0, free lines is 4095 [08:06:24]Connected sock=9 [08:06:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 8A 07 01 A6 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0B A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EC 02 00 35 04 06 00 F6 17 6C 38 E7 E7 41 CF EE 34 5C 9D C8 00 [08:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 BF 47 00 3A E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 EC 02 00 F4 03 04 00 D7 47 1C 67 B6 04 01 00 00 E7 4C 7A 60 F7 42 16 3D [08:06:24]CommunicateWithHost err = 0 [08:06:24]CheckOFDResponse [08:06:24]1017 (14) - 77093643461234 [08:06:24]1041 (16) - 0000000000871754 [08:06:24]1040 (4) - 191648 [08:06:24]1012 (4) - 26.10.2024 01:37 [08:06:24]1206 (1) - 0 [08:06:24]OFD Sender: Remove packet 191648 [08:06:24]ProducePacketName [08:06:24]name=ofd_packets/00191648 [08:06:24]NVStorageDeleteData [08:06:24]Write to MH i2c: 01 00 00 D1 DF B0 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 07 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: 01 07 00 D1 DF 00 00 00 00 00 C1 0C 84 [08:06:24]RasterBufferAndPrint [08:06:24]line [08:06:24]line [08:06:24]line [08:06:24]line [08:06:24]line [08:06:24]written 0, free lines is 3274 [08:06:24]MH_Cut [08:06:24]Write to MH i2c: D1 01 00 D8 DF 01 89 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: D1 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: D1 01 00 [08:06:24]MH_I2C_Read... [08:06:24]Read from MH i2c: D1 01 00 D8 DF 00 88 [08:06:24]Write to MH i2c: 01 00 00 D9 DF B8 [08:06:24]Write i2c OK [08:06:24]MH_I2C_Read... [08:06:24]OFD Sender: No OFD packet to send [08:06:25]*** Cut start [08:06:25]*** Partial cut [08:06:25]*** CUTSNS_PIN = 1 [08:06:25]*** CUTSNS_PIN = 0 [08:06:25]*** Brake cut motor [08:06:25]Read from MH i2c: 01 [08:06:25]MH_I2C_Read... [08:06:25]*** Stop cut motor [08:06:25]*** Cut end [08:06:25]Read from MH i2c: 01 07 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: 01 07 00 D9 DF 00 00 00 00 00 FF 0F CD [08:06:25]process_action close_receipt done [08:06:25]requested_data is exist [08:06:25]produce_requested_data [08:06:25]requested_item fm.sn is exist - process it [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 11 00 00 [08:06:25]Write to MH i2c: E2 08 00 DA DF 80 11 00 00 00 00 00 00 33 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:25]Read from MH i2c: E2 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 17 00 [08:06:25]MH_I2C_Read... [08:06:25]Read from MH i2c: E2 17 00 DA DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 86 [08:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:06:25]wFMCommunicate OK [08:06:25]requested_item fd.num is exist - process it [08:06:25]SAM_PROTO_GetFieldsCounters [08:06:25]wFMCommunicate request_size=4 [08:06:25]MH_SAM_APDU [08:06:25]CAPDU: 80 13 00 00 [08:06:25]Write to MH i2c: E2 08 00 DB DF 80 13 00 00 00 00 00 00 36 [08:06:25]Write i2c OK [08:06:25]MH_I2C_Read... [08:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:26]Read from MH i2c: E2 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 62 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 62 00 DB DF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:26]wFMCommunicate OK [08:06:26]SAM_PROTO_GetFieldsCounters done [08:06:26]requested_item shift.num is exist - process it [08:06:26]requested_item shift.opened is exist - process it [08:06:26]req_shift_opened [08:06:26]FM_GetShiftState [08:06:26]SAM_PROTO_GetShiftState [08:06:26]wFMCommunicate request_size=4 [08:06:26]MH_SAM_APDU [08:06:26]CAPDU: 80 13 01 00 [08:06:26]Write to MH i2c: E2 08 00 DC DF 80 13 01 00 00 00 00 00 38 [08:06:26]Write i2c OK [08:06:26]MH_I2C_Read... [08:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:26]Read from MH i2c: E2 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 0E 00 [08:06:26]MH_I2C_Read... [08:06:26]Read from MH i2c: E2 0E 00 DC DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B1 [08:06:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:06:26]wFMCommunicate OK [08:06:26]SAM_PROTO_GetShiftState done [08:06:26]FM_GetShiftState done [08:06:26]req_shift_opened done [08:06:26]requested_item shift.open_date is exist - process it [08:06:26]req_shift_open_date [08:06:26]req_shift_open_date done [08:06:26]produce_requested_data done [08:06:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191648,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:06:26]process_action_free close_receipt [08:06:26]json_value_free [08:06:26]json_value_free done [08:06:26]process_json_proto returns [08:06:26]Send response to host [08:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191648,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:06:26]free response buf [08:06:26]execute_script done [08:06:26]execute_script returns [08:06:26]free content buf [08:06:26]Sock 10.Close socket [08:06:26]Sock 10.Thread stoped [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:38]accept exits with 8 [08:09:38]New connection [08:09:38]New thread 3066961252 created [08:09:38]Thread 3066817892 joined [08:09:38]Waiting for new connection... [08:09:38] Sock 8.Parse request [08:09:38]Sock 8.Check first char [08:09:38]Sock 8.First char is OK [08:09:38]request: POST /json_proto HTTP/1.0 [08:09:38]Method: POST [08:09:38]URL: /json_proto [08:09:38]Method is POST - this is cgi request [08:09:38]url: /json_proto [08:09:38]query_string will be loaded in cgi processing [08:09:38]execute_cgi json_proto POST (null) [08:09:38]execute_cgi path=json_proto method=POST [08:09:38]POST find Content-Length [08:09:38]Host: 172.17.63.131:8080 [08:09:38]Content-Length: 676 [08:09:38]Content-Type: application/json [08:09:38] [08:09:38]POST finish read [08:09:38]Found Content-Length = 676 [08:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:38]execute_script... [08:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:38]POST & json_proto [08:09:38]process_json_proto [08:09:38]json parsed OK: [08:09:38]protocol is kg_v1.0 [08:09:38]action value=close_receipt [08:09:38]process_action close_receipt [08:09:38]cmd_close_receipt [08:09:38]MH_GetDate [08:09:38]Write to MH i2c: F0 00 00 DD DF AB [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 09 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 09 00 DD DF 00 CF A3 1C 67 22 05 6E 64 A2 [08:09:38]GetLastDocTimeStamp 1729929995 [08:09:38]current date 1729930191 [08:09:38]FM_GetShiftState [08:09:38]SAM_PROTO_GetShiftState [08:09:38]wFMCommunicate request_size=4 [08:09:38]MH_SAM_APDU [08:09:38]CAPDU: 80 13 01 00 [08:09:38]Write to MH i2c: E2 08 00 DE DF 80 13 01 00 00 00 00 00 3A [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:38]Read from MH i2c: E2 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 0E 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 0E 00 DE DF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B3 [08:09:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:09:38]wFMCommunicate OK [08:09:38]SAM_PROTO_GetShiftState done [08:09:38]FM_GetShiftState done [08:09:38]opened in 1729902770 [08:09:38]opened+sec_in_day 1729989170 [08:09:38]quantity*price = 50041 [08:09:38]sum+1 = 50042 [08:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 12 26.10.2024 08:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191649 ФПД: 175105593846688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191649&fm=175105593846688&tin=02508201610067®Number=0000000000091776&sum=50000 [08:09:39]StoreToDocumentArchive [08:09:39]shift 541 fd 191649 [08:09:39]save to /storage/0541/doc_00191649 [08:09:39]save last doc name /storage/0541/doc_00191649 to /storage/kkm_last_doc_name [08:09:39]save OK [08:09:39]Clear old archive folders... [08:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:39]tlvbuf is 019D2800 [08:09:39]SAM_PROTO_ClearQueue [08:09:39]wFMCommunicate request_size=4 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 09 00 00 [08:09:39]Write to MH i2c: E2 08 00 EB DF 80 09 00 00 00 00 00 00 3C [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 EB DF 00 90 00 3E [08:09:39]RAPDU: 90 00 [08:09:39]wFMCommunicate OK [08:09:39]SAM_PROTO_ClearQueue done [08:09:39]KKMCreateOFDPacket [08:09:39]OFDProtocolAddRootSTLVToBuf [08:09:39]FM_MakeSignedData [08:09:39]FM_MakeSignedData [08:09:39]SAM_PROTO_SignData [08:09:39]wFMCommunicate request_size=4 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 0D 01 02 [08:09:39]Write to MH i2c: E2 08 00 EC DF 80 0D 01 02 00 00 00 00 44 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 EC DF 00 90 00 3F [08:09:39]RAPDU: 90 00 [08:09:39]wFMCommunicate OK [08:09:39]wFMCommunicate request_size=255 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 CF A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EC 02 00 35 04 06 00 9F [08:09:39]Write to MH i2c: E2 02 01 ED DF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EC 02 00 35 04 06 00 9F 00 00 26 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 ED DF 00 90 00 40 [08:09:39]RAPDU: 90 00 [08:09:39]wFMCommunicate OK [08:09:39]wFMCommunicate request_size=10 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 0D 02 02 05 41 F2 B8 2B A0 [08:09:39]Write to MH i2c: E2 0D 00 EE DF 80 0D 02 02 05 00 41 F2 B8 2B A0 00 00 07 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 03 00 EE DF 00 90 00 41 [08:09:39]RAPDU: 90 00 [08:09:39]wFMCommunicate OK [08:09:39]wFMCommunicate request_size=4 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 0D 03 02 [08:09:39]Write to MH i2c: E2 08 00 EF DF 80 0D 03 02 00 00 00 00 49 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 0B 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 0B 00 EF DF 00 71 48 9E 42 39 58 A1 5D 90 00 72 [08:09:39]RAPDU: 71 48 9E 42 39 58 A1 5D 90 00 [08:09:39]wFMCommunicate OK [08:09:39]SAM_PROTO_SignData done [08:09:39]FM_MakeSignedData done [08:09:39]CreateOFDProtocolMessage [08:09:39]wFMCommunicate request_size=4 [08:09:39]MH_SAM_APDU [08:09:39]CAPDU: 80 11 00 00 [08:09:39]Write to MH i2c: E2 08 00 F0 DF 80 11 00 00 00 00 00 00 49 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:39]Read from MH i2c: E2 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 17 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: E2 17 00 F0 DF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [08:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:09:39]wFMCommunicate OK [08:09:39]CreateOFDProtocolMessage done [08:09:39]OFDSenderStorePacket 191649 [08:09:39]StoreOFDPacket docnum=191649 [08:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 52 07 01 59 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EC 02 00 35 04 06 00 9F 41 F2 B8 2B A0 71 48 9E 42 39 58 A1 5D [08:09:39]CheckFolder [08:09:39]dirname=/storage/ofd_packets [08:09:39]CheckFolder done [08:09:39]ProducePacketName [08:09:39]name=ofd_packets/00191649 [08:09:39]NVStorageSaveData ofd_packets/00191649 [08:09:39]File name is /storage/ofd_packets/00191649 [08:09:39]Write 301 bytes [08:09:39]NVStorageSaveData done [08:09:39]OFDSenderStorePacket done [08:09:39]KKMCreateOFDPacket done [08:09:39]NVStorageSaveData kkm_last_timestamp [08:09:39]File name is /storage/kkm_last_timestamp [08:09:39]Write 4 bytes [08:09:39]NVStorageSaveData done [08:09:39]ExternCall_PrintAddStr [08:09:39]wPrintStart [08:09:39]Write to MH i2c: 01 00 00 F1 DF D0 [08:09:39]Write i2c OK [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: 01 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: 01 07 00 [08:09:39]MH_I2C_Read... [08:09:39]Read from MH i2c: 01 07 00 F1 DF 00 00 00 00 00 FF 0F E5 [08:09:39]RasterBufferAndPrint [08:09:39]line Счет N : (1)30951 [08:09:39]line ИНН: 02508201610067 [08:09:39]line Контрольно-Кассовый Чек [08:09:39]line ПРОДАЖА [08:09:39]line ТРК (МРК, ГНК) : 21 [08:09:39]line Товар: 2710124130 [08:09:39]line Аи-92-К-5 [08:09:39]line 7.480 * 66.90 [08:09:39]line = 500.41 [08:09:39]line НДС 12% НСП 1% [08:09:39]line > о реализуемом товаре [08:09:39]line ОКРУГЛЕНИЕ: -0.41 [08:09:39]line ИТОГО: 500.00 [08:09:39]line Внесено: 500.00 [08:09:39]line СДАЧА: 0.00 [08:09:39]line НСП 1% : 4.43 [08:09:39]line НДС 12% : 53.14 [08:09:39]line Наличными: 500.00 [08:09:39]line Безнал.: 0.00 [08:09:39]line Место: АЗС № 170 "Партнер Нефть" [08:09:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:09:39]line СНО: Общий режим [08:09:39]line Чек 12 26.10.2024 08:09 [08:09:39]line Смена: 541 ФФД: 1.0 [08:09:39]line ЗНМ: 0300000110 [08:09:39]line РНМ: 0000000000091776 [08:09:39]line Версия ККМ: 001 [08:09:39]line ФМ: 0000000000871754 [08:09:39]line ФД: 191649 [08:09:39]line ФПД: 175105593846688 [08:09:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T080951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191649&fm=175105593846688&tin=02508201610067®Number=0000000000091776&sum=50000 [08:09:40]OFD Sender: Processing packet 191649 [packets to send 75, broken 74] [08:09:40]ProducePacketName [08:09:40]name=ofd_packets/00191649 [08:09:40]OFD Sender: To server: pG, [08:09:40]CommunicateWithHost lk.salyk.kg:30040 [08:09:40]ConnectInit lk.salyk.kg [08:09:40]written 0, free lines is 4095 [08:09:40]Connected sock=10 [08:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 52 07 01 59 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 CF A3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EC 02 00 35 04 06 00 9F 41 F2 B8 2B A0 71 48 9E 42 39 58 A1 5D [08:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5C E3 47 00 5E C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 EC 02 00 F4 03 04 00 9B 48 1C 67 B6 04 01 00 00 B7 91 55 4D ED 67 12 FC [08:09:40]CommunicateWithHost err = 0 [08:09:40]CheckOFDResponse [08:09:40]1017 (14) - 77093643461234 [08:09:40]1041 (16) - 0000000000871754 [08:09:40]1040 (4) - 191649 [08:09:40]1012 (4) - 26.10.2024 01:40 [08:09:40]1206 (1) - 0 [08:09:40]OFD Sender: Remove packet 191649 [08:09:40]ProducePacketName [08:09:40]name=ofd_packets/00191649 [08:09:40]NVStorageDeleteData [08:09:40]Write to MH i2c: 01 00 00 1C E0 FC [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 1C E0 00 00 00 00 00 CA 0C D9 [08:09:40]RasterBufferAndPrint [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]line [08:09:40]written 0, free lines is 3280 [08:09:40]MH_Cut [08:09:40]Write to MH i2c: D1 01 00 23 E0 01 D5 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 01 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: D1 01 00 23 E0 00 D4 [08:09:40]Write to MH i2c: 01 00 00 24 E0 04 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:41]OFD Sender: No OFD packet to send [08:09:41]*** Cut start [08:09:41]*** Partial cut [08:09:41]*** CUTSNS_PIN = 1 [08:09:41]*** CUTSNS_PIN = 0 [08:09:41]*** Brake cut motor [08:09:42]Read from MH i2c: 01 [08:09:42]MH_I2C_Read... [08:09:42]*** Stop cut motor [08:09:42]*** Cut end [08:09:42]Read from MH i2c: 01 07 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: 01 07 00 24 E0 00 00 00 00 00 FF 0F 19 [08:09:42]process_action close_receipt done [08:09:42]requested_data is exist [08:09:42]produce_requested_data [08:09:42]requested_item fm.sn is exist - process it [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 11 00 00 [08:09:42]Write to MH i2c: E2 08 00 25 E0 80 11 00 00 00 00 00 00 7F [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:42]Read from MH i2c: E2 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 17 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 17 00 25 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [08:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:09:42]wFMCommunicate OK [08:09:42]requested_item fd.num is exist - process it [08:09:42]SAM_PROTO_GetFieldsCounters [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 13 00 00 [08:09:42]Write to MH i2c: E2 08 00 26 E0 80 13 00 00 00 00 00 00 82 [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:42]Read from MH i2c: E2 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 62 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 62 00 26 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [08:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:42]wFMCommunicate OK [08:09:42]SAM_PROTO_GetFieldsCounters done [08:09:42]requested_item shift.num is exist - process it [08:09:42]requested_item shift.opened is exist - process it [08:09:42]req_shift_opened [08:09:42]FM_GetShiftState [08:09:42]SAM_PROTO_GetShiftState [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 13 01 00 [08:09:42]Write to MH i2c: E2 08 00 27 E0 80 13 01 00 00 00 00 00 84 [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:42]Read from MH i2c: E2 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 0E 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: E2 0E 00 27 E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FD [08:09:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:09:42]wFMCommunicate OK [08:09:42]SAM_PROTO_GetShiftState done [08:09:42]FM_GetShiftState done [08:09:42]req_shift_opened done [08:09:42]requested_item shift.open_date is exist - process it [08:09:42]req_shift_open_date [08:09:42]req_shift_open_date done [08:09:42]produce_requested_data done [08:09:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191649,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:09:42]process_action_free close_receipt [08:09:42]json_value_free [08:09:42]json_value_free done [08:09:42]process_json_proto returns [08:09:42]Send response to host [08:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191649,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:09:42]free response buf [08:09:42]execute_script done [08:09:42]execute_script returns [08:09:42]free content buf [08:09:42]Sock 8.Close socket [08:09:42]Sock 8.Thread stoped [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:13]accept exits with 9 [08:14:13]New connection [08:14:13]New thread 3066817892 created [08:14:13]Thread 3066961252 joined [08:14:13]Waiting for new connection... [08:14:13] Sock 9.Parse request [08:14:13]Sock 9.Check first char [08:14:13]Sock 9.First char is OK [08:14:13]request: POST /json_proto HTTP/1.0 [08:14:13]Method: POST [08:14:13]URL: /json_proto [08:14:13]Method is POST - this is cgi request [08:14:13]url: /json_proto [08:14:13]query_string will be loaded in cgi processing [08:14:13]execute_cgi json_proto POST (null) [08:14:13]execute_cgi path=json_proto method=POST [08:14:13]POST find Content-Length [08:14:13]Host: 172.17.63.131:8080 [08:14:13]Content-Length: 673 [08:14:13]Content-Type: application/json [08:14:13] [08:14:13]POST finish read [08:14:13]Found Content-Length = 673 [08:14:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30952", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:13]execute_script... [08:14: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)30952", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:13]POST & json_proto [08:14:13]process_json_proto [08:14:13]json parsed OK: [08:14:13]protocol is kg_v1.0 [08:14:13]action value=close_receipt [08:14:13]process_action close_receipt [08:14:13]cmd_close_receipt [08:14:13]MH_GetDate [08:14:13]Write to MH i2c: F0 00 00 28 E0 F7 [08:14:13]Write i2c OK [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: F0 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: F0 09 00 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: F0 09 00 28 E0 00 E3 A4 1C 67 22 05 6E 64 03 [08:14:13]GetLastDocTimeStamp 1729930191 [08:14:13]current date 1729930467 [08:14:13]FM_GetShiftState [08:14:13]SAM_PROTO_GetShiftState [08:14:13]wFMCommunicate request_size=4 [08:14:13]MH_SAM_APDU [08:14:13]CAPDU: 80 13 01 00 [08:14:13]Write to MH i2c: E2 08 00 29 E0 80 13 01 00 00 00 00 00 86 [08:14:13]Write i2c OK [08:14:13]MH_I2C_Read... [08:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:13]Read from MH i2c: E2 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: E2 0E 00 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: E2 0E 00 29 E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FF [08:14:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:14:13]wFMCommunicate OK [08:14:13]SAM_PROTO_GetShiftState done [08:14:13]FM_GetShiftState done [08:14:13]opened in 1729902770 [08:14:13]opened+sec_in_day 1729989170 [08:14:13]quantity*price = 50063 [08:14:13]sum+1 = 50064 [08:14:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 13 26.10.2024 08:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191650 ФПД: 225297805509793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081427&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191650&fm=225297805509793&tin=02508201610067®Number=0000000000091776&sum=50000 [08:14:14]StoreToDocumentArchive [08:14:14]shift 541 fd 191650 [08:14:14]save to /storage/0541/doc_00191650 [08:14:14]save last doc name /storage/0541/doc_00191650 to /storage/kkm_last_doc_name [08:14:14]save OK [08:14:14]Clear old archive folders... [08:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:14:14]tlvbuf is 015D8A70 [08:14:14]SAM_PROTO_ClearQueue [08:14:14]wFMCommunicate request_size=4 [08:14:14]MH_SAM_APDU [08:14:14]CAPDU: 80 09 00 00 [08:14:14]Write to MH i2c: E2 08 00 36 E0 80 09 00 00 00 00 00 00 88 [08:14:14]Write i2c OK [08:14:14]MH_I2C_Read... [08:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:14]Read from MH i2c: E2 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 03 00 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 03 00 36 E0 00 90 00 8A [08:14:14]RAPDU: 90 00 [08:14:14]wFMCommunicate OK [08:14:14]SAM_PROTO_ClearQueue done [08:14:14]KKMCreateOFDPacket [08:14:14]OFDProtocolAddRootSTLVToBuf [08:14:14]FM_MakeSignedData [08:14:14]FM_MakeSignedData [08:14:14]SAM_PROTO_SignData [08:14:14]wFMCommunicate request_size=4 [08:14:14]MH_SAM_APDU [08:14:14]CAPDU: 80 0D 01 02 [08:14:14]Write to MH i2c: E2 08 00 37 E0 80 0D 01 02 00 00 00 00 90 [08:14:14]Write i2c OK [08:14:14]MH_I2C_Read... [08:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:14]Read from MH i2c: E2 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 03 00 [08:14:14]MH_I2C_Read... [08:14:14]Read from MH i2c: E2 03 00 37 E0 00 90 00 8B [08:14:14]RAPDU: 90 00 [08:14:14]wFMCommunicate OK [08:14:14]wFMCommunicate request_size=255 [08:14:14]MH_SAM_APDU [08:14:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E3 A4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EC 02 00 35 04 06 00 CC E8 3B AA [08:14:14]Write to MH i2c: E2 02 01 38 E0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E3 A4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EC 02 00 35 04 06 00 CC E8 3B AA 00 00 01 [08:14:14]Write i2c OK [08:14:14]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 38 E0 00 90 00 8C [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]wFMCommunicate request_size=7 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 02 02 02 84 A1 [08:14:15]Write to MH i2c: E2 0A 00 39 E0 80 0D 02 02 02 00 84 A1 00 00 BC [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 03 00 39 E0 00 90 00 8D [08:14:15]RAPDU: 90 00 [08:14:15]wFMCommunicate OK [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 0D 03 02 [08:14:15]Write to MH i2c: E2 08 00 3A E0 80 0D 03 02 00 00 00 00 95 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 0B 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 0B 00 3A E0 00 21 B3 B2 B6 52 DC 29 B8 90 00 E1 [08:14:15]RAPDU: 21 B3 B2 B6 52 DC 29 B8 90 00 [08:14:15]wFMCommunicate OK [08:14:15]SAM_PROTO_SignData done [08:14:15]FM_MakeSignedData done [08:14:15]CreateOFDProtocolMessage [08:14:15]wFMCommunicate request_size=4 [08:14:15]MH_SAM_APDU [08:14:15]CAPDU: 80 11 00 00 [08:14:15]Write to MH i2c: E2 08 00 3B E0 80 11 00 00 00 00 00 00 95 [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:15]Read from MH i2c: E2 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 17 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: E2 17 00 3B E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [08:14:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:14:15]wFMCommunicate OK [08:14:15]CreateOFDProtocolMessage done [08:14:15]OFDSenderStorePacket 191650 [08:14:15]StoreOFDPacket docnum=191650 [08:14:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6D 82 04 01 B9 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E3 A4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EC 02 00 35 04 06 00 CC E8 3B AA 84 A1 21 B3 B2 B6 52 DC 29 B8 [08:14:15]CheckFolder [08:14:15]dirname=/storage/ofd_packets [08:14:15]CheckFolder done [08:14:15]ProducePacketName [08:14:15]name=ofd_packets/00191650 [08:14:15]NVStorageSaveData ofd_packets/00191650 [08:14:15]File name is /storage/ofd_packets/00191650 [08:14:15]Write 298 bytes [08:14:15]NVStorageSaveData done [08:14:15]OFDSenderStorePacket done [08:14:15]KKMCreateOFDPacket done [08:14:15]NVStorageSaveData kkm_last_timestamp [08:14:15]File name is /storage/kkm_last_timestamp [08:14:15]Write 4 bytes [08:14:15]NVStorageSaveData done [08:14:15]ExternCall_PrintAddStr [08:14:15]wPrintStart [08:14:15]Write to MH i2c: 01 00 00 3C E0 1C [08:14:15]Write i2c OK [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 07 00 [08:14:15]MH_I2C_Read... [08:14:15]Read from MH i2c: 01 07 00 3C E0 00 00 00 00 00 FF 0F 31 [08:14:15]RasterBufferAndPrint [08:14:15]line Счет N : (1)30952 [08:14:15]line ИНН: 02508201610067 [08:14:15]line Контрольно-Кассовый Чек [08:14:15]line ПРОДАЖА [08:14:15]line ТРК (МРК, ГНК) : 22 [08:14:15]line Товар: 2710194210 [08:14:15]line ДТ-К-5 [08:14:15]line 6.570 * 76.20 [08:14:15]line = 500.63 [08:14:15]line НДС 12% НСП 1% [08:14:15]line > о реализуемом товаре [08:14:15]line ОКРУГЛЕНИЕ: -0.63 [08:14:15]line ИТОГО: 500.00 [08:14:15]line Внесено: 500.00 [08:14:15]line СДАЧА: 0.00 [08:14:15]line НСП 1% : 4.43 [08:14:15]line НДС 12% : 53.16 [08:14:15]line Наличными: 500.00 [08:14:15]line Безнал.: 0.00 [08:14:15]line Место: АЗС № 170 "Партнер Нефть" [08:14:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:14:15]line СНО: Общий режим [08:14:15]line Чек 13 26.10.2024 08:14 [08:14:15]line Смена: 541 ФФД: 1.0 [08:14:15]line ЗНМ: 0300000110 [08:14:15]line РНМ: 0000000000091776 [08:14:15]line Версия ККМ: 001 [08:14:15]line ФМ: 0000000000871754 [08:14:15]line ФД: 191650 [08:14:15]line ФПД: 225297805509793 [08:14:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081427&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191650&fm=225297805509793&tin=02508201610067®Number=0000000000091776&sum=50000 [08:14:15]OFD Sender: Processing packet 191650 [packets to send 75, broken 74] [08:14:15]ProducePacketName [08:14:15]name=ofd_packets/00191650 [08:14:15]OFD Sender: To server: pG, [08:14:15]CommunicateWithHost lk.salyk.kg:30040 [08:14:15]ConnectInit lk.salyk.kg [08:14:15]written 0, free lines is 4095 [08:14:15]Connected sock=10 [08:14:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6D 82 04 01 B9 B4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E3 A4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EC 02 00 35 04 06 00 CC E8 3B AA 84 A1 21 B3 B2 B6 52 DC 29 B8 [08:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 71 47 00 EA 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 EC 02 00 F4 03 04 00 AE 49 1C 67 B6 04 01 00 00 C3 0F 8B 79 00 31 03 20 [08:14:15]CommunicateWithHost err = 0 [08:14:15]CheckOFDResponse [08:14:15]1017 (14) - 77093643461234 [08:14:15]1041 (16) - 0000000000871754 [08:14:15]1040 (4) - 191650 [08:14:15]1012 (4) - 26.10.2024 01:45 [08:14:15]1206 (1) - 0 [08:14:15]OFD Sender: Remove packet 191650 [08:14:15]ProducePacketName [08:14:15]name=ofd_packets/00191650 [08:14:15]NVStorageDeleteData [08:14:16]Write to MH i2c: 01 00 00 67 E0 47 [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 07 00 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: 01 07 00 67 E0 00 00 00 00 00 C6 0C 20 [08:14:16]RasterBufferAndPrint [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]line [08:14:16]written 0, free lines is 3279 [08:14:16]MH_Cut [08:14:16]Write to MH i2c: D1 01 00 6E E0 01 20 [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 01 00 [08:14:16]MH_I2C_Read... [08:14:16]Read from MH i2c: D1 01 00 6E E0 00 1F [08:14:16]Write to MH i2c: 01 00 00 6F E0 4F [08:14:16]Write i2c OK [08:14:16]MH_I2C_Read... [08:14:16]OFD Sender: No OFD packet to send [08:14:16]*** Cut start [08:14:16]*** Partial cut [08:14:16]*** CUTSNS_PIN = 1 [08:14:16]*** CUTSNS_PIN = 0 [08:14:17]*** Brake cut motor [08:14:17]Read from MH i2c: 01 [08:14:17]MH_I2C_Read... [08:14:17]*** Stop cut motor [08:14:17]*** Cut end [08:14:17]Read from MH i2c: 01 07 00 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: 01 07 00 6F E0 00 00 00 00 00 FF 0F 64 [08:14:17]process_action close_receipt done [08:14:17]requested_data is exist [08:14:17]produce_requested_data [08:14:17]requested_item fm.sn is exist - process it [08:14:17]wFMCommunicate request_size=4 [08:14:17]MH_SAM_APDU [08:14:17]CAPDU: 80 11 00 00 [08:14:17]Write to MH i2c: E2 08 00 70 E0 80 11 00 00 00 00 00 00 CA [08:14:17]Write i2c OK [08:14:17]MH_I2C_Read... [08:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:17]Read from MH i2c: E2 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 17 00 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 17 00 70 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [08:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:14:17]wFMCommunicate OK [08:14:17]requested_item fd.num is exist - process it [08:14:17]SAM_PROTO_GetFieldsCounters [08:14:17]wFMCommunicate request_size=4 [08:14:17]MH_SAM_APDU [08:14:17]CAPDU: 80 13 00 00 [08:14:17]Write to MH i2c: E2 08 00 71 E0 80 13 00 00 00 00 00 00 CD [08:14:17]Write i2c OK [08:14:17]MH_I2C_Read... [08:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:17]Read from MH i2c: E2 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 62 00 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 62 00 71 E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [08:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:17]wFMCommunicate OK [08:14:17]SAM_PROTO_GetFieldsCounters done [08:14:17]requested_item shift.num is exist - process it [08:14:17]requested_item shift.opened is exist - process it [08:14:17]req_shift_opened [08:14:17]FM_GetShiftState [08:14:17]SAM_PROTO_GetShiftState [08:14:17]wFMCommunicate request_size=4 [08:14:17]MH_SAM_APDU [08:14:17]CAPDU: 80 13 01 00 [08:14:17]Write to MH i2c: E2 08 00 72 E0 80 13 01 00 00 00 00 00 CF [08:14:17]Write i2c OK [08:14:17]MH_I2C_Read... [08:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:17]Read from MH i2c: E2 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 0E 00 [08:14:17]MH_I2C_Read... [08:14:17]Read from MH i2c: E2 0E 00 72 E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 48 [08:14:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:14:17]wFMCommunicate OK [08:14:17]SAM_PROTO_GetShiftState done [08:14:17]FM_GetShiftState done [08:14:17]req_shift_opened done [08:14:17]requested_item shift.open_date is exist - process it [08:14:17]req_shift_open_date [08:14:17]req_shift_open_date done [08:14:17]produce_requested_data done [08:14:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191650,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:14:17]process_action_free close_receipt [08:14:17]json_value_free [08:14:17]json_value_free done [08:14:17]process_json_proto returns [08:14:17]Send response to host [08:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191650,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:14:17]free response buf [08:14:17]execute_script done [08:14:17]execute_script returns [08:14:17]free content buf [08:14:17]Sock 9.Close socket [08:14:17]Sock 9.Thread stoped [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:30]accept exits with 8 [08:16:30]New connection [08:16:30]New thread 3066961252 created [08:16:30]Thread 3066817892 joined [08:16:30]Waiting for new connection... [08:16:30] Sock 8.Parse request [08:16:30]Sock 8.Check first char [08:16:30]Sock 8.First char is OK [08:16:30]request: POST /json_proto HTTP/1.0 [08:16:30]Method: POST [08:16:30]URL: /json_proto [08:16:30]Method is POST - this is cgi request [08:16:30]url: /json_proto [08:16:30]query_string will be loaded in cgi processing [08:16:30]execute_cgi json_proto POST (null) [08:16:30]execute_cgi path=json_proto method=POST [08:16:30]POST find Content-Length [08:16:30]Host: 172.17.63.131:8080 [08:16:30]Content-Length: 676 [08:16:30]Content-Type: application/json [08:16:30] [08:16:30]POST finish read [08:16:30]Found Content-Length = 676 [08:16:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:30]execute_script... [08:16: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)30953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:30]POST & json_proto [08:16:30]process_json_proto [08:16:30]json parsed OK: [08:16:30]protocol is kg_v1.0 [08:16:30]action value=close_receipt [08:16:30]process_action close_receipt [08:16:30]cmd_close_receipt [08:16:30]MH_GetDate [08:16:30]Write to MH i2c: F0 00 00 73 E0 42 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: F0 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: F0 09 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: F0 09 00 73 E0 00 6C A5 1C 67 22 05 6E 64 D8 [08:16:30]GetLastDocTimeStamp 1729930467 [08:16:30]current date 1729930604 [08:16:30]FM_GetShiftState [08:16:30]SAM_PROTO_GetShiftState [08:16:30]wFMCommunicate request_size=4 [08:16:30]MH_SAM_APDU [08:16:30]CAPDU: 80 13 01 00 [08:16:30]Write to MH i2c: E2 08 00 74 E0 80 13 01 00 00 00 00 00 D1 [08:16:30]Write i2c OK [08:16:30]MH_I2C_Read... [08:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:30]Read from MH i2c: E2 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0E 00 [08:16:30]MH_I2C_Read... [08:16:30]Read from MH i2c: E2 0E 00 74 E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4A [08:16:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:16:30]wFMCommunicate OK [08:16:30]SAM_PROTO_GetShiftState done [08:16:30]FM_GetShiftState done [08:16:30]opened in 1729902770 [08:16:30]opened+sec_in_day 1729989170 [08:16:30]quantity*price = 50041 [08:16:30]sum+1 = 50042 [08:16:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 14 26.10.2024 08:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191651 ФПД: 40896525277708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191651&fm=40896525277708&tin=02508201610067®Number=0000000000091776&sum=50000 [08:16:31]StoreToDocumentArchive [08:16:31]shift 541 fd 191651 [08:16:31]save to /storage/0541/doc_00191651 [08:16:31]save last doc name /storage/0541/doc_00191651 to /storage/kkm_last_doc_name [08:16:31]save OK [08:16:31]Clear old archive folders... [08:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:31]tlvbuf is 01A764A0 [08:16:31]SAM_PROTO_ClearQueue [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 09 00 00 [08:16:31]Write to MH i2c: E2 08 00 81 E0 80 09 00 00 00 00 00 00 D3 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 03 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 03 00 81 E0 00 90 00 D5 [08:16:31]RAPDU: 90 00 [08:16:31]wFMCommunicate OK [08:16:31]SAM_PROTO_ClearQueue done [08:16:31]KKMCreateOFDPacket [08:16:31]OFDProtocolAddRootSTLVToBuf [08:16:31]FM_MakeSignedData [08:16:31]FM_MakeSignedData [08:16:31]SAM_PROTO_SignData [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 0D 01 02 [08:16:31]Write to MH i2c: E2 08 00 82 E0 80 0D 01 02 00 00 00 00 DB [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 03 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 03 00 82 E0 00 90 00 D6 [08:16:31]RAPDU: 90 00 [08:16:31]wFMCommunicate OK [08:16:31]wFMCommunicate request_size=255 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6C A5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EC 02 00 35 04 06 00 25 [08:16:31]Write to MH i2c: E2 02 01 83 E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6C A5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EC 02 00 35 04 06 00 25 00 00 E6 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 83 E0 00 90 00 D7 [08:16:32]RAPDU: 90 00 [08:16:32]wFMCommunicate OK [08:16:32]wFMCommunicate request_size=10 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 0D 02 02 05 31 F6 DC 9A 0C [08:16:32]Write to MH i2c: E2 0D 00 84 E0 80 0D 02 02 05 00 31 F6 DC 9A 0C 00 00 91 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 03 00 84 E0 00 90 00 D8 [08:16:32]RAPDU: 90 00 [08:16:32]wFMCommunicate OK [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 0D 03 02 [08:16:32]Write to MH i2c: E2 08 00 85 E0 80 0D 03 02 00 00 00 00 E0 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0B 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 0B 00 85 E0 00 0D 9E 79 0E 2B 76 1A CF 90 00 9D [08:16:32]RAPDU: 0D 9E 79 0E 2B 76 1A CF 90 00 [08:16:32]wFMCommunicate OK [08:16:32]SAM_PROTO_SignData done [08:16:32]FM_MakeSignedData done [08:16:32]CreateOFDProtocolMessage [08:16:32]wFMCommunicate request_size=4 [08:16:32]MH_SAM_APDU [08:16:32]CAPDU: 80 11 00 00 [08:16:32]Write to MH i2c: E2 08 00 86 E0 80 11 00 00 00 00 00 00 E0 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:32]Read from MH i2c: E2 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 17 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: E2 17 00 86 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 33 [08:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:32]wFMCommunicate OK [08:16:32]CreateOFDProtocolMessage done [08:16:32]OFDSenderStorePacket 191651 [08:16:32]StoreOFDPacket docnum=191651 [08:16:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 C0 07 01 4D 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6C A5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EC 02 00 35 04 06 00 25 31 F6 DC 9A 0C 0D 9E 79 0E 2B 76 1A CF [08:16:32]CheckFolder [08:16:32]dirname=/storage/ofd_packets [08:16:32]CheckFolder done [08:16:32]ProducePacketName [08:16:32]name=ofd_packets/00191651 [08:16:32]NVStorageSaveData ofd_packets/00191651 [08:16:32]File name is /storage/ofd_packets/00191651 [08:16:32]Write 301 bytes [08:16:32]NVStorageSaveData done [08:16:32]OFDSenderStorePacket done [08:16:32]KKMCreateOFDPacket done [08:16:32]NVStorageSaveData kkm_last_timestamp [08:16:32]File name is /storage/kkm_last_timestamp [08:16:32]Write 4 bytes [08:16:32]NVStorageSaveData done [08:16:32]ExternCall_PrintAddStr [08:16:32]wPrintStart [08:16:32]Write to MH i2c: 01 00 00 87 E0 67 [08:16:32]Write i2c OK [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: 01 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: 01 07 00 [08:16:32]MH_I2C_Read... [08:16:32]Read from MH i2c: 01 07 00 87 E0 00 00 00 00 00 FF 0F 7C [08:16:32]RasterBufferAndPrint [08:16:32]line Счет N : (1)30953 [08:16:32]line ИНН: 02508201610067 [08:16:32]line Контрольно-Кассовый Чек [08:16:32]line ПРОДАЖА [08:16:32]line ТРК (МРК, ГНК) : 12 [08:16:32]line Товар: 2710124130 [08:16:32]line Аи-92-К-5 [08:16:32]line 7.480 * 66.90 [08:16:32]line = 500.41 [08:16:32]line НДС 12% НСП 1% [08:16:32]line > о реализуемом товаре [08:16:32]line ОКРУГЛЕНИЕ: -0.41 [08:16:32]line ИТОГО: 500.00 [08:16:32]line Внесено: 500.00 [08:16:32]line СДАЧА: 0.00 [08:16:32]line НСП 1% : 4.43 [08:16:32]line НДС 12% : 53.14 [08:16:32]line Наличными: 500.00 [08:16:32]line Безнал.: 0.00 [08:16:32]line Место: АЗС № 170 "Партнер Нефть" [08:16:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:16:32]line СНО: Общий режим [08:16:32]line Чек 14 26.10.2024 08:16 [08:16:32]line Смена: 541 ФФД: 1.0 [08:16:32]line ЗНМ: 0300000110 [08:16:32]line РНМ: 0000000000091776 [08:16:32]line Версия ККМ: 001 [08:16:32]line ФМ: 0000000000871754 [08:16:32]line ФД: 191651 [08:16:32]line ФПД: 40896525277708 [08:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T081644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191651&fm=40896525277708&tin=02508201610067®Number=0000000000091776&sum=50000 [08:16:32]OFD Sender: Processing packet 191651 [packets to send 75, broken 74] [08:16:32]ProducePacketName [08:16:32]name=ofd_packets/00191651 [08:16:32]OFD Sender: To server: pG, [08:16:32]CommunicateWithHost lk.salyk.kg:30040 [08:16:32]ConnectInit lk.salyk.kg [08:16:32]written 0, free lines is 4095 [08:16:32]Connected sock=10 [08:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 C0 07 01 4D 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6C A5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 EC 02 00 35 04 06 00 25 31 F6 DC 9A 0C 0D 9E 79 0E 2B 76 1A CF [08:16:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 A9 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 31 37 35 34 10 04 04 00 A3 EC 02 00 F4 03 04 00 38 4A 1C 67 B6 04 01 00 00 3B 07 F2 85 8B 4F 08 B4 [08:16:33]CommunicateWithHost err = 0 [08:16:33]CheckOFDResponse [08:16:33]1017 (14) - 77093643461234 [08:16:33]1041 (16) - 0000000000871754 [08:16:33]1040 (4) - 191651 [08:16:33]1012 (4) - 26.10.2024 01:47 [08:16:33]1206 (1) - 0 [08:16:33]OFD Sender: Remove packet 191651 [08:16:33]ProducePacketName [08:16:33]name=ofd_packets/00191651 [08:16:33]NVStorageDeleteData [08:16:33]Write to MH i2c: 01 00 00 B2 E0 92 [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: 01 07 00 B2 E0 00 00 00 00 00 CC 0C 71 [08:16:33]RasterBufferAndPrint [08:16:33]line [08:16:33]line [08:16:33]line [08:16:33]line [08:16:33]line [08:16:33]written 0, free lines is 3282 [08:16:33]MH_Cut [08:16:33]Write to MH i2c: D1 01 00 B9 E0 01 6B [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D1 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D1 01 00 [08:16:33]MH_I2C_Read... [08:16:33]Read from MH i2c: D1 01 00 B9 E0 00 6A [08:16:33]Write to MH i2c: 01 00 00 BA E0 9A [08:16:33]Write i2c OK [08:16:33]MH_I2C_Read... [08:16:33]OFD Sender: No OFD packet to send [08:16:33]*** Cut start [08:16:33]*** Partial cut [08:16:33]*** CUTSNS_PIN = 1 [08:16:34]*** CUTSNS_PIN = 0 [08:16:34]*** Brake cut motor [08:16:34]Read from MH i2c: 01 [08:16:34]MH_I2C_Read... [08:16:34]*** Stop cut motor [08:16:34]*** Cut end [08:16:34]Read from MH i2c: 01 07 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: 01 07 00 BA E0 00 00 00 00 00 FF 0F AF [08:16:34]process_action close_receipt done [08:16:34]requested_data is exist [08:16:34]produce_requested_data [08:16:34]requested_item fm.sn is exist - process it [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 11 00 00 [08:16:34]Write to MH i2c: E2 08 00 BB E0 80 11 00 00 00 00 00 00 15 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 17 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 17 00 BB E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [08:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:16:34]wFMCommunicate OK [08:16:34]requested_item fd.num is exist - process it [08:16:34]SAM_PROTO_GetFieldsCounters [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 13 00 00 [08:16:34]Write to MH i2c: E2 08 00 BC E0 80 13 00 00 00 00 00 00 18 [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 62 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 62 00 BC E0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [08:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:34]wFMCommunicate OK [08:16:34]SAM_PROTO_GetFieldsCounters done [08:16:34]requested_item shift.num is exist - process it [08:16:34]requested_item shift.opened is exist - process it [08:16:34]req_shift_opened [08:16:34]FM_GetShiftState [08:16:34]SAM_PROTO_GetShiftState [08:16:34]wFMCommunicate request_size=4 [08:16:34]MH_SAM_APDU [08:16:34]CAPDU: 80 13 01 00 [08:16:34]Write to MH i2c: E2 08 00 BD E0 80 13 01 00 00 00 00 00 1A [08:16:34]Write i2c OK [08:16:34]MH_I2C_Read... [08:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:34]Read from MH i2c: E2 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0E 00 [08:16:34]MH_I2C_Read... [08:16:34]Read from MH i2c: E2 0E 00 BD E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 93 [08:16:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:16:34]wFMCommunicate OK [08:16:34]SAM_PROTO_GetShiftState done [08:16:34]FM_GetShiftState done [08:16:34]req_shift_opened done [08:16:34]requested_item shift.open_date is exist - process it [08:16:34]req_shift_open_date [08:16:34]req_shift_open_date done [08:16:34]produce_requested_data done [08:16:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191651,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:16:34]process_action_free close_receipt [08:16:34]json_value_free [08:16:34]json_value_free done [08:16:34]process_json_proto returns [08:16:34]Send response to host [08:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191651,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:16:34]free response buf [08:16:34]execute_script done [08:16:34]execute_script returns [08:16:34]free content buf [08:16:34]Sock 8.Close socket [08:16:34]Sock 8.Thread stoped [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23: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:24]accept exits with 9 [08:24:24]New connection [08:24:24]New thread 3066817892 created [08:24:24]Thread 3066961252 joined [08:24:24]Waiting for new connection... [08:24:24] Sock 9.Parse request [08:24:24]Sock 9.Check first char [08:24:24]Sock 9.First char is OK [08:24:24]request: POST /json_proto HTTP/1.0 [08:24:24]Method: POST [08:24:24]URL: /json_proto [08:24:24]Method is POST - this is cgi request [08:24:24]url: /json_proto [08:24:24]query_string will be loaded in cgi processing [08:24:24]execute_cgi json_proto POST (null) [08:24:24]execute_cgi path=json_proto method=POST [08:24:24]POST find Content-Length [08:24:24]Host: 172.17.63.131:8080 [08:24:24]Content-Length: 862 [08:24:24]Content-Type: application/json [08:24:24] [08:24:24]POST finish read [08:24:24]Found Content-Length = 862 [08:24:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:24]execute_script... [08:24:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:24]POST & json_proto [08:24:24]process_json_proto [08:24:24]json parsed OK: [08:24:24]protocol is kg_v1.0 [08:24:24]action value=close_receipt [08:24:24]process_action close_receipt [08:24:24]cmd_close_receipt [08:24:24]MH_GetDate [08:24:24]Write to MH i2c: F0 00 00 BE E0 8D [08:24:24]Write i2c OK [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 09 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: F0 09 00 BE E0 00 46 A7 1C 67 22 05 6E 64 FF [08:24:24]GetLastDocTimeStamp 1729930604 [08:24:24]current date 1729931078 [08:24:24]FM_GetShiftState [08:24:24]SAM_PROTO_GetShiftState [08:24:24]wFMCommunicate request_size=4 [08:24:24]MH_SAM_APDU [08:24:24]CAPDU: 80 13 01 00 [08:24:24]Write to MH i2c: E2 08 00 BF E0 80 13 01 00 00 00 00 00 1C [08:24:24]Write i2c OK [08:24:24]MH_I2C_Read... [08:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:24]Read from MH i2c: E2 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 [08:24:24]MH_I2C_Read... [08:24:24]Read from MH i2c: E2 0E 00 BF E0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 95 [08:24:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:24:24]wFMCommunicate OK [08:24:24]SAM_PROTO_GetShiftState done [08:24:24]FM_GetShiftState done [08:24:24]opened in 1729902770 [08:24:24]opened+sec_in_day 1729989170 [08:24:24]quantity*price = 50041 [08:24:24]sum+1 = 50042 [08:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 15 26.10.2024 08:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191652 ФПД: 229028925375323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191652&fm=229028925375323&tin=02508201610067®Number=0000000000091776&sum=50041 [08:24:25]StoreToDocumentArchive [08:24:25]shift 541 fd 191652 [08:24:25]save to /storage/0541/doc_00191652 [08:24:25]save last doc name /storage/0541/doc_00191652 to /storage/kkm_last_doc_name [08:24:25]save OK [08:24:25]Clear old archive folders... [08:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:25]tlvbuf is 016AFC20 [08:24:25]SAM_PROTO_ClearQueue [08:24:25]wFMCommunicate request_size=4 [08:24:25]MH_SAM_APDU [08:24:25]CAPDU: 80 09 00 00 [08:24:25]Write to MH i2c: E2 08 00 CC E0 80 09 00 00 00 00 00 00 1E [08:24:25]Write i2c OK [08:24:25]MH_I2C_Read... [08:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 CC E0 00 90 00 20 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]SAM_PROTO_ClearQueue done [08:24:26]KKMCreateOFDPacket [08:24:26]OFDProtocolAddRootSTLVToBuf [08:24:26]FM_MakeSignedData [08:24:26]FM_MakeSignedData [08:24:26]SAM_PROTO_SignData [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 01 02 [08:24:26]Write to MH i2c: E2 08 00 CD E0 80 0D 01 02 00 00 00 00 26 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 CD E0 00 90 00 21 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=255 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 46 A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EC 02 00 35 04 06 00 D0 [08:24:26]Write to MH i2c: E2 02 01 CE E0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 46 A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EC 02 00 35 04 06 00 D0 00 00 0C [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 CE E0 00 90 00 22 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=10 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 02 02 05 4C F3 BD 83 5B [08:24:26]Write to MH i2c: E2 0D 00 CF E0 80 0D 02 02 05 00 4C F3 BD 83 5B 00 00 0D [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 03 00 CF E0 00 90 00 23 [08:24:26]RAPDU: 90 00 [08:24:26]wFMCommunicate OK [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 0D 03 02 [08:24:26]Write to MH i2c: E2 08 00 D0 E0 80 0D 03 02 00 00 00 00 2B [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 0B 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 0B 00 D0 E0 00 E5 C4 17 B7 3A C0 3D 5E 90 00 38 [08:24:26]RAPDU: E5 C4 17 B7 3A C0 3D 5E 90 00 [08:24:26]wFMCommunicate OK [08:24:26]SAM_PROTO_SignData done [08:24:26]FM_MakeSignedData done [08:24:26]CreateOFDProtocolMessage [08:24:26]wFMCommunicate request_size=4 [08:24:26]MH_SAM_APDU [08:24:26]CAPDU: 80 11 00 00 [08:24:26]Write to MH i2c: E2 08 00 D1 E0 80 11 00 00 00 00 00 00 2B [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:26]Read from MH i2c: E2 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 17 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: E2 17 00 D1 E0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7E [08:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:26]wFMCommunicate OK [08:24:26]CreateOFDProtocolMessage done [08:24:26]OFDSenderStorePacket 191652 [08:24:26]StoreOFDPacket docnum=191652 [08:24:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 44 07 01 01 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 46 A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EC 02 00 35 04 06 00 D0 4C F3 BD 83 5B E5 C4 17 B7 3A C0 3D 5E [08:24:26]CheckFolder [08:24:26]dirname=/storage/ofd_packets [08:24:26]CheckFolder done [08:24:26]ProducePacketName [08:24:26]name=ofd_packets/00191652 [08:24:26]NVStorageSaveData ofd_packets/00191652 [08:24:26]File name is /storage/ofd_packets/00191652 [08:24:26]Write 301 bytes [08:24:26]NVStorageSaveData done [08:24:26]OFDSenderStorePacket done [08:24:26]KKMCreateOFDPacket done [08:24:26]NVStorageSaveData kkm_last_timestamp [08:24:26]File name is /storage/kkm_last_timestamp [08:24:26]Write 4 bytes [08:24:26]NVStorageSaveData done [08:24:26]ExternCall_PrintAddStr [08:24:26]wPrintStart [08:24:26]Write to MH i2c: 01 00 00 D2 E0 B2 [08:24:26]Write i2c OK [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 07 00 [08:24:26]MH_I2C_Read... [08:24:26]Read from MH i2c: 01 07 00 D2 E0 00 00 00 00 00 FF 0F C7 [08:24:26]RasterBufferAndPrint [08:24:26]line Счет N : (1)30954 [08:24:26]line ИНН: 02508201610067 [08:24:26]line Контрольно-Кассовый Чек [08:24:26]line ПРОДАЖА [08:24:26]line ТРК (МРК, ГНК) : 21 [08:24:26]line Товар: 2710124130 [08:24:26]line Аи-92-К-5 [08:24:26]line 7.480 * 66.90 [08:24:26]line = 500.41 [08:24:26]line НДС 12% НСП 1% [08:24:26]line > о реализуемом товаре [08:24:26]line ИТОГО: 500.41 [08:24:26]line НСП 1% : 4.43 [08:24:26]line НДС 12% : 53.14 [08:24:26]line Наличными: 0.00 [08:24:26]line Безнал.: 500.41 [08:24:26]line Место: АЗС № 170 "Партнер Нефть" [08:24:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:24:26]line СНО: Общий режим [08:24:26]line Чек 15 26.10.2024 08:24 [08:24:26]line Смена: 541 ФФД: 1.0 [08:24:26]line ЗНМ: 0300000110 [08:24:26]line РНМ: 0000000000091776 [08:24:26]line Версия ККМ: 001 [08:24:26]line Платежная система: Кыргызкоммерцбанк [08:24:26]line ФМ: 0000000000871754 [08:24:26]line ФД: 191652 [08:24:26]line ФПД: 229028925375323 [08:24:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191652&fm=229028925375323&tin=02508201610067®Number=0000000000091776&sum=50041 [08:24:26]written 0, free lines is 4095 [08:24:26]OFD Sender: Processing packet 191652 [packets to send 75, broken 74] [08:24:26]ProducePacketName [08:24:26]name=ofd_packets/00191652 [08:24:26]OFD Sender: To server: pG, [08:24:26]CommunicateWithHost lk.salyk.kg:30040 [08:24:26]ConnectInit lk.salyk.kg [08:24:26]Connected sock=10 [08:24:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 44 07 01 01 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 46 A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EC 02 00 35 04 06 00 D0 4C F3 BD 83 5B E5 C4 17 B7 3A C0 3D 5E [08:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8A F0 47 00 69 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 EC 02 00 F4 03 04 00 12 4C 1C 67 B6 04 01 00 00 D6 62 01 E7 23 53 0C AA [08:24:27]CommunicateWithHost err = 0 [08:24:27]CheckOFDResponse [08:24:27]1017 (14) - 77093643461234 [08:24:27]1041 (16) - 0000000000871754 [08:24:27]1040 (4) - 191652 [08:24:27]1012 (4) - 26.10.2024 01:55 [08:24:27]1206 (1) - 0 [08:24:27]OFD Sender: Remove packet 191652 [08:24:27]ProducePacketName [08:24:27]name=ofd_packets/00191652 [08:24:27]NVStorageDeleteData [08:24:27]Write to MH i2c: 01 00 00 FC E0 DC [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 07 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: 01 07 00 FC E0 00 00 00 00 00 DD 0C CC [08:24:27]RasterBufferAndPrint [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]line [08:24:27]written 0, free lines is 3299 [08:24:27]MH_Cut [08:24:27]Write to MH i2c: D1 01 00 03 E1 01 B6 [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 01 00 [08:24:27]MH_I2C_Read... [08:24:27]Read from MH i2c: D1 01 00 03 E1 00 B5 [08:24:27]Write to MH i2c: 01 00 00 04 E1 E5 [08:24:27]Write i2c OK [08:24:27]MH_I2C_Read... [08:24:27]OFD Sender: No OFD packet to send [08:24:28]*** Cut start [08:24:28]*** Partial cut [08:24:28]*** CUTSNS_PIN = 1 [08:24:28]*** CUTSNS_PIN = 0 [08:24:28]*** Brake cut motor [08:24:28]Read from MH i2c: 01 [08:24:28]MH_I2C_Read... [08:24:28]*** Stop cut motor [08:24:28]*** Cut end [08:24:28]Read from MH i2c: 01 07 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: 01 07 00 04 E1 00 00 00 00 00 FF 0F FA [08:24:28]process_action close_receipt done [08:24:28]requested_data is exist [08:24:28]produce_requested_data [08:24:28]requested_item fm.sn is exist - process it [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 11 00 00 [08:24:28]Write to MH i2c: E2 08 00 05 E1 80 11 00 00 00 00 00 00 60 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 17 00 05 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [08:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:24:28]wFMCommunicate OK [08:24:28]requested_item fd.num is exist - process it [08:24:28]SAM_PROTO_GetFieldsCounters [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 13 00 00 [08:24:28]Write to MH i2c: E2 08 00 06 E1 80 13 00 00 00 00 00 00 63 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 62 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 62 00 06 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [08:24:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_GetFieldsCounters done [08:24:28]requested_item shift.num is exist - process it [08:24:28]requested_item shift.opened is exist - process it [08:24:28]req_shift_opened [08:24:28]FM_GetShiftState [08:24:28]SAM_PROTO_GetShiftState [08:24:28]wFMCommunicate request_size=4 [08:24:28]MH_SAM_APDU [08:24:28]CAPDU: 80 13 01 00 [08:24:28]Write to MH i2c: E2 08 00 07 E1 80 13 01 00 00 00 00 00 65 [08:24:28]Write i2c OK [08:24:28]MH_I2C_Read... [08:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:28]Read from MH i2c: E2 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0E 00 [08:24:28]MH_I2C_Read... [08:24:28]Read from MH i2c: E2 0E 00 07 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DE [08:24:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:24:28]wFMCommunicate OK [08:24:28]SAM_PROTO_GetShiftState done [08:24:28]FM_GetShiftState done [08:24:28]req_shift_opened done [08:24:28]requested_item shift.open_date is exist - process it [08:24:28]req_shift_open_date [08:24:28]req_shift_open_date done [08:24:28]produce_requested_data done [08:24:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191652,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:24:28]process_action_free close_receipt [08:24:28]json_value_free [08:24:28]json_value_free done [08:24:28]process_json_proto returns [08:24:28]Send response to host [08:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191652,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:24:28]free response buf [08:24:28]execute_script done [08:24:28]execute_script returns [08:24:28]free content buf [08:24:28]Sock 9.Close socket [08:24:28]Sock 9.Thread stoped [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:09]accept exits with 8 [08:27:09]New connection [08:27:09]New thread 3066961252 created [08:27:09]Thread 3066817892 joined [08:27:09]Waiting for new connection... [08:27:09] Sock 8.Parse request [08:27:09]Sock 8.Check first char [08:27:09]Sock 8.First char is OK [08:27:09]request: POST /json_proto HTTP/1.0 [08:27:09]Method: POST [08:27:09]URL: /json_proto [08:27:09]Method is POST - this is cgi request [08:27:09]url: /json_proto [08:27:09]query_string will be loaded in cgi processing [08:27:09]execute_cgi json_proto POST (null) [08:27:09]execute_cgi path=json_proto method=POST [08:27:09]POST find Content-Length [08:27:09]Host: 172.17.63.131:8080 [08:27:09]Content-Length: 676 [08:27:09]Content-Type: application/json [08:27:09] [08:27:09]POST finish read [08:27:09]Found Content-Length = 676 [08:27:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "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" ] } } [08:27:09]execute_script... [08:27: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)30956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "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" ] } } [08:27:09]POST & json_proto [08:27:09]process_json_proto [08:27:09]json parsed OK: [08:27:09]protocol is kg_v1.0 [08:27:09]action value=close_receipt [08:27:09]process_action close_receipt [08:27:09]cmd_close_receipt [08:27:09]MH_GetDate [08:27:09]Write to MH i2c: F0 00 00 08 E1 D8 [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: F0 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: F0 09 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: F0 09 00 08 E1 00 EB A7 1C 67 22 05 6E 64 EF [08:27:09]GetLastDocTimeStamp 1729931078 [08:27:09]current date 1729931243 [08:27:09]FM_GetShiftState [08:27:09]SAM_PROTO_GetShiftState [08:27:09]wFMCommunicate request_size=4 [08:27:09]MH_SAM_APDU [08:27:09]CAPDU: 80 13 01 00 [08:27:09]Write to MH i2c: E2 08 00 09 E1 80 13 01 00 00 00 00 00 67 [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:09]Read from MH i2c: E2 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 0E 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 0E 00 09 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E0 [08:27:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:27:09]wFMCommunicate OK [08:27:09]SAM_PROTO_GetShiftState done [08:27:09]FM_GetShiftState done [08:27:09]opened in 1729902770 [08:27:09]opened+sec_in_day 1729989170 [08:27:09]quantity*price = 32045 [08:27:09]sum+1 = 32046 [08:27:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 16 26.10.2024 08:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191653 ФПД: 102979743353298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191653&fm=102979743353298&tin=02508201610067®Number=0000000000091776&sum=32000 [08:27:10]StoreToDocumentArchive [08:27:10]shift 541 fd 191653 [08:27:10]save to /storage/0541/doc_00191653 [08:27:10]save last doc name /storage/0541/doc_00191653 to /storage/kkm_last_doc_name [08:27:10]save OK [08:27:10]Clear old archive folders... [08:27:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:10]tlvbuf is 01601050 [08:27:10]SAM_PROTO_ClearQueue [08:27:10]wFMCommunicate request_size=4 [08:27:10]MH_SAM_APDU [08:27:10]CAPDU: 80 09 00 00 [08:27:10]Write to MH i2c: E2 08 00 16 E1 80 09 00 00 00 00 00 00 69 [08:27:10]Write i2c OK [08:27:10]MH_I2C_Read... [08:27:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:10]Read from MH i2c: E2 [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: E2 03 00 [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: E2 03 00 16 E1 00 90 00 6B [08:27:10]RAPDU: 90 00 [08:27:10]wFMCommunicate OK [08:27:10]SAM_PROTO_ClearQueue done [08:27:10]KKMCreateOFDPacket [08:27:10]OFDProtocolAddRootSTLVToBuf [08:27:10]FM_MakeSignedData [08:27:10]FM_MakeSignedData [08:27:10]SAM_PROTO_SignData [08:27:10]wFMCommunicate request_size=4 [08:27:10]MH_SAM_APDU [08:27:10]CAPDU: 80 0D 01 02 [08:27:10]Write to MH i2c: E2 08 00 17 E1 80 0D 01 02 00 00 00 00 71 [08:27:10]Write i2c OK [08:27:10]MH_I2C_Read... [08:27:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:10]Read from MH i2c: E2 [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: E2 03 00 [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: E2 03 00 17 E1 00 90 00 6C [08:27:10]RAPDU: 90 00 [08:27:10]wFMCommunicate OK [08:27:10]wFMCommunicate request_size=255 [08:27:10]MH_SAM_APDU [08:27: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 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 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 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 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 10 00 00 00 F4 03 04 00 EB A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EC 02 00 35 04 06 00 5D [08:27:10]Write to MH i2c: E2 02 01 18 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 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 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 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 10 00 00 00 F4 03 04 00 EB A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EC 02 00 35 04 06 00 5D 00 00 D1 [08:27:10]Write i2c OK [08:27:10]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 03 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 03 00 18 E1 00 90 00 6D [08:27:11]RAPDU: 90 00 [08:27:11]wFMCommunicate OK [08:27:11]wFMCommunicate request_size=10 [08:27:11]MH_SAM_APDU [08:27:11]CAPDU: 80 0D 02 02 05 A8 D7 05 89 D2 [08:27:11]Write to MH i2c: E2 0D 00 19 E1 80 0D 02 02 05 00 A8 D7 05 89 D2 00 00 5D [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 03 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 03 00 19 E1 00 90 00 6E [08:27:11]RAPDU: 90 00 [08:27:11]wFMCommunicate OK [08:27:11]wFMCommunicate request_size=4 [08:27:11]MH_SAM_APDU [08:27:11]CAPDU: 80 0D 03 02 [08:27:11]Write to MH i2c: E2 08 00 1A E1 80 0D 03 02 00 00 00 00 76 [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 0B 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 0B 00 1A E1 00 8F 64 BA 26 9A CF C4 55 90 00 CC [08:27:11]RAPDU: 8F 64 BA 26 9A CF C4 55 90 00 [08:27:11]wFMCommunicate OK [08:27:11]SAM_PROTO_SignData done [08:27:11]FM_MakeSignedData done [08:27:11]CreateOFDProtocolMessage [08:27:11]wFMCommunicate request_size=4 [08:27:11]MH_SAM_APDU [08:27:11]CAPDU: 80 11 00 00 [08:27:11]Write to MH i2c: E2 08 00 1B E1 80 11 00 00 00 00 00 00 76 [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 17 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 17 00 1B E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [08:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:11]wFMCommunicate OK [08:27:11]CreateOFDProtocolMessage done [08:27:11]OFDSenderStorePacket 191653 [08:27:11]StoreOFDPacket docnum=191653 [08:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 3F 07 01 F7 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 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 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 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 10 00 00 00 F4 03 04 00 EB A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EC 02 00 35 04 06 00 5D A8 D7 05 89 D2 8F 64 BA 26 9A CF C4 55 [08:27:11]CheckFolder [08:27:11]dirname=/storage/ofd_packets [08:27:11]CheckFolder done [08:27:11]ProducePacketName [08:27:11]name=ofd_packets/00191653 [08:27:11]NVStorageSaveData ofd_packets/00191653 [08:27:11]File name is /storage/ofd_packets/00191653 [08:27:11]Write 301 bytes [08:27:11]NVStorageSaveData done [08:27:11]OFDSenderStorePacket done [08:27:11]KKMCreateOFDPacket done [08:27:11]NVStorageSaveData kkm_last_timestamp [08:27:11]File name is /storage/kkm_last_timestamp [08:27:11]Write 4 bytes [08:27:11]NVStorageSaveData done [08:27:11]ExternCall_PrintAddStr [08:27:11]wPrintStart [08:27:11]Write to MH i2c: 01 00 00 1C E1 FD [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: 01 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: 01 07 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: 01 07 00 1C E1 00 00 00 00 00 FF 0F 12 [08:27:11]RasterBufferAndPrint [08:27:11]line Счет N : (1)30956 [08:27:11]line ИНН: 02508201610067 [08:27:11]line Контрольно-Кассовый Чек [08:27:11]line ПРОДАЖА [08:27:11]line ТРК (МРК, ГНК) : 21 [08:27:11]line Товар: 2710124130 [08:27:11]line Аи-92-К-5 [08:27:11]line 4.790 * 66.90 [08:27:11]line = 320.45 [08:27:11]line НДС 12% НСП 1% [08:27:11]line > о реализуемом товаре [08:27:11]line ОКРУГЛЕНИЕ: -0.45 [08:27:11]line ИТОГО: 320.00 [08:27:11]line Внесено: 320.00 [08:27:11]line СДАЧА: 0.00 [08:27:11]line НСП 1% : 2.84 [08:27:11]line НДС 12% : 34.03 [08:27:11]line Наличными: 320.00 [08:27:11]line Безнал.: 0.00 [08:27:11]line Место: АЗС № 170 "Партнер Нефть" [08:27:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:27:11]line СНО: Общий режим [08:27:11]line Чек 16 26.10.2024 08:27 [08:27:11]line Смена: 541 ФФД: 1.0 [08:27:11]line ЗНМ: 0300000110 [08:27:11]line РНМ: 0000000000091776 [08:27:11]line Версия ККМ: 001 [08:27:11]line ФМ: 0000000000871754 [08:27:11]line ФД: 191653 [08:27:11]line ФПД: 102979743353298 [08:27:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191653&fm=102979743353298&tin=02508201610067®Number=0000000000091776&sum=32000 [08:27:11]OFD Sender: Processing packet 191653 [packets to send 75, broken 74] [08:27:11]ProducePacketName [08:27:11]name=ofd_packets/00191653 [08:27:11]OFD Sender: To server: pG, [08:27:11]CommunicateWithHost lk.salyk.kg:30040 [08:27:11]ConnectInit lk.salyk.kg [08:27:11]written 0, free lines is 4095 [08:27:11]Connected sock=11 [08:27:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2A 3F 07 01 F7 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 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 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 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 10 00 00 00 F4 03 04 00 EB A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EC 02 00 35 04 06 00 5D A8 D7 05 89 D2 8F 64 BA 26 9A CF C4 55 [08:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 3B 47 00 0A 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 EC 02 00 F4 03 04 00 B7 4C 1C 67 B6 04 01 00 00 E4 FF 75 D2 0B 6E 5C 43 [08:27:12]CommunicateWithHost err = 0 [08:27:12]CheckOFDResponse [08:27:12]1017 (14) - 77093643461234 [08:27:12]1041 (16) - 0000000000871754 [08:27:12]1040 (4) - 191653 [08:27:12]1012 (4) - 26.10.2024 01:58 [08:27:12]1206 (1) - 0 [08:27:12]OFD Sender: Remove packet 191653 [08:27:12]ProducePacketName [08:27:12]name=ofd_packets/00191653 [08:27:12]NVStorageDeleteData [08:27:12]Write to MH i2c: 01 00 00 47 E1 28 [08:27:12]Write i2c OK [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: 01 [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: 01 07 00 [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: 01 07 00 47 E1 00 00 00 00 00 C7 0C 02 [08:27:12]RasterBufferAndPrint [08:27:12]line [08:27:12]line [08:27:12]line [08:27:12]line [08:27:12]line [08:27:12]written 0, free lines is 3277 [08:27:12]MH_Cut [08:27:12]Write to MH i2c: D1 01 00 4E E1 01 01 [08:27:12]Write i2c OK [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: D1 [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: D1 01 00 [08:27:12]MH_I2C_Read... [08:27:12]Read from MH i2c: D1 01 00 4E E1 00 00 [08:27:12]Write to MH i2c: 01 00 00 4F E1 30 [08:27:12]Write i2c OK [08:27:12]MH_I2C_Read... [08:27:12]OFD Sender: No OFD packet to send [08:27:12]*** Cut start [08:27:12]*** Partial cut [08:27:12]*** CUTSNS_PIN = 1 [08:27:12]*** CUTSNS_PIN = 0 [08:27:13]*** Brake cut motor [08:27:13]Read from MH i2c: 01 [08:27:13]MH_I2C_Read... [08:27:13]*** Stop cut motor [08:27:13]*** Cut end [08:27:13]Read from MH i2c: 01 07 00 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: 01 07 00 4F E1 00 00 00 00 00 FF 0F 45 [08:27:13]process_action close_receipt done [08:27:13]requested_data is exist [08:27:13]produce_requested_data [08:27:13]requested_item fm.sn is exist - process it [08:27:13]wFMCommunicate request_size=4 [08:27:13]MH_SAM_APDU [08:27:13]CAPDU: 80 11 00 00 [08:27:13]Write to MH i2c: E2 08 00 50 E1 80 11 00 00 00 00 00 00 AB [08:27:13]Write i2c OK [08:27:13]MH_I2C_Read... [08:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:13]Read from MH i2c: E2 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 17 00 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 17 00 50 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [08:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:13]wFMCommunicate OK [08:27:13]requested_item fd.num is exist - process it [08:27:13]SAM_PROTO_GetFieldsCounters [08:27:13]wFMCommunicate request_size=4 [08:27:13]MH_SAM_APDU [08:27:13]CAPDU: 80 13 00 00 [08:27:13]Write to MH i2c: E2 08 00 51 E1 80 13 00 00 00 00 00 00 AE [08:27:13]Write i2c OK [08:27:13]MH_I2C_Read... [08:27:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:13]Read from MH i2c: E2 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 62 00 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 62 00 51 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:27:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:13]wFMCommunicate OK [08:27:13]SAM_PROTO_GetFieldsCounters done [08:27:13]requested_item shift.num is exist - process it [08:27:13]requested_item shift.opened is exist - process it [08:27:13]req_shift_opened [08:27:13]FM_GetShiftState [08:27:13]SAM_PROTO_GetShiftState [08:27:13]wFMCommunicate request_size=4 [08:27:13]MH_SAM_APDU [08:27:13]CAPDU: 80 13 01 00 [08:27:13]Write to MH i2c: E2 08 00 52 E1 80 13 01 00 00 00 00 00 B0 [08:27:13]Write i2c OK [08:27:13]MH_I2C_Read... [08:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:13]Read from MH i2c: E2 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 0E 00 [08:27:13]MH_I2C_Read... [08:27:13]Read from MH i2c: E2 0E 00 52 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 29 [08:27:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:27:13]wFMCommunicate OK [08:27:13]SAM_PROTO_GetShiftState done [08:27:13]FM_GetShiftState done [08:27:13]req_shift_opened done [08:27:13]requested_item shift.open_date is exist - process it [08:27:13]req_shift_open_date [08:27:13]req_shift_open_date done [08:27:13]produce_requested_data done [08:27:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191653,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:27:13]process_action_free close_receipt [08:27:13]json_value_free [08:27:13]json_value_free done [08:27:13]process_json_proto returns [08:27:13]Send response to host [08:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191653,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:27:13]free response buf [08:27:13]execute_script done [08:27:13]execute_script returns [08:27:13]free content buf [08:27:13]Sock 8.Close socket [08:27:13]Sock 8.Thread stoped [08:27:14]accept exits with 9 [08:27:14]New connection [08:27:14]New thread 3066817892 created [08:27:14]Thread 3066961252 joined [08:27:14]Waiting for new connection... [08:27:14] Sock 9.Parse request [08:27:14]Sock 9.Check first char [08:27:14]Sock 9.First char is OK [08:27:14]request: POST /json_proto HTTP/1.0 [08:27:14]Method: POST [08:27:14]URL: /json_proto [08:27:14]Method is POST - this is cgi request [08:27:14]url: /json_proto [08:27:14]query_string will be loaded in cgi processing [08:27:14]execute_cgi json_proto POST (null) [08:27:14]execute_cgi path=json_proto method=POST [08:27:14]POST find Content-Length [08:27:14]Host: 172.17.63.131:8080 [08:27:14]Content-Length: 859 [08:27:14]Content-Type: application/json [08:27:14] [08:27:14]POST finish read [08:27:14]Found Content-Length = 859 [08:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:14]execute_script... [08:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:14]POST & json_proto [08:27:14]process_json_proto [08:27:14]json parsed OK: [08:27:14]protocol is kg_v1.0 [08:27:14]action value=close_receipt [08:27:14]process_action close_receipt [08:27:14]cmd_close_receipt [08:27:14]MH_GetDate [08:27:14]Write to MH i2c: F0 00 00 53 E1 23 [08:27:14]Write i2c OK [08:27:14]MH_I2C_Read... [08:27:14]Read from MH i2c: F0 [08:27:14]MH_I2C_Read... [08:27:14]Read from MH i2c: F0 09 00 [08:27:14]MH_I2C_Read... [08:27:14]Read from MH i2c: F0 09 00 53 E1 00 EF A7 1C 67 22 05 6E 64 3E [08:27:14]GetLastDocTimeStamp 1729931243 [08:27:14]current date 1729931247 [08:27:14]FM_GetShiftState [08:27:14]SAM_PROTO_GetShiftState [08:27:14]wFMCommunicate request_size=4 [08:27:14]MH_SAM_APDU [08:27:14]CAPDU: 80 13 01 00 [08:27:14]Write to MH i2c: E2 08 00 54 E1 80 13 01 00 00 00 00 00 B2 [08:27:14]Write i2c OK [08:27:14]MH_I2C_Read... [08:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:14]Read from MH i2c: E2 [08:27:14]MH_I2C_Read... [08:27:14]Read from MH i2c: E2 0E 00 [08:27:14]MH_I2C_Read... [08:27:14]Read from MH i2c: E2 0E 00 54 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2B [08:27:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:27:14]wFMCommunicate OK [08:27:14]SAM_PROTO_GetShiftState done [08:27:14]FM_GetShiftState done [08:27:14]opened in 1729902770 [08:27:14]opened+sec_in_day 1729989170 [08:27:14]quantity*price = 70027 [08:27:14]sum+1 = 70029 [08:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 17 26.10.2024 08:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191654 ФПД: 168193066739689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191654&fm=168193066739689&tin=02508201610067®Number=0000000000091776&sum=70028 [08:27:15]StoreToDocumentArchive [08:27:15]shift 541 fd 191654 [08:27:15]save to /storage/0541/doc_00191654 [08:27:15]save last doc name /storage/0541/doc_00191654 to /storage/kkm_last_doc_name [08:27:15]save OK [08:27:15]Clear old archive folders... [08:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:27:15]tlvbuf is 0183C0B0 [08:27:15]SAM_PROTO_ClearQueue [08:27:15]wFMCommunicate request_size=4 [08:27:15]MH_SAM_APDU [08:27:15]CAPDU: 80 09 00 00 [08:27:15]Write to MH i2c: E2 08 00 61 E1 80 09 00 00 00 00 00 00 B4 [08:27:15]Write i2c OK [08:27:15]MH_I2C_Read... [08:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:15]Read from MH i2c: E2 [08:27:15]MH_I2C_Read... [08:27:15]Read from MH i2c: E2 03 00 [08:27:15]MH_I2C_Read... [08:27:15]Read from MH i2c: E2 03 00 61 E1 00 90 00 B6 [08:27:15]RAPDU: 90 00 [08:27:15]wFMCommunicate OK [08:27:15]SAM_PROTO_ClearQueue done [08:27:15]KKMCreateOFDPacket [08:27:15]OFDProtocolAddRootSTLVToBuf [08:27:15]FM_MakeSignedData [08:27:15]FM_MakeSignedData [08:27:15]SAM_PROTO_SignData [08:27:15]wFMCommunicate request_size=4 [08:27:15]MH_SAM_APDU [08:27:15]CAPDU: 80 0D 01 02 [08:27:15]Write to MH i2c: E2 08 00 62 E1 80 0D 01 02 00 00 00 00 BC [08:27:15]Write i2c OK [08:27:15]MH_I2C_Read... [08:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:15]Read from MH i2c: E2 [08:27:15]MH_I2C_Read... [08:27:15]Read from MH i2c: E2 03 00 [08:27:15]MH_I2C_Read... [08:27:15]Read from MH i2c: E2 03 00 62 E1 00 90 00 B7 [08:27:15]RAPDU: 90 00 [08:27:15]wFMCommunicate OK [08:27:15]wFMCommunicate request_size=255 [08:27:15]MH_SAM_APDU [08:27:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EC 02 00 35 04 06 00 98 F8 7F FF [08:27:15]Write to MH i2c: E2 02 01 63 E1 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EC 02 00 35 04 06 00 98 F8 7F FF 00 00 65 [08:27:15]Write i2c OK [08:27:15]MH_I2C_Read... [08:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:16]Read from MH i2c: E2 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 03 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 03 00 63 E1 00 90 00 B8 [08:27:16]RAPDU: 90 00 [08:27:16]wFMCommunicate OK [08:27:16]wFMCommunicate request_size=7 [08:27:16]MH_SAM_APDU [08:27:16]CAPDU: 80 0D 02 02 02 27 E9 [08:27:16]Write to MH i2c: E2 0A 00 64 E1 80 0D 02 02 02 00 27 E9 00 00 D3 [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:16]Read from MH i2c: E2 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 03 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 03 00 64 E1 00 90 00 B9 [08:27:16]RAPDU: 90 00 [08:27:16]wFMCommunicate OK [08:27:16]wFMCommunicate request_size=4 [08:27:16]MH_SAM_APDU [08:27:16]CAPDU: 80 0D 03 02 [08:27:16]Write to MH i2c: E2 08 00 65 E1 80 0D 03 02 00 00 00 00 C1 [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:16]Read from MH i2c: E2 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 0B 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 0B 00 65 E1 00 B0 AD CD FC 46 2D EA AA 90 00 EF [08:27:16]RAPDU: B0 AD CD FC 46 2D EA AA 90 00 [08:27:16]wFMCommunicate OK [08:27:16]SAM_PROTO_SignData done [08:27:16]FM_MakeSignedData done [08:27:16]CreateOFDProtocolMessage [08:27:16]wFMCommunicate request_size=4 [08:27:16]MH_SAM_APDU [08:27:16]CAPDU: 80 11 00 00 [08:27:16]Write to MH i2c: E2 08 00 66 E1 80 11 00 00 00 00 00 00 C1 [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:16]Read from MH i2c: E2 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 17 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: E2 17 00 66 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [08:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:16]wFMCommunicate OK [08:27:16]CreateOFDProtocolMessage done [08:27:16]OFDSenderStorePacket 191654 [08:27:16]StoreOFDPacket docnum=191654 [08:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 28 25 04 01 8C 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EC 02 00 35 04 06 00 98 F8 7F FF 27 E9 B0 AD CD FC 46 2D EA AA [08:27:16]CheckFolder [08:27:16]dirname=/storage/ofd_packets [08:27:16]CheckFolder done [08:27:16]ProducePacketName [08:27:16]name=ofd_packets/00191654 [08:27:16]NVStorageSaveData ofd_packets/00191654 [08:27:16]File name is /storage/ofd_packets/00191654 [08:27:16]Write 298 bytes [08:27:16]NVStorageSaveData done [08:27:16]OFDSenderStorePacket done [08:27:16]KKMCreateOFDPacket done [08:27:16]NVStorageSaveData kkm_last_timestamp [08:27:16]File name is /storage/kkm_last_timestamp [08:27:16]Write 4 bytes [08:27:16]NVStorageSaveData done [08:27:16]ExternCall_PrintAddStr [08:27:16]wPrintStart [08:27:16]Write to MH i2c: 01 00 00 67 E1 48 [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 07 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 07 00 67 E1 00 00 00 00 00 FF 0F 5D [08:27:16]RasterBufferAndPrint [08:27:16]line Счет N : (1)30955 [08:27:16]line ИНН: 02508201610067 [08:27:16]line Контрольно-Кассовый Чек [08:27:16]line ПРОДАЖА [08:27:16]line ТРК (МРК, ГНК) : 11 [08:27:16]line Товар: 2710194210 [08:27:16]line ДТ-К-5 [08:27:16]line 9.190 * 76.20 [08:27:16]line = 700.28 [08:27:16]line НДС 12% НСП 1% [08:27:16]line > о реализуемом товаре [08:27:16]line ИТОГО: 700.28 [08:27:16]line НСП 1% : 6.20 [08:27:16]line НДС 12% : 74.37 [08:27:16]line Наличными: 0.00 [08:27:16]line Безнал.: 700.28 [08:27:16]line Место: АЗС № 170 "Партнер Нефть" [08:27:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:27:16]line СНО: Общий режим [08:27:16]line Чек 17 26.10.2024 08:27 [08:27:16]line Смена: 541 ФФД: 1.0 [08:27:16]line ЗНМ: 0300000110 [08:27:16]line РНМ: 0000000000091776 [08:27:16]line Версия ККМ: 001 [08:27:16]line Платежная система: Кыргызкоммерцбанк [08:27:16]line ФМ: 0000000000871754 [08:27:16]line ФД: 191654 [08:27:16]line ФПД: 168193066739689 [08:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T082727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191654&fm=168193066739689&tin=02508201610067®Number=0000000000091776&sum=70028 [08:27:16]written 0, free lines is 4095 [08:27:16]OFD Sender: Processing packet 191654 [packets to send 75, broken 74] [08:27:16]ProducePacketName [08:27:16]name=ofd_packets/00191654 [08:27:16]OFD Sender: To server: pG, [08:27:16]CommunicateWithHost lk.salyk.kg:30040 [08:27:16]ConnectInit lk.salyk.kg [08:27:16]Connected sock=10 [08:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 28 25 04 01 8C 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 EF A7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EC 02 00 35 04 06 00 98 F8 7F FF 27 E9 B0 AD CD FC 46 2D EA AA [08:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9C 83 47 00 DE EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 EC 02 00 F4 03 04 00 BB 4C 1C 67 B6 04 01 00 00 5D 81 E0 A8 F2 99 99 97 [08:27:16]CommunicateWithHost err = 0 [08:27:16]CheckOFDResponse [08:27:16]1017 (14) - 77093643461234 [08:27:16]1041 (16) - 0000000000871754 [08:27:16]1040 (4) - 191654 [08:27:16]1012 (4) - 26.10.2024 01:58 [08:27:16]1206 (1) - 0 [08:27:16]OFD Sender: Remove packet 191654 [08:27:16]ProducePacketName [08:27:16]name=ofd_packets/00191654 [08:27:16]NVStorageDeleteData [08:27:16]Write to MH i2c: 01 00 00 91 E1 72 [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 07 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: 01 07 00 91 E1 00 00 00 00 00 D1 0C 56 [08:27:16]RasterBufferAndPrint [08:27:16]line [08:27:16]line [08:27:16]line [08:27:16]line [08:27:16]line [08:27:16]written 0, free lines is 3298 [08:27:16]MH_Cut [08:27:16]Write to MH i2c: D1 01 00 98 E1 01 4B [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: D1 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: D1 01 00 [08:27:16]MH_I2C_Read... [08:27:16]Read from MH i2c: D1 01 00 98 E1 00 4A [08:27:16]Write to MH i2c: 01 00 00 99 E1 7A [08:27:16]Write i2c OK [08:27:16]MH_I2C_Read... [08:27:17]OFD Sender: No OFD packet to send [08:27:17]*** Cut start [08:27:17]*** Partial cut [08:27:17]*** CUTSNS_PIN = 1 [08:27:17]*** CUTSNS_PIN = 0 [08:27:17]*** Brake cut motor [08:27:18]Read from MH i2c: 01 [08:27:18]MH_I2C_Read... [08:27:18]*** Stop cut motor [08:27:18]*** Cut end [08:27:18]Read from MH i2c: 01 07 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: 01 07 00 99 E1 00 00 00 00 00 FF 0F 8F [08:27:18]process_action close_receipt done [08:27:18]requested_data is exist [08:27:18]produce_requested_data [08:27:18]requested_item fm.sn is exist - process it [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 11 00 00 [08:27:18]Write to MH i2c: E2 08 00 9A E1 80 11 00 00 00 00 00 00 F5 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 17 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 17 00 9A E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [08:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:27:18]wFMCommunicate OK [08:27:18]requested_item fd.num is exist - process it [08:27:18]SAM_PROTO_GetFieldsCounters [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 13 00 00 [08:27:18]Write to MH i2c: E2 08 00 9B E1 80 13 00 00 00 00 00 00 F8 [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 62 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 62 00 9B E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [08:27:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_GetFieldsCounters done [08:27:18]requested_item shift.num is exist - process it [08:27:18]requested_item shift.opened is exist - process it [08:27:18]req_shift_opened [08:27:18]FM_GetShiftState [08:27:18]SAM_PROTO_GetShiftState [08:27:18]wFMCommunicate request_size=4 [08:27:18]MH_SAM_APDU [08:27:18]CAPDU: 80 13 01 00 [08:27:18]Write to MH i2c: E2 08 00 9C E1 80 13 01 00 00 00 00 00 FA [08:27:18]Write i2c OK [08:27:18]MH_I2C_Read... [08:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:18]Read from MH i2c: E2 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 [08:27:18]MH_I2C_Read... [08:27:18]Read from MH i2c: E2 0E 00 9C E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [08:27:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:27:18]wFMCommunicate OK [08:27:18]SAM_PROTO_GetShiftState done [08:27:18]FM_GetShiftState done [08:27:18]req_shift_opened done [08:27:18]requested_item shift.open_date is exist - process it [08:27:18]req_shift_open_date [08:27:18]req_shift_open_date done [08:27:18]produce_requested_data done [08:27:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191654,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:27:18]process_action_free close_receipt [08:27:18]json_value_free [08:27:18]json_value_free done [08:27:18]process_json_proto returns [08:27:18]Send response to host [08:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191654,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:27:18]free response buf [08:27:18]execute_script done [08:27:18]execute_script returns [08:27:18]free content buf [08:27:18]Sock 9.Close socket [08:27:18]Sock 9.Thread stoped [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:39]accept exits with 8 [08:33:39]New connection [08:33:39]New thread 3066961252 created [08:33:39]Thread 3066817892 joined [08:33:39]Waiting for new connection... [08:33:39] Sock 8.Parse request [08:33:39]Sock 8.Check first char [08:33:39]Sock 8.First char is OK [08:33:39]request: POST /json_proto HTTP/1.0 [08:33:39]Method: POST [08:33:39]URL: /json_proto [08:33:39]Method is POST - this is cgi request [08:33:39]url: /json_proto [08:33:39]query_string will be loaded in cgi processing [08:33:39]execute_cgi json_proto POST (null) [08:33:39]execute_cgi path=json_proto method=POST [08:33:39]POST find Content-Length [08:33:39]Host: 172.17.63.131:8080 [08:33:39]Content-Length: 676 [08:33:39]Content-Type: application/json [08:33:39] [08:33:39]POST finish read [08:33:39]Found Content-Length = 676 [08:33:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:39]execute_script... [08:33: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)30957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:39]POST & json_proto [08:33:39]process_json_proto [08:33:39]json parsed OK: [08:33:39]protocol is kg_v1.0 [08:33:39]action value=close_receipt [08:33:39]process_action close_receipt [08:33:39]cmd_close_receipt [08:33:39]MH_GetDate [08:33:39]Write to MH i2c: F0 00 00 9D E1 6D [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: F0 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: F0 09 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: F0 09 00 9D E1 00 70 A9 1C 67 22 05 6E 64 0B [08:33:39]GetLastDocTimeStamp 1729931247 [08:33:39]current date 1729931632 [08:33:39]FM_GetShiftState [08:33:39]SAM_PROTO_GetShiftState [08:33:39]wFMCommunicate request_size=4 [08:33:39]MH_SAM_APDU [08:33:39]CAPDU: 80 13 01 00 [08:33:39]Write to MH i2c: E2 08 00 9E E1 80 13 01 00 00 00 00 00 FC [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:39]Read from MH i2c: E2 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 0E 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 0E 00 9E E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 75 [08:33:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:33:39]wFMCommunicate OK [08:33:39]SAM_PROTO_GetShiftState done [08:33:39]FM_GetShiftState done [08:33:39]opened in 1729902770 [08:33:39]opened+sec_in_day 1729989170 [08:33:39]quantity*price = 60009 [08:33:39]sum+1 = 60010 [08:33:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 18 26.10.2024 08:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191655 ФПД: 232559743426237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083352&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191655&fm=232559743426237&tin=02508201610067®Number=0000000000091776&sum=60000 [08:33:40]StoreToDocumentArchive [08:33:40]shift 541 fd 191655 [08:33:40]save to /storage/0541/doc_00191655 [08:33:40]save last doc name /storage/0541/doc_00191655 to /storage/kkm_last_doc_name [08:33:40]save OK [08:33:40]Clear old archive folders... [08:33:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:40]tlvbuf is 016CEB50 [08:33:40]SAM_PROTO_ClearQueue [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 09 00 00 [08:33:40]Write to MH i2c: E2 08 00 AB E1 80 09 00 00 00 00 00 00 FE [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 AB E1 00 90 00 00 [08:33:40]RAPDU: 90 00 [08:33:40]wFMCommunicate OK [08:33:40]SAM_PROTO_ClearQueue done [08:33:40]KKMCreateOFDPacket [08:33:40]OFDProtocolAddRootSTLVToBuf [08:33:40]FM_MakeSignedData [08:33:40]FM_MakeSignedData [08:33:40]SAM_PROTO_SignData [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 0D 01 02 [08:33:40]Write to MH i2c: E2 08 00 AC E1 80 0D 01 02 00 00 00 00 06 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 AC E1 00 90 00 01 [08:33:40]RAPDU: 90 00 [08:33:40]wFMCommunicate OK [08:33:40]wFMCommunicate request_size=255 [08:33:40]MH_SAM_APDU [08:33: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EC 02 00 35 04 06 00 D3 [08:33:40]Write to MH i2c: E2 02 01 AD E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EC 02 00 35 04 06 00 D3 00 00 AC [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 AD E1 00 90 00 02 [08:33:40]RAPDU: 90 00 [08:33:40]wFMCommunicate OK [08:33:40]wFMCommunicate request_size=10 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 0D 02 02 05 83 08 E5 5E BD [08:33:40]Write to MH i2c: E2 0D 00 AE E1 80 0D 02 02 05 00 83 08 E5 5E BD 00 00 9E [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 03 00 AE E1 00 90 00 03 [08:33:40]RAPDU: 90 00 [08:33:40]wFMCommunicate OK [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 0D 03 02 [08:33:40]Write to MH i2c: E2 08 00 AF E1 80 0D 03 02 00 00 00 00 0B [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0B 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0B 00 AF E1 00 7B 38 9B 92 BC AA BB E4 90 00 F1 [08:33:40]RAPDU: 7B 38 9B 92 BC AA BB E4 90 00 [08:33:40]wFMCommunicate OK [08:33:40]SAM_PROTO_SignData done [08:33:40]FM_MakeSignedData done [08:33:40]CreateOFDProtocolMessage [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 11 00 00 [08:33:40]Write to MH i2c: E2 08 00 B0 E1 80 11 00 00 00 00 00 00 0B [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 17 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 17 00 B0 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [08:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:33:40]wFMCommunicate OK [08:33:40]CreateOFDProtocolMessage done [08:33:40]OFDSenderStorePacket 191655 [08:33:40]StoreOFDPacket docnum=191655 [08:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 45 07 01 7F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EC 02 00 35 04 06 00 D3 83 08 E5 5E BD 7B 38 9B 92 BC AA BB E4 [08:33:40]CheckFolder [08:33:40]dirname=/storage/ofd_packets [08:33:40]CheckFolder done [08:33:40]ProducePacketName [08:33:40]name=ofd_packets/00191655 [08:33:40]NVStorageSaveData ofd_packets/00191655 [08:33:40]File name is /storage/ofd_packets/00191655 [08:33:40]Write 301 bytes [08:33:40]NVStorageSaveData done [08:33:40]OFDSenderStorePacket done [08:33:40]KKMCreateOFDPacket done [08:33:40]NVStorageSaveData kkm_last_timestamp [08:33:40]File name is /storage/kkm_last_timestamp [08:33:40]Write 4 bytes [08:33:40]NVStorageSaveData done [08:33:40]ExternCall_PrintAddStr [08:33:40]wPrintStart [08:33:40]Write to MH i2c: 01 00 00 B1 E1 92 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 B1 E1 00 00 00 00 00 FF 0F A7 [08:33:40]RasterBufferAndPrint [08:33:40]line Счет N : (1)30957 [08:33:40]line ИНН: 02508201610067 [08:33:40]line Контрольно-Кассовый Чек [08:33:40]line ПРОДАЖА [08:33:40]line ТРК (МРК, ГНК) : 21 [08:33:40]line Товар: 2710124130 [08:33:40]line Аи-92-К-5 [08:33:40]line 8.970 * 66.90 [08:33:40]line = 600.09 [08:33:40]line НДС 12% НСП 1% [08:33:40]line > о реализуемом товаре [08:33:40]line ОКРУГЛЕНИЕ: -0.09 [08:33:40]line ИТОГО: 600.00 [08:33:40]line Внесено: 600.00 [08:33:40]line СДАЧА: 0.00 [08:33:40]line НСП 1% : 5.31 [08:33:40]line НДС 12% : 63.73 [08:33:40]line Наличными: 600.00 [08:33:40]line Безнал.: 0.00 [08:33:40]line Место: АЗС № 170 "Партнер Нефть" [08:33:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:33:40]line СНО: Общий режим [08:33:40]line Чек 18 26.10.2024 08:33 [08:33:40]line Смена: 541 ФФД: 1.0 [08:33:40]line ЗНМ: 0300000110 [08:33:40]line РНМ: 0000000000091776 [08:33:40]line Версия ККМ: 001 [08:33:40]line ФМ: 0000000000871754 [08:33:40]line ФД: 191655 [08:33:40]line ФПД: 232559743426237 [08:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083352&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191655&fm=232559743426237&tin=02508201610067®Number=0000000000091776&sum=60000 [08:33:41]OFD Sender: Processing packet 191655 [packets to send 75, broken 74] [08:33:41]ProducePacketName [08:33:41]name=ofd_packets/00191655 [08:33:41]OFD Sender: To server: pG, [08:33:41]CommunicateWithHost lk.salyk.kg:30040 [08:33:41]ConnectInit lk.salyk.kg [08:33:41]written 0, free lines is 4095 [08:33:41]Connected sock=9 [08:33:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 45 07 01 7F 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EC 02 00 35 04 06 00 D3 83 08 E5 5E BD 7B 38 9B 92 BC AA BB E4 [08:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 43 12 47 00 30 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 EC 02 00 F4 03 04 00 3C 4E 1C 67 B6 04 01 00 00 52 B3 2A 90 E9 1A 19 3F [08:33:41]CommunicateWithHost err = 0 [08:33:41]CheckOFDResponse [08:33:41]1017 (14) - 77093643461234 [08:33:41]1041 (16) - 0000000000871754 [08:33:41]1040 (4) - 191655 [08:33:41]1012 (4) - 26.10.2024 02:04 [08:33:41]1206 (1) - 0 [08:33:41]OFD Sender: Remove packet 191655 [08:33:41]ProducePacketName [08:33:41]name=ofd_packets/00191655 [08:33:41]NVStorageDeleteData [08:33:41]Write to MH i2c: 01 00 00 DC E1 BD [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 DC E1 00 00 00 00 00 AF 0C 7F [08:33:41]RasterBufferAndPrint [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]line [08:33:41]written 0, free lines is 3254 [08:33:41]MH_Cut [08:33:41]Write to MH i2c: D1 01 00 E3 E1 01 96 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 01 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: D1 01 00 E3 E1 00 95 [08:33:41]Write to MH i2c: 01 00 00 E4 E1 C5 [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:42]OFD Sender: No OFD packet to send [08:33:42]*** Cut start [08:33:42]*** Partial cut [08:33:42]*** CUTSNS_PIN = 1 [08:33:42]*** CUTSNS_PIN = 0 [08:33:42]*** Brake cut motor [08:33:43]Read from MH i2c: 01 [08:33:43]MH_I2C_Read... [08:33:43]*** Stop cut motor [08:33:43]*** Cut end [08:33:43]Read from MH i2c: 01 07 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: 01 07 00 E4 E1 00 00 00 00 00 FF 0F DA [08:33:43]process_action close_receipt done [08:33:43]requested_data is exist [08:33:43]produce_requested_data [08:33:43]requested_item fm.sn is exist - process it [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 11 00 00 [08:33:43]Write to MH i2c: E2 08 00 E5 E1 80 11 00 00 00 00 00 00 40 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 17 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 17 00 E5 E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [08:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:33:43]wFMCommunicate OK [08:33:43]requested_item fd.num is exist - process it [08:33:43]SAM_PROTO_GetFieldsCounters [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 13 00 00 [08:33:43]Write to MH i2c: E2 08 00 E6 E1 80 13 00 00 00 00 00 00 43 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 62 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 62 00 E6 E1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [08:33:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:43]wFMCommunicate OK [08:33:43]SAM_PROTO_GetFieldsCounters done [08:33:43]requested_item shift.num is exist - process it [08:33:43]requested_item shift.opened is exist - process it [08:33:43]req_shift_opened [08:33:43]FM_GetShiftState [08:33:43]SAM_PROTO_GetShiftState [08:33:43]wFMCommunicate request_size=4 [08:33:43]MH_SAM_APDU [08:33:43]CAPDU: 80 13 01 00 [08:33:43]Write to MH i2c: E2 08 00 E7 E1 80 13 01 00 00 00 00 00 45 [08:33:43]Write i2c OK [08:33:43]MH_I2C_Read... [08:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:43]Read from MH i2c: E2 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 0E 00 [08:33:43]MH_I2C_Read... [08:33:43]Read from MH i2c: E2 0E 00 E7 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [08:33:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:33:43]wFMCommunicate OK [08:33:43]SAM_PROTO_GetShiftState done [08:33:43]FM_GetShiftState done [08:33:43]req_shift_opened done [08:33:43]requested_item shift.open_date is exist - process it [08:33:43]req_shift_open_date [08:33:43]req_shift_open_date done [08:33:43]produce_requested_data done [08:33:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191655,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:33:43]process_action_free close_receipt [08:33:43]json_value_free [08:33:43]json_value_free done [08:33:43]process_json_proto returns [08:33:43]Send response to host [08:33:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191655,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:33:43]free response buf [08:33:43]execute_script done [08:33:43]execute_script returns [08:33:43]free content buf [08:33:43]Sock 8.Close socket [08:33:43]Sock 8.Thread stoped [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:26]accept exits with 10 [08:34:26]New connection [08:34:26]New thread 3066817892 created [08:34:26]Thread 3066961252 joined [08:34:26]Waiting for new connection... [08:34:26] Sock 10.Parse request [08:34:26]Sock 10.Check first char [08:34:26]Sock 10.First char is OK [08:34:26]request: POST /json_proto HTTP/1.0 [08:34:26]Method: POST [08:34:26]URL: /json_proto [08:34:26]Method is POST - this is cgi request [08:34:26]url: /json_proto [08:34:26]query_string will be loaded in cgi processing [08:34:26]execute_cgi json_proto POST (null) [08:34:26]execute_cgi path=json_proto method=POST [08:34:26]POST find Content-Length [08:34:26]Host: 172.17.63.131:8080 [08:34:26]Content-Length: 676 [08:34:26]Content-Type: application/json [08:34:26] [08:34:26]POST finish read [08:34:26]Found Content-Length = 676 [08:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:26]execute_script... [08:34: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)30958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:26]POST & json_proto [08:34:26]process_json_proto [08:34:26]json parsed OK: [08:34:26]protocol is kg_v1.0 [08:34:26]action value=close_receipt [08:34:26]process_action close_receipt [08:34:26]cmd_close_receipt [08:34:26]MH_GetDate [08:34:26]Write to MH i2c: F0 00 00 E8 E1 B8 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: F0 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: F0 09 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: F0 09 00 E8 E1 00 9F A9 1C 67 22 05 6E 64 85 [08:34:26]GetLastDocTimeStamp 1729931632 [08:34:26]current date 1729931679 [08:34:26]FM_GetShiftState [08:34:26]SAM_PROTO_GetShiftState [08:34:26]wFMCommunicate request_size=4 [08:34:26]MH_SAM_APDU [08:34:26]CAPDU: 80 13 01 00 [08:34:26]Write to MH i2c: E2 08 00 E9 E1 80 13 01 00 00 00 00 00 47 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:26]Read from MH i2c: E2 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 0E 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 0E 00 E9 E1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C0 [08:34:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:34:26]wFMCommunicate OK [08:34:26]SAM_PROTO_GetShiftState done [08:34:26]FM_GetShiftState done [08:34:26]opened in 1729902770 [08:34:26]opened+sec_in_day 1729989170 [08:34:26]quantity*price = 50041 [08:34:26]sum+1 = 50042 [08:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 19 26.10.2024 08:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191656 ФПД: 68607255427197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191656&fm=68607255427197&tin=02508201610067®Number=0000000000091776&sum=50000 [08:34:27]StoreToDocumentArchive [08:34:27]shift 541 fd 191656 [08:34:27]save to /storage/0541/doc_00191656 [08:34:27]save last doc name /storage/0541/doc_00191656 to /storage/kkm_last_doc_name [08:34:27]save OK [08:34:27]Clear old archive folders... [08:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:27]tlvbuf is 01608E70 [08:34:27]SAM_PROTO_ClearQueue [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 09 00 00 [08:34:27]Write to MH i2c: E2 08 00 F6 E1 80 09 00 00 00 00 00 00 49 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 F6 E1 00 90 00 4B [08:34:27]RAPDU: 90 00 [08:34:27]wFMCommunicate OK [08:34:27]SAM_PROTO_ClearQueue done [08:34:27]KKMCreateOFDPacket [08:34:27]OFDProtocolAddRootSTLVToBuf [08:34:27]FM_MakeSignedData [08:34:27]FM_MakeSignedData [08:34:27]SAM_PROTO_SignData [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 0D 01 02 [08:34:27]Write to MH i2c: E2 08 00 F7 E1 80 0D 01 02 00 00 00 00 51 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 F7 E1 00 90 00 4C [08:34:27]RAPDU: 90 00 [08:34:27]wFMCommunicate OK [08:34:27]wFMCommunicate request_size=255 [08:34:27]MH_SAM_APDU [08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A0 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EC 02 00 35 04 06 00 3E [08:34:27]Write to MH i2c: E2 02 01 F8 E1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A0 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EC 02 00 35 04 06 00 3E 00 00 B7 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 F8 E1 00 90 00 4D [08:34:27]RAPDU: 90 00 [08:34:27]wFMCommunicate OK [08:34:27]wFMCommunicate request_size=10 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 0D 02 02 05 65 DF 16 B8 7D [08:34:27]Write to MH i2c: E2 0D 00 F9 E1 80 0D 02 02 05 00 65 DF 16 B8 7D 00 00 ED [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 03 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 03 00 F9 E1 00 90 00 4E [08:34:28]RAPDU: 90 00 [08:34:28]wFMCommunicate OK [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 0D 03 02 [08:34:28]Write to MH i2c: E2 08 00 FA E1 80 0D 03 02 00 00 00 00 56 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0B 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0B 00 FA E1 00 E2 99 48 B8 23 B7 11 F5 90 00 B2 [08:34:28]RAPDU: E2 99 48 B8 23 B7 11 F5 90 00 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_SignData done [08:34:28]FM_MakeSignedData done [08:34:28]CreateOFDProtocolMessage [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 11 00 00 [08:34:28]Write to MH i2c: E2 08 00 FB E1 80 11 00 00 00 00 00 00 56 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 17 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 17 00 FB E1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [08:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:34:28]wFMCommunicate OK [08:34:28]CreateOFDProtocolMessage done [08:34:28]OFDSenderStorePacket 191656 [08:34:28]StoreOFDPacket docnum=191656 [08:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 28 07 01 B1 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A0 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EC 02 00 35 04 06 00 3E 65 DF 16 B8 7D E2 99 48 B8 23 B7 11 F5 [08:34:28]CheckFolder [08:34:28]dirname=/storage/ofd_packets [08:34:28]CheckFolder done [08:34:28]ProducePacketName [08:34:28]name=ofd_packets/00191656 [08:34:28]NVStorageSaveData ofd_packets/00191656 [08:34:28]File name is /storage/ofd_packets/00191656 [08:34:28]Write 301 bytes [08:34:28]NVStorageSaveData done [08:34:28]OFDSenderStorePacket done [08:34:28]KKMCreateOFDPacket done [08:34:28]NVStorageSaveData kkm_last_timestamp [08:34:28]File name is /storage/kkm_last_timestamp [08:34:28]Write 4 bytes [08:34:28]NVStorageSaveData done [08:34:28]ExternCall_PrintAddStr [08:34:28]wPrintStart [08:34:28]Write to MH i2c: 01 00 00 FC E1 DD [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 07 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 07 00 FC E1 00 00 00 00 00 FF 0F F2 [08:34:28]RasterBufferAndPrint [08:34:28]line Счет N : (1)30958 [08:34:28]line ИНН: 02508201610067 [08:34:28]line Контрольно-Кассовый Чек [08:34:28]line ПРОДАЖА [08:34:28]line ТРК (МРК, ГНК) : 12 [08:34:28]line Товар: 2710124130 [08:34:28]line Аи-92-К-5 [08:34:28]line 7.480 * 66.90 [08:34:28]line = 500.41 [08:34:28]line НДС 12% НСП 1% [08:34:28]line > о реализуемом товаре [08:34:28]line ОКРУГЛЕНИЕ: -0.41 [08:34:28]line ИТОГО: 500.00 [08:34:28]line Внесено: 500.00 [08:34:28]line СДАЧА: 0.00 [08:34:28]line НСП 1% : 4.43 [08:34:28]line НДС 12% : 53.14 [08:34:28]line Наличными: 500.00 [08:34:28]line Безнал.: 0.00 [08:34:28]line Место: АЗС № 170 "Партнер Нефть" [08:34:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:34:28]line СНО: Общий режим [08:34:28]line Чек 19 26.10.2024 08:34 [08:34:28]line Смена: 541 ФФД: 1.0 [08:34:28]line ЗНМ: 0300000110 [08:34:28]line РНМ: 0000000000091776 [08:34:28]line Версия ККМ: 001 [08:34:28]line ФМ: 0000000000871754 [08:34:28]line ФД: 191656 [08:34:28]line ФПД: 68607255427197 [08:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T083440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191656&fm=68607255427197&tin=02508201610067®Number=0000000000091776&sum=50000 [08:34:28]OFD Sender: Processing packet 191656 [packets to send 75, broken 74] [08:34:28]ProducePacketName [08:34:28]name=ofd_packets/00191656 [08:34:28]OFD Sender: To server: pG, [08:34:28]CommunicateWithHost lk.salyk.kg:30040 [08:34:28]ConnectInit lk.salyk.kg [08:34:28]written 0, free lines is 4095 [08:34:28]Connected sock=9 [08:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 28 07 01 B1 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 A0 A9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EC 02 00 35 04 06 00 3E 65 DF 16 B8 7D E2 99 48 B8 23 B7 11 F5 [08:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C B3 47 00 4F 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 EC 02 00 F4 03 04 00 6B 4E 1C 67 B6 04 01 00 00 0D CC 24 3F 47 0C 7E 41 [08:34:28]CommunicateWithHost err = 0 [08:34:28]CheckOFDResponse [08:34:28]1017 (14) - 77093643461234 [08:34:28]1041 (16) - 0000000000871754 [08:34:28]1040 (4) - 191656 [08:34:28]1012 (4) - 26.10.2024 02:05 [08:34:28]1206 (1) - 0 [08:34:28]OFD Sender: Remove packet 191656 [08:34:28]ProducePacketName [08:34:28]name=ofd_packets/00191656 [08:34:28]NVStorageDeleteData [08:34:28]Write to MH i2c: 01 00 00 27 E2 09 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 07 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 07 00 27 E2 00 00 00 00 00 B2 0C CE [08:34:28]RasterBufferAndPrint [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]written 0, free lines is 3257 [08:34:28]MH_Cut [08:34:28]Write to MH i2c: D1 01 00 2E E2 01 E2 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 01 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 01 00 2E E2 00 E1 [08:34:28]Write to MH i2c: 01 00 00 2F E2 11 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:29]OFD Sender: No OFD packet to send [08:34:29]*** Cut start [08:34:29]*** Partial cut [08:34:29]*** CUTSNS_PIN = 1 [08:34:29]*** CUTSNS_PIN = 0 [08:34:29]*** Brake cut motor [08:34:30]Read from MH i2c: 01 [08:34:30]MH_I2C_Read... [08:34:30]*** Stop cut motor [08:34:30]*** Cut end [08:34:30]Read from MH i2c: 01 07 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: 01 07 00 2F E2 00 00 00 00 00 FF 0F 26 [08:34:30]process_action close_receipt done [08:34:30]requested_data is exist [08:34:30]produce_requested_data [08:34:30]requested_item fm.sn is exist - process it [08:34:30]wFMCommunicate request_size=4 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 11 00 00 [08:34:30]Write to MH i2c: E2 08 00 30 E2 80 11 00 00 00 00 00 00 8C [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:30]Read from MH i2c: E2 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 17 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 17 00 30 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [08:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:34:30]wFMCommunicate OK [08:34:30]requested_item fd.num is exist - process it [08:34:30]SAM_PROTO_GetFieldsCounters [08:34:30]wFMCommunicate request_size=4 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 13 00 00 [08:34:30]Write to MH i2c: E2 08 00 31 E2 80 13 00 00 00 00 00 00 8F [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:30]Read from MH i2c: E2 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 62 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 62 00 31 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [08:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:30]wFMCommunicate OK [08:34:30]SAM_PROTO_GetFieldsCounters done [08:34:30]requested_item shift.num is exist - process it [08:34:30]requested_item shift.opened is exist - process it [08:34:30]req_shift_opened [08:34:30]FM_GetShiftState [08:34:30]SAM_PROTO_GetShiftState [08:34:30]wFMCommunicate request_size=4 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 13 01 00 [08:34:30]Write to MH i2c: E2 08 00 32 E2 80 13 01 00 00 00 00 00 91 [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:30]Read from MH i2c: E2 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 0E 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 0E 00 32 E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [08:34:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:34:30]wFMCommunicate OK [08:34:30]SAM_PROTO_GetShiftState done [08:34:30]FM_GetShiftState done [08:34:30]req_shift_opened done [08:34:30]requested_item shift.open_date is exist - process it [08:34:30]req_shift_open_date [08:34:30]req_shift_open_date done [08:34:30]produce_requested_data done [08:34:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191656,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:34:30]process_action_free close_receipt [08:34:30]json_value_free [08:34:30]json_value_free done [08:34:30]process_json_proto returns [08:34:30]Send response to host [08:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191656,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:34:30]free response buf [08:34:30]execute_script done [08:34:30]execute_script returns [08:34:30]free content buf [08:34:30]Sock 10.Close socket [08:34:30]Sock 10.Thread stoped [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:26]accept exits with 8 [08:40:26]New connection [08:40:26]New thread 3066961252 created [08:40:26]Thread 3066817892 joined [08:40:26]Waiting for new connection... [08:40:26] Sock 8.Parse request [08:40:26]Sock 8.Check first char [08:40:26]Sock 8.First char is OK [08:40:26]request: POST /json_proto HTTP/1.0 [08:40:26]Method: POST [08:40:26]URL: /json_proto [08:40:26]Method is POST - this is cgi request [08:40:26]url: /json_proto [08:40:26]query_string will be loaded in cgi processing [08:40:26]execute_cgi json_proto POST (null) [08:40:26]execute_cgi path=json_proto method=POST [08:40:26]POST find Content-Length [08:40:26]Host: 172.17.63.131:8080 [08:40:26]Content-Length: 676 [08:40:26]Content-Type: application/json [08:40:26] [08:40:26]POST finish read [08:40:26]Found Content-Length = 676 [08:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:26]execute_script... [08:40: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)30959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:26]POST & json_proto [08:40:26]process_json_proto [08:40:26]json parsed OK: [08:40:26]protocol is kg_v1.0 [08:40:26]action value=close_receipt [08:40:26]process_action close_receipt [08:40:26]cmd_close_receipt [08:40:26]MH_GetDate [08:40:26]Write to MH i2c: F0 00 00 33 E2 04 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 09 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 09 00 33 E2 00 08 AB 1C 67 22 05 6E 64 3C [08:40:26]GetLastDocTimeStamp 1729931680 [08:40:26]current date 1729932040 [08:40:26]FM_GetShiftState [08:40:26]SAM_PROTO_GetShiftState [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 13 01 00 [08:40:26]Write to MH i2c: E2 08 00 34 E2 80 13 01 00 00 00 00 00 93 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 34 E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0C [08:40:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:40:26]wFMCommunicate OK [08:40:26]SAM_PROTO_GetShiftState done [08:40:26]FM_GetShiftState done [08:40:26]opened in 1729902770 [08:40:26]opened+sec_in_day 1729989170 [08:40:26]quantity*price = 60009 [08:40:26]sum+1 = 60010 [08:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 20 26.10.2024 08:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191657 ФПД: 279596648263754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191657&fm=279596648263754&tin=02508201610067®Number=0000000000091776&sum=60000 [08:40:28]StoreToDocumentArchive [08:40:28]shift 541 fd 191657 [08:40:28]save to /storage/0541/doc_00191657 [08:40:28]save last doc name /storage/0541/doc_00191657 to /storage/kkm_last_doc_name [08:40:28]save OK [08:40:28]Clear old archive folders... [08:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:28]tlvbuf is 015C88E0 [08:40:28]SAM_PROTO_ClearQueue [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 09 00 00 [08:40:28]Write to MH i2c: E2 08 00 41 E2 80 09 00 00 00 00 00 00 95 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 41 E2 00 90 00 97 [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]SAM_PROTO_ClearQueue done [08:40:28]KKMCreateOFDPacket [08:40:28]OFDProtocolAddRootSTLVToBuf [08:40:28]FM_MakeSignedData [08:40:28]FM_MakeSignedData [08:40:28]SAM_PROTO_SignData [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 0D 01 02 [08:40:28]Write to MH i2c: E2 08 00 42 E2 80 0D 01 02 00 00 00 00 9D [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 42 E2 00 90 00 98 [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]wFMCommunicate request_size=255 [08:40:28]MH_SAM_APDU [08:40: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 08 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EC 02 00 35 04 06 00 FE [08:40:28]Write to MH i2c: E2 02 01 43 E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 08 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EC 02 00 35 04 06 00 FE 00 00 0C [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 43 E2 00 90 00 99 [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]wFMCommunicate request_size=10 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 0D 02 02 05 4A AA E6 70 4A [08:40:28]Write to MH i2c: E2 0D 00 44 E2 80 0D 02 02 05 00 4A AA E6 70 4A 00 00 3E [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 44 E2 00 90 00 9A [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 0D 03 02 [08:40:28]Write to MH i2c: E2 08 00 45 E2 80 0D 03 02 00 00 00 00 A2 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 0B 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 0B 00 45 E2 00 AD 2F A0 C0 23 3E 9F AF 90 00 8E [08:40:28]RAPDU: AD 2F A0 C0 23 3E 9F AF 90 00 [08:40:28]wFMCommunicate OK [08:40:28]SAM_PROTO_SignData done [08:40:28]FM_MakeSignedData done [08:40:28]CreateOFDProtocolMessage [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 11 00 00 [08:40:28]Write to MH i2c: E2 08 00 46 E2 80 11 00 00 00 00 00 00 A2 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 17 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 17 00 46 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [08:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:40:28]wFMCommunicate OK [08:40:28]CreateOFDProtocolMessage done [08:40:28]OFDSenderStorePacket 191657 [08:40:28]StoreOFDPacket docnum=191657 [08:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 3D 07 01 06 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 08 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EC 02 00 35 04 06 00 FE 4A AA E6 70 4A AD 2F A0 C0 23 3E 9F AF [08:40:28]CheckFolder [08:40:28]dirname=/storage/ofd_packets [08:40:28]CheckFolder done [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00191657 [08:40:28]NVStorageSaveData ofd_packets/00191657 [08:40:28]File name is /storage/ofd_packets/00191657 [08:40:28]Write 301 bytes [08:40:28]NVStorageSaveData done [08:40:28]OFDSenderStorePacket done [08:40:28]KKMCreateOFDPacket done [08:40:28]NVStorageSaveData kkm_last_timestamp [08:40:28]File name is /storage/kkm_last_timestamp [08:40:28]Write 4 bytes [08:40:28]NVStorageSaveData done [08:40:28]ExternCall_PrintAddStr [08:40:28]wPrintStart [08:40:28]Write to MH i2c: 01 00 00 47 E2 29 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 47 E2 00 00 00 00 00 FF 0F 3E [08:40:28]RasterBufferAndPrint [08:40:28]line Счет N : (1)30959 [08:40:28]line ИНН: 02508201610067 [08:40:28]line Контрольно-Кассовый Чек [08:40:28]line ПРОДАЖА [08:40:28]line ТРК (МРК, ГНК) : 12 [08:40:28]line Товар: 2710124130 [08:40:28]line Аи-92-К-5 [08:40:28]line 8.970 * 66.90 [08:40:28]line = 600.09 [08:40:28]line НДС 12% НСП 1% [08:40:28]line > о реализуемом товаре [08:40:28]line ОКРУГЛЕНИЕ: -0.09 [08:40:28]line ИТОГО: 600.00 [08:40:28]line Внесено: 600.00 [08:40:28]line СДАЧА: 0.00 [08:40:28]line НСП 1% : 5.31 [08:40:28]line НДС 12% : 63.73 [08:40:28]line Наличными: 600.00 [08:40:28]line Безнал.: 0.00 [08:40:28]line Место: АЗС № 170 "Партнер Нефть" [08:40:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:40:28]line СНО: Общий режим [08:40:28]line Чек 20 26.10.2024 08:40 [08:40:28]line Смена: 541 ФФД: 1.0 [08:40:28]line ЗНМ: 0300000110 [08:40:28]line РНМ: 0000000000091776 [08:40:28]line Версия ККМ: 001 [08:40:28]line ФМ: 0000000000871754 [08:40:28]line ФД: 191657 [08:40:28]line ФПД: 279596648263754 [08:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191657&fm=279596648263754&tin=02508201610067®Number=0000000000091776&sum=60000 [08:40:28]OFD Sender: Processing packet 191657 [packets to send 75, broken 74] [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00191657 [08:40:28]OFD Sender: To server: pG, [08:40:28]CommunicateWithHost lk.salyk.kg:30040 [08:40:28]ConnectInit lk.salyk.kg [08:40:28]written 0, free lines is 4095 [08:40:29]Connected sock=10 [08:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EB 3D 07 01 06 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 08 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EC 02 00 35 04 06 00 FE 4A AA E6 70 4A AD 2F A0 C0 23 3E 9F AF [08:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 ED 68 47 00 AF B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 EC 02 00 F4 03 04 00 D4 4F 1C 67 B6 04 01 00 00 99 53 C1 A9 B7 08 F0 D2 [08:40:29]CommunicateWithHost err = 0 [08:40:29]CheckOFDResponse [08:40:29]1017 (14) - 77093643461234 [08:40:29]1041 (16) - 0000000000871754 [08:40:29]1040 (4) - 191657 [08:40:29]1012 (4) - 26.10.2024 02:11 [08:40:29]1206 (1) - 0 [08:40:29]OFD Sender: Remove packet 191657 [08:40:29]ProducePacketName [08:40:29]name=ofd_packets/00191657 [08:40:29]NVStorageDeleteData [08:40:29]Write to MH i2c: 01 00 00 72 E2 54 [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 07 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 07 00 72 E2 00 00 00 00 00 B4 0C 1B [08:40:29]RasterBufferAndPrint [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]written 0, free lines is 3258 [08:40:29]MH_Cut [08:40:29]Write to MH i2c: D1 01 00 79 E2 01 2D [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 01 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 01 00 79 E2 00 2C [08:40:29]Write to MH i2c: 01 00 00 7A E2 5C [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]OFD Sender: No OFD packet to send [08:40:30]*** Cut start [08:40:30]*** Partial cut [08:40:30]*** CUTSNS_PIN = 1 [08:40:30]*** CUTSNS_PIN = 0 [08:40:30]*** Brake cut motor [08:40:30]Read from MH i2c: 01 [08:40:30]MH_I2C_Read... [08:40:30]*** Stop cut motor [08:40:30]*** Cut end [08:40:30]Read from MH i2c: 01 07 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: 01 07 00 7A E2 00 00 00 00 00 FF 0F 71 [08:40:30]process_action close_receipt done [08:40:30]requested_data is exist [08:40:30]produce_requested_data [08:40:30]requested_item fm.sn is exist - process it [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 11 00 00 [08:40:30]Write to MH i2c: E2 08 00 7B E2 80 11 00 00 00 00 00 00 D7 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:30]Read from MH i2c: E2 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 17 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 17 00 7B E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [08:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:40:30]wFMCommunicate OK [08:40:30]requested_item fd.num is exist - process it [08:40:30]SAM_PROTO_GetFieldsCounters [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 13 00 00 [08:40:30]Write to MH i2c: E2 08 00 7C E2 80 13 00 00 00 00 00 00 DA [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 62 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 62 00 7C E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [08:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_GetFieldsCounters done [08:40:31]requested_item shift.num is exist - process it [08:40:31]requested_item shift.opened is exist - process it [08:40:31]req_shift_opened [08:40:31]FM_GetShiftState [08:40:31]SAM_PROTO_GetShiftState [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 13 01 00 [08:40:31]Write to MH i2c: E2 08 00 7D E2 80 13 01 00 00 00 00 00 DC [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 0E 00 7D E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 55 [08:40:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_GetShiftState done [08:40:31]FM_GetShiftState done [08:40:31]req_shift_opened done [08:40:31]requested_item shift.open_date is exist - process it [08:40:31]req_shift_open_date [08:40:31]req_shift_open_date done [08:40:31]produce_requested_data done [08:40:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191657,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:40:31]process_action_free close_receipt [08:40:31]json_value_free [08:40:31]json_value_free done [08:40:31]process_json_proto returns [08:40:31]Send response to host [08:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191657,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:40:31]free response buf [08:40:31]execute_script done [08:40:31]execute_script returns [08:40:31]free content buf [08:40:31]Sock 8.Close socket [08:40:31]Sock 8.Thread stoped [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]accept exits with 9 [08:42:34]New connection [08:42:34]New thread 3066817892 created [08:42:34]Thread 3066961252 joined [08:42:34]Waiting for new connection... [08:42:34] Sock 9.Parse request [08:42:34]Sock 9.Check first char [08:42:34]Sock 9.First char is OK [08:42:34]request: POST /json_proto HTTP/1.0 [08:42:34]Method: POST [08:42:34]URL: /json_proto [08:42:34]Method is POST - this is cgi request [08:42:34]url: /json_proto [08:42:34]query_string will be loaded in cgi processing [08:42:34]execute_cgi json_proto POST (null) [08:42:34]execute_cgi path=json_proto method=POST [08:42:34]POST find Content-Length [08:42:34]Host: 172.17.63.131:8080 [08:42:34]Content-Length: 681 [08:42:34]Content-Type: application/json [08:42:34] [08:42:34]POST finish read [08:42:34]Found Content-Length = 681 [08:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:34]execute_script... [08:42: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)30960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:34]POST & json_proto [08:42:34]process_json_proto [08:42:34]json parsed OK: [08:42:34]protocol is kg_v1.0 [08:42:34]action value=close_receipt [08:42:34]process_action close_receipt [08:42:34]cmd_close_receipt [08:42:34]MH_GetDate [08:42:34]Write to MH i2c: F0 00 00 7E E2 4F [08:42:34]Write i2c OK [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: F0 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: F0 09 00 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: F0 09 00 7E E2 00 88 AB 1C 67 22 05 6E 64 07 [08:42:34]GetLastDocTimeStamp 1729932040 [08:42:34]current date 1729932168 [08:42:34]FM_GetShiftState [08:42:34]SAM_PROTO_GetShiftState [08:42:34]wFMCommunicate request_size=4 [08:42:34]MH_SAM_APDU [08:42:34]CAPDU: 80 13 01 00 [08:42:34]Write to MH i2c: E2 08 00 7F E2 80 13 01 00 00 00 00 00 DE [08:42:34]Write i2c OK [08:42:34]MH_I2C_Read... [08:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:34]Read from MH i2c: E2 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: E2 0E 00 [08:42:34]MH_I2C_Read... [08:42:34]Read from MH i2c: E2 0E 00 7F E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 57 [08:42:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:42:34]wFMCommunicate OK [08:42:34]SAM_PROTO_GetShiftState done [08:42:34]FM_GetShiftState done [08:42:34]opened in 1729902770 [08:42:34]opened+sec_in_day 1729989170 [08:42:34]quantity*price = 100015 [08:42:34]sum+1 = 100017 [08:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 21 26.10.2024 08:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191658 ФПД: 152502626728001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191658&fm=152502626728001&tin=02508201610067®Number=0000000000091776&sum=100000 [08:42:35]StoreToDocumentArchive [08:42:35]shift 541 fd 191658 [08:42:35]save to /storage/0541/doc_00191658 [08:42:35]save last doc name /storage/0541/doc_00191658 to /storage/kkm_last_doc_name [08:42:35]save OK [08:42:35]Clear old archive folders... [08:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:36]tlvbuf is 01A763B0 [08:42:36]SAM_PROTO_ClearQueue [08:42:36]wFMCommunicate request_size=4 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 09 00 00 [08:42:36]Write to MH i2c: E2 08 00 8C E2 80 09 00 00 00 00 00 00 E0 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 8C E2 00 90 00 E2 [08:42:36]RAPDU: 90 00 [08:42:36]wFMCommunicate OK [08:42:36]SAM_PROTO_ClearQueue done [08:42:36]KKMCreateOFDPacket [08:42:36]OFDProtocolAddRootSTLVToBuf [08:42:36]FM_MakeSignedData [08:42:36]FM_MakeSignedData [08:42:36]SAM_PROTO_SignData [08:42:36]wFMCommunicate request_size=4 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 0D 01 02 [08:42:36]Write to MH i2c: E2 08 00 8D E2 80 0D 01 02 00 00 00 00 E8 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 8D E2 00 90 00 E3 [08:42:36]RAPDU: 90 00 [08:42:36]wFMCommunicate OK [08:42:36]wFMCommunicate request_size=255 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EC 02 00 35 04 06 00 8A [08:42:36]Write to MH i2c: E2 02 01 8E E2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EC 02 00 35 04 06 00 8A 00 00 82 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 8E E2 00 90 00 E4 [08:42:36]RAPDU: 90 00 [08:42:36]wFMCommunicate OK [08:42:36]wFMCommunicate request_size=10 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 0D 02 02 05 B3 48 E4 B8 41 [08:42:36]Write to MH i2c: E2 0D 00 8F E2 80 0D 02 02 05 00 B3 48 E4 B8 41 00 00 CD [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 03 00 8F E2 00 90 00 E5 [08:42:36]RAPDU: 90 00 [08:42:36]wFMCommunicate OK [08:42:36]wFMCommunicate request_size=4 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 0D 03 02 [08:42:36]Write to MH i2c: E2 08 00 90 E2 80 0D 03 02 00 00 00 00 ED [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 0B 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 0B 00 90 E2 00 8E 31 9A 12 A5 C0 AA 0F 90 00 77 [08:42:36]RAPDU: 8E 31 9A 12 A5 C0 AA 0F 90 00 [08:42:36]wFMCommunicate OK [08:42:36]SAM_PROTO_SignData done [08:42:36]FM_MakeSignedData done [08:42:36]CreateOFDProtocolMessage [08:42:36]wFMCommunicate request_size=4 [08:42:36]MH_SAM_APDU [08:42:36]CAPDU: 80 11 00 00 [08:42:36]Write to MH i2c: E2 08 00 91 E2 80 11 00 00 00 00 00 00 ED [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:36]Read from MH i2c: E2 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 17 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: E2 17 00 91 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [08:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:42:36]wFMCommunicate OK [08:42:36]CreateOFDProtocolMessage done [08:42:36]OFDSenderStorePacket 191658 [08:42:36]StoreOFDPacket docnum=191658 [08:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 8B 07 01 1C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EC 02 00 35 04 06 00 8A B3 48 E4 B8 41 8E 31 9A 12 A5 C0 AA 0F [08:42:36]CheckFolder [08:42:36]dirname=/storage/ofd_packets [08:42:36]CheckFolder done [08:42:36]ProducePacketName [08:42:36]name=ofd_packets/00191658 [08:42:36]NVStorageSaveData ofd_packets/00191658 [08:42:36]File name is /storage/ofd_packets/00191658 [08:42:36]Write 301 bytes [08:42:36]NVStorageSaveData done [08:42:36]OFDSenderStorePacket done [08:42:36]KKMCreateOFDPacket done [08:42:36]NVStorageSaveData kkm_last_timestamp [08:42:36]File name is /storage/kkm_last_timestamp [08:42:36]Write 4 bytes [08:42:36]NVStorageSaveData done [08:42:36]ExternCall_PrintAddStr [08:42:36]wPrintStart [08:42:36]Write to MH i2c: 01 00 00 92 E2 74 [08:42:36]Write i2c OK [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: 01 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: 01 07 00 [08:42:36]MH_I2C_Read... [08:42:36]Read from MH i2c: 01 07 00 92 E2 00 00 00 00 00 FF 0F 89 [08:42:36]RasterBufferAndPrint [08:42:36]line Счет N : (1)30960 [08:42:36]line ИНН: 02508201610067 [08:42:36]line Контрольно-Кассовый Чек [08:42:36]line ПРОДАЖА [08:42:36]line ТРК (МРК, ГНК) : 21 [08:42:36]line Товар: 2710124130 [08:42:36]line Аи-92-К-5 [08:42:36]line 14.950 * 66.90 [08:42:36]line = 1000.16 [08:42:36]line НДС 12% НСП 1% [08:42:36]line > о реализуемом товаре [08:42:36]line ОКРУГЛЕНИЕ: -0.16 [08:42:36]line ИТОГО: 1000.00 [08:42:36]line Внесено: 1000.00 [08:42:36]line СДАЧА: 0.00 [08:42:36]line НСП 1% : 8.85 [08:42:36]line НДС 12% : 106.21 [08:42:36]line Наличными: 1000.00 [08:42:36]line Безнал.: 0.00 [08:42:36]line Место: АЗС № 170 "Партнер Нефть" [08:42:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:42:36]line СНО: Общий режим [08:42:36]line Чек 21 26.10.2024 08:42 [08:42:36]line Смена: 541 ФФД: 1.0 [08:42:36]line ЗНМ: 0300000110 [08:42:36]line РНМ: 0000000000091776 [08:42:36]line Версия ККМ: 001 [08:42:36]line ФМ: 0000000000871754 [08:42:36]line ФД: 191658 [08:42:36]line ФПД: 152502626728001 [08:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T084248&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191658&fm=152502626728001&tin=02508201610067®Number=0000000000091776&sum=100000 [08:42:36]OFD Sender: Processing packet 191658 [packets to send 75, broken 74] [08:42:36]ProducePacketName [08:42:36]name=ofd_packets/00191658 [08:42:36]OFD Sender: To server: pG, [08:42:36]CommunicateWithHost lk.salyk.kg:30040 [08:42:36]ConnectInit lk.salyk.kg [08:42:36]written 0, free lines is 4095 [08:42:37]Connected sock=8 [08:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 75 8B 07 01 1C F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 AB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EC 02 00 35 04 06 00 8A B3 48 E4 B8 41 8E 31 9A 12 A5 C0 AA 0F [08:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 88 47 00 CC 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA EC 02 00 F4 03 04 00 54 50 1C 67 B6 04 01 00 00 6A 0A F8 45 58 65 B3 B8 [08:42:37]CommunicateWithHost err = 0 [08:42:37]CheckOFDResponse [08:42:37]1017 (14) - 77093643461234 [08:42:37]1041 (16) - 0000000000871754 [08:42:37]1040 (4) - 191658 [08:42:37]1012 (4) - 26.10.2024 02:13 [08:42:37]1206 (1) - 0 [08:42:37]OFD Sender: Remove packet 191658 [08:42:37]ProducePacketName [08:42:37]name=ofd_packets/00191658 [08:42:37]NVStorageDeleteData [08:42:37]Write to MH i2c: 01 00 00 BD E2 9F [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: 01 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: 01 07 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: 01 07 00 BD E2 00 00 00 00 00 C1 0C 73 [08:42:37]RasterBufferAndPrint [08:42:37]line [08:42:37]line [08:42:37]line [08:42:37]line [08:42:37]line [08:42:37]written 0, free lines is 3272 [08:42:37]MH_Cut [08:42:37]Write to MH i2c: D1 01 00 C4 E2 01 78 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: D1 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: D1 01 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: D1 01 00 C4 E2 00 77 [08:42:37]Write to MH i2c: 01 00 00 C5 E2 A7 [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]OFD Sender: No OFD packet to send [08:42:38]*** Cut start [08:42:38]*** Partial cut [08:42:38]*** CUTSNS_PIN = 1 [08:42:38]*** CUTSNS_PIN = 0 [08:42:38]*** Brake cut motor [08:42:38]Read from MH i2c: 01 [08:42:38]MH_I2C_Read... [08:42:38]*** Stop cut motor [08:42:38]*** Cut end [08:42:38]Read from MH i2c: 01 07 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: 01 07 00 C5 E2 00 00 00 00 00 FF 0F BC [08:42:38]process_action close_receipt done [08:42:38]requested_data is exist [08:42:38]produce_requested_data [08:42:38]requested_item fm.sn is exist - process it [08:42:38]wFMCommunicate request_size=4 [08:42:38]MH_SAM_APDU [08:42:38]CAPDU: 80 11 00 00 [08:42:38]Write to MH i2c: E2 08 00 C6 E2 80 11 00 00 00 00 00 00 22 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:38]Read from MH i2c: E2 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 17 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 17 00 C6 E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [08:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:42:38]wFMCommunicate OK [08:42:38]requested_item fd.num is exist - process it [08:42:38]SAM_PROTO_GetFieldsCounters [08:42:38]wFMCommunicate request_size=4 [08:42:38]MH_SAM_APDU [08:42:38]CAPDU: 80 13 00 00 [08:42:38]Write to MH i2c: E2 08 00 C7 E2 80 13 00 00 00 00 00 00 25 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:38]Read from MH i2c: E2 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 62 00 [08:42:38]MH_I2C_Read... [08:42:38]Read from MH i2c: E2 62 00 C7 E2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [08:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:38]wFMCommunicate OK [08:42:38]SAM_PROTO_GetFieldsCounters done [08:42:38]requested_item shift.num is exist - process it [08:42:38]requested_item shift.opened is exist - process it [08:42:38]req_shift_opened [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 C8 E2 80 13 01 00 00 00 00 00 27 [08:42:38]Write i2c OK [08:42:38]MH_I2C_Read... [08:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:39]Read from MH i2c: E2 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0E 00 [08:42:39]MH_I2C_Read... [08:42:39]Read from MH i2c: E2 0E 00 C8 E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A0 [08:42:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:42:39]wFMCommunicate OK [08:42:39]SAM_PROTO_GetShiftState done [08:42:39]FM_GetShiftState done [08:42:39]req_shift_opened done [08:42:39]requested_item shift.open_date is exist - process it [08:42:39]req_shift_open_date [08:42:39]req_shift_open_date done [08:42:39]produce_requested_data done [08:42:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191658,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:42:39]process_action_free close_receipt [08:42:39]json_value_free [08:42:39]json_value_free done [08:42:39]process_json_proto returns [08:42:39]Send response to host [08:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191658,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:42:39]free response buf [08:42:39]execute_script done [08:42:39]execute_script returns [08:42:39]free content buf [08:42:39]Sock 9.Close socket [08:42:39]Sock 9.Thread stoped [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]OFD Sender: No OFD packet to send [08:46:48]OFD Sender: No OFD packet to send [08:46:53]OFD Sender: No OFD packet to send [08:46:58]OFD Sender: No OFD packet to send [08:47:03]OFD Sender: No OFD packet to send [08:47:08]OFD Sender: No OFD packet to send [08:47:13]OFD Sender: No OFD packet to send [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:40]accept exits with 10 [08:50:40]New connection [08:50:40]New thread 3066961252 created [08:50:40]Thread 3066817892 joined [08:50:40]Waiting for new connection... [08:50:40] Sock 10.Parse request [08:50:40]Sock 10.Check first char [08:50:40]Sock 10.First char is OK [08:50:40]request: POST /json_proto HTTP/1.0 [08:50:40]Method: POST [08:50:40]URL: /json_proto [08:50:40]Method is POST - this is cgi request [08:50:40]url: /json_proto [08:50:40]query_string will be loaded in cgi processing [08:50:40]execute_cgi json_proto POST (null) [08:50:40]execute_cgi path=json_proto method=POST [08:50:40]POST find Content-Length [08:50:40]Host: 172.17.63.131:8080 [08:50:40]Content-Length: 678 [08:50:40]Content-Type: application/json [08:50:40] [08:50:40]POST finish read [08:50:40]Found Content-Length = 678 [08:50:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:40]execute_script... [08:50:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:40]POST & json_proto [08:50:40]process_json_proto [08:50:40]json parsed OK: [08:50:40]protocol is kg_v1.0 [08:50:40]action value=close_receipt [08:50:40]process_action close_receipt [08:50:40]cmd_close_receipt [08:50:40]MH_GetDate [08:50:40]Write to MH i2c: F0 00 00 C9 E2 9A [08:50:40]Write i2c OK [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: F0 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: F0 09 00 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: F0 09 00 C9 E2 00 6E AD 1C 67 22 05 6E 64 3A [08:50:40]GetLastDocTimeStamp 1729932168 [08:50:40]current date 1729932654 [08:50:40]FM_GetShiftState [08:50:40]SAM_PROTO_GetShiftState [08:50:40]wFMCommunicate request_size=4 [08:50:40]MH_SAM_APDU [08:50:40]CAPDU: 80 13 01 00 [08:50:40]Write to MH i2c: E2 08 00 CA E2 80 13 01 00 00 00 00 00 29 [08:50:40]Write i2c OK [08:50:40]MH_I2C_Read... [08:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:40]Read from MH i2c: E2 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 0E 00 [08:50:40]MH_I2C_Read... [08:50:40]Read from MH i2c: E2 0E 00 CA E2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A2 [08:50:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:50:40]wFMCommunicate OK [08:50:40]SAM_PROTO_GetShiftState done [08:50:40]FM_GetShiftState done [08:50:40]opened in 1729902770 [08:50:40]opened+sec_in_day 1729989170 [08:50:40]quantity*price = 150037 [08:50:40]sum+1 = 150039 [08:50:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 22 26.10.2024 08:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191659 ФПД: 210931693516618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191659&fm=210931693516618&tin=02508201610067®Number=0000000000091776&sum=150000 [08:50:42]StoreToDocumentArchive [08:50:42]shift 541 fd 191659 [08:50:42]save to /storage/0541/doc_00191659 [08:50:42]save last doc name /storage/0541/doc_00191659 to /storage/kkm_last_doc_name [08:50:42]save OK [08:50:42]Clear old archive folders... [08:50:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:50:42]tlvbuf is 01A765D0 [08:50:42]SAM_PROTO_ClearQueue [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 09 00 00 [08:50:42]Write to MH i2c: E2 08 00 D7 E2 80 09 00 00 00 00 00 00 2B [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 D7 E2 00 90 00 2D [08:50:42]RAPDU: 90 00 [08:50:42]wFMCommunicate OK [08:50:42]SAM_PROTO_ClearQueue done [08:50:42]KKMCreateOFDPacket [08:50:42]OFDProtocolAddRootSTLVToBuf [08:50:42]FM_MakeSignedData [08:50:42]FM_MakeSignedData [08:50:42]SAM_PROTO_SignData [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 0D 01 02 [08:50:42]Write to MH i2c: E2 08 00 D8 E2 80 0D 01 02 00 00 00 00 33 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 D8 E2 00 90 00 2E [08:50:42]RAPDU: 90 00 [08:50:42]wFMCommunicate OK [08:50:42]wFMCommunicate request_size=255 [08:50:42]MH_SAM_APDU [08:50: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6E AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EC 02 00 35 04 06 00 BF D7 5C A9 [08:50:42]Write to MH i2c: E2 02 01 D9 E2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6E AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EC 02 00 35 04 06 00 BF D7 5C A9 00 00 3B [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 D9 E2 00 90 00 2F [08:50:42]RAPDU: 90 00 [08:50:42]wFMCommunicate OK [08:50:42]wFMCommunicate request_size=7 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 0D 02 02 02 F7 4A [08:50:42]Write to MH i2c: E2 0A 00 DA E2 80 0D 02 02 02 00 F7 4A 00 00 7B [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 03 00 DA E2 00 90 00 30 [08:50:42]RAPDU: 90 00 [08:50:42]wFMCommunicate OK [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 0D 03 02 [08:50:42]Write to MH i2c: E2 08 00 DB E2 80 0D 03 02 00 00 00 00 38 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 0B 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 0B 00 DB E2 00 29 E1 BF 9A 65 53 25 F3 90 00 6C [08:50:42]RAPDU: 29 E1 BF 9A 65 53 25 F3 90 00 [08:50:42]wFMCommunicate OK [08:50:42]SAM_PROTO_SignData done [08:50:42]FM_MakeSignedData done [08:50:42]CreateOFDProtocolMessage [08:50:42]wFMCommunicate request_size=4 [08:50:42]MH_SAM_APDU [08:50:42]CAPDU: 80 11 00 00 [08:50:42]Write to MH i2c: E2 08 00 DC E2 80 11 00 00 00 00 00 00 38 [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:42]Read from MH i2c: E2 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 17 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: E2 17 00 DC E2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [08:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:50:42]wFMCommunicate OK [08:50:42]CreateOFDProtocolMessage done [08:50:42]OFDSenderStorePacket 191659 [08:50:42]StoreOFDPacket docnum=191659 [08:50:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1C F5 04 01 43 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6E AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EC 02 00 35 04 06 00 BF D7 5C A9 F7 4A 29 E1 BF 9A 65 53 25 F3 [08:50:42]CheckFolder [08:50:42]dirname=/storage/ofd_packets [08:50:42]CheckFolder done [08:50:42]ProducePacketName [08:50:42]name=ofd_packets/00191659 [08:50:42]NVStorageSaveData ofd_packets/00191659 [08:50:42]File name is /storage/ofd_packets/00191659 [08:50:42]Write 298 bytes [08:50:42]NVStorageSaveData done [08:50:42]OFDSenderStorePacket done [08:50:42]KKMCreateOFDPacket done [08:50:42]NVStorageSaveData kkm_last_timestamp [08:50:42]File name is /storage/kkm_last_timestamp [08:50:42]Write 4 bytes [08:50:42]NVStorageSaveData done [08:50:42]ExternCall_PrintAddStr [08:50:42]wPrintStart [08:50:42]Write to MH i2c: 01 00 00 DD E2 BF [08:50:42]Write i2c OK [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: 01 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: 01 07 00 [08:50:42]MH_I2C_Read... [08:50:42]Read from MH i2c: 01 07 00 DD E2 00 00 00 00 00 FF 0F D4 [08:50:42]RasterBufferAndPrint [08:50:42]line Счет N : (1)30961 [08:50:42]line ИНН: 02508201610067 [08:50:42]line Контрольно-Кассовый Чек [08:50:42]line ПРОДАЖА [08:50:42]line ТРК (МРК, ГНК) : 11 [08:50:42]line Товар: 2710194210 [08:50:42]line ДТ-К-5 [08:50:42]line 19.690 * 76.20 [08:50:42]line = 1500.38 [08:50:42]line НДС 12% НСП 1% [08:50:42]line > о реализуемом товаре [08:50:42]line ОКРУГЛЕНИЕ: -0.38 [08:50:42]line ИТОГО: 1500.00 [08:50:42]line Внесено: 1500.00 [08:50:42]line СДАЧА: 0.00 [08:50:42]line НСП 1% : 13.28 [08:50:42]line НДС 12% : 159.33 [08:50:42]line Наличными: 1500.00 [08:50:42]line Безнал.: 0.00 [08:50:42]line Место: АЗС № 170 "Партнер Нефть" [08:50:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:50:42]line СНО: Общий режим [08:50:42]line Чек 22 26.10.2024 08:50 [08:50:42]line Смена: 541 ФФД: 1.0 [08:50:42]line ЗНМ: 0300000110 [08:50:42]line РНМ: 0000000000091776 [08:50:42]line Версия ККМ: 001 [08:50:42]line ФМ: 0000000000871754 [08:50:42]line ФД: 191659 [08:50:42]line ФПД: 210931693516618 [08:50:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191659&fm=210931693516618&tin=02508201610067®Number=0000000000091776&sum=150000 [08:50:42]OFD Sender: Processing packet 191659 [packets to send 75, broken 74] [08:50:42]ProducePacketName [08:50:42]name=ofd_packets/00191659 [08:50:42]OFD Sender: To server: pG, [08:50:42]CommunicateWithHost lk.salyk.kg:30040 [08:50:42]ConnectInit lk.salyk.kg [08:50:42]written 0, free lines is 4095 [08:50:43]Connected sock=11 [08:50:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1C F5 04 01 43 2B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6E AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EC 02 00 35 04 06 00 BF D7 5C A9 F7 4A 29 E1 BF 9A 65 53 25 F3 [08:50:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 D7 47 00 95 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB EC 02 00 F4 03 04 00 3A 52 1C 67 B6 04 01 00 00 08 64 A6 A4 F8 24 B2 10 [08:50:43]CommunicateWithHost err = 0 [08:50:43]CheckOFDResponse [08:50:43]1017 (14) - 77093643461234 [08:50:43]1041 (16) - 0000000000871754 [08:50:43]1040 (4) - 191659 [08:50:43]1012 (4) - 26.10.2024 02:21 [08:50:43]1206 (1) - 0 [08:50:43]OFD Sender: Remove packet 191659 [08:50:43]ProducePacketName [08:50:43]name=ofd_packets/00191659 [08:50:43]NVStorageDeleteData [08:50:43]Write to MH i2c: 01 00 00 08 E3 EB [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: 01 07 00 08 E3 00 00 00 00 00 A6 0C A4 [08:50:43]RasterBufferAndPrint [08:50:43]line [08:50:43]line [08:50:43]line [08:50:43]line [08:50:43]line [08:50:43]written 0, free lines is 3243 [08:50:43]MH_Cut [08:50:43]Write to MH i2c: D1 01 00 0F E3 01 C4 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: D1 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: D1 01 00 [08:50:43]MH_I2C_Read... [08:50:43]Read from MH i2c: D1 01 00 0F E3 00 C3 [08:50:43]Write to MH i2c: 01 00 00 10 E3 F3 [08:50:43]Write i2c OK [08:50:43]MH_I2C_Read... [08:50:43]OFD Sender: No OFD packet to send [08:50:44]*** Cut start [08:50:44]*** Partial cut [08:50:44]*** CUTSNS_PIN = 1 [08:50:44]*** CUTSNS_PIN = 0 [08:50:44]*** Brake cut motor [08:50:44]Read from MH i2c: 01 [08:50:44]MH_I2C_Read... [08:50:44]*** Stop cut motor [08:50:44]*** Cut end [08:50:44]Read from MH i2c: 01 07 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: 01 07 00 10 E3 00 00 00 00 00 FF 0F 08 [08:50:44]process_action close_receipt done [08:50:44]requested_data is exist [08:50:44]produce_requested_data [08:50:44]requested_item fm.sn is exist - process it [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 11 00 00 [08:50:44]Write to MH i2c: E2 08 00 11 E3 80 11 00 00 00 00 00 00 6E [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:44]Read from MH i2c: E2 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 17 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 17 00 11 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C1 [08:50:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:50:44]wFMCommunicate OK [08:50:44]requested_item fd.num is exist - process it [08:50:44]SAM_PROTO_GetFieldsCounters [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 13 00 00 [08:50:44]Write to MH i2c: E2 08 00 12 E3 80 13 00 00 00 00 00 00 71 [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 62 00 12 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [08:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetFieldsCounters done [08:50:45]requested_item shift.num is exist - process it [08:50:45]requested_item shift.opened is exist - process it [08:50:45]req_shift_opened [08:50:45]FM_GetShiftState [08:50:45]SAM_PROTO_GetShiftState [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 13 01 00 [08:50:45]Write to MH i2c: E2 08 00 13 E3 80 13 01 00 00 00 00 00 73 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0E 00 13 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EC [08:50:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_GetShiftState done [08:50:45]FM_GetShiftState done [08:50:45]req_shift_opened done [08:50:45]requested_item shift.open_date is exist - process it [08:50:45]req_shift_open_date [08:50:45]req_shift_open_date done [08:50:45]produce_requested_data done [08:50:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191659,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:50:45]process_action_free close_receipt [08:50:45]json_value_free [08:50:45]json_value_free done [08:50:45]process_json_proto returns [08:50:45]Send response to host [08:50:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191659,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:50:45]free response buf [08:50:45]execute_script done [08:50:45]execute_script returns [08:50:45]free content buf [08:50:45]Sock 10.Close socket [08:50:45]Sock 10.Thread stoped [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:30]accept exits with 8 [08:51:30]New connection [08:51:30]New thread 3066817892 created [08:51:30]Thread 3066961252 joined [08:51:30]Waiting for new connection... [08:51:30] Sock 8.Parse request [08:51:30]Sock 8.Check first char [08:51:30]Sock 8.First char is OK [08:51:30]request: POST /json_proto HTTP/1.0 [08:51:30]Method: POST [08:51:30]URL: /json_proto [08:51:30]Method is POST - this is cgi request [08:51:30]url: /json_proto [08:51:30]query_string will be loaded in cgi processing [08:51:30]execute_cgi json_proto POST (null) [08:51:30]execute_cgi path=json_proto method=POST [08:51:30]POST find Content-Length [08:51:30]Host: 172.17.63.131:8080 [08:51:30]Content-Length: 681 [08:51:30]Content-Type: application/json [08:51:30] [08:51:30]POST finish read [08:51:30]Found Content-Length = 681 [08:51:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:30]execute_script... [08:51: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)30962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:30]POST & json_proto [08:51:30]process_json_proto [08:51:30]json parsed OK: [08:51:30]protocol is kg_v1.0 [08:51:30]action value=close_receipt [08:51:30]process_action close_receipt [08:51:30]cmd_close_receipt [08:51:30]MH_GetDate [08:51:30]Write to MH i2c: F0 00 00 14 E3 E6 [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: F0 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: F0 09 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: F0 09 00 14 E3 00 A0 AD 1C 67 22 05 6E 64 B8 [08:51:30]GetLastDocTimeStamp 1729932654 [08:51:30]current date 1729932704 [08:51:30]FM_GetShiftState [08:51:30]SAM_PROTO_GetShiftState [08:51:30]wFMCommunicate request_size=4 [08:51:30]MH_SAM_APDU [08:51:30]CAPDU: 80 13 01 00 [08:51:30]Write to MH i2c: E2 08 00 15 E3 80 13 01 00 00 00 00 00 75 [08:51:30]Write i2c OK [08:51:30]MH_I2C_Read... [08:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:30]Read from MH i2c: E2 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: E2 0E 00 [08:51:30]MH_I2C_Read... [08:51:30]Read from MH i2c: E2 0E 00 15 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EE [08:51:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:51:30]wFMCommunicate OK [08:51:30]SAM_PROTO_GetShiftState done [08:51:30]FM_GetShiftState done [08:51:30]opened in 1729902770 [08:51:30]opened+sec_in_day 1729989170 [08:51:30]quantity*price = 200031 [08:51:30]sum+1 = 200032 [08:51:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 23 26.10.2024 08:51 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191660 ФПД: 226087838213404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191660&fm=226087838213404&tin=02508201610067®Number=0000000000091776&sum=200000 [08:51:31]StoreToDocumentArchive [08:51:31]shift 541 fd 191660 [08:51:31]save to /storage/0541/doc_00191660 [08:51:31]save last doc name /storage/0541/doc_00191660 to /storage/kkm_last_doc_name [08:51:31]save OK [08:51:31]Clear old archive folders... [08:51:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:51:31]tlvbuf is 01831080 [08:51:31]SAM_PROTO_ClearQueue [08:51:31]wFMCommunicate request_size=4 [08:51:31]MH_SAM_APDU [08:51:31]CAPDU: 80 09 00 00 [08:51:31]Write to MH i2c: E2 08 00 22 E3 80 09 00 00 00 00 00 00 77 [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:31]Read from MH i2c: E2 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 03 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 03 00 22 E3 00 90 00 79 [08:51:31]RAPDU: 90 00 [08:51:31]wFMCommunicate OK [08:51:31]SAM_PROTO_ClearQueue done [08:51:31]KKMCreateOFDPacket [08:51:31]OFDProtocolAddRootSTLVToBuf [08:51:31]FM_MakeSignedData [08:51:31]FM_MakeSignedData [08:51:31]SAM_PROTO_SignData [08:51:31]wFMCommunicate request_size=4 [08:51:31]MH_SAM_APDU [08:51:31]CAPDU: 80 0D 01 02 [08:51:31]Write to MH i2c: E2 08 00 23 E3 80 0D 01 02 00 00 00 00 7F [08:51:31]Write i2c OK [08:51:31]MH_I2C_Read... [08:51:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:31]Read from MH i2c: E2 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 03 00 [08:51:31]MH_I2C_Read... [08:51:31]Read from MH i2c: E2 03 00 23 E3 00 90 00 7A [08:51:31]RAPDU: 90 00 [08:51:31]wFMCommunicate OK [08:51:31]wFMCommunicate request_size=255 [08:51:31]MH_SAM_APDU [08:51: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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EC 02 00 35 04 06 00 CD [08:51:31]Write to MH i2c: E2 02 01 24 E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EC 02 00 35 04 06 00 CD 00 00 C2 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 03 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 03 00 24 E3 00 90 00 7B [08:51:32]RAPDU: 90 00 [08:51:32]wFMCommunicate OK [08:51:32]wFMCommunicate request_size=10 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 0D 02 02 05 A0 2D 48 E5 1C [08:51:32]Write to MH i2c: E2 0D 00 25 E3 80 0D 02 02 05 00 A0 2D 48 E5 1C 00 00 A2 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 03 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 03 00 25 E3 00 90 00 7C [08:51:32]RAPDU: 90 00 [08:51:32]wFMCommunicate OK [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 0D 03 02 [08:51:32]Write to MH i2c: E2 08 00 26 E3 80 0D 03 02 00 00 00 00 84 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 0B 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 0B 00 26 E3 00 48 34 93 4F 08 A9 28 4B 90 00 07 [08:51:32]RAPDU: 48 34 93 4F 08 A9 28 4B 90 00 [08:51:32]wFMCommunicate OK [08:51:32]SAM_PROTO_SignData done [08:51:32]FM_MakeSignedData done [08:51:32]CreateOFDProtocolMessage [08:51:32]wFMCommunicate request_size=4 [08:51:32]MH_SAM_APDU [08:51:32]CAPDU: 80 11 00 00 [08:51:32]Write to MH i2c: E2 08 00 27 E3 80 11 00 00 00 00 00 00 84 [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:32]Read from MH i2c: E2 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 17 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: E2 17 00 27 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D7 [08:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:51:32]wFMCommunicate OK [08:51:32]CreateOFDProtocolMessage done [08:51:32]OFDSenderStorePacket 191660 [08:51:32]StoreOFDPacket docnum=191660 [08:51:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 28 07 01 2E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EC 02 00 35 04 06 00 CD A0 2D 48 E5 1C 48 34 93 4F 08 A9 28 4B [08:51:32]CheckFolder [08:51:32]dirname=/storage/ofd_packets [08:51:32]CheckFolder done [08:51:32]ProducePacketName [08:51:32]name=ofd_packets/00191660 [08:51:32]NVStorageSaveData ofd_packets/00191660 [08:51:32]File name is /storage/ofd_packets/00191660 [08:51:32]Write 301 bytes [08:51:32]NVStorageSaveData done [08:51:32]OFDSenderStorePacket done [08:51:32]KKMCreateOFDPacket done [08:51:32]NVStorageSaveData kkm_last_timestamp [08:51:32]File name is /storage/kkm_last_timestamp [08:51:32]Write 4 bytes [08:51:32]NVStorageSaveData done [08:51:32]ExternCall_PrintAddStr [08:51:32]wPrintStart [08:51:32]Write to MH i2c: 01 00 00 28 E3 0B [08:51:32]Write i2c OK [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: 01 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: 01 07 00 [08:51:32]MH_I2C_Read... [08:51:32]Read from MH i2c: 01 07 00 28 E3 00 00 00 00 00 FF 0F 20 [08:51:32]RasterBufferAndPrint [08:51:32]line Счет N : (1)30962 [08:51:32]line ИНН: 02508201610067 [08:51:32]line Контрольно-Кассовый Чек [08:51:32]line ПРОДАЖА [08:51:32]line ТРК (МРК, ГНК) : 21 [08:51:32]line Товар: 2710124130 [08:51:32]line Аи-92-К-5 [08:51:32]line 29.900 * 66.90 [08:51:32]line = 2000.31 [08:51:32]line НДС 12% НСП 1% [08:51:32]line > о реализуемом товаре [08:51:32]line ОКРУГЛЕНИЕ: -0.31 [08:51:32]line ИТОГО: 2000.00 [08:51:32]line Внесено: 2000.00 [08:51:32]line СДАЧА: 0.00 [08:51:32]line НСП 1% : 17.70 [08:51:32]line НДС 12% : 212.42 [08:51:32]line Наличными: 2000.00 [08:51:32]line Безнал.: 0.00 [08:51:32]line Место: АЗС № 170 "Партнер Нефть" [08:51:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:51:32]line СНО: Общий режим [08:51:32]line Чек 23 26.10.2024 08:51 [08:51:32]line Смена: 541 ФФД: 1.0 [08:51:32]line ЗНМ: 0300000110 [08:51:32]line РНМ: 0000000000091776 [08:51:32]line Версия ККМ: 001 [08:51:32]line ФМ: 0000000000871754 [08:51:32]line ФД: 191660 [08:51:32]line ФПД: 226087838213404 [08:51:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085144&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191660&fm=226087838213404&tin=02508201610067®Number=0000000000091776&sum=200000 [08:51:32]OFD Sender: Processing packet 191660 [packets to send 75, broken 74] [08:51:32]ProducePacketName [08:51:32]name=ofd_packets/00191660 [08:51:32]OFD Sender: To server: pG, [08:51:32]CommunicateWithHost lk.salyk.kg:30040 [08:51:32]ConnectInit lk.salyk.kg [08:51:32]written 0, free lines is 4095 [08:51:32]Connected sock=9 [08:51:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 28 07 01 2E C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 A0 AD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EC 02 00 35 04 06 00 CD A0 2D 48 E5 1C 48 34 93 4F 08 A9 28 4B [08:51:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 A7 47 00 E3 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC EC 02 00 F4 03 04 00 6C 52 1C 67 B6 04 01 00 00 72 82 EA 0C 3F 4E FF 1D [08:51:33]CommunicateWithHost err = 0 [08:51:33]CheckOFDResponse [08:51:33]1017 (14) - 77093643461234 [08:51:33]1041 (16) - 0000000000871754 [08:51:33]1040 (4) - 191660 [08:51:33]1012 (4) - 26.10.2024 02:22 [08:51:33]1206 (1) - 0 [08:51:33]OFD Sender: Remove packet 191660 [08:51:33]ProducePacketName [08:51:33]name=ofd_packets/00191660 [08:51:33]NVStorageDeleteData [08:51:33]Write to MH i2c: 01 00 00 53 E3 36 [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: 01 07 00 53 E3 00 00 00 00 00 B1 0C FA [08:51:33]RasterBufferAndPrint [08:51:33]line [08:51:33]line [08:51:33]line [08:51:33]line [08:51:33]line [08:51:33]written 0, free lines is 3256 [08:51:33]MH_Cut [08:51:33]Write to MH i2c: D1 01 00 5A E3 01 0F [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: D1 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: D1 01 00 [08:51:33]MH_I2C_Read... [08:51:33]Read from MH i2c: D1 01 00 5A E3 00 0E [08:51:33]Write to MH i2c: 01 00 00 5B E3 3E [08:51:33]Write i2c OK [08:51:33]MH_I2C_Read... [08:51:33]OFD Sender: No OFD packet to send [08:51:34]*** Cut start [08:51:34]*** Partial cut [08:51:34]*** CUTSNS_PIN = 1 [08:51:34]*** CUTSNS_PIN = 0 [08:51:34]*** Brake cut motor [08:51:34]Read from MH i2c: 01 [08:51:34]MH_I2C_Read... [08:51:34]*** Stop cut motor [08:51:34]*** Cut end [08:51:34]Read from MH i2c: 01 07 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: 01 07 00 5B E3 00 00 00 00 00 FF 0F 53 [08:51:34]process_action close_receipt done [08:51:34]requested_data is exist [08:51:34]produce_requested_data [08:51:34]requested_item fm.sn is exist - process it [08:51:34]wFMCommunicate request_size=4 [08:51:34]MH_SAM_APDU [08:51:34]CAPDU: 80 11 00 00 [08:51:34]Write to MH i2c: E2 08 00 5C E3 80 11 00 00 00 00 00 00 B9 [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:34]Read from MH i2c: E2 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 17 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 17 00 5C E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [08:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:51:34]wFMCommunicate OK [08:51:34]requested_item fd.num is exist - process it [08:51:34]SAM_PROTO_GetFieldsCounters [08:51:34]wFMCommunicate request_size=4 [08:51:34]MH_SAM_APDU [08:51:34]CAPDU: 80 13 00 00 [08:51:34]Write to MH i2c: E2 08 00 5D E3 80 13 00 00 00 00 00 00 BC [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:34]Read from MH i2c: E2 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 62 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 62 00 5D E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [08:51:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:34]wFMCommunicate OK [08:51:34]SAM_PROTO_GetFieldsCounters done [08:51:34]requested_item shift.num is exist - process it [08:51:34]requested_item shift.opened is exist - process it [08:51:34]req_shift_opened [08:51:34]FM_GetShiftState [08:51:34]SAM_PROTO_GetShiftState [08:51:34]wFMCommunicate request_size=4 [08:51:34]MH_SAM_APDU [08:51:34]CAPDU: 80 13 01 00 [08:51:34]Write to MH i2c: E2 08 00 5E E3 80 13 01 00 00 00 00 00 BE [08:51:34]Write i2c OK [08:51:34]MH_I2C_Read... [08:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:34]Read from MH i2c: E2 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 0E 00 [08:51:34]MH_I2C_Read... [08:51:34]Read from MH i2c: E2 0E 00 5E E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 37 [08:51:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:51:34]wFMCommunicate OK [08:51:34]SAM_PROTO_GetShiftState done [08:51:34]FM_GetShiftState done [08:51:34]req_shift_opened done [08:51:34]requested_item shift.open_date is exist - process it [08:51:34]req_shift_open_date [08:51:34]req_shift_open_date done [08:51:34]produce_requested_data done [08:51:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191660,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:51:34]process_action_free close_receipt [08:51:34]json_value_free [08:51:34]json_value_free done [08:51:34]process_json_proto returns [08:51:34]Send response to host [08:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191660,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:51:34]free response buf [08:51:34]execute_script done [08:51:34]execute_script returns [08:51:34]free content buf [08:51:34]Sock 8.Close socket [08:51:34]Sock 8.Thread stoped [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54: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:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]accept exits with 10 [08:57:18]New connection [08:57:18]New thread 3066961252 created [08:57:18]Thread 3066817892 joined [08:57:18]Waiting for new connection... [08:57:18] Sock 10.Parse request [08:57:18]Sock 10.Check first char [08:57:18]Sock 10.First char is OK [08:57:18]request: POST /json_proto HTTP/1.0 [08:57:18]Method: POST [08:57:18]URL: /json_proto [08:57:18]Method is POST - this is cgi request [08:57:18]url: /json_proto [08:57:18]query_string will be loaded in cgi processing [08:57:18]execute_cgi json_proto POST (null) [08:57:18]execute_cgi path=json_proto method=POST [08:57:18]POST find Content-Length [08:57:18]Host: 172.17.63.131:8080 [08:57:18]Content-Length: 677 [08:57:18]Content-Type: application/json [08:57:18] [08:57:18]POST finish read [08:57:18]Found Content-Length = 677 [08:57:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:18]execute_script... [08:57: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)30963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:18]POST & json_proto [08:57:18]process_json_proto [08:57:18]json parsed OK: [08:57:18]protocol is kg_v1.0 [08:57:18]action value=close_receipt [08:57:18]process_action close_receipt [08:57:18]cmd_close_receipt [08:57:18]MH_GetDate [08:57:18]Write to MH i2c: F0 00 00 5F E3 31 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 09 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: F0 09 00 5F E3 00 FC AE 1C 67 22 05 6E 64 60 [08:57:18]GetLastDocTimeStamp 1729932704 [08:57:18]current date 1729933052 [08:57:18]FM_GetShiftState [08:57:18]SAM_PROTO_GetShiftState [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 13 01 00 [08:57:18]Write to MH i2c: E2 08 00 60 E3 80 13 01 00 00 00 00 00 C0 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0E 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0E 00 60 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 39 [08:57:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:57:18]wFMCommunicate OK [08:57:18]SAM_PROTO_GetShiftState done [08:57:18]FM_GetShiftState done [08:57:18]opened in 1729902770 [08:57:18]opened+sec_in_day 1729989170 [08:57:18]quantity*price = 80012 [08:57:18]sum+1 = 80013 [08:57:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 24 26.10.2024 08:57 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191661 ФПД: 106887643874218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191661&fm=106887643874218&tin=02508201610067®Number=0000000000091776&sum=80000 [08:57:20]StoreToDocumentArchive [08:57:20]shift 541 fd 191661 [08:57:20]save to /storage/0541/doc_00191661 [08:57:20]save last doc name /storage/0541/doc_00191661 to /storage/kkm_last_doc_name [08:57:20]save OK [08:57:20]Clear old archive folders... [08:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:20]tlvbuf is 01600DC0 [08:57:20]SAM_PROTO_ClearQueue [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 09 00 00 [08:57:20]Write to MH i2c: E2 08 00 6D E3 80 09 00 00 00 00 00 00 C2 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 6D E3 00 90 00 C4 [08:57:20]RAPDU: 90 00 [08:57:20]wFMCommunicate OK [08:57:20]SAM_PROTO_ClearQueue done [08:57:20]KKMCreateOFDPacket [08:57:20]OFDProtocolAddRootSTLVToBuf [08:57:20]FM_MakeSignedData [08:57:20]FM_MakeSignedData [08:57:20]SAM_PROTO_SignData [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 0D 01 02 [08:57:20]Write to MH i2c: E2 08 00 6E E3 80 0D 01 02 00 00 00 00 CA [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 6E E3 00 90 00 C5 [08:57:20]RAPDU: 90 00 [08:57:20]wFMCommunicate OK [08:57:20]wFMCommunicate request_size=255 [08:57:20]MH_SAM_APDU [08:57: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FC AE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EC 02 00 35 04 06 00 61 [08:57:20]Write to MH i2c: E2 02 01 6F E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FC AE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EC 02 00 35 04 06 00 61 00 00 AA [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 6F E3 00 90 00 C6 [08:57:20]RAPDU: 90 00 [08:57:20]wFMCommunicate OK [08:57:20]wFMCommunicate request_size=10 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 0D 02 02 05 36 B8 0B 43 AA [08:57:20]Write to MH i2c: E2 0D 00 70 E3 80 0D 02 02 05 00 36 B8 0B 43 AA 00 00 BD [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 03 00 70 E3 00 90 00 C7 [08:57:20]RAPDU: 90 00 [08:57:20]wFMCommunicate OK [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 0D 03 02 [08:57:20]Write to MH i2c: E2 08 00 71 E3 80 0D 03 02 00 00 00 00 CF [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 0B 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 0B 00 71 E3 00 EE 86 3E 8A 76 31 22 A6 90 00 7B [08:57:20]RAPDU: EE 86 3E 8A 76 31 22 A6 90 00 [08:57:20]wFMCommunicate OK [08:57:20]SAM_PROTO_SignData done [08:57:20]FM_MakeSignedData done [08:57:20]CreateOFDProtocolMessage [08:57:20]wFMCommunicate request_size=4 [08:57:20]MH_SAM_APDU [08:57:20]CAPDU: 80 11 00 00 [08:57:20]Write to MH i2c: E2 08 00 72 E3 80 11 00 00 00 00 00 00 CF [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:20]Read from MH i2c: E2 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 17 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: E2 17 00 72 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [08:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:57:20]wFMCommunicate OK [08:57:20]CreateOFDProtocolMessage done [08:57:20]OFDSenderStorePacket 191661 [08:57:20]StoreOFDPacket docnum=191661 [08:57:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 55 07 01 05 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FC AE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EC 02 00 35 04 06 00 61 36 B8 0B 43 AA EE 86 3E 8A 76 31 22 A6 [08:57:20]CheckFolder [08:57:20]dirname=/storage/ofd_packets [08:57:20]CheckFolder done [08:57:20]ProducePacketName [08:57:20]name=ofd_packets/00191661 [08:57:20]NVStorageSaveData ofd_packets/00191661 [08:57:20]File name is /storage/ofd_packets/00191661 [08:57:20]Write 301 bytes [08:57:20]NVStorageSaveData done [08:57:20]OFDSenderStorePacket done [08:57:20]KKMCreateOFDPacket done [08:57:20]NVStorageSaveData kkm_last_timestamp [08:57:20]File name is /storage/kkm_last_timestamp [08:57:20]Write 4 bytes [08:57:20]NVStorageSaveData done [08:57:20]ExternCall_PrintAddStr [08:57:20]wPrintStart [08:57:20]Write to MH i2c: 01 00 00 73 E3 56 [08:57:20]Write i2c OK [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 [08:57:20]MH_I2C_Read... [08:57:20]Read from MH i2c: 01 07 00 73 E3 00 00 00 00 00 FF 0F 6B [08:57:20]RasterBufferAndPrint [08:57:20]line Счет N : (1)30963 [08:57:20]line ИНН: 02508201610067 [08:57:20]line Контрольно-Кассовый Чек [08:57:20]line ПРОДАЖА [08:57:20]line ТРК (МРК, ГНК) : 21 [08:57:20]line Товар: 2710124130 [08:57:20]line Аи-92-К-5 [08:57:20]line 11.960 * 66.90 [08:57:20]line = 800.12 [08:57:20]line НДС 12% НСП 1% [08:57:20]line > о реализуемом товаре [08:57:20]line ОКРУГЛЕНИЕ: -0.12 [08:57:20]line ИТОГО: 800.00 [08:57:20]line Внесено: 800.00 [08:57:20]line СДАЧА: 0.00 [08:57:20]line НСП 1% : 7.08 [08:57:20]line НДС 12% : 84.97 [08:57:20]line Наличными: 800.00 [08:57:20]line Безнал.: 0.00 [08:57:20]line Место: АЗС № 170 "Партнер Нефть" [08:57:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:57:20]line СНО: Общий режим [08:57:20]line Чек 24 26.10.2024 08:57 [08:57:20]line Смена: 541 ФФД: 1.0 [08:57:20]line ЗНМ: 0300000110 [08:57:20]line РНМ: 0000000000091776 [08:57:20]line Версия ККМ: 001 [08:57:20]line ФМ: 0000000000871754 [08:57:20]line ФД: 191661 [08:57:20]line ФПД: 106887643874218 [08:57:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191661&fm=106887643874218&tin=02508201610067®Number=0000000000091776&sum=80000 [08:57:20]OFD Sender: Processing packet 191661 [packets to send 75, broken 74] [08:57:20]ProducePacketName [08:57:20]name=ofd_packets/00191661 [08:57:20]OFD Sender: To server: pG, [08:57:20]CommunicateWithHost lk.salyk.kg:30040 [08:57:20]ConnectInit lk.salyk.kg [08:57:20]written 0, free lines is 4095 [08:57:21]Connected sock=11 [08:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 55 07 01 05 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 FC AE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EC 02 00 35 04 06 00 61 36 B8 0B 43 AA EE 86 3E 8A 76 31 22 A6 [08:57:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 D2 47 00 8B 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD EC 02 00 F4 03 04 00 C8 53 1C 67 B6 04 01 00 00 7F A4 B8 E2 D3 DE E4 6F [08:57:21]CommunicateWithHost err = 0 [08:57:21]CheckOFDResponse [08:57:21]1017 (14) - 77093643461234 [08:57:21]1041 (16) - 0000000000871754 [08:57:21]1040 (4) - 191661 [08:57:21]1012 (4) - 26.10.2024 02:28 [08:57:21]1206 (1) - 0 [08:57:21]OFD Sender: Remove packet 191661 [08:57:21]ProducePacketName [08:57:21]name=ofd_packets/00191661 [08:57:21]NVStorageDeleteData [08:57:21]Write to MH i2c: 01 00 00 9E E3 81 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: 01 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: 01 07 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: 01 07 00 9E E3 00 00 00 00 00 C1 0C 55 [08:57:21]RasterBufferAndPrint [08:57:21]line [08:57:21]line [08:57:21]line [08:57:21]line [08:57:21]line [08:57:21]written 0, free lines is 3271 [08:57:21]MH_Cut [08:57:21]Write to MH i2c: D1 01 00 A5 E3 01 5A [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: D1 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: D1 01 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: D1 01 00 A5 E3 00 59 [08:57:21]Write to MH i2c: 01 00 00 A6 E3 89 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]OFD Sender: No OFD packet to send [08:57:22]*** Cut start [08:57:22]*** Partial cut [08:57:22]*** CUTSNS_PIN = 1 [08:57:22]*** CUTSNS_PIN = 0 [08:57:22]*** Brake cut motor [08:57:22]Read from MH i2c: 01 [08:57:22]MH_I2C_Read... [08:57:22]*** Stop cut motor [08:57:22]*** Cut end [08:57:22]Read from MH i2c: 01 07 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: 01 07 00 A6 E3 00 00 00 00 00 FF 0F 9E [08:57:22]process_action close_receipt done [08:57:22]requested_data is exist [08:57:22]produce_requested_data [08:57:22]requested_item fm.sn is exist - process it [08:57:22]wFMCommunicate request_size=4 [08:57:22]MH_SAM_APDU [08:57:22]CAPDU: 80 11 00 00 [08:57:22]Write to MH i2c: E2 08 00 A7 E3 80 11 00 00 00 00 00 00 04 [08:57:22]Write i2c OK [08:57:22]MH_I2C_Read... [08:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:22]Read from MH i2c: E2 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 17 00 [08:57:22]MH_I2C_Read... [08:57:22]Read from MH i2c: E2 17 00 A7 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [08:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:57:22]wFMCommunicate OK [08:57:22]requested_item fd.num is exist - process it [08:57:22]SAM_PROTO_GetFieldsCounters [08:57:22]wFMCommunicate request_size=4 [08:57:22]MH_SAM_APDU [08:57:22]CAPDU: 80 13 00 00 [08:57:22]Write to MH i2c: E2 08 00 A8 E3 80 13 00 00 00 00 00 00 07 [08:57:22]Write i2c OK [08:57:22]MH_I2C_Read... [08:57:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:23]Read from MH i2c: E2 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 62 00 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 62 00 A8 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [08:57:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:23]wFMCommunicate OK [08:57:23]SAM_PROTO_GetFieldsCounters done [08:57:23]requested_item shift.num is exist - process it [08:57:23]requested_item shift.opened is exist - process it [08:57:23]req_shift_opened [08:57:23]FM_GetShiftState [08:57:23]SAM_PROTO_GetShiftState [08:57:23]wFMCommunicate request_size=4 [08:57:23]MH_SAM_APDU [08:57:23]CAPDU: 80 13 01 00 [08:57:23]Write to MH i2c: E2 08 00 A9 E3 80 13 01 00 00 00 00 00 09 [08:57:23]Write i2c OK [08:57:23]MH_I2C_Read... [08:57:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:23]Read from MH i2c: E2 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 0E 00 [08:57:23]MH_I2C_Read... [08:57:23]Read from MH i2c: E2 0E 00 A9 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 82 [08:57:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:57:23]wFMCommunicate OK [08:57:23]SAM_PROTO_GetShiftState done [08:57:23]FM_GetShiftState done [08:57:23]req_shift_opened done [08:57:23]requested_item shift.open_date is exist - process it [08:57:23]req_shift_open_date [08:57:23]req_shift_open_date done [08:57:23]produce_requested_data done [08:57:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191661,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:57:23]process_action_free close_receipt [08:57:23]json_value_free [08:57:23]json_value_free done [08:57:23]process_json_proto returns [08:57:23]Send response to host [08:57:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191661,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:57:23]free response buf [08:57:23]execute_script done [08:57:23]execute_script returns [08:57:23]free content buf [08:57:23]Sock 10.Close socket [08:57:23]Sock 10.Thread stoped [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:03]accept exits with 8 [08:59:03]New connection [08:59:03]New thread 3066817892 created [08:59:03]Thread 3066961252 joined [08:59:03]Waiting for new connection... [08:59:03] Sock 8.Parse request [08:59:03]Sock 8.Check first char [08:59:03]Sock 8.First char is OK [08:59:03]request: POST /json_proto HTTP/1.0 [08:59:03]Method: POST [08:59:03]URL: /json_proto [08:59:03]Method is POST - this is cgi request [08:59:03]url: /json_proto [08:59:03]query_string will be loaded in cgi processing [08:59:03]execute_cgi json_proto POST (null) [08:59:03]execute_cgi path=json_proto method=POST [08:59:03]POST find Content-Length [08:59:03]Host: 172.17.63.131:8080 [08:59:03]Content-Length: 676 [08:59:03]Content-Type: application/json [08:59:03] [08:59:03]POST finish read [08:59:03]Found Content-Length = 676 [08:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:03]execute_script... [08:59: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)30964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:03]POST & json_proto [08:59:03]process_json_proto [08:59:03]json parsed OK: [08:59:03]protocol is kg_v1.0 [08:59:03]action value=close_receipt [08:59:03]process_action close_receipt [08:59:03]cmd_close_receipt [08:59:03]MH_GetDate [08:59:03]Write to MH i2c: F0 00 00 AA E3 7C [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: F0 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: F0 09 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: F0 09 00 AA E3 00 65 AF 1C 67 22 05 6E 64 15 [08:59:03]GetLastDocTimeStamp 1729933052 [08:59:03]current date 1729933157 [08:59:03]FM_GetShiftState [08:59:03]SAM_PROTO_GetShiftState [08:59:03]wFMCommunicate request_size=4 [08:59:03]MH_SAM_APDU [08:59:03]CAPDU: 80 13 01 00 [08:59:03]Write to MH i2c: E2 08 00 AB E3 80 13 01 00 00 00 00 00 0B [08:59:03]Write i2c OK [08:59:03]MH_I2C_Read... [08:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:03]Read from MH i2c: E2 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0E 00 [08:59:03]MH_I2C_Read... [08:59:03]Read from MH i2c: E2 0E 00 AB E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 84 [08:59:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:59:03]wFMCommunicate OK [08:59:03]SAM_PROTO_GetShiftState done [08:59:03]FM_GetShiftState done [08:59:03]opened in 1729902770 [08:59:03]opened+sec_in_day 1729989170 [08:59:03]quantity*price = 20003 [08:59:03]sum+1 = 20004 [08:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 25 26.10.2024 08:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191662 ФПД: 34197956228176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191662&fm=34197956228176&tin=02508201610067®Number=0000000000091776&sum=20000 [08:59:04]StoreToDocumentArchive [08:59:04]shift 541 fd 191662 [08:59:04]save to /storage/0541/doc_00191662 [08:59:04]save last doc name /storage/0541/doc_00191662 to /storage/kkm_last_doc_name [08:59:04]save OK [08:59:04]Clear old archive folders... [08:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:04]tlvbuf is 017F1580 [08:59:04]SAM_PROTO_ClearQueue [08:59:04]wFMCommunicate request_size=4 [08:59:04]MH_SAM_APDU [08:59:04]CAPDU: 80 09 00 00 [08:59:04]Write to MH i2c: E2 08 00 B8 E3 80 09 00 00 00 00 00 00 0D [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:04]Read from MH i2c: E2 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 B8 E3 00 90 00 0F [08:59:04]RAPDU: 90 00 [08:59:04]wFMCommunicate OK [08:59:04]SAM_PROTO_ClearQueue done [08:59:04]KKMCreateOFDPacket [08:59:04]OFDProtocolAddRootSTLVToBuf [08:59:04]FM_MakeSignedData [08:59:04]FM_MakeSignedData [08:59:04]SAM_PROTO_SignData [08:59:04]wFMCommunicate request_size=4 [08:59:04]MH_SAM_APDU [08:59:04]CAPDU: 80 0D 01 02 [08:59:04]Write to MH i2c: E2 08 00 B9 E3 80 0D 01 02 00 00 00 00 15 [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:04]Read from MH i2c: E2 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 B9 E3 00 90 00 10 [08:59:04]RAPDU: 90 00 [08:59:04]wFMCommunicate OK [08:59:04]wFMCommunicate request_size=255 [08:59:04]MH_SAM_APDU [08:59:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 65 AF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EC 02 00 35 04 06 00 1F [08:59:04]Write to MH i2c: E2 02 01 BA E3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 65 AF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EC 02 00 35 04 06 00 1F 00 00 F5 [08:59:04]Write i2c OK [08:59:04]MH_I2C_Read... [08:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:04]Read from MH i2c: E2 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 [08:59:04]MH_I2C_Read... [08:59:04]Read from MH i2c: E2 03 00 BA E3 00 90 00 11 [08:59:04]RAPDU: 90 00 [08:59:04]wFMCommunicate OK [08:59:04]wFMCommunicate request_size=10 [08:59:04]MH_SAM_APDU [08:59:04]CAPDU: 80 0D 02 02 05 1A 55 08 74 50 [08:59:04]Write to MH i2c: E2 0D 00 BB E3 80 0D 02 02 05 00 1A 55 08 74 50 00 00 5D [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:05]Read from MH i2c: E2 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 03 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 03 00 BB E3 00 90 00 12 [08:59:05]RAPDU: 90 00 [08:59:05]wFMCommunicate OK [08:59:05]wFMCommunicate request_size=4 [08:59:05]MH_SAM_APDU [08:59:05]CAPDU: 80 0D 03 02 [08:59:05]Write to MH i2c: E2 08 00 BC E3 80 0D 03 02 00 00 00 00 1A [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:05]Read from MH i2c: E2 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 0B 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 0B 00 BC E3 00 1C DC 76 BB 43 5D 69 B2 90 00 FF [08:59:05]RAPDU: 1C DC 76 BB 43 5D 69 B2 90 00 [08:59:05]wFMCommunicate OK [08:59:05]SAM_PROTO_SignData done [08:59:05]FM_MakeSignedData done [08:59:05]CreateOFDProtocolMessage [08:59:05]wFMCommunicate request_size=4 [08:59:05]MH_SAM_APDU [08:59:05]CAPDU: 80 11 00 00 [08:59:05]Write to MH i2c: E2 08 00 BD E3 80 11 00 00 00 00 00 00 1A [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:05]Read from MH i2c: E2 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 17 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: E2 17 00 BD E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [08:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:59:05]wFMCommunicate OK [08:59:05]CreateOFDProtocolMessage done [08:59:05]OFDSenderStorePacket 191662 [08:59:05]StoreOFDPacket docnum=191662 [08:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 90 07 01 A6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 65 AF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EC 02 00 35 04 06 00 1F 1A 55 08 74 50 1C DC 76 BB 43 5D 69 B2 [08:59:05]CheckFolder [08:59:05]dirname=/storage/ofd_packets [08:59:05]CheckFolder done [08:59:05]ProducePacketName [08:59:05]name=ofd_packets/00191662 [08:59:05]NVStorageSaveData ofd_packets/00191662 [08:59:05]File name is /storage/ofd_packets/00191662 [08:59:05]Write 301 bytes [08:59:05]NVStorageSaveData done [08:59:05]OFDSenderStorePacket done [08:59:05]KKMCreateOFDPacket done [08:59:05]NVStorageSaveData kkm_last_timestamp [08:59:05]File name is /storage/kkm_last_timestamp [08:59:05]Write 4 bytes [08:59:05]NVStorageSaveData done [08:59:05]ExternCall_PrintAddStr [08:59:05]wPrintStart [08:59:05]Write to MH i2c: 01 00 00 BE E3 A1 [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 BE E3 00 00 00 00 00 FF 0F B6 [08:59:05]RasterBufferAndPrint [08:59:05]line Счет N : (1)30964 [08:59:05]line ИНН: 02508201610067 [08:59:05]line Контрольно-Кассовый Чек [08:59:05]line ПРОДАЖА [08:59:05]line ТРК (МРК, ГНК) : 12 [08:59:05]line Товар: 2710124130 [08:59:05]line Аи-92-К-5 [08:59:05]line 2.990 * 66.90 [08:59:05]line = 200.03 [08:59:05]line НДС 12% НСП 1% [08:59:05]line > о реализуемом товаре [08:59:05]line ОКРУГЛЕНИЕ: -0.03 [08:59:05]line ИТОГО: 200.00 [08:59:05]line Внесено: 200.00 [08:59:05]line СДАЧА: 0.00 [08:59:05]line НСП 1% : 1.77 [08:59:05]line НДС 12% : 21.24 [08:59:05]line Наличными: 200.00 [08:59:05]line Безнал.: 0.00 [08:59:05]line Место: АЗС № 170 "Партнер Нефть" [08:59:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [08:59:05]line СНО: Общий режим [08:59:05]line Чек 25 26.10.2024 08:59 [08:59:05]line Смена: 541 ФФД: 1.0 [08:59:05]line ЗНМ: 0300000110 [08:59:05]line РНМ: 0000000000091776 [08:59:05]line Версия ККМ: 001 [08:59:05]line ФМ: 0000000000871754 [08:59:05]line ФД: 191662 [08:59:05]line ФПД: 34197956228176 [08:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T085917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191662&fm=34197956228176&tin=02508201610067®Number=0000000000091776&sum=20000 [08:59:05]OFD Sender: Processing packet 191662 [packets to send 75, broken 74] [08:59:05]ProducePacketName [08:59:05]name=ofd_packets/00191662 [08:59:05]OFD Sender: To server: pG, [08:59:05]CommunicateWithHost lk.salyk.kg:30040 [08:59:05]ConnectInit lk.salyk.kg [08:59:05]written 0, free lines is 4095 [08:59:05]Connected sock=10 [08:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 90 07 01 A6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 65 AF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EC 02 00 35 04 06 00 1F 1A 55 08 74 50 1C DC 76 BB 43 5D 69 B2 [08:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B6 CC 47 00 97 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE EC 02 00 F4 03 04 00 30 54 1C 67 B6 04 01 00 00 98 44 F8 89 09 E6 B9 52 [08:59:05]CommunicateWithHost err = 0 [08:59:05]CheckOFDResponse [08:59:05]1017 (14) - 77093643461234 [08:59:05]1041 (16) - 0000000000871754 [08:59:05]1040 (4) - 191662 [08:59:05]1012 (4) - 26.10.2024 02:30 [08:59:05]1206 (1) - 0 [08:59:05]OFD Sender: Remove packet 191662 [08:59:05]ProducePacketName [08:59:05]name=ofd_packets/00191662 [08:59:05]NVStorageDeleteData [08:59:05]Write to MH i2c: 01 00 00 E9 E3 CC [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: 01 07 00 E9 E3 00 00 00 00 00 C3 0C A2 [08:59:05]RasterBufferAndPrint [08:59:05]line [08:59:05]line [08:59:05]line [08:59:05]line [08:59:05]line [08:59:05]written 0, free lines is 3276 [08:59:05]MH_Cut [08:59:05]Write to MH i2c: D1 01 00 F0 E3 01 A5 [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: D1 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: D1 01 00 [08:59:05]MH_I2C_Read... [08:59:05]Read from MH i2c: D1 01 00 F0 E3 00 A4 [08:59:05]Write to MH i2c: 01 00 00 F1 E3 D4 [08:59:05]Write i2c OK [08:59:05]MH_I2C_Read... [08:59:06]OFD Sender: No OFD packet to send [08:59:06]*** Cut start [08:59:06]*** Partial cut [08:59:06]*** CUTSNS_PIN = 1 [08:59:06]*** CUTSNS_PIN = 0 [08:59:07]*** Brake cut motor [08:59:07]Read from MH i2c: 01 [08:59:07]MH_I2C_Read... [08:59:07]*** Stop cut motor [08:59:07]*** Cut end [08:59:07]Read from MH i2c: 01 07 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: 01 07 00 F1 E3 00 00 00 00 00 FF 0F E9 [08:59:07]process_action close_receipt done [08:59:07]requested_data is exist [08:59:07]produce_requested_data [08:59:07]requested_item fm.sn is exist - process it [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 11 00 00 [08:59:07]Write to MH i2c: E2 08 00 F2 E3 80 11 00 00 00 00 00 00 4F [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 17 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 17 00 F2 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A2 [08:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [08:59:07]wFMCommunicate OK [08:59:07]requested_item fd.num is exist - process it [08:59:07]SAM_PROTO_GetFieldsCounters [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 00 00 [08:59:07]Write to MH i2c: E2 08 00 F3 E3 80 13 00 00 00 00 00 00 52 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 62 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 62 00 F3 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [08:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetFieldsCounters done [08:59:07]requested_item shift.num is exist - process it [08:59:07]requested_item shift.opened is exist - process it [08:59:07]req_shift_opened [08:59:07]FM_GetShiftState [08:59:07]SAM_PROTO_GetShiftState [08:59:07]wFMCommunicate request_size=4 [08:59:07]MH_SAM_APDU [08:59:07]CAPDU: 80 13 01 00 [08:59:07]Write to MH i2c: E2 08 00 F4 E3 80 13 01 00 00 00 00 00 54 [08:59:07]Write i2c OK [08:59:07]MH_I2C_Read... [08:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:07]Read from MH i2c: E2 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 [08:59:07]MH_I2C_Read... [08:59:07]Read from MH i2c: E2 0E 00 F4 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CD [08:59:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [08:59:07]wFMCommunicate OK [08:59:07]SAM_PROTO_GetShiftState done [08:59:07]FM_GetShiftState done [08:59:07]req_shift_opened done [08:59:07]requested_item shift.open_date is exist - process it [08:59:07]req_shift_open_date [08:59:07]req_shift_open_date done [08:59:07]produce_requested_data done [08:59:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191662,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [08:59:07]process_action_free close_receipt [08:59:07]json_value_free [08:59:07]json_value_free done [08:59:07]process_json_proto returns [08:59:07]Send response to host [08:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191662,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [08:59:07]free response buf [08:59:07]execute_script done [08:59:07]execute_script returns [08:59:07]free content buf [08:59:07]Sock 8.Close socket [08:59:07]Sock 8.Thread stoped [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:42]accept exits with 9 [09:01:42]New connection [09:01:42]New thread 3066961252 created [09:01:42]Thread 3066817892 joined [09:01:42]Waiting for new connection... [09:01:42] Sock 9.Parse request [09:01:42]Sock 9.Check first char [09:01:42]Sock 9.First char is OK [09:01:42]request: POST /json_proto HTTP/1.0 [09:01:42]Method: POST [09:01:42]URL: /json_proto [09:01:42]Method is POST - this is cgi request [09:01:42]url: /json_proto [09:01:42]query_string will be loaded in cgi processing [09:01:42]execute_cgi json_proto POST (null) [09:01:42]execute_cgi path=json_proto method=POST [09:01:42]POST find Content-Length [09:01:42]Host: 172.17.63.131:8080 [09:01:42]Content-Length: 215 [09:01:42]Content-Type: application/json [09:01:42] [09:01:42]POST finish read [09:01:42]Found Content-Length = 215 [09:01:42]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" ] } } [09:01:42]execute_script... [09:01:42]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" ] } } [09:01:42]POST & json_proto [09:01:42]process_json_proto [09:01:42]json parsed OK: [09:01:42]protocol is kg_v1.0 [09:01:42]action value=get_value [09:01:42]process_action get_value [09:01:42]cmd_get_value [09:01:42]process_action get_value done [09:01:42]requested_data is exist [09:01:42]produce_requested_data [09:01:42]requested_item kkm.sn is exist - process it [09:01:42]requested_item kkm.ver is exist - process it [09:01:42]requested_item fm.sn is exist - process it [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 11 00 00 [09:01:42]Write to MH i2c: E2 08 00 F5 E3 80 11 00 00 00 00 00 00 52 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 17 00 F5 E3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [09:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:01:42]wFMCommunicate OK [09:01:42]requested_item fd.num is exist - process it [09:01:42]SAM_PROTO_GetFieldsCounters [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 00 00 [09:01:42]Write to MH i2c: E2 08 00 F6 E3 80 13 00 00 00 00 00 00 55 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 62 00 F6 E3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetFieldsCounters done [09:01:42]requested_item shift.num is exist - process it [09:01:42]requested_item shift.opened is exist - process it [09:01:42]req_shift_opened [09:01:42]FM_GetShiftState [09:01:42]SAM_PROTO_GetShiftState [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 01 00 [09:01:42]Write to MH i2c: E2 08 00 F7 E3 80 13 01 00 00 00 00 00 57 [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:42]Read from MH i2c: E2 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 [09:01:42]MH_I2C_Read... [09:01:42]Read from MH i2c: E2 0E 00 F7 E3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D0 [09:01:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:01:42]wFMCommunicate OK [09:01:42]SAM_PROTO_GetShiftState done [09:01:42]FM_GetShiftState done [09:01:42]req_shift_opened done [09:01:42]requested_item shift.open_date is exist - process it [09:01:42]req_shift_open_date [09:01:42]req_shift_open_date done [09:01:42]produce_requested_data done [09:01:42]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191662,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:01:42]process_action_free get_value [09:01:42]json_value_free [09:01:42]json_value_free done [09:01:42]process_json_proto returns [09:01:42]Send response to host [09:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191662,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:01:42]free response buf [09:01:42]execute_script done [09:01:42]execute_script returns [09:01:42]free content buf [09:01:42]Sock 9.Close socket [09:01:42]Sock 9.Thread stoped [09:01:42]accept exits with 8 [09:01:42]New connection [09:01:42]New thread 3066817892 created [09:01:42]Thread 3066961252 joined [09:01:42]Waiting for new connection... [09:01:42] Sock 8.Parse request [09:01:42]Sock 8.Check first char [09:01:42]Sock 8.First char is OK [09:01:42]request: POST /json_proto HTTP/1.0 [09:01:42]Method: POST [09:01:42]URL: /json_proto [09:01:42]Method is POST - this is cgi request [09:01:42]url: /json_proto [09:01:42]query_string will be loaded in cgi processing [09:01:42]execute_cgi json_proto POST (null) [09:01:42]execute_cgi path=json_proto method=POST [09:01:42]POST find Content-Length [09:01:42]Host: 172.17.63.131:8080 [09:01:42]Content-Length: 331 [09:01:42]Content-Type: application/json [09:01:42] [09:01:42]POST finish read [09:01:42]Found Content-Length = 331 [09:01:42]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" ] } } [09:01:42]execute_script... [09:01:42]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" ] } } [09:01:42]POST & json_proto [09:01:42]process_json_proto [09:01:42]json parsed OK: [09:01:42]protocol is kg_v1.0 [09:01:42]action value=get_value [09:01:42]process_action get_value [09:01:42]cmd_get_value [09:01:42]process_action get_value done [09:01:42]requested_data is exist [09:01:42]produce_requested_data [09:01:42]requested_item fm.sale.total is exist - process it [09:01:42]SAM_PROTO_GetFMData [09:01:42]wFMCommunicate request_size=4 [09:01:42]MH_SAM_APDU [09:01:42]CAPDU: 80 13 03 00 [09:01:42]Write to MH i2c: E2 08 00 F8 E3 80 13 03 00 00 00 00 00 5A [09:01:42]Write i2c OK [09:01:42]MH_I2C_Read... [09:01:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:01:43]Read from MH i2c: E2 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 F8 E3 00 C1 04 85 04 BD 04 6E 04 04 00 74 E8 02 00 69 04 A3 00 6F 04 04 00 6A E8 02 00 B1 04 05 00 3F E2 67 B3 03 70 04 05 00 EC 21 5E 86 03 72 04 04 00 53 C0 09 2D 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 58 D1 A5 64 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 47 FA 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 45 [09:01:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 74 E8 02 00 69 04 A3 00 6F 04 04 00 6A E8 02 00 B1 04 05 00 3F E2 67 B3 03 70 04 05 00 EC 21 5E 86 03 72 04 04 00 53 C0 09 2D 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 58 D1 A5 64 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 47 FA 62 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [09:01:43]wFMCommunicate OK [09:01:43]wFMCommunicate request_size=4 [09:01:43]MH_SAM_APDU [09:01:43]CAPDU: 80 17 00 00 [09:01:43]Write to MH i2c: E2 08 00 F9 E3 80 17 00 00 00 00 00 00 5C [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:43]Read from MH i2c: E2 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 F9 E3 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [09:01:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:01:43]wFMCommunicate OK [09:01:43]wFMCommunicate request_size=4 [09:01:43]MH_SAM_APDU [09:01:43]CAPDU: 80 17 00 00 [09:01:43]Write to MH i2c: E2 08 00 FA E3 80 17 00 00 00 00 00 00 5D [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:43]Read from MH i2c: E2 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 FD 00 FA E3 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [09:01:43]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:01:43]wFMCommunicate OK [09:01:43]wFMCommunicate request_size=4 [09:01:43]MH_SAM_APDU [09:01:43]CAPDU: 80 17 00 00 [09:01:43]Write to MH i2c: E2 08 00 FB E3 80 17 00 00 00 00 00 00 5E [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 FD 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 FD 00 FB E3 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E3 [09:01:44]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 17 00 00 [09:01:44]Write to MH i2c: E2 08 00 FC E3 80 17 00 00 00 00 00 00 5F [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 DE 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 DE 00 FC E3 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3E [09:01:44]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:44]wFMCommunicate OK [09:01:44]SAM_PROTO_GetFMData done [09:01:44]requested_item fm.sale_refund.total is exist - process it [09:01:44]requested_item fm.buy.total is exist - process it [09:01:44]requested_item shift.sale.total is exist - process it [09:01:44]SAM_PROTO_GetShiftData [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 13 02 00 [09:01:44]Write to MH i2c: E2 08 00 FD E3 80 13 02 00 00 00 00 00 5E [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 FD 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 FD 00 FD E3 00 AE 04 AA 04 AA 04 6E 04 04 00 19 00 00 00 69 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 71 D3 1F 70 04 03 00 C0 13 1D 72 04 03 00 B1 BF 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7A 61 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 5D [09:01:44]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 19 00 00 00 69 04 9B 00 6F 04 04 00 19 00 00 00 B1 04 03 00 71 D3 1F 70 04 03 00 C0 13 1D 72 04 03 00 B1 BF 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 7A 61 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 21 48 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 17 00 00 [09:01:44]Write to MH i2c: E2 08 00 FE E3 80 17 00 00 00 00 00 00 61 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 FE E3 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 83 [09:01:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [09:01:45]wFMCommunicate OK [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 17 00 00 [09:01:45]Write to MH i2c: E2 08 00 FF E3 80 17 00 00 00 00 00 00 62 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 FF E3 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 19 [09:01:45]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [09:01:45]wFMCommunicate OK [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 17 00 00 [09:01:45]Write to MH i2c: E2 08 00 00 E4 80 17 00 00 00 00 00 00 64 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:01:45]Read from MH i2c: E2 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: E2 FD 00 00 E4 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 D6 [09:01:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [09:01:45]wFMCommunicate OK [09:01:45]wFMCommunicate request_size=4 [09:01:45]MH_SAM_APDU [09:01:45]CAPDU: 80 17 00 00 [09:01:45]Write to MH i2c: E2 08 00 01 E4 80 17 00 00 00 00 00 00 65 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:01:46]Read from MH i2c: E2 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: E2 CB 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: E2 CB 00 01 E4 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [09:01:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:01:46]wFMCommunicate OK [09:01:46]SAM_PROTO_GetShiftData done [09:01:46]requested_item shift.sale.total_cash is exist - process it [09:01:46]requested_item shift.sale_refund.total is exist - process it [09:01:46]requested_item shift.sale_refund.total_cash is exist - process it [09:01:46]requested_item shift.buy.total is exist - process it [09:01:46]requested_item shift.buy.total_cash is exist - process it [09:01:46]produce_requested_data done [09:01:46]produce_requested_data return {"fm.sale.total":158948316.79,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":20857.45,"shift.sale.total_cash":19056.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} [09:01:46]process_action_free get_value [09:01:46]json_value_free [09:01:46]json_value_free done [09:01:46]process_json_proto returns [09:01:46]Send response to host [09:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158948316.79,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":20857.45,"shift.sale.total_cash":19056.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}}} [09:01:46]free response buf [09:01:46]execute_script done [09:01:46]execute_script returns [09:01:46]free content buf [09:01:46]Sock 8.Close socket [09:01:46]Sock 8.Thread stoped [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:52]accept exits with 9 [09:01:52]New connection [09:01:52]New thread 3066961252 created [09:01:52]Thread 3066817892 joined [09:01:52]Waiting for new connection... [09:01:52] Sock 9.Parse request [09:01:52]Sock 9.Check first char [09:01:52]Sock 9.First char is OK [09:01:52]request: POST /json_proto HTTP/1.0 [09:01:52]Method: POST [09:01:52]URL: /json_proto [09:01:52]Method is POST - this is cgi request [09:01:52]url: /json_proto [09:01:52]query_string will be loaded in cgi processing [09:01:52]execute_cgi json_proto POST (null) [09:01:52]execute_cgi path=json_proto method=POST [09:01:52]POST find Content-Length [09:01:52]Host: 172.17.63.131:8080 [09:01:52]Content-Length: 676 [09:01:52]Content-Type: application/json [09:01:52] [09:01:52]POST finish read [09:01:52]Found Content-Length = 676 [09:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:52]execute_script... [09:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:52]POST & json_proto [09:01:52]process_json_proto [09:01:52]json parsed OK: [09:01:52]protocol is kg_v1.0 [09:01:52]action value=close_receipt [09:01:52]process_action close_receipt [09:01:52]cmd_close_receipt [09:01:52]MH_GetDate [09:01:52]Write to MH i2c: F0 00 00 02 E4 D5 [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: F0 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: F0 09 00 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: F0 09 00 02 E4 00 0E B0 1C 67 22 05 6E 64 18 [09:01:52]GetLastDocTimeStamp 1729933157 [09:01:52]current date 1729933326 [09:01:52]FM_GetShiftState [09:01:52]SAM_PROTO_GetShiftState [09:01:52]wFMCommunicate request_size=4 [09:01:52]MH_SAM_APDU [09:01:52]CAPDU: 80 13 01 00 [09:01:52]Write to MH i2c: E2 08 00 03 E4 80 13 01 00 00 00 00 00 64 [09:01:52]Write i2c OK [09:01:52]MH_I2C_Read... [09:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:52]Read from MH i2c: E2 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: E2 0E 00 [09:01:52]MH_I2C_Read... [09:01:52]Read from MH i2c: E2 0E 00 03 E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DD [09:01:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:01:52]wFMCommunicate OK [09:01:52]SAM_PROTO_GetShiftState done [09:01:52]FM_GetShiftState done [09:01:52]opened in 1729902770 [09:01:52]opened+sec_in_day 1729989170 [09:01:52]quantity*price = 60009 [09:01:52]sum+1 = 60010 [09:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 26 26.10.2024 09:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191663 ФПД: 119935721428627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191663&fm=119935721428627&tin=02508201610067®Number=0000000000091776&sum=60000 [09:01:53]StoreToDocumentArchive [09:01:53]shift 541 fd 191663 [09:01:53]save to /storage/0541/doc_00191663 [09:01:53]save last doc name /storage/0541/doc_00191663 to /storage/kkm_last_doc_name [09:01:53]save OK [09:01:53]Clear old archive folders... [09:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:53]tlvbuf is 01955980 [09:01:53]SAM_PROTO_ClearQueue [09:01:53]wFMCommunicate request_size=4 [09:01:53]MH_SAM_APDU [09:01:53]CAPDU: 80 09 00 00 [09:01:53]Write to MH i2c: E2 08 00 10 E4 80 09 00 00 00 00 00 00 66 [09:01:53]Write i2c OK [09:01:53]MH_I2C_Read... [09:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:53]Read from MH i2c: E2 [09:01:53]MH_I2C_Read... [09:01:53]Read from MH i2c: E2 03 00 [09:01:53]MH_I2C_Read... [09:01:53]Read from MH i2c: E2 03 00 10 E4 00 90 00 68 [09:01:53]RAPDU: 90 00 [09:01:53]wFMCommunicate OK [09:01:53]SAM_PROTO_ClearQueue done [09:01:53]KKMCreateOFDPacket [09:01:53]OFDProtocolAddRootSTLVToBuf [09:01:53]FM_MakeSignedData [09:01:53]FM_MakeSignedData [09:01:53]SAM_PROTO_SignData [09:01:53]wFMCommunicate request_size=4 [09:01:53]MH_SAM_APDU [09:01:53]CAPDU: 80 0D 01 02 [09:01:53]Write to MH i2c: E2 08 00 11 E4 80 0D 01 02 00 00 00 00 6E [09:01:53]Write i2c OK [09:01:53]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 11 E4 00 90 00 69 [09:01:54]RAPDU: 90 00 [09:01:54]wFMCommunicate OK [09:01:54]wFMCommunicate request_size=255 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0E B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EC 02 00 35 04 06 00 6D [09:01:54]Write to MH i2c: E2 02 01 12 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0E B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EC 02 00 35 04 06 00 6D 00 00 63 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 12 E4 00 90 00 6A [09:01:54]RAPDU: 90 00 [09:01:54]wFMCommunicate OK [09:01:54]wFMCommunicate request_size=10 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 0D 02 02 05 14 B6 12 56 93 [09:01:54]Write to MH i2c: E2 0D 00 13 E4 80 0D 02 02 05 00 14 B6 12 56 93 00 00 40 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 03 00 13 E4 00 90 00 6B [09:01:54]RAPDU: 90 00 [09:01:54]wFMCommunicate OK [09:01:54]wFMCommunicate request_size=4 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 0D 03 02 [09:01:54]Write to MH i2c: E2 08 00 14 E4 80 0D 03 02 00 00 00 00 73 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0B 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 0B 00 14 E4 00 57 43 EF 9E 9E E9 EE 01 90 00 11 [09:01:54]RAPDU: 57 43 EF 9E 9E E9 EE 01 90 00 [09:01:54]wFMCommunicate OK [09:01:54]SAM_PROTO_SignData done [09:01:54]FM_MakeSignedData done [09:01:54]CreateOFDProtocolMessage [09:01:54]wFMCommunicate request_size=4 [09:01:54]MH_SAM_APDU [09:01:54]CAPDU: 80 11 00 00 [09:01:54]Write to MH i2c: E2 08 00 15 E4 80 11 00 00 00 00 00 00 73 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:54]Read from MH i2c: E2 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 17 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: E2 17 00 15 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [09:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:01:54]wFMCommunicate OK [09:01:54]CreateOFDProtocolMessage done [09:01:54]OFDSenderStorePacket 191663 [09:01:54]StoreOFDPacket docnum=191663 [09:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 F0 07 01 57 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0E B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EC 02 00 35 04 06 00 6D 14 B6 12 56 93 57 43 EF 9E 9E E9 EE 01 [09:01:54]CheckFolder [09:01:54]dirname=/storage/ofd_packets [09:01:54]CheckFolder done [09:01:54]ProducePacketName [09:01:54]name=ofd_packets/00191663 [09:01:54]NVStorageSaveData ofd_packets/00191663 [09:01:54]File name is /storage/ofd_packets/00191663 [09:01:54]Write 301 bytes [09:01:54]NVStorageSaveData done [09:01:54]OFDSenderStorePacket done [09:01:54]KKMCreateOFDPacket done [09:01:54]NVStorageSaveData kkm_last_timestamp [09:01:54]File name is /storage/kkm_last_timestamp [09:01:54]Write 4 bytes [09:01:54]NVStorageSaveData done [09:01:54]ExternCall_PrintAddStr [09:01:54]wPrintStart [09:01:54]Write to MH i2c: 01 00 00 16 E4 FA [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 07 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 07 00 16 E4 00 00 00 00 00 FF 0F 0F [09:01:54]RasterBufferAndPrint [09:01:54]line Счет N : (1)30965 [09:01:54]line ИНН: 02508201610067 [09:01:54]line Контрольно-Кассовый Чек [09:01:54]line ПРОДАЖА [09:01:54]line ТРК (МРК, ГНК) : 12 [09:01:54]line Товар: 2710124130 [09:01:54]line Аи-92-К-5 [09:01:54]line 8.970 * 66.90 [09:01:54]line = 600.09 [09:01:54]line НДС 12% НСП 1% [09:01:54]line > о реализуемом товаре [09:01:54]line ОКРУГЛЕНИЕ: -0.09 [09:01:54]line ИТОГО: 600.00 [09:01:54]line Внесено: 600.00 [09:01:54]line СДАЧА: 0.00 [09:01:54]line НСП 1% : 5.31 [09:01:54]line НДС 12% : 63.73 [09:01:54]line Наличными: 600.00 [09:01:54]line Безнал.: 0.00 [09:01:54]line Место: АЗС № 170 "Партнер Нефть" [09:01:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:01:54]line СНО: Общий режим [09:01:54]line Чек 26 26.10.2024 09:02 [09:01:54]line Смена: 541 ФФД: 1.0 [09:01:54]line ЗНМ: 0300000110 [09:01:54]line РНМ: 0000000000091776 [09:01:54]line Версия ККМ: 001 [09:01:54]line ФМ: 0000000000871754 [09:01:54]line ФД: 191663 [09:01:54]line ФПД: 119935721428627 [09:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191663&fm=119935721428627&tin=02508201610067®Number=0000000000091776&sum=60000 [09:01:54]written 0, free lines is 4095 [09:01:54]OFD Sender: Processing packet 191663 [packets to send 75, broken 74] [09:01:54]ProducePacketName [09:01:54]name=ofd_packets/00191663 [09:01:54]OFD Sender: To server: pG, [09:01:54]CommunicateWithHost lk.salyk.kg:30040 [09:01:54]ConnectInit lk.salyk.kg [09:01:54]Connected sock=10 [09:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 F0 07 01 57 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 0E B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EC 02 00 35 04 06 00 6D 14 B6 12 56 93 57 43 EF 9E 9E E9 EE 01 [09:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D 5D 47 00 BC 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF EC 02 00 F4 03 04 00 D9 54 1C 67 B6 04 01 00 00 CD CA F4 CB 2D 4E AA 72 [09:01:54]CommunicateWithHost err = 0 [09:01:54]CheckOFDResponse [09:01:54]1017 (14) - 77093643461234 [09:01:54]1041 (16) - 0000000000871754 [09:01:54]1040 (4) - 191663 [09:01:54]1012 (4) - 26.10.2024 02:32 [09:01:54]1206 (1) - 0 [09:01:54]OFD Sender: Remove packet 191663 [09:01:54]ProducePacketName [09:01:54]name=ofd_packets/00191663 [09:01:54]NVStorageDeleteData [09:01:54]Write to MH i2c: 01 00 00 41 E4 25 [09:01:54]Write i2c OK [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 07 00 [09:01:54]MH_I2C_Read... [09:01:54]Read from MH i2c: 01 07 00 41 E4 00 00 00 00 00 BB 0C F3 [09:01:55]RasterBufferAndPrint [09:01:55]line [09:01:55]line [09:01:55]line [09:01:55]line [09:01:55]line [09:01:55]written 0, free lines is 3272 [09:01:55]MH_Cut [09:01:55]Write to MH i2c: D1 01 00 48 E4 01 FE [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: D1 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: D1 01 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: D1 01 00 48 E4 00 FD [09:01:55]Write to MH i2c: 01 00 00 49 E4 2D [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]OFD Sender: No OFD packet to send [09:01:55]*** Cut start [09:01:55]*** Partial cut [09:01:55]*** CUTSNS_PIN = 1 [09:01:55]*** CUTSNS_PIN = 0 [09:01:56]*** Brake cut motor [09:01:56]*** Stop cut motor [09:01:56]*** Cut end [09:01:56]Read from MH i2c: 01 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: 01 07 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: 01 07 00 49 E4 00 00 00 00 00 FF 0F 42 [09:01:56]process_action close_receipt done [09:01:56]requested_data is exist [09:01:56]produce_requested_data [09:01:56]requested_item fm.sn is exist - process it [09:01:56]wFMCommunicate request_size=4 [09:01:56]MH_SAM_APDU [09:01:56]CAPDU: 80 11 00 00 [09:01:56]Write to MH i2c: E2 08 00 4A E4 80 11 00 00 00 00 00 00 A8 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:56]Read from MH i2c: E2 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 17 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 17 00 4A E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [09:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:01:56]wFMCommunicate OK [09:01:56]requested_item fd.num is exist - process it [09:01:56]SAM_PROTO_GetFieldsCounters [09:01:56]wFMCommunicate request_size=4 [09:01:56]MH_SAM_APDU [09:01:56]CAPDU: 80 13 00 00 [09:01:56]Write to MH i2c: E2 08 00 4B E4 80 13 00 00 00 00 00 00 AB [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:56]Read from MH i2c: E2 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 62 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 62 00 4B E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [09:01:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:56]wFMCommunicate OK [09:01:56]SAM_PROTO_GetFieldsCounters done [09:01:56]requested_item shift.num is exist - process it [09:01:56]requested_item shift.opened is exist - process it [09:01:56]req_shift_opened [09:01:56]FM_GetShiftState [09:01:56]SAM_PROTO_GetShiftState [09:01:56]wFMCommunicate request_size=4 [09:01:56]MH_SAM_APDU [09:01:56]CAPDU: 80 13 01 00 [09:01:56]Write to MH i2c: E2 08 00 4C E4 80 13 01 00 00 00 00 00 AD [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:56]Read from MH i2c: E2 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 0E 00 [09:01:56]MH_I2C_Read... [09:01:56]Read from MH i2c: E2 0E 00 4C E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [09:01:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:01:56]wFMCommunicate OK [09:01:56]SAM_PROTO_GetShiftState done [09:01:56]FM_GetShiftState done [09:01:56]req_shift_opened done [09:01:56]requested_item shift.open_date is exist - process it [09:01:56]req_shift_open_date [09:01:56]req_shift_open_date done [09:01:56]produce_requested_data done [09:01:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191663,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:01:56]process_action_free close_receipt [09:01:56]json_value_free [09:01:56]json_value_free done [09:01:56]process_json_proto returns [09:01:56]Send response to host [09:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191663,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:01:56]free response buf [09:01:56]execute_script done [09:01:56]execute_script returns [09:01:56]free content buf [09:01:56]Sock 9.Close socket [09:01:56]Sock 9.Thread stoped [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:09]accept exits with 8 [09:03:09]New connection [09:03:09]New thread 3066817892 created [09:03:09]Thread 3066961252 joined [09:03:09]Waiting for new connection... [09:03:09] Sock 8.Parse request [09:03:09]Sock 8.Check first char [09:03:09]Sock 8.First char is OK [09:03:09]request: POST /json_proto HTTP/1.0 [09:03:09]Method: POST [09:03:09]URL: /json_proto [09:03:09]Method is POST - this is cgi request [09:03:09]url: /json_proto [09:03:09]query_string will be loaded in cgi processing [09:03:09]execute_cgi json_proto POST (null) [09:03:09]execute_cgi path=json_proto method=POST [09:03:09]POST find Content-Length [09:03:09]Host: 172.17.63.131:8080 [09:03:09]Content-Length: 676 [09:03:09]Content-Type: application/json [09:03:09] [09:03:09]POST finish read [09:03:09]Found Content-Length = 676 [09:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:09]execute_script... [09: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)30966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:09]POST & json_proto [09:03:09]process_json_proto [09:03:09]json parsed OK: [09:03:09]protocol is kg_v1.0 [09:03:09]action value=close_receipt [09:03:09]process_action close_receipt [09:03:09]cmd_close_receipt [09:03:09]MH_GetDate [09:03:09]Write to MH i2c: F0 00 00 4D E4 20 [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: F0 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: F0 09 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: F0 09 00 4D E4 00 5B B0 1C 67 22 05 6E 64 B0 [09:03:09]GetLastDocTimeStamp 1729933326 [09:03:09]current date 1729933403 [09:03:09]FM_GetShiftState [09:03:09]SAM_PROTO_GetShiftState [09:03:09]wFMCommunicate request_size=4 [09:03:09]MH_SAM_APDU [09:03:09]CAPDU: 80 13 01 00 [09:03:09]Write to MH i2c: E2 08 00 4E E4 80 13 01 00 00 00 00 00 AF [09:03:09]Write i2c OK [09:03:09]MH_I2C_Read... [09:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:09]Read from MH i2c: E2 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 0E 00 [09:03:09]MH_I2C_Read... [09:03:09]Read from MH i2c: E2 0E 00 4E E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 28 [09:03:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:03:09]wFMCommunicate OK [09:03:09]SAM_PROTO_GetShiftState done [09:03:09]FM_GetShiftState done [09:03:09]opened in 1729902770 [09:03:09]opened+sec_in_day 1729989170 [09:03:09]quantity*price = 50041 [09:03:09]sum+1 = 50042 [09:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 27 26.10.2024 09:03 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191664 ФПД: 9028372031272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191664&fm=9028372031272&tin=02508201610067®Number=0000000000091776&sum=50000 [09:03:10]StoreToDocumentArchive [09:03:10]shift 541 fd 191664 [09:03:10]save to /storage/0541/doc_00191664 [09:03:10]save last doc name /storage/0541/doc_00191664 to /storage/kkm_last_doc_name [09:03:10]save OK [09:03:10]Clear old archive folders... [09:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:03:10]tlvbuf is 01AA4E70 [09:03:10]SAM_PROTO_ClearQueue [09:03:10]wFMCommunicate request_size=4 [09:03:10]MH_SAM_APDU [09:03:10]CAPDU: 80 09 00 00 [09:03:10]Write to MH i2c: E2 08 00 5B E4 80 09 00 00 00 00 00 00 B1 [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:10]Read from MH i2c: E2 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: E2 03 00 [09:03:10]MH_I2C_Read... [09:03:10]Read from MH i2c: E2 03 00 5B E4 00 90 00 B3 [09:03:10]RAPDU: 90 00 [09:03:10]wFMCommunicate OK [09:03:10]SAM_PROTO_ClearQueue done [09:03:10]KKMCreateOFDPacket [09:03:10]OFDProtocolAddRootSTLVToBuf [09:03:10]FM_MakeSignedData [09:03:10]FM_MakeSignedData [09:03:10]SAM_PROTO_SignData [09:03:10]wFMCommunicate request_size=4 [09:03:10]MH_SAM_APDU [09:03:10]CAPDU: 80 0D 01 02 [09:03:10]Write to MH i2c: E2 08 00 5C E4 80 0D 01 02 00 00 00 00 B9 [09:03:10]Write i2c OK [09:03:10]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 5C E4 00 90 00 B4 [09:03:11]RAPDU: 90 00 [09:03:11]wFMCommunicate OK [09:03:11]wFMCommunicate request_size=255 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 5B B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EC 02 00 35 04 06 00 08 [09:03:11]Write to MH i2c: E2 02 01 5D E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5B B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EC 02 00 35 04 06 00 08 00 00 BB [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 5D E4 00 90 00 B5 [09:03:11]RAPDU: 90 00 [09:03:11]wFMCommunicate OK [09:03:11]wFMCommunicate request_size=10 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 0D 02 02 05 36 14 E8 67 28 [09:03:11]Write to MH i2c: E2 0D 00 5E E4 80 0D 02 02 05 00 36 14 E8 67 28 00 00 87 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 03 00 5E E4 00 90 00 B6 [09:03:11]RAPDU: 90 00 [09:03:11]wFMCommunicate OK [09:03:11]wFMCommunicate request_size=4 [09:03:11]MH_SAM_APDU [09:03:11]CAPDU: 80 0D 03 02 [09:03:11]Write to MH i2c: E2 08 00 5F E4 80 0D 03 02 00 00 00 00 BE [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:11]Read from MH i2c: E2 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 0B 00 [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: E2 0B 00 5F E4 00 10 53 33 C2 6D FA E6 28 90 00 8C [09:03:11]RAPDU: 10 53 33 C2 6D FA E6 28 90 00 [09:03:11]wFMCommunicate OK [09:03:11]SAM_PROTO_SignData done [09:03:11]FM_MakeSignedData done [09:03:11]CreateOFDProtocolMessage [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 60 E4 80 11 00 00 00 00 00 00 BE [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 60 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [09:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:11]wFMCommunicate OK [09:03:11]CreateOFDProtocolMessage done [09:03:11]OFDSenderStorePacket 191664 [09:03:11]StoreOFDPacket docnum=191664 [09:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 06 07 01 3E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5B B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EC 02 00 35 04 06 00 08 36 14 E8 67 28 10 53 33 C2 6D FA E6 28 [09:03:11]CheckFolder [09:03:11]dirname=/storage/ofd_packets [09:03:11]CheckFolder done [09:03:11]ProducePacketName [09:03:11]name=ofd_packets/00191664 [09:03:11]NVStorageSaveData ofd_packets/00191664 [09:03:11]File name is /storage/ofd_packets/00191664 [09:03:11]Write 301 bytes [09:03:11]NVStorageSaveData done [09:03:11]OFDSenderStorePacket done [09:03:11]KKMCreateOFDPacket done [09:03:11]NVStorageSaveData kkm_last_timestamp [09:03:11]File name is /storage/kkm_last_timestamp [09:03:11]Write 4 bytes [09:03:11]NVStorageSaveData done [09:03:11]ExternCall_PrintAddStr [09:03:11]wPrintStart [09:03:11]Write to MH i2c: 01 00 00 61 E4 45 [09:03:11]Write i2c OK [09:03:11]MH_I2C_Read... [09:03:11]Read from MH i2c: 01 [09:03:11]MH_I2C_Read... [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 61 E4 00 00 00 00 00 FF 0F 5A [09:03:11]RasterBufferAndPrint [09:03:11]line Счет N : (1)30966 [09:03:11]line ИНН: 02508201610067 [09:03:11]line Контрольно-Кассовый Чек [09:03:11]line ПРОДАЖА [09:03:11]line ТРК (МРК, ГНК) : 12 [09:03:11]line Товар: 2710124130 [09:03:11]line Аи-92-К-5 [09:03:11]line 7.480 * 66.90 [09:03:11]line = 500.41 [09:03:11]line НДС 12% НСП 1% [09:03:11]line > о реализуемом товаре [09:03:11]line ОКРУГЛЕНИЕ: -0.41 [09:03:11]line ИТОГО: 500.00 [09:03:11]line Внесено: 500.00 [09:03:11]line СДАЧА: 0.00 [09:03:11]line НСП 1% : 4.43 [09:03:11]line НДС 12% : 53.14 [09:03:11]line Наличными: 500.00 [09:03:11]line Безнал.: 0.00 [09:03:11]line Место: АЗС № 170 "Партнер Нефть" [09:03:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:03:11]line СНО: Общий режим [09:03:11]line Чек 27 26.10.2024 09:03 [09:03:11]line Смена: 541 ФФД: 1.0 [09:03:11]line ЗНМ: 0300000110 [09:03:11]line РНМ: 0000000000091776 [09:03:11]line Версия ККМ: 001 [09:03:11]line ФМ: 0000000000871754 [09:03:11]line ФД: 191664 [09:03:11]line ФПД: 9028372031272 [09:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191664&fm=9028372031272&tin=02508201610067®Number=0000000000091776&sum=50000 [09:03:11]OFD Sender: Processing packet 191664 [packets to send 75, broken 74] [09:03:11]ProducePacketName [09:03:11]name=ofd_packets/00191664 [09:03:11]OFD Sender: To server: pG, [09:03:11]CommunicateWithHost lk.salyk.kg:30040 [09:03:11]ConnectInit lk.salyk.kg [09:03:11]written 0, free lines is 4095 [09:03:11]Connected sock=10 [09:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 06 07 01 3E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 5B B0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EC 02 00 35 04 06 00 08 36 14 E8 67 28 10 53 33 C2 6D FA E6 28 [09:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 80 47 00 B5 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 EC 02 00 F4 03 04 00 27 55 1C 67 B6 04 01 00 00 20 2B 2B FE EB 83 34 C2 [09:03:12]CommunicateWithHost err = 0 [09:03:12]CheckOFDResponse [09:03:12]1017 (14) - 77093643461234 [09:03:12]1041 (16) - 0000000000871754 [09:03:12]1040 (4) - 191664 [09:03:12]1012 (4) - 26.10.2024 02:34 [09:03:12]1206 (1) - 0 [09:03:12]OFD Sender: Remove packet 191664 [09:03:12]ProducePacketName [09:03:12]name=ofd_packets/00191664 [09:03:12]NVStorageDeleteData [09:03:12]Write to MH i2c: 01 00 00 8C E4 70 [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 07 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: 01 07 00 8C E4 00 00 00 00 00 AF 0C 32 [09:03:12]RasterBufferAndPrint [09:03:12]line [09:03:12]line [09:03:12]line [09:03:12]line [09:03:12]line [09:03:12]written 0, free lines is 3254 [09:03:12]MH_Cut [09:03:12]Write to MH i2c: D1 01 00 93 E4 01 49 [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: D1 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: D1 01 00 [09:03:12]MH_I2C_Read... [09:03:12]Read from MH i2c: D1 01 00 93 E4 00 48 [09:03:12]Write to MH i2c: 01 00 00 94 E4 78 [09:03:12]Write i2c OK [09:03:12]MH_I2C_Read... [09:03:12]OFD Sender: No OFD packet to send [09:03:13]*** Cut start [09:03:13]*** Partial cut [09:03:13]*** CUTSNS_PIN = 1 [09:03:13]*** CUTSNS_PIN = 0 [09:03:13]*** Brake cut motor [09:03:13]Read from MH i2c: 01 [09:03:13]MH_I2C_Read... [09:03:13]*** Stop cut motor [09:03:13]*** Cut end [09:03:13]Read from MH i2c: 01 07 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: 01 07 00 94 E4 00 00 00 00 00 FF 0F 8D [09:03:13]process_action close_receipt done [09:03:13]requested_data is exist [09:03:13]produce_requested_data [09:03:13]requested_item fm.sn is exist - process it [09:03:13]wFMCommunicate request_size=4 [09:03:13]MH_SAM_APDU [09:03:13]CAPDU: 80 11 00 00 [09:03:13]Write to MH i2c: E2 08 00 95 E4 80 11 00 00 00 00 00 00 F3 [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:13]Read from MH i2c: E2 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 17 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 17 00 95 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [09:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:03:13]wFMCommunicate OK [09:03:13]requested_item fd.num is exist - process it [09:03:13]SAM_PROTO_GetFieldsCounters [09:03:13]wFMCommunicate request_size=4 [09:03:13]MH_SAM_APDU [09:03:13]CAPDU: 80 13 00 00 [09:03:13]Write to MH i2c: E2 08 00 96 E4 80 13 00 00 00 00 00 00 F6 [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:13]Read from MH i2c: E2 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 62 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 62 00 96 E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:13]wFMCommunicate OK [09:03:13]SAM_PROTO_GetFieldsCounters done [09:03:13]requested_item shift.num is exist - process it [09:03:13]requested_item shift.opened is exist - process it [09:03:13]req_shift_opened [09:03:13]FM_GetShiftState [09:03:13]SAM_PROTO_GetShiftState [09:03:13]wFMCommunicate request_size=4 [09:03:13]MH_SAM_APDU [09:03:13]CAPDU: 80 13 01 00 [09:03:13]Write to MH i2c: E2 08 00 97 E4 80 13 01 00 00 00 00 00 F8 [09:03:13]Write i2c OK [09:03:13]MH_I2C_Read... [09:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:13]Read from MH i2c: E2 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 0E 00 [09:03:13]MH_I2C_Read... [09:03:13]Read from MH i2c: E2 0E 00 97 E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 71 [09:03:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:03:13]wFMCommunicate OK [09:03:13]SAM_PROTO_GetShiftState done [09:03:13]FM_GetShiftState done [09:03:13]req_shift_opened done [09:03:13]requested_item shift.open_date is exist - process it [09:03:13]req_shift_open_date [09:03:13]req_shift_open_date done [09:03:13]produce_requested_data done [09:03:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191664,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:03:13]process_action_free close_receipt [09:03:13]json_value_free [09:03:13]json_value_free done [09:03:13]process_json_proto returns [09:03:13]Send response to host [09:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191664,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:03:13]free response buf [09:03:13]execute_script done [09:03:13]execute_script returns [09:03:13]free content buf [09:03:13]Sock 8.Close socket [09:03:13]Sock 8.Thread stoped [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:24]accept exits with 9 [09:06:24]New connection [09:06:24]New thread 3066961252 created [09:06:24]Thread 3066817892 joined [09:06:24]Waiting for new connection... [09:06:24] Sock 9.Parse request [09:06:24]Sock 9.Check first char [09:06:24]Sock 9.First char is OK [09:06:24]request: POST /json_proto HTTP/1.0 [09:06:24]Method: POST [09:06:24]URL: /json_proto [09:06:24]Method is POST - this is cgi request [09:06:24]url: /json_proto [09:06:24]query_string will be loaded in cgi processing [09:06:24]execute_cgi json_proto POST (null) [09:06:24]execute_cgi path=json_proto method=POST [09:06:24]POST find Content-Length [09:06:24]Host: 172.17.63.131:8080 [09:06:24]Content-Length: 676 [09:06:24]Content-Type: application/json [09:06:24] [09:06:24]POST finish read [09:06:24]Found Content-Length = 676 [09:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:24]execute_script... [09:06:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:24]POST & json_proto [09:06:24]process_json_proto [09:06:24]json parsed OK: [09:06:24]protocol is kg_v1.0 [09:06:24]action value=close_receipt [09:06:24]process_action close_receipt [09:06:24]cmd_close_receipt [09:06:24]MH_GetDate [09:06:24]Write to MH i2c: F0 00 00 98 E4 6B [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 09 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: F0 09 00 98 E4 00 1E B1 1C 67 22 05 6E 64 BF [09:06:24]GetLastDocTimeStamp 1729933403 [09:06:24]current date 1729933598 [09:06:24]FM_GetShiftState [09:06:24]SAM_PROTO_GetShiftState [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 01 00 [09:06:24]Write to MH i2c: E2 08 00 99 E4 80 13 01 00 00 00 00 00 FA [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 99 E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [09:06:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetShiftState done [09:06:24]FM_GetShiftState done [09:06:24]opened in 1729902770 [09:06:24]opened+sec_in_day 1729989170 [09:06:24]quantity*price = 30038 [09:06:24]sum+1 = 30039 [09:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 28 26.10.2024 09:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191665 ФПД: 52150321113254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191665&fm=52150321113254&tin=02508201610067®Number=0000000000091776&sum=30000 [09:06:25]StoreToDocumentArchive [09:06:25]shift 541 fd 191665 [09:06:25]save to /storage/0541/doc_00191665 [09:06:25]save last doc name /storage/0541/doc_00191665 to /storage/kkm_last_doc_name [09:06:25]save OK [09:06:25]Clear old archive folders... [09:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:25]tlvbuf is 015D89F0 [09:06:25]SAM_PROTO_ClearQueue [09:06:25]wFMCommunicate request_size=4 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 09 00 00 [09:06:25]Write to MH i2c: E2 08 00 A6 E4 80 09 00 00 00 00 00 00 FC [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 A6 E4 00 90 00 FE [09:06:25]RAPDU: 90 00 [09:06:25]wFMCommunicate OK [09:06:25]SAM_PROTO_ClearQueue done [09:06:25]KKMCreateOFDPacket [09:06:25]OFDProtocolAddRootSTLVToBuf [09:06:25]FM_MakeSignedData [09:06:25]FM_MakeSignedData [09:06:25]SAM_PROTO_SignData [09:06:25]wFMCommunicate request_size=4 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 0D 01 02 [09:06:25]Write to MH i2c: E2 08 00 A7 E4 80 0D 01 02 00 00 00 00 04 [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 A7 E4 00 90 00 FF [09:06:25]RAPDU: 90 00 [09:06:25]wFMCommunicate OK [09:06:25]wFMCommunicate request_size=255 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1E B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EC 02 00 35 04 06 00 2F [09:06:25]Write to MH i2c: E2 02 01 A8 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1E B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EC 02 00 35 04 06 00 2F 00 00 E7 [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:25]Read from MH i2c: E2 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 [09:06:25]MH_I2C_Read... [09:06:25]Read from MH i2c: E2 03 00 A8 E4 00 90 00 00 [09:06:25]RAPDU: 90 00 [09:06:25]wFMCommunicate OK [09:06:25]wFMCommunicate request_size=10 [09:06:25]MH_SAM_APDU [09:06:25]CAPDU: 80 0D 02 02 05 6E 31 5D 68 A6 [09:06:25]Write to MH i2c: E2 0D 00 A9 E4 80 0D 02 02 05 00 6E 31 5D 68 A6 00 00 1B [09:06:25]Write i2c OK [09:06:25]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 03 00 A9 E4 00 90 00 01 [09:06:26]RAPDU: 90 00 [09:06:26]wFMCommunicate OK [09:06:26]wFMCommunicate request_size=4 [09:06:26]MH_SAM_APDU [09:06:26]CAPDU: 80 0D 03 02 [09:06:26]Write to MH i2c: E2 08 00 AA E4 80 0D 03 02 00 00 00 00 09 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 0B 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 0B 00 AA E4 00 25 06 0F A2 10 F7 B3 52 90 00 F2 [09:06:26]RAPDU: 25 06 0F A2 10 F7 B3 52 90 00 [09:06:26]wFMCommunicate OK [09:06:26]SAM_PROTO_SignData done [09:06:26]FM_MakeSignedData done [09:06:26]CreateOFDProtocolMessage [09:06:26]wFMCommunicate request_size=4 [09:06:26]MH_SAM_APDU [09:06:26]CAPDU: 80 11 00 00 [09:06:26]Write to MH i2c: E2 08 00 AB E4 80 11 00 00 00 00 00 00 09 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:26]Read from MH i2c: E2 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 17 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: E2 17 00 AB E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [09:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:06:26]wFMCommunicate OK [09:06:26]CreateOFDProtocolMessage done [09:06:26]OFDSenderStorePacket 191665 [09:06:26]StoreOFDPacket docnum=191665 [09:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 76 07 01 CD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1E B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EC 02 00 35 04 06 00 2F 6E 31 5D 68 A6 25 06 0F A2 10 F7 B3 52 [09:06:26]CheckFolder [09:06:26]dirname=/storage/ofd_packets [09:06:26]CheckFolder done [09:06:26]ProducePacketName [09:06:26]name=ofd_packets/00191665 [09:06:26]NVStorageSaveData ofd_packets/00191665 [09:06:26]File name is /storage/ofd_packets/00191665 [09:06:26]Write 301 bytes [09:06:26]NVStorageSaveData done [09:06:26]OFDSenderStorePacket done [09:06:26]KKMCreateOFDPacket done [09:06:26]NVStorageSaveData kkm_last_timestamp [09:06:26]File name is /storage/kkm_last_timestamp [09:06:26]Write 4 bytes [09:06:26]NVStorageSaveData done [09:06:26]ExternCall_PrintAddStr [09:06:26]wPrintStart [09:06:26]Write to MH i2c: 01 00 00 AC E4 90 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 AC E4 00 00 00 00 00 FF 0F A5 [09:06:26]RasterBufferAndPrint [09:06:26]line Счет N : (1)30967 [09:06:26]line ИНН: 02508201610067 [09:06:26]line Контрольно-Кассовый Чек [09:06:26]line ПРОДАЖА [09:06:26]line ТРК (МРК, ГНК) : 21 [09:06:26]line Товар: 2710124130 [09:06:26]line Аи-92-К-5 [09:06:26]line 4.490 * 66.90 [09:06:26]line = 300.38 [09:06:26]line НДС 12% НСП 1% [09:06:26]line > о реализуемом товаре [09:06:26]line ОКРУГЛЕНИЕ: -0.38 [09:06:26]line ИТОГО: 300.00 [09:06:26]line Внесено: 300.00 [09:06:26]line СДАЧА: 0.00 [09:06:26]line НСП 1% : 2.66 [09:06:26]line НДС 12% : 31.90 [09:06:26]line Наличными: 300.00 [09:06:26]line Безнал.: 0.00 [09:06:26]line Место: АЗС № 170 "Партнер Нефть" [09:06:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:06:26]line СНО: Общий режим [09:06:26]line Чек 28 26.10.2024 09:06 [09:06:26]line Смена: 541 ФФД: 1.0 [09:06:26]line ЗНМ: 0300000110 [09:06:26]line РНМ: 0000000000091776 [09:06:26]line Версия ККМ: 001 [09:06:26]line ФМ: 0000000000871754 [09:06:26]line ФД: 191665 [09:06:26]line ФПД: 52150321113254 [09:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191665&fm=52150321113254&tin=02508201610067®Number=0000000000091776&sum=30000 [09:06:26]OFD Sender: Processing packet 191665 [packets to send 75, broken 74] [09:06:26]ProducePacketName [09:06:26]name=ofd_packets/00191665 [09:06:26]OFD Sender: To server: pG, [09:06:26]CommunicateWithHost lk.salyk.kg:30040 [09:06:26]ConnectInit lk.salyk.kg [09:06:26]written 0, free lines is 4095 [09:06:26]Connected sock=10 [09:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 76 07 01 CD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 1E B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EC 02 00 35 04 06 00 2F 6E 31 5D 68 A6 25 06 0F A2 10 F7 B3 52 [09:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 59 47 00 E6 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 EC 02 00 F4 03 04 00 E9 55 1C 67 B6 04 01 00 00 9E B5 F2 21 27 65 4B 9B [09:06:26]CommunicateWithHost err = 0 [09:06:26]CheckOFDResponse [09:06:26]1017 (14) - 77093643461234 [09:06:26]1041 (16) - 0000000000871754 [09:06:26]1040 (4) - 191665 [09:06:26]1012 (4) - 26.10.2024 02:37 [09:06:26]1206 (1) - 0 [09:06:26]OFD Sender: Remove packet 191665 [09:06:26]ProducePacketName [09:06:26]name=ofd_packets/00191665 [09:06:26]NVStorageDeleteData [09:06:26]Write to MH i2c: 01 00 00 D7 E4 BB [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: 01 07 00 D7 E4 00 00 00 00 00 C5 0C 93 [09:06:26]RasterBufferAndPrint [09:06:26]line [09:06:26]line [09:06:26]line [09:06:26]line [09:06:26]line [09:06:26]written 0, free lines is 3275 [09:06:26]MH_Cut [09:06:26]Write to MH i2c: D1 01 00 DE E4 01 94 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: D1 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: D1 01 00 [09:06:26]MH_I2C_Read... [09:06:26]Read from MH i2c: D1 01 00 DE E4 00 93 [09:06:26]Write to MH i2c: 01 00 00 DF E4 C3 [09:06:26]Write i2c OK [09:06:26]MH_I2C_Read... [09:06:27]OFD Sender: No OFD packet to send [09:06:27]*** Cut start [09:06:27]*** Partial cut [09:06:27]*** CUTSNS_PIN = 1 [09:06:27]*** CUTSNS_PIN = 0 [09:06:28]*** Brake cut motor [09:06:28]Read from MH i2c: 01 [09:06:28]MH_I2C_Read... [09:06:28]*** Stop cut motor [09:06:28]*** Cut end [09:06:28]Read from MH i2c: 01 07 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: 01 07 00 DF E4 00 00 00 00 00 FF 0F D8 [09:06:28]process_action close_receipt done [09:06:28]requested_data is exist [09:06:28]produce_requested_data [09:06:28]requested_item fm.sn is exist - process it [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 11 00 00 [09:06:28]Write to MH i2c: E2 08 00 E0 E4 80 11 00 00 00 00 00 00 3E [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 17 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 17 00 E0 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [09:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:06:28]wFMCommunicate OK [09:06:28]requested_item fd.num is exist - process it [09:06:28]SAM_PROTO_GetFieldsCounters [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 13 00 00 [09:06:28]Write to MH i2c: E2 08 00 E1 E4 80 13 00 00 00 00 00 00 41 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 62 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 62 00 E1 E4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [09:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_GetFieldsCounters done [09:06:28]requested_item shift.num is exist - process it [09:06:28]requested_item shift.opened is exist - process it [09:06:28]req_shift_opened [09:06:28]FM_GetShiftState [09:06:28]SAM_PROTO_GetShiftState [09:06:28]wFMCommunicate request_size=4 [09:06:28]MH_SAM_APDU [09:06:28]CAPDU: 80 13 01 00 [09:06:28]Write to MH i2c: E2 08 00 E2 E4 80 13 01 00 00 00 00 00 43 [09:06:28]Write i2c OK [09:06:28]MH_I2C_Read... [09:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:28]Read from MH i2c: E2 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0E 00 [09:06:28]MH_I2C_Read... [09:06:28]Read from MH i2c: E2 0E 00 E2 E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BC [09:06:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:06:28]wFMCommunicate OK [09:06:28]SAM_PROTO_GetShiftState done [09:06:28]FM_GetShiftState done [09:06:28]req_shift_opened done [09:06:28]requested_item shift.open_date is exist - process it [09:06:28]req_shift_open_date [09:06:28]req_shift_open_date done [09:06:28]produce_requested_data done [09:06:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191665,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:06:28]process_action_free close_receipt [09:06:28]json_value_free [09:06:28]json_value_free done [09:06:28]process_json_proto returns [09:06:28]Send response to host [09:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191665,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:06:28]free response buf [09:06:28]execute_script done [09:06:28]execute_script returns [09:06:28]free content buf [09:06:28]Sock 9.Close socket [09:06:28]Sock 9.Thread stoped [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:05]accept exits with 8 [09:08:05]New connection [09:08:05]New thread 3066817892 created [09:08:05]Thread 3066961252 joined [09:08:05]Waiting for new connection... [09:08:05] Sock 8.Parse request [09:08:05]Sock 8.Check first char [09:08:05]Sock 8.First char is OK [09:08:05]request: POST /json_proto HTTP/1.0 [09:08:05]Method: POST [09:08:05]URL: /json_proto [09:08:05]Method is POST - this is cgi request [09:08:05]url: /json_proto [09:08:05]query_string will be loaded in cgi processing [09:08:05]execute_cgi json_proto POST (null) [09:08:05]execute_cgi path=json_proto method=POST [09:08:05]POST find Content-Length [09:08:05]Host: 172.17.63.131:8080 [09:08:05]Content-Length: 676 [09:08:05]Content-Type: application/json [09:08:05] [09:08:05]POST finish read [09:08:05]Found Content-Length = 676 [09:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:05]execute_script... [09:08: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)30968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:05]POST & json_proto [09:08:05]process_json_proto [09:08:05]json parsed OK: [09:08:05]protocol is kg_v1.0 [09:08:05]action value=close_receipt [09:08:05]process_action close_receipt [09:08:05]cmd_close_receipt [09:08:05]MH_GetDate [09:08:05]Write to MH i2c: F0 00 00 E3 E4 B6 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 09 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: F0 09 00 E3 E4 00 83 B1 1C 67 22 05 6E 64 6F [09:08:05]GetLastDocTimeStamp 1729933598 [09:08:05]current date 1729933699 [09:08:05]FM_GetShiftState [09:08:05]SAM_PROTO_GetShiftState [09:08:05]wFMCommunicate request_size=4 [09:08:05]MH_SAM_APDU [09:08:05]CAPDU: 80 13 01 00 [09:08:05]Write to MH i2c: E2 08 00 E4 E4 80 13 01 00 00 00 00 00 45 [09:08:05]Write i2c OK [09:08:05]MH_I2C_Read... [09:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:05]Read from MH i2c: E2 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 [09:08:05]MH_I2C_Read... [09:08:05]Read from MH i2c: E2 0E 00 E4 E4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [09:08:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:08:05]wFMCommunicate OK [09:08:05]SAM_PROTO_GetShiftState done [09:08:05]FM_GetShiftState done [09:08:05]opened in 1729902770 [09:08:05]opened+sec_in_day 1729989170 [09:08:05]quantity*price = 30038 [09:08:05]sum+1 = 30039 [09:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 29 26.10.2024 09:08 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191666 ФПД: 277084662571404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191666&fm=277084662571404&tin=02508201610067®Number=0000000000091776&sum=30000 [09:08:06]StoreToDocumentArchive [09:08:06]shift 541 fd 191666 [09:08:06]save to /storage/0541/doc_00191666 [09:08:06]save last doc name /storage/0541/doc_00191666 to /storage/kkm_last_doc_name [09:08:06]save OK [09:08:06]Clear old archive folders... [09:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:06]tlvbuf is 01831380 [09:08:06]SAM_PROTO_ClearQueue [09:08:06]wFMCommunicate request_size=4 [09:08:06]MH_SAM_APDU [09:08:06]CAPDU: 80 09 00 00 [09:08:06]Write to MH i2c: E2 08 00 F1 E4 80 09 00 00 00 00 00 00 47 [09:08:06]Write i2c OK [09:08:06]MH_I2C_Read... [09:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:06]Read from MH i2c: E2 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 03 00 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 03 00 F1 E4 00 90 00 49 [09:08:06]RAPDU: 90 00 [09:08:06]wFMCommunicate OK [09:08:06]SAM_PROTO_ClearQueue done [09:08:06]KKMCreateOFDPacket [09:08:06]OFDProtocolAddRootSTLVToBuf [09:08:06]FM_MakeSignedData [09:08:06]FM_MakeSignedData [09:08:06]SAM_PROTO_SignData [09:08:06]wFMCommunicate request_size=4 [09:08:06]MH_SAM_APDU [09:08:06]CAPDU: 80 0D 01 02 [09:08:06]Write to MH i2c: E2 08 00 F2 E4 80 0D 01 02 00 00 00 00 4F [09:08:06]Write i2c OK [09:08:06]MH_I2C_Read... [09:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:06]Read from MH i2c: E2 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 03 00 [09:08:06]MH_I2C_Read... [09:08:06]Read from MH i2c: E2 03 00 F2 E4 00 90 00 4A [09:08:06]RAPDU: 90 00 [09:08:06]wFMCommunicate OK [09:08:06]wFMCommunicate request_size=255 [09:08:06]MH_SAM_APDU [09:08: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EC 02 00 35 04 06 00 FC [09:08:06]Write to MH i2c: E2 02 01 F3 E4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EC 02 00 35 04 06 00 FC 00 00 66 [09:08:06]Write i2c OK [09:08:06]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 F3 E4 00 90 00 4B [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=10 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 02 02 05 01 CC E2 A1 8C [09:08:07]Write to MH i2c: E2 0D 00 F4 E4 80 0D 02 02 05 00 01 CC E2 A1 8C 00 00 38 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 03 00 F4 E4 00 90 00 4C [09:08:07]RAPDU: 90 00 [09:08:07]wFMCommunicate OK [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 0D 03 02 [09:08:07]Write to MH i2c: E2 08 00 F5 E4 80 0D 03 02 00 00 00 00 54 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0B 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 0B 00 F5 E4 00 A5 5E 55 94 4D CE 42 74 90 00 12 [09:08:07]RAPDU: A5 5E 55 94 4D CE 42 74 90 00 [09:08:07]wFMCommunicate OK [09:08:07]SAM_PROTO_SignData done [09:08:07]FM_MakeSignedData done [09:08:07]CreateOFDProtocolMessage [09:08:07]wFMCommunicate request_size=4 [09:08:07]MH_SAM_APDU [09:08:07]CAPDU: 80 11 00 00 [09:08:07]Write to MH i2c: E2 08 00 F6 E4 80 11 00 00 00 00 00 00 54 [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:07]Read from MH i2c: E2 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 17 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: E2 17 00 F6 E4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [09:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:07]wFMCommunicate OK [09:08:07]CreateOFDProtocolMessage done [09:08:07]OFDSenderStorePacket 191666 [09:08:07]StoreOFDPacket docnum=191666 [09:08:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 C9 07 01 F2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EC 02 00 35 04 06 00 FC 01 CC E2 A1 8C A5 5E 55 94 4D CE 42 74 [09:08:07]CheckFolder [09:08:07]dirname=/storage/ofd_packets [09:08:07]CheckFolder done [09:08:07]ProducePacketName [09:08:07]name=ofd_packets/00191666 [09:08:07]NVStorageSaveData ofd_packets/00191666 [09:08:07]File name is /storage/ofd_packets/00191666 [09:08:07]Write 301 bytes [09:08:07]NVStorageSaveData done [09:08:07]OFDSenderStorePacket done [09:08:07]KKMCreateOFDPacket done [09:08:07]NVStorageSaveData kkm_last_timestamp [09:08:07]File name is /storage/kkm_last_timestamp [09:08:07]Write 4 bytes [09:08:07]NVStorageSaveData done [09:08:07]ExternCall_PrintAddStr [09:08:07]wPrintStart [09:08:07]Write to MH i2c: 01 00 00 F7 E4 DB [09:08:07]Write i2c OK [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 07 00 [09:08:07]MH_I2C_Read... [09:08:07]Read from MH i2c: 01 07 00 F7 E4 00 00 00 00 00 FF 0F F0 [09:08:07]RasterBufferAndPrint [09:08:07]line Счет N : (1)30968 [09:08:07]line ИНН: 02508201610067 [09:08:07]line Контрольно-Кассовый Чек [09:08:07]line ПРОДАЖА [09:08:07]line ТРК (МРК, ГНК) : 21 [09:08:07]line Товар: 2710124130 [09:08:07]line Аи-92-К-5 [09:08:07]line 4.490 * 66.90 [09:08:07]line = 300.38 [09:08:07]line НДС 12% НСП 1% [09:08:07]line > о реализуемом товаре [09:08:07]line ОКРУГЛЕНИЕ: -0.38 [09:08:07]line ИТОГО: 300.00 [09:08:07]line Внесено: 300.00 [09:08:07]line СДАЧА: 0.00 [09:08:07]line НСП 1% : 2.66 [09:08:07]line НДС 12% : 31.90 [09:08:07]line Наличными: 300.00 [09:08:07]line Безнал.: 0.00 [09:08:07]line Место: АЗС № 170 "Партнер Нефть" [09:08:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:08:07]line СНО: Общий режим [09:08:07]line Чек 29 26.10.2024 09:08 [09:08:07]line Смена: 541 ФФД: 1.0 [09:08:07]line ЗНМ: 0300000110 [09:08:07]line РНМ: 0000000000091776 [09:08:07]line Версия ККМ: 001 [09:08:07]line ФМ: 0000000000871754 [09:08:07]line ФД: 191666 [09:08:07]line ФПД: 277084662571404 [09:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090819&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191666&fm=277084662571404&tin=02508201610067®Number=0000000000091776&sum=30000 [09:08:07]OFD Sender: Processing packet 191666 [packets to send 75, broken 74] [09:08:07]ProducePacketName [09:08:07]name=ofd_packets/00191666 [09:08:07]OFD Sender: To server: pG, [09:08:07]CommunicateWithHost lk.salyk.kg:30040 [09:08:07]ConnectInit lk.salyk.kg [09:08:07]written 0, free lines is 4095 [09:08:08]Write to MH i2c: 01 00 00 22 E5 07 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: 01 07 00 22 E5 00 00 00 00 00 B8 0C D2 [09:08:08]RasterBufferAndPrint [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]line [09:08:08]written 0, free lines is 3263 [09:08:08]MH_Cut [09:08:08]Write to MH i2c: D1 01 00 29 E5 01 E0 [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 [09:08:08]MH_I2C_Read... [09:08:08]Read from MH i2c: D1 01 00 29 E5 00 DF [09:08:08]Write to MH i2c: 01 00 00 2A E5 0F [09:08:08]Write i2c OK [09:08:08]MH_I2C_Read... [09:08:08]*** Cut start [09:08:08]*** Partial cut [09:08:08]*** CUTSNS_PIN = 1 [09:08:09]*** CUTSNS_PIN = 0 [09:08:09]*** Brake cut motor [09:08:09]Read from MH i2c: 01 [09:08:09]MH_I2C_Read... [09:08:09]*** Stop cut motor [09:08:09]*** Cut end [09:08:09]Read from MH i2c: 01 07 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: 01 07 00 2A E5 00 00 00 00 00 FF 0F 24 [09:08:09]process_action close_receipt done [09:08:09]requested_data is exist [09:08:09]produce_requested_data [09:08:09]requested_item fm.sn is exist - process it [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 11 00 00 [09:08:09]Write to MH i2c: E2 08 00 2B E5 80 11 00 00 00 00 00 00 8A [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:09]Read from MH i2c: E2 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 17 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 17 00 2B E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [09:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:09]wFMCommunicate OK [09:08:09]requested_item fd.num is exist - process it [09:08:09]SAM_PROTO_GetFieldsCounters [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 13 00 00 [09:08:09]Write to MH i2c: E2 08 00 2C E5 80 13 00 00 00 00 00 00 8D [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:09]Read from MH i2c: E2 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 62 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 62 00 2C E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [09:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:09]wFMCommunicate OK [09:08:09]SAM_PROTO_GetFieldsCounters done [09:08:09]requested_item shift.num is exist - process it [09:08:09]requested_item shift.opened is exist - process it [09:08:09]req_shift_opened [09:08:09]FM_GetShiftState [09:08:09]SAM_PROTO_GetShiftState [09:08:09]wFMCommunicate request_size=4 [09:08:09]MH_SAM_APDU [09:08:09]CAPDU: 80 13 01 00 [09:08:09]Write to MH i2c: E2 08 00 2D E5 80 13 01 00 00 00 00 00 8F [09:08:09]Write i2c OK [09:08:09]MH_I2C_Read... [09:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:09]Read from MH i2c: E2 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 0E 00 [09:08:09]MH_I2C_Read... [09:08:09]Read from MH i2c: E2 0E 00 2D E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [09:08:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:08:09]wFMCommunicate OK [09:08:09]SAM_PROTO_GetShiftState done [09:08:09]FM_GetShiftState done [09:08:09]req_shift_opened done [09:08:09]requested_item shift.open_date is exist - process it [09:08:09]req_shift_open_date [09:08:09]req_shift_open_date done [09:08:09]produce_requested_data done [09:08:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191666,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:08:09]process_action_free close_receipt [09:08:09]json_value_free [09:08:09]json_value_free done [09:08:09]process_json_proto returns [09:08:09]Send response to host [09:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191666,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:08:09]free response buf [09:08:09]execute_script done [09:08:09]execute_script returns [09:08:09]free content buf [09:08:09]Sock 8.Close socket [09:08:09]Sock 8.Thread stoped [09:08:54]accept exits with 9 [09:08:54]New connection [09:08:54]New thread 3066961252 created [09:08:54]Thread 3066817892 joined [09:08:54]Waiting for new connection... [09:08:54] Sock 9.Parse request [09:08:54]Sock 9.Check first char [09:08:54]Sock 9.First char is OK [09:08:54]request: POST /json_proto HTTP/1.0 [09:08:54]Method: POST [09:08:54]URL: /json_proto [09:08:54]Method is POST - this is cgi request [09:08:54]url: /json_proto [09:08:54]query_string will be loaded in cgi processing [09:08:54]execute_cgi json_proto POST (null) [09:08:54]execute_cgi path=json_proto method=POST [09:08:54]POST find Content-Length [09:08:54]Host: 172.17.63.131:8080 [09:08:54]Content-Length: 678 [09:08:54]Content-Type: application/json [09:08:54] [09:08:54]POST finish read [09:08:54]Found Content-Length = 678 [09:08:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30969", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:54]execute_script... [09:08:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30969", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:54]POST & json_proto [09:08:54]process_json_proto [09:08:54]json parsed OK: [09:08:54]protocol is kg_v1.0 [09:08:54]action value=close_receipt [09:08:54]process_action close_receipt [09:08:54]cmd_close_receipt [09:08:54]MH_GetDate [09:08:54]Write to MH i2c: F0 00 00 2E E5 02 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 09 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: F0 09 00 2E E5 00 B3 B1 1C 67 22 05 6E 64 EB [09:08:54]GetLastDocTimeStamp 1729933699 [09:08:54]current date 1729933747 [09:08:54]FM_GetShiftState [09:08:54]SAM_PROTO_GetShiftState [09:08:54]wFMCommunicate request_size=4 [09:08:54]MH_SAM_APDU [09:08:54]CAPDU: 80 13 01 00 [09:08:54]Write to MH i2c: E2 08 00 2F E5 80 13 01 00 00 00 00 00 91 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:54]Read from MH i2c: E2 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: E2 0E 00 2F E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [09:08:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:08:54]wFMCommunicate OK [09:08:54]SAM_PROTO_GetShiftState done [09:08:54]FM_GetShiftState done [09:08:54]opened in 1729902770 [09:08:54]opened+sec_in_day 1729989170 [09:08:54]quantity*price = 100050 [09:08:54]sum+1 = 100052 [09:08:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 30 26.10.2024 09:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191667 ФПД: 159078555628547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191667&fm=159078555628547&tin=02508201610067®Number=0000000000091776&sum=100000 [09:08:55]StoreToDocumentArchive [09:08:55]shift 541 fd 191667 [09:08:55]save to /storage/0541/doc_00191667 [09:08:55]save last doc name /storage/0541/doc_00191667 to /storage/kkm_last_doc_name [09:08:55]save OK [09:08:55]Clear old archive folders... [09:08:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:55]tlvbuf is 016CE610 [09:08:55]SAM_PROTO_ClearQueue [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 09 00 00 [09:08:55]Write to MH i2c: E2 08 00 3C E5 80 09 00 00 00 00 00 00 93 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 3C E5 00 90 00 95 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_ClearQueue done [09:08:55]KKMCreateOFDPacket [09:08:55]OFDProtocolAddRootSTLVToBuf [09:08:55]FM_MakeSignedData [09:08:55]FM_MakeSignedData [09:08:55]SAM_PROTO_SignData [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 01 02 [09:08:55]Write to MH i2c: E2 08 00 3D E5 80 0D 01 02 00 00 00 00 9B [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 3D E5 00 90 00 96 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=255 [09:08:55]MH_SAM_APDU [09:08: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B3 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EC 02 00 35 04 06 00 90 AE 5C CC [09:08:55]Write to MH i2c: E2 02 01 3E E5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B3 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EC 02 00 35 04 06 00 90 AE 5C CC 00 00 50 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 3E E5 00 90 00 97 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=7 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 02 02 02 B4 03 [09:08:55]Write to MH i2c: E2 0A 00 3F E5 80 0D 02 02 02 00 B4 03 00 00 59 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 03 00 3F E5 00 90 00 98 [09:08:55]RAPDU: 90 00 [09:08:55]wFMCommunicate OK [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 0D 03 02 [09:08:55]Write to MH i2c: E2 08 00 40 E5 80 0D 03 02 00 00 00 00 A0 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0B 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 0B 00 40 E5 00 24 ED 76 18 A2 77 17 7B 90 00 EB [09:08:55]RAPDU: 24 ED 76 18 A2 77 17 7B 90 00 [09:08:55]wFMCommunicate OK [09:08:55]SAM_PROTO_SignData done [09:08:55]FM_MakeSignedData done [09:08:55]CreateOFDProtocolMessage [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 11 00 00 [09:08:55]Write to MH i2c: E2 08 00 41 E5 80 11 00 00 00 00 00 00 A0 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 41 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [09:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:55]wFMCommunicate OK [09:08:55]CreateOFDProtocolMessage done [09:08:55]OFDSenderStorePacket 191667 [09:08:55]StoreOFDPacket docnum=191667 [09:08:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 8F 04 01 DA 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B3 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EC 02 00 35 04 06 00 90 AE 5C CC B4 03 24 ED 76 18 A2 77 17 7B [09:08:55]CheckFolder [09:08:55]dirname=/storage/ofd_packets [09:08:55]CheckFolder done [09:08:55]ProducePacketName [09:08:55]name=ofd_packets/00191667 [09:08:55]NVStorageSaveData ofd_packets/00191667 [09:08:55]File name is /storage/ofd_packets/00191667 [09:08:55]Write 298 bytes [09:08:55]NVStorageSaveData done [09:08:55]OFDSenderStorePacket done [09:08:55]KKMCreateOFDPacket done [09:08:55]NVStorageSaveData kkm_last_timestamp [09:08:55]File name is /storage/kkm_last_timestamp [09:08:55]Write 4 bytes [09:08:55]NVStorageSaveData done [09:08:55]ExternCall_PrintAddStr [09:08:55]wPrintStart [09:08:55]Write to MH i2c: 01 00 00 42 E5 27 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 42 E5 00 00 00 00 00 FF 0F 3C [09:08:55]RasterBufferAndPrint [09:08:55]line Счет N : (1)30969 [09:08:55]line ИНН: 02508201610067 [09:08:55]line Контрольно-Кассовый Чек [09:08:55]line ПРОДАЖА [09:08:55]line ТРК (МРК, ГНК) : 22 [09:08:55]line Товар: 2710194210 [09:08:55]line ДТ-К-5 [09:08:55]line 13.130 * 76.20 [09:08:55]line = 1000.51 [09:08:55]line НДС 12% НСП 1% [09:08:55]line > о реализуемом товаре [09:08:55]line ОКРУГЛЕНИЕ: -0.51 [09:08:55]line ИТОГО: 1000.00 [09:08:55]line Внесено: 1000.00 [09:08:55]line СДАЧА: 0.00 [09:08:55]line НСП 1% : 8.85 [09:08:55]line НДС 12% : 106.25 [09:08:55]line Наличными: 1000.00 [09:08:55]line Безнал.: 0.00 [09:08:55]line Место: АЗС № 170 "Партнер Нефть" [09:08:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:08:55]line СНО: Общий режим [09:08:55]line Чек 30 26.10.2024 09:09 [09:08:55]line Смена: 541 ФФД: 1.0 [09:08:55]line ЗНМ: 0300000110 [09:08:55]line РНМ: 0000000000091776 [09:08:55]line Версия ККМ: 001 [09:08:55]line ФМ: 0000000000871754 [09:08:55]line ФД: 191667 [09:08:55]line ФПД: 159078555628547 [09:08:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T090907&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191667&fm=159078555628547&tin=02508201610067®Number=0000000000091776&sum=100000 [09:08:56]written 0, free lines is 4095 [09:08:56]Write to MH i2c: 01 00 00 6D E5 52 [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: 01 07 00 6D E5 00 00 00 00 00 B1 0C 16 [09:08:56]RasterBufferAndPrint [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]line [09:08:56]written 0, free lines is 3255 [09:08:56]MH_Cut [09:08:56]Write to MH i2c: D1 01 00 74 E5 01 2B [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: D1 01 00 74 E5 00 2A [09:08:56]Write to MH i2c: 01 00 00 75 E5 5A [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:57]*** Cut start [09:08:57]*** Partial cut [09:08:57]*** CUTSNS_PIN = 1 [09:08:57]*** CUTSNS_PIN = 0 [09:08:57]*** Brake cut motor [09:08:58]Read from MH i2c: 01 [09:08:58]MH_I2C_Read... [09:08:58]*** Stop cut motor [09:08:58]*** Cut end [09:08:58]Read from MH i2c: 01 07 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: 01 07 00 75 E5 00 00 00 00 00 FF 0F 6F [09:08:58]process_action close_receipt done [09:08:58]requested_data is exist [09:08:58]produce_requested_data [09:08:58]requested_item fm.sn is exist - process it [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 11 00 00 [09:08:58]Write to MH i2c: E2 08 00 76 E5 80 11 00 00 00 00 00 00 D5 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 17 00 76 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [09:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:08:58]wFMCommunicate OK [09:08:58]requested_item fd.num is exist - process it [09:08:58]SAM_PROTO_GetFieldsCounters [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 00 00 [09:08:58]Write to MH i2c: E2 08 00 77 E5 80 13 00 00 00 00 00 00 D8 [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 62 00 77 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:08:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetFieldsCounters done [09:08:58]requested_item shift.num is exist - process it [09:08:58]requested_item shift.opened is exist - process it [09:08:58]req_shift_opened [09:08:58]FM_GetShiftState [09:08:58]SAM_PROTO_GetShiftState [09:08:58]wFMCommunicate request_size=4 [09:08:58]MH_SAM_APDU [09:08:58]CAPDU: 80 13 01 00 [09:08:58]Write to MH i2c: E2 08 00 78 E5 80 13 01 00 00 00 00 00 DA [09:08:58]Write i2c OK [09:08:58]MH_I2C_Read... [09:08:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:58]Read from MH i2c: E2 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 [09:08:58]MH_I2C_Read... [09:08:58]Read from MH i2c: E2 0E 00 78 E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 53 [09:08:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:08:58]wFMCommunicate OK [09:08:58]SAM_PROTO_GetShiftState done [09:08:58]FM_GetShiftState done [09:08:58]req_shift_opened done [09:08:58]requested_item shift.open_date is exist - process it [09:08:58]req_shift_open_date [09:08:58]req_shift_open_date done [09:08:58]produce_requested_data done [09:08:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191667,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:08:58]process_action_free close_receipt [09:08:58]json_value_free [09:08:58]json_value_free done [09:08:58]process_json_proto returns [09:08:58]Send response to host [09:08:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191667,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:08:58]free response buf [09:08:58]execute_script done [09:08:58]execute_script returns [09:08:58]free content buf [09:08:58]Sock 9.Close socket [09:08:58]Sock 9.Thread stoped [09:10:04]accept exits with 8 [09:10:04]New connection [09:10:04]New thread 3066817892 created [09:10:04]Thread 3066961252 joined [09:10:04]Waiting for new connection... [09:10:04] Sock 8.Parse request [09:10:04]Sock 8.Check first char [09:10:04]Sock 8.First char is OK [09:10:04]request: POST /json_proto HTTP/1.0 [09:10:04]Method: POST [09:10:04]URL: /json_proto [09:10:04]Method is POST - this is cgi request [09:10:04]url: /json_proto [09:10:04]query_string will be loaded in cgi processing [09:10:04]execute_cgi json_proto POST (null) [09:10:04]execute_cgi path=json_proto method=POST [09:10:04]POST find Content-Length [09:10:04]Host: 172.17.63.131:8080 [09:10:04]Content-Length: 865 [09:10:04]Content-Type: application/json [09:10:04] [09:10:04]POST finish read [09:10:04]Found Content-Length = 865 [09:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:04]execute_script... [09:10: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)30970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:04]POST & json_proto [09:10:04]process_json_proto [09:10:04]json parsed OK: [09:10:04]protocol is kg_v1.0 [09:10:04]action value=close_receipt [09:10:04]process_action close_receipt [09:10:04]cmd_close_receipt [09:10:04]MH_GetDate [09:10:04]Write to MH i2c: F0 00 00 79 E5 4D [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 09 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: F0 09 00 79 E5 00 FA B1 1C 67 22 05 6E 64 7D [09:10:04]GetLastDocTimeStamp 1729933747 [09:10:04]current date 1729933818 [09:10:04]FM_GetShiftState [09:10:04]SAM_PROTO_GetShiftState [09:10:04]wFMCommunicate request_size=4 [09:10:04]MH_SAM_APDU [09:10:04]CAPDU: 80 13 01 00 [09:10:04]Write to MH i2c: E2 08 00 7A E5 80 13 01 00 00 00 00 00 DC [09:10:04]Write i2c OK [09:10:04]MH_I2C_Read... [09:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:04]Read from MH i2c: E2 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 0E 00 [09:10:04]MH_I2C_Read... [09:10:04]Read from MH i2c: E2 0E 00 7A E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 55 [09:10:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:10:04]wFMCommunicate OK [09:10:04]SAM_PROTO_GetShiftState done [09:10:04]FM_GetShiftState done [09:10:04]opened in 1729902770 [09:10:04]opened+sec_in_day 1729989170 [09:10:04]quantity*price = 100015 [09:10:04]sum+1 = 100017 [09:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 31 26.10.2024 09:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191668 ФПД: 224586897033741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091018&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191668&fm=224586897033741&tin=02508201610067®Number=0000000000091776&sum=100016 [09:10:06]StoreToDocumentArchive [09:10:06]shift 541 fd 191668 [09:10:06]save to /storage/0541/doc_00191668 [09:10:06]save last doc name /storage/0541/doc_00191668 to /storage/kkm_last_doc_name [09:10:06]save OK [09:10:06]Clear old archive folders... [09:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:06]tlvbuf is 019D4940 [09:10:06]SAM_PROTO_ClearQueue [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 09 00 00 [09:10:06]Write to MH i2c: E2 08 00 87 E5 80 09 00 00 00 00 00 00 DE [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 87 E5 00 90 00 E0 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_ClearQueue done [09:10:06]KKMCreateOFDPacket [09:10:06]OFDProtocolAddRootSTLVToBuf [09:10:06]FM_MakeSignedData [09:10:06]FM_MakeSignedData [09:10:06]SAM_PROTO_SignData [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 01 02 [09:10:06]Write to MH i2c: E2 08 00 88 E5 80 0D 01 02 00 00 00 00 E6 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 88 E5 00 90 00 E1 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=255 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FA B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EC 02 00 35 04 06 00 CC [09:10:06]Write to MH i2c: E2 02 01 89 E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FA B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EC 02 00 35 04 06 00 CC 00 00 6E [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 89 E5 00 90 00 E2 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=10 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 05 42 B6 38 0A 0D [09:10:06]Write to MH i2c: E2 0D 00 8A E5 80 0D 02 02 05 00 42 B6 38 0A 0D 00 00 3A [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 8A E5 00 90 00 E3 [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 03 02 [09:10:06]Write to MH i2c: E2 08 00 8B E5 80 0D 03 02 00 00 00 00 EB [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 8B E5 00 A4 55 3A 69 31 A5 4A A4 90 00 4C [09:10:06]RAPDU: A4 55 3A 69 31 A5 4A A4 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_SignData done [09:10:06]FM_MakeSignedData done [09:10:06]CreateOFDProtocolMessage [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 11 00 00 [09:10:06]Write to MH i2c: E2 08 00 8C E5 80 11 00 00 00 00 00 00 EB [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 17 00 8C E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [09:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:06]wFMCommunicate OK [09:10:06]CreateOFDProtocolMessage done [09:10:06]OFDSenderStorePacket 191668 [09:10:06]StoreOFDPacket docnum=191668 [09:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 5F 07 01 FB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FA B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EC 02 00 35 04 06 00 CC 42 B6 38 0A 0D A4 55 3A 69 31 A5 4A A4 [09:10:06]CheckFolder [09:10:06]dirname=/storage/ofd_packets [09:10:06]CheckFolder done [09:10:06]ProducePacketName [09:10:06]name=ofd_packets/00191668 [09:10:06]NVStorageSaveData ofd_packets/00191668 [09:10:06]File name is /storage/ofd_packets/00191668 [09:10:06]Write 301 bytes [09:10:06]NVStorageSaveData done [09:10:06]OFDSenderStorePacket done [09:10:06]KKMCreateOFDPacket done [09:10:06]NVStorageSaveData kkm_last_timestamp [09:10:06]File name is /storage/kkm_last_timestamp [09:10:06]Write 4 bytes [09:10:06]NVStorageSaveData done [09:10:06]ExternCall_PrintAddStr [09:10:06]wPrintStart [09:10:06]Write to MH i2c: 01 00 00 8D E5 72 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: 01 07 00 8D E5 00 00 00 00 00 FF 0F 87 [09:10:06]RasterBufferAndPrint [09:10:06]line Счет N : (1)30970 [09:10:06]line ИНН: 02508201610067 [09:10:06]line Контрольно-Кассовый Чек [09:10:06]line ПРОДАЖА [09:10:06]line ТРК (МРК, ГНК) : 12 [09:10:06]line Товар: 2710124130 [09:10:06]line Аи-92-К-5 [09:10:06]line 14.950 * 66.90 [09:10:06]line = 1000.16 [09:10:06]line НДС 12% НСП 1% [09:10:06]line > о реализуемом товаре [09:10:06]line ИТОГО: 1000.16 [09:10:06]line НСП 1% : 8.85 [09:10:06]line НДС 12% : 106.21 [09:10:06]line Наличными: 0.00 [09:10:06]line Безнал.: 1000.16 [09:10:06]line Место: АЗС № 170 "Партнер Нефть" [09:10:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:10:06]line СНО: Общий режим [09:10:06]line Чек 31 26.10.2024 09:10 [09:10:06]line Смена: 541 ФФД: 1.0 [09:10:06]line ЗНМ: 0300000110 [09:10:06]line РНМ: 0000000000091776 [09:10:06]line Версия ККМ: 001 [09:10:06]line Платежная система: Кыргызкоммерцбанк [09:10:06]line ФМ: 0000000000871754 [09:10:06]line ФД: 191668 [09:10:06]line ФПД: 224586897033741 [09:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091018&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191668&fm=224586897033741&tin=02508201610067®Number=0000000000091776&sum=100016 [09:10:06]written 0, free lines is 4095 [09:10:07]Write to MH i2c: 01 00 00 B7 E5 9C [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 B7 E5 00 00 00 00 00 CD 0C 7C [09:10:07]RasterBufferAndPrint [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]written 0, free lines is 3282 [09:10:07]MH_Cut [09:10:07]Write to MH i2c: D1 01 00 BE E5 01 75 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: D1 01 00 BE E5 00 74 [09:10:07]Write to MH i2c: 01 00 00 BF E5 A4 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:08]*** Cut start [09:10:08]*** Partial cut [09:10:08]*** CUTSNS_PIN = 1 [09:10:08]*** CUTSNS_PIN = 0 [09:10:08]*** Brake cut motor [09:10:08]Read from MH i2c: 01 [09:10:08]MH_I2C_Read... [09:10:08]*** Stop cut motor [09:10:08]*** Cut end [09:10:08]Read from MH i2c: 01 07 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: 01 07 00 BF E5 00 00 00 00 00 FF 0F B9 [09:10:08]process_action close_receipt done [09:10:08]requested_data is exist [09:10:08]produce_requested_data [09:10:08]requested_item fm.sn is exist - process it [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 11 00 00 [09:10:08]Write to MH i2c: E2 08 00 C0 E5 80 11 00 00 00 00 00 00 1F [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 17 00 C0 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [09:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:10:08]wFMCommunicate OK [09:10:08]requested_item fd.num is exist - process it [09:10:08]SAM_PROTO_GetFieldsCounters [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 13 00 00 [09:10:08]Write to MH i2c: E2 08 00 C1 E5 80 13 00 00 00 00 00 00 22 [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 62 00 C1 E5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetFieldsCounters done [09:10:09]requested_item shift.num is exist - process it [09:10:09]requested_item shift.opened is exist - process it [09:10:09]req_shift_opened [09:10:09]FM_GetShiftState [09:10:09]SAM_PROTO_GetShiftState [09:10:09]wFMCommunicate request_size=4 [09:10:09]MH_SAM_APDU [09:10:09]CAPDU: 80 13 01 00 [09:10:09]Write to MH i2c: E2 08 00 C2 E5 80 13 01 00 00 00 00 00 24 [09:10:09]Write i2c OK [09:10:09]MH_I2C_Read... [09:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:09]Read from MH i2c: E2 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 [09:10:09]MH_I2C_Read... [09:10:09]Read from MH i2c: E2 0E 00 C2 E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9D [09:10:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:10:09]wFMCommunicate OK [09:10:09]SAM_PROTO_GetShiftState done [09:10:09]FM_GetShiftState done [09:10:09]req_shift_opened done [09:10:09]requested_item shift.open_date is exist - process it [09:10:09]req_shift_open_date [09:10:09]req_shift_open_date done [09:10:09]produce_requested_data done [09:10:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191668,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:10:09]process_action_free close_receipt [09:10:09]json_value_free [09:10:09]json_value_free done [09:10:09]process_json_proto returns [09:10:09]Send response to host [09:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191668,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:10:09]free response buf [09:10:09]execute_script done [09:10:09]execute_script returns [09:10:09]free content buf [09:10:09]Sock 8.Close socket [09:10:09]Sock 8.Thread stoped [09:10:17]ConnectInit Can't connect to host [09:10:17]CommunicateWithHost connect error [09:10:17]CommunicateWithHost err = -1 [09:10:17]OFD Sender: Server communicate error [09:10:17]OFD Sender: Processing packet 191666 [packets to send 77, broken 74] [09:10:17]ProducePacketName [09:10:17]name=ofd_packets/00191666 [09:10:17]OFD Sender: To server: pG, [09:10:17]CommunicateWithHost lk.salyk.kg:30040 [09:10:17]ConnectInit lk.salyk.kg [09:10:17]Connected sock=8 [09:10:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 C9 07 01 F2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 83 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EC 02 00 35 04 06 00 FC 01 CC E2 A1 8C A5 5E 55 94 4D CE 42 74 [09:10:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 45 47 00 D4 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 EC 02 00 F4 03 04 00 D0 56 1C 67 B6 04 01 00 00 F5 C8 AF 4C 13 02 87 BC [09:10:17]CommunicateWithHost err = 0 [09:10:17]CheckOFDResponse [09:10:17]1017 (14) - 77093643461234 [09:10:17]1041 (16) - 0000000000871754 [09:10:17]1040 (4) - 191666 [09:10:17]1012 (4) - 26.10.2024 02:41 [09:10:17]1206 (1) - 0 [09:10:17]OFD Sender: Remove packet 191666 [09:10:17]ProducePacketName [09:10:17]name=ofd_packets/00191666 [09:10:17]NVStorageDeleteData [09:10:18]OFD Sender: Processing packet 191667 [packets to send 76, broken 74] [09:10:18]ProducePacketName [09:10:18]name=ofd_packets/00191667 [09:10:18]OFD Sender: To server: pG, [09:10:18]CommunicateWithHost lk.salyk.kg:30040 [09:10:18]ConnectInit lk.salyk.kg [09:10:18]Connected sock=8 [09:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 8F 04 01 DA 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B3 B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EC 02 00 35 04 06 00 90 AE 5C CC B4 03 24 ED 76 18 A2 77 17 7B [09:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B F0 47 00 98 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 EC 02 00 F4 03 04 00 D1 56 1C 67 B6 04 01 00 00 29 C1 DE DE C2 91 B2 5D [09:10:18]CommunicateWithHost err = 0 [09:10:18]CheckOFDResponse [09:10:18]1017 (14) - 77093643461234 [09:10:18]1041 (16) - 0000000000871754 [09:10:18]1040 (4) - 191667 [09:10:18]1012 (4) - 26.10.2024 02:41 [09:10:18]1206 (1) - 0 [09:10:18]OFD Sender: Remove packet 191667 [09:10:18]ProducePacketName [09:10:18]name=ofd_packets/00191667 [09:10:18]NVStorageDeleteData [09:10:19]OFD Sender: Processing packet 191668 [packets to send 75, broken 74] [09:10:19]ProducePacketName [09:10:19]name=ofd_packets/00191668 [09:10:19]OFD Sender: To server: pG, [09:10:19]CommunicateWithHost lk.salyk.kg:30040 [09:10:19]ConnectInit lk.salyk.kg [09:10:19]Connected sock=8 [09:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 5F 07 01 FB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 FA B1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EC 02 00 35 04 06 00 CC 42 B6 38 0A 0D A4 55 3A 69 31 A5 4A A4 [09:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 3B 47 00 CA C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 EC 02 00 F4 03 04 00 D2 56 1C 67 B6 04 01 00 00 68 5F 20 C2 E2 81 B5 59 [09:10:19]CommunicateWithHost err = 0 [09:10:19]CheckOFDResponse [09:10:19]1017 (14) - 77093643461234 [09:10:19]1041 (16) - 0000000000871754 [09:10:19]1040 (4) - 191668 [09:10:19]1012 (4) - 26.10.2024 02:41 [09:10:19]1206 (1) - 0 [09:10:19]OFD Sender: Remove packet 191668 [09:10:19]ProducePacketName [09:10:19]name=ofd_packets/00191668 [09:10:19]NVStorageDeleteData [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11: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:24]accept exits with 9 [09:16:24]New connection [09:16:24]New thread 3066961252 created [09:16:24]Thread 3066817892 joined [09:16:24]Waiting for new connection... [09:16:24] Sock 9.Parse request [09:16:24]Sock 9.Check first char [09:16:24]Sock 9.First char is OK [09:16:24]request: POST /json_proto HTTP/1.0 [09:16:24]Method: POST [09:16:24]URL: /json_proto [09:16:24]Method is POST - this is cgi request [09:16:24]url: /json_proto [09:16:24]query_string will be loaded in cgi processing [09:16:24]execute_cgi json_proto POST (null) [09:16:24]execute_cgi path=json_proto method=POST [09:16:24]POST find Content-Length [09:16:24]Host: 172.17.63.131:8080 [09:16:24]Content-Length: 681 [09:16:24]Content-Type: application/json [09:16:24] [09:16:24]POST finish read [09:16:24]Found Content-Length = 681 [09:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:24]execute_script... [09:16: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)30971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:24]POST & json_proto [09:16:24]process_json_proto [09:16:24]json parsed OK: [09:16:24]protocol is kg_v1.0 [09:16:24]action value=close_receipt [09:16:24]process_action close_receipt [09:16:24]cmd_close_receipt [09:16:24]MH_GetDate [09:16:24]Write to MH i2c: F0 00 00 C3 E5 97 [09:16:24]Write i2c OK [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: F0 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: F0 09 00 [09:16:24]MH_I2C_Read... [09:16:24]Read from MH i2c: F0 09 00 C3 E5 00 76 B3 1C 67 22 05 6E 64 45 [09:16:24]GetLastDocTimeStamp 1729933818 [09:16:24]current date 1729934198 [09:16:24]FM_GetShiftState [09:16:24]SAM_PROTO_GetShiftState [09:16:24]wFMCommunicate request_size=4 [09:16:24]MH_SAM_APDU [09:16:24]CAPDU: 80 13 01 00 [09:16:24]Write to MH i2c: E2 08 00 C4 E5 80 13 01 00 00 00 00 00 26 [09:16:24]Write i2c OK [09:16:24]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 0E 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 0E 00 C4 E5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9F [09:16:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:16:25]wFMCommunicate OK [09:16:25]SAM_PROTO_GetShiftState done [09:16:25]FM_GetShiftState done [09:16:25]opened in 1729902770 [09:16:25]opened+sec_in_day 1729989170 [09:16:25]quantity*price = 100015 [09:16:25]sum+1 = 100017 [09:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 32 26.10.2024 09:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191669 ФПД: 161199075953098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191669&fm=161199075953098&tin=02508201610067®Number=0000000000091776&sum=100000 [09:16:26]StoreToDocumentArchive [09:16:26]shift 541 fd 191669 [09:16:26]save to /storage/0541/doc_00191669 [09:16:26]save last doc name /storage/0541/doc_00191669 to /storage/kkm_last_doc_name [09:16:26]save OK [09:16:26]Clear old archive folders... [09:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:26]tlvbuf is 016EB3A0 [09:16:26]SAM_PROTO_ClearQueue [09:16:26]wFMCommunicate request_size=4 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 09 00 00 [09:16:26]Write to MH i2c: E2 08 00 D1 E5 80 09 00 00 00 00 00 00 28 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 D1 E5 00 90 00 2A [09:16:26]RAPDU: 90 00 [09:16:26]wFMCommunicate OK [09:16:26]SAM_PROTO_ClearQueue done [09:16:26]KKMCreateOFDPacket [09:16:26]OFDProtocolAddRootSTLVToBuf [09:16:26]FM_MakeSignedData [09:16:26]FM_MakeSignedData [09:16:26]SAM_PROTO_SignData [09:16:26]wFMCommunicate request_size=4 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 0D 01 02 [09:16:26]Write to MH i2c: E2 08 00 D2 E5 80 0D 01 02 00 00 00 00 30 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 D2 E5 00 90 00 2B [09:16:26]RAPDU: 90 00 [09:16:26]wFMCommunicate OK [09:16:26]wFMCommunicate request_size=255 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 B3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EC 02 00 35 04 06 00 92 [09:16:26]Write to MH i2c: E2 02 01 D3 E5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 B3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EC 02 00 35 04 06 00 92 00 00 DE [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 D3 E5 00 90 00 2C [09:16:26]RAPDU: 90 00 [09:16:26]wFMCommunicate OK [09:16:26]wFMCommunicate request_size=10 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 0D 02 02 05 9C 15 A9 09 CA [09:16:26]Write to MH i2c: E2 0D 00 D4 E5 80 0D 02 02 05 00 9C 15 A9 09 CA 00 00 6A [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 03 00 D4 E5 00 90 00 2D [09:16:26]RAPDU: 90 00 [09:16:26]wFMCommunicate OK [09:16:26]wFMCommunicate request_size=4 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 0D 03 02 [09:16:26]Write to MH i2c: E2 08 00 D5 E5 80 0D 03 02 00 00 00 00 35 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 0B 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 0B 00 D5 E5 00 B6 9F 8F DC E2 07 E8 FA 90 00 C1 [09:16:26]RAPDU: B6 9F 8F DC E2 07 E8 FA 90 00 [09:16:26]wFMCommunicate OK [09:16:26]SAM_PROTO_SignData done [09:16:26]FM_MakeSignedData done [09:16:26]CreateOFDProtocolMessage [09:16:26]wFMCommunicate request_size=4 [09:16:26]MH_SAM_APDU [09:16:26]CAPDU: 80 11 00 00 [09:16:26]Write to MH i2c: E2 08 00 D6 E5 80 11 00 00 00 00 00 00 35 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:26]Read from MH i2c: E2 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 17 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: E2 17 00 D6 E5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [09:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:16:26]wFMCommunicate OK [09:16:26]CreateOFDProtocolMessage done [09:16:26]OFDSenderStorePacket 191669 [09:16:26]StoreOFDPacket docnum=191669 [09:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 FB 07 01 AC 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 B3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EC 02 00 35 04 06 00 92 9C 15 A9 09 CA B6 9F 8F DC E2 07 E8 FA [09:16:26]CheckFolder [09:16:26]dirname=/storage/ofd_packets [09:16:26]CheckFolder done [09:16:26]ProducePacketName [09:16:26]name=ofd_packets/00191669 [09:16:26]NVStorageSaveData ofd_packets/00191669 [09:16:26]File name is /storage/ofd_packets/00191669 [09:16:26]Write 301 bytes [09:16:26]NVStorageSaveData done [09:16:26]OFDSenderStorePacket done [09:16:26]KKMCreateOFDPacket done [09:16:26]NVStorageSaveData kkm_last_timestamp [09:16:26]File name is /storage/kkm_last_timestamp [09:16:26]Write 4 bytes [09:16:26]NVStorageSaveData done [09:16:26]ExternCall_PrintAddStr [09:16:26]wPrintStart [09:16:26]Write to MH i2c: 01 00 00 D7 E5 BC [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 07 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 07 00 D7 E5 00 00 00 00 00 FF 0F D1 [09:16:26]RasterBufferAndPrint [09:16:26]line Счет N : (1)30971 [09:16:26]line ИНН: 02508201610067 [09:16:26]line Контрольно-Кассовый Чек [09:16:26]line ПРОДАЖА [09:16:26]line ТРК (МРК, ГНК) : 21 [09:16:26]line Товар: 2710124130 [09:16:26]line Аи-92-К-5 [09:16:26]line 14.950 * 66.90 [09:16:26]line = 1000.16 [09:16:26]line НДС 12% НСП 1% [09:16:26]line > о реализуемом товаре [09:16:26]line ОКРУГЛЕНИЕ: -0.16 [09:16:26]line ИТОГО: 1000.00 [09:16:26]line Внесено: 1000.00 [09:16:26]line СДАЧА: 0.00 [09:16:26]line НСП 1% : 8.85 [09:16:26]line НДС 12% : 106.21 [09:16:26]line Наличными: 1000.00 [09:16:26]line Безнал.: 0.00 [09:16:26]line Место: АЗС № 170 "Партнер Нефть" [09:16:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:16:26]line СНО: Общий режим [09:16:26]line Чек 32 26.10.2024 09:16 [09:16:26]line Смена: 541 ФФД: 1.0 [09:16:26]line ЗНМ: 0300000110 [09:16:26]line РНМ: 0000000000091776 [09:16:26]line Версия ККМ: 001 [09:16:26]line ФМ: 0000000000871754 [09:16:26]line ФД: 191669 [09:16:26]line ФПД: 161199075953098 [09:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T091638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191669&fm=161199075953098&tin=02508201610067®Number=0000000000091776&sum=100000 [09:16:27]OFD Sender: Processing packet 191669 [packets to send 75, broken 74] [09:16:27]ProducePacketName [09:16:27]name=ofd_packets/00191669 [09:16:27]OFD Sender: To server: pG, [09:16:27]CommunicateWithHost lk.salyk.kg:30040 [09:16:27]ConnectInit lk.salyk.kg [09:16:27]written 0, free lines is 4095 [09:16:27]Connected sock=10 [09:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 FB 07 01 AC 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 76 B3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EC 02 00 35 04 06 00 92 9C 15 A9 09 CA B6 9F 8F DC E2 07 E8 FA [09:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FC 4C 47 00 1F 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 EC 02 00 F4 03 04 00 42 58 1C 67 B6 04 01 00 00 58 6C BE 45 FC E9 A7 F3 [09:16:27]CommunicateWithHost err = 0 [09:16:27]CheckOFDResponse [09:16:27]1017 (14) - 77093643461234 [09:16:27]1041 (16) - 0000000000871754 [09:16:27]1040 (4) - 191669 [09:16:27]1012 (4) - 26.10.2024 02:47 [09:16:27]1206 (1) - 0 [09:16:27]OFD Sender: Remove packet 191669 [09:16:27]ProducePacketName [09:16:27]name=ofd_packets/00191669 [09:16:27]NVStorageDeleteData [09:16:27]Write to MH i2c: 01 00 00 02 E6 E8 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 02 E6 00 00 00 00 00 B0 0C AB [09:16:27]RasterBufferAndPrint [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]line [09:16:27]written 0, free lines is 3254 [09:16:27]MH_Cut [09:16:27]Write to MH i2c: D1 01 00 09 E6 01 C1 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 01 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: D1 01 00 09 E6 00 C0 [09:16:27]Write to MH i2c: 01 00 00 0A E6 F0 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]OFD Sender: No OFD packet to send [09:16:28]*** Cut start [09:16:28]*** Partial cut [09:16:28]*** CUTSNS_PIN = 1 [09:16:28]*** CUTSNS_PIN = 0 [09:16:28]*** Brake cut motor [09:16:28]Read from MH i2c: 01 [09:16:28]MH_I2C_Read... [09:16:28]*** Stop cut motor [09:16:28]*** Cut end [09:16:28]Read from MH i2c: 01 07 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: 01 07 00 0A E6 00 00 00 00 00 FF 0F 05 [09:16:28]process_action close_receipt done [09:16:28]requested_data is exist [09:16:28]produce_requested_data [09:16:28]requested_item fm.sn is exist - process it [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 11 00 00 [09:16:28]Write to MH i2c: E2 08 00 0B E6 80 11 00 00 00 00 00 00 6B [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 17 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 17 00 0B E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [09:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:16:29]wFMCommunicate OK [09:16:29]requested_item fd.num is exist - process it [09:16:29]SAM_PROTO_GetFieldsCounters [09:16:29]wFMCommunicate request_size=4 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 13 00 00 [09:16:29]Write to MH i2c: E2 08 00 0C E6 80 13 00 00 00 00 00 00 6E [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 62 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 62 00 0C E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:29]wFMCommunicate OK [09:16:29]SAM_PROTO_GetFieldsCounters done [09:16:29]requested_item shift.num is exist - process it [09:16:29]requested_item shift.opened is exist - process it [09:16:29]req_shift_opened [09:16:29]FM_GetShiftState [09:16:29]SAM_PROTO_GetShiftState [09:16:29]wFMCommunicate request_size=4 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 13 01 00 [09:16:29]Write to MH i2c: E2 08 00 0D E6 80 13 01 00 00 00 00 00 70 [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 0E 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 0E 00 0D E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E9 [09:16:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:16:29]wFMCommunicate OK [09:16:29]SAM_PROTO_GetShiftState done [09:16:29]FM_GetShiftState done [09:16:29]req_shift_opened done [09:16:29]requested_item shift.open_date is exist - process it [09:16:29]req_shift_open_date [09:16:29]req_shift_open_date done [09:16:29]produce_requested_data done [09:16:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191669,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:16:29]process_action_free close_receipt [09:16:29]json_value_free [09:16:29]json_value_free done [09:16:29]process_json_proto returns [09:16:29]Send response to host [09:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191669,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:16:29]free response buf [09:16:29]execute_script done [09:16:29]execute_script returns [09:16:29]free content buf [09:16:29]Sock 9.Close socket [09:16:29]Sock 9.Thread stoped [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:15]accept exits with 8 [09:22:15]New connection [09:22:15]New thread 3066817892 created [09:22:15]Thread 3066961252 joined [09:22:15]Waiting for new connection... [09:22:15] Sock 8.Parse request [09:22:15]Sock 8.Check first char [09:22:15]Sock 8.First char is OK [09:22:15]request: POST /json_proto HTTP/1.0 [09:22:15]Method: POST [09:22:15]URL: /json_proto [09:22:15]Method is POST - this is cgi request [09:22:15]url: /json_proto [09:22:15]query_string will be loaded in cgi processing [09:22:15]execute_cgi json_proto POST (null) [09:22:15]execute_cgi path=json_proto method=POST [09:22:15]POST find Content-Length [09:22:15]Host: 172.17.63.131:8080 [09:22:15]Content-Length: 676 [09:22:15]Content-Type: application/json [09:22:15] [09:22:15]POST finish read [09:22:15]Found Content-Length = 676 [09:22:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]execute_script... [09:22: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)30972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:15]POST & json_proto [09:22:15]process_json_proto [09:22:15]json parsed OK: [09:22:15]protocol is kg_v1.0 [09:22:15]action value=close_receipt [09:22:15]process_action close_receipt [09:22:15]cmd_close_receipt [09:22:15]MH_GetDate [09:22:15]Write to MH i2c: F0 00 00 0E E6 E3 [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: F0 09 00 0E E6 00 D4 B4 1C 67 22 05 6E 64 F0 [09:22:15]GetLastDocTimeStamp 1729934198 [09:22:15]current date 1729934548 [09:22:15]FM_GetShiftState [09:22:15]SAM_PROTO_GetShiftState [09:22:15]wFMCommunicate request_size=4 [09:22:15]MH_SAM_APDU [09:22:15]CAPDU: 80 13 01 00 [09:22:15]Write to MH i2c: E2 08 00 0F E6 80 13 01 00 00 00 00 00 72 [09:22:15]Write i2c OK [09:22:15]MH_I2C_Read... [09:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:15]Read from MH i2c: E2 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0E 00 [09:22:15]MH_I2C_Read... [09:22:15]Read from MH i2c: E2 0E 00 0F E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EB [09:22:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:22:15]wFMCommunicate OK [09:22:15]SAM_PROTO_GetShiftState done [09:22:15]FM_GetShiftState done [09:22:15]opened in 1729902770 [09:22:15]opened+sec_in_day 1729989170 [09:22:15]quantity*price = 50041 [09:22:15]sum+1 = 50042 [09:22:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 33 26.10.2024 09:22 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191670 ФПД: 165951355527283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191670&fm=165951355527283&tin=02508201610067®Number=0000000000091776&sum=50000 [09:22:16]StoreToDocumentArchive [09:22:16]shift 541 fd 191670 [09:22:16]save to /storage/0541/doc_00191670 [09:22:16]save last doc name /storage/0541/doc_00191670 to /storage/kkm_last_doc_name [09:22:16]save OK [09:22:16]Clear old archive folders... [09:22:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:16]tlvbuf is 018600C0 [09:22:16]SAM_PROTO_ClearQueue [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 09 00 00 [09:22:16]Write to MH i2c: E2 08 00 1C E6 80 09 00 00 00 00 00 00 74 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 1C E6 00 90 00 76 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]SAM_PROTO_ClearQueue done [09:22:16]KKMCreateOFDPacket [09:22:16]OFDProtocolAddRootSTLVToBuf [09:22:16]FM_MakeSignedData [09:22:16]FM_MakeSignedData [09:22:16]SAM_PROTO_SignData [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 01 02 [09:22:16]Write to MH i2c: E2 08 00 1D E6 80 0D 01 02 00 00 00 00 7C [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 1D E6 00 90 00 77 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=255 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 B4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EC 02 00 35 04 06 00 96 [09:22:16]Write to MH i2c: E2 02 01 1E E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 B4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EC 02 00 35 04 06 00 96 00 00 96 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 1E E6 00 90 00 78 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=10 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 02 02 05 EE 8F 98 A0 73 [09:22:16]Write to MH i2c: E2 0D 00 1F E6 80 0D 02 02 05 00 EE 8F 98 A0 73 00 00 B1 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 03 00 1F E6 00 90 00 79 [09:22:16]RAPDU: 90 00 [09:22:16]wFMCommunicate OK [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 0D 03 02 [09:22:16]Write to MH i2c: E2 08 00 20 E6 80 0D 03 02 00 00 00 00 81 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 0B 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 0B 00 20 E6 00 3D 43 1B DE 45 7F BC 0D 90 00 88 [09:22:16]RAPDU: 3D 43 1B DE 45 7F BC 0D 90 00 [09:22:16]wFMCommunicate OK [09:22:16]SAM_PROTO_SignData done [09:22:16]FM_MakeSignedData done [09:22:16]CreateOFDProtocolMessage [09:22:16]wFMCommunicate request_size=4 [09:22:16]MH_SAM_APDU [09:22:16]CAPDU: 80 11 00 00 [09:22:16]Write to MH i2c: E2 08 00 21 E6 80 11 00 00 00 00 00 00 81 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:16]Read from MH i2c: E2 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 17 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: E2 17 00 21 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [09:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:22:16]wFMCommunicate OK [09:22:16]CreateOFDProtocolMessage done [09:22:16]OFDSenderStorePacket 191670 [09:22:16]StoreOFDPacket docnum=191670 [09:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E C5 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 B4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EC 02 00 35 04 06 00 96 EE 8F 98 A0 73 3D 43 1B DE 45 7F BC 0D [09:22:16]CheckFolder [09:22:16]dirname=/storage/ofd_packets [09:22:16]CheckFolder done [09:22:16]ProducePacketName [09:22:16]name=ofd_packets/00191670 [09:22:16]NVStorageSaveData ofd_packets/00191670 [09:22:16]File name is /storage/ofd_packets/00191670 [09:22:16]Write 301 bytes [09:22:16]NVStorageSaveData done [09:22:16]OFDSenderStorePacket done [09:22:16]KKMCreateOFDPacket done [09:22:16]NVStorageSaveData kkm_last_timestamp [09:22:16]File name is /storage/kkm_last_timestamp [09:22:16]Write 4 bytes [09:22:16]NVStorageSaveData done [09:22:16]ExternCall_PrintAddStr [09:22:16]wPrintStart [09:22:16]Write to MH i2c: 01 00 00 22 E6 08 [09:22:16]Write i2c OK [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: 01 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: 01 07 00 [09:22:16]MH_I2C_Read... [09:22:16]Read from MH i2c: 01 07 00 22 E6 00 00 00 00 00 FF 0F 1D [09:22:16]RasterBufferAndPrint [09:22:16]line Счет N : (1)30972 [09:22:16]line ИНН: 02508201610067 [09:22:16]line Контрольно-Кассовый Чек [09:22:16]line ПРОДАЖА [09:22:16]line ТРК (МРК, ГНК) : 12 [09:22:16]line Товар: 2710124130 [09:22:16]line Аи-92-К-5 [09:22:16]line 7.480 * 66.90 [09:22:16]line = 500.41 [09:22:16]line НДС 12% НСП 1% [09:22:16]line > о реализуемом товаре [09:22:16]line ОКРУГЛЕНИЕ: -0.41 [09:22:16]line ИТОГО: 500.00 [09:22:16]line Внесено: 500.00 [09:22:16]line СДАЧА: 0.00 [09:22:16]line НСП 1% : 4.43 [09:22:16]line НДС 12% : 53.14 [09:22:16]line Наличными: 500.00 [09:22:16]line Безнал.: 0.00 [09:22:16]line Место: АЗС № 170 "Партнер Нефть" [09:22:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:22:16]line СНО: Общий режим [09:22:16]line Чек 33 26.10.2024 09:22 [09:22:16]line Смена: 541 ФФД: 1.0 [09:22:16]line ЗНМ: 0300000110 [09:22:16]line РНМ: 0000000000091776 [09:22:16]line Версия ККМ: 001 [09:22:16]line ФМ: 0000000000871754 [09:22:16]line ФД: 191670 [09:22:16]line ФПД: 165951355527283 [09:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191670&fm=165951355527283&tin=02508201610067®Number=0000000000091776&sum=50000 [09:22:17]OFD Sender: Processing packet 191670 [packets to send 75, broken 74] [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00191670 [09:22:17]OFD Sender: To server: pG, [09:22:17]CommunicateWithHost lk.salyk.kg:30040 [09:22:17]ConnectInit lk.salyk.kg [09:22:17]written 0, free lines is 4095 [09:22:17]Connected sock=10 [09:22:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E C5 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 D5 B4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EC 02 00 35 04 06 00 96 EE 8F 98 A0 73 3D 43 1B DE 45 7F BC 0D [09:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 93 DA 47 00 58 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 EC 02 00 F4 03 04 00 A0 59 1C 67 B6 04 01 00 00 27 6A 4D 44 32 BD B9 03 [09:22:17]CommunicateWithHost err = 0 [09:22:17]CheckOFDResponse [09:22:17]1017 (14) - 77093643461234 [09:22:17]1041 (16) - 0000000000871754 [09:22:17]1040 (4) - 191670 [09:22:17]1012 (4) - 26.10.2024 02:53 [09:22:17]1206 (1) - 0 [09:22:17]OFD Sender: Remove packet 191670 [09:22:17]ProducePacketName [09:22:17]name=ofd_packets/00191670 [09:22:17]NVStorageDeleteData [09:22:17]Write to MH i2c: 01 00 00 4D E6 33 [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: 01 07 00 4D E6 00 00 00 00 00 BB 0C 01 [09:22:17]RasterBufferAndPrint [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]line [09:22:17]written 0, free lines is 3266 [09:22:17]MH_Cut [09:22:17]Write to MH i2c: D1 01 00 54 E6 01 0C [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 01 00 [09:22:17]MH_I2C_Read... [09:22:17]Read from MH i2c: D1 01 00 54 E6 00 0B [09:22:17]Write to MH i2c: 01 00 00 55 E6 3B [09:22:17]Write i2c OK [09:22:17]MH_I2C_Read... [09:22:18]OFD Sender: No OFD packet to send [09:22:18]*** Cut start [09:22:18]*** Partial cut [09:22:18]*** CUTSNS_PIN = 1 [09:22:18]*** CUTSNS_PIN = 0 [09:22:18]*** Brake cut motor [09:22:19]Read from MH i2c: 01 [09:22:19]MH_I2C_Read... [09:22:19]*** Stop cut motor [09:22:19]*** Cut end [09:22:19]Read from MH i2c: 01 07 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: 01 07 00 55 E6 00 00 00 00 00 FF 0F 50 [09:22:19]process_action close_receipt done [09:22:19]requested_data is exist [09:22:19]produce_requested_data [09:22:19]requested_item fm.sn is exist - process it [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 11 00 00 [09:22:19]Write to MH i2c: E2 08 00 56 E6 80 11 00 00 00 00 00 00 B6 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 17 00 56 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [09:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:22:19]wFMCommunicate OK [09:22:19]requested_item fd.num is exist - process it [09:22:19]SAM_PROTO_GetFieldsCounters [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 00 00 [09:22:19]Write to MH i2c: E2 08 00 57 E6 80 13 00 00 00 00 00 00 B9 [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 62 00 57 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [09:22:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetFieldsCounters done [09:22:19]requested_item shift.num is exist - process it [09:22:19]requested_item shift.opened is exist - process it [09:22:19]req_shift_opened [09:22:19]FM_GetShiftState [09:22:19]SAM_PROTO_GetShiftState [09:22:19]wFMCommunicate request_size=4 [09:22:19]MH_SAM_APDU [09:22:19]CAPDU: 80 13 01 00 [09:22:19]Write to MH i2c: E2 08 00 58 E6 80 13 01 00 00 00 00 00 BB [09:22:19]Write i2c OK [09:22:19]MH_I2C_Read... [09:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:19]Read from MH i2c: E2 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 [09:22:19]MH_I2C_Read... [09:22:19]Read from MH i2c: E2 0E 00 58 E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 34 [09:22:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:22:19]wFMCommunicate OK [09:22:19]SAM_PROTO_GetShiftState done [09:22:19]FM_GetShiftState done [09:22:19]req_shift_opened done [09:22:19]requested_item shift.open_date is exist - process it [09:22:19]req_shift_open_date [09:22:19]req_shift_open_date done [09:22:19]produce_requested_data done [09:22:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191670,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:22:19]process_action_free close_receipt [09:22:19]json_value_free [09:22:19]json_value_free done [09:22:19]process_json_proto returns [09:22:19]Send response to host [09:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191670,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:22:19]free response buf [09:22:19]execute_script done [09:22:19]execute_script returns [09:22:19]free content buf [09:22:19]Sock 8.Close socket [09:22:19]Sock 8.Thread stoped [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:41]accept exits with 9 [09:24:41]New connection [09:24:41]New thread 3066961252 created [09:24:41]Thread 3066817892 joined [09:24:41]Waiting for new connection... [09:24:41] Sock 9.Parse request [09:24:41]Sock 9.Check first char [09:24:41]Sock 9.First char is OK [09:24:41]request: POST /json_proto HTTP/1.0 [09:24:41]Method: POST [09:24:41]URL: /json_proto [09:24:41]Method is POST - this is cgi request [09:24:41]url: /json_proto [09:24:41]query_string will be loaded in cgi processing [09:24:41]execute_cgi json_proto POST (null) [09:24:41]execute_cgi path=json_proto method=POST [09:24:41]POST find Content-Length [09:24:41]Host: 172.17.63.131:8080 [09:24:41]Content-Length: 673 [09:24:41]Content-Type: application/json [09:24:41] [09:24:41]POST finish read [09:24:41]Found Content-Length = 673 [09:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30973", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:41]execute_script... [09:24:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30973", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:41]POST & json_proto [09:24:41]process_json_proto [09:24:41]json parsed OK: [09:24:41]protocol is kg_v1.0 [09:24:41]action value=close_receipt [09:24:41]process_action close_receipt [09:24:41]cmd_close_receipt [09:24:41]MH_GetDate [09:24:41]Write to MH i2c: F0 00 00 59 E6 2E [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 09 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: F0 09 00 59 E6 00 67 B5 1C 67 22 05 6E 64 CF [09:24:41]GetLastDocTimeStamp 1729934549 [09:24:41]current date 1729934695 [09:24:41]FM_GetShiftState [09:24:41]SAM_PROTO_GetShiftState [09:24:41]wFMCommunicate request_size=4 [09:24:41]MH_SAM_APDU [09:24:41]CAPDU: 80 13 01 00 [09:24:41]Write to MH i2c: E2 08 00 5A E6 80 13 01 00 00 00 00 00 BD [09:24:41]Write i2c OK [09:24:41]MH_I2C_Read... [09:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:41]Read from MH i2c: E2 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 [09:24:41]MH_I2C_Read... [09:24:41]Read from MH i2c: E2 0E 00 5A E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 36 [09:24:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:24:41]wFMCommunicate OK [09:24:41]SAM_PROTO_GetShiftState done [09:24:41]FM_GetShiftState done [09:24:41]opened in 1729902770 [09:24:41]opened+sec_in_day 1729989170 [09:24:41]quantity*price = 50063 [09:24:41]sum+1 = 50064 [09:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 34 26.10.2024 09:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191671 ФПД: 149130341814293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191671&fm=149130341814293&tin=02508201610067®Number=0000000000091776&sum=50000 [09:24:42]StoreToDocumentArchive [09:24:42]shift 541 fd 191671 [09:24:42]save to /storage/0541/doc_00191671 [09:24:42]save last doc name /storage/0541/doc_00191671 to /storage/kkm_last_doc_name [09:24:42]save OK [09:24:42]Clear old archive folders... [09:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:24:42]tlvbuf is 0160B3B0 [09:24:42]SAM_PROTO_ClearQueue [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 09 00 00 [09:24:42]Write to MH i2c: E2 08 00 67 E6 80 09 00 00 00 00 00 00 BF [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 67 E6 00 90 00 C1 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]SAM_PROTO_ClearQueue done [09:24:42]KKMCreateOFDPacket [09:24:42]OFDProtocolAddRootSTLVToBuf [09:24:42]FM_MakeSignedData [09:24:42]FM_MakeSignedData [09:24:42]SAM_PROTO_SignData [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 01 02 [09:24:42]Write to MH i2c: E2 08 00 68 E6 80 0D 01 02 00 00 00 00 C7 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 68 E6 00 90 00 C2 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=255 [09:24:42]MH_SAM_APDU [09:24: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 67 B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EC 02 00 35 04 06 00 87 A2 1D 0C [09:24:42]Write to MH i2c: E2 02 01 69 E6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 67 B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EC 02 00 35 04 06 00 87 A2 1D 0C 00 00 B0 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 69 E6 00 90 00 C3 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=7 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 02 02 02 90 15 [09:24:42]Write to MH i2c: E2 0A 00 6A E6 80 0D 02 02 02 00 90 15 00 00 73 [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:42]Read from MH i2c: E2 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 [09:24:42]MH_I2C_Read... [09:24:42]Read from MH i2c: E2 03 00 6A E6 00 90 00 C4 [09:24:42]RAPDU: 90 00 [09:24:42]wFMCommunicate OK [09:24:42]wFMCommunicate request_size=4 [09:24:42]MH_SAM_APDU [09:24:42]CAPDU: 80 0D 03 02 [09:24:42]Write to MH i2c: E2 08 00 6B E6 80 0D 03 02 00 00 00 00 CC [09:24:42]Write i2c OK [09:24:42]MH_I2C_Read... [09:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:43]Read from MH i2c: E2 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 0B 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 0B 00 6B E6 00 C3 E1 AE 01 B2 39 29 4A 90 00 7E [09:24:43]RAPDU: C3 E1 AE 01 B2 39 29 4A 90 00 [09:24:43]wFMCommunicate OK [09:24:43]SAM_PROTO_SignData done [09:24:43]FM_MakeSignedData done [09:24:43]CreateOFDProtocolMessage [09:24:43]wFMCommunicate request_size=4 [09:24:43]MH_SAM_APDU [09:24:43]CAPDU: 80 11 00 00 [09:24:43]Write to MH i2c: E2 08 00 6C E6 80 11 00 00 00 00 00 00 CC [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:43]Read from MH i2c: E2 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 17 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: E2 17 00 6C E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [09:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:24:43]wFMCommunicate OK [09:24:43]CreateOFDProtocolMessage done [09:24:43]OFDSenderStorePacket 191671 [09:24:43]StoreOFDPacket docnum=191671 [09:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4E BF 04 01 9E E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 67 B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EC 02 00 35 04 06 00 87 A2 1D 0C 90 15 C3 E1 AE 01 B2 39 29 4A [09:24:43]CheckFolder [09:24:43]dirname=/storage/ofd_packets [09:24:43]CheckFolder done [09:24:43]ProducePacketName [09:24:43]name=ofd_packets/00191671 [09:24:43]NVStorageSaveData ofd_packets/00191671 [09:24:43]File name is /storage/ofd_packets/00191671 [09:24:43]Write 298 bytes [09:24:43]NVStorageSaveData done [09:24:43]OFDSenderStorePacket done [09:24:43]KKMCreateOFDPacket done [09:24:43]NVStorageSaveData kkm_last_timestamp [09:24:43]File name is /storage/kkm_last_timestamp [09:24:43]Write 4 bytes [09:24:43]NVStorageSaveData done [09:24:43]ExternCall_PrintAddStr [09:24:43]wPrintStart [09:24:43]Write to MH i2c: 01 00 00 6D E6 53 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 6D E6 00 00 00 00 00 FF 0F 68 [09:24:43]RasterBufferAndPrint [09:24:43]line Счет N : (1)30973 [09:24:43]line ИНН: 02508201610067 [09:24:43]line Контрольно-Кассовый Чек [09:24:43]line ПРОДАЖА [09:24:43]line ТРК (МРК, ГНК) : 22 [09:24:43]line Товар: 2710194210 [09:24:43]line ДТ-К-5 [09:24:43]line 6.570 * 76.20 [09:24:43]line = 500.63 [09:24:43]line НДС 12% НСП 1% [09:24:43]line > о реализуемом товаре [09:24:43]line ОКРУГЛЕНИЕ: -0.63 [09:24:43]line ИТОГО: 500.00 [09:24:43]line Внесено: 500.00 [09:24:43]line СДАЧА: 0.00 [09:24:43]line НСП 1% : 4.43 [09:24:43]line НДС 12% : 53.16 [09:24:43]line Наличными: 500.00 [09:24:43]line Безнал.: 0.00 [09:24:43]line Место: АЗС № 170 "Партнер Нефть" [09:24:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:24:43]line СНО: Общий режим [09:24:43]line Чек 34 26.10.2024 09:24 [09:24:43]line Смена: 541 ФФД: 1.0 [09:24:43]line ЗНМ: 0300000110 [09:24:43]line РНМ: 0000000000091776 [09:24:43]line Версия ККМ: 001 [09:24:43]line ФМ: 0000000000871754 [09:24:43]line ФД: 191671 [09:24:43]line ФПД: 149130341814293 [09:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191671&fm=149130341814293&tin=02508201610067®Number=0000000000091776&sum=50000 [09:24:43]OFD Sender: Processing packet 191671 [packets to send 75, broken 74] [09:24:43]ProducePacketName [09:24:43]name=ofd_packets/00191671 [09:24:43]OFD Sender: To server: pG, [09:24:43]CommunicateWithHost lk.salyk.kg:30040 [09:24:43]ConnectInit lk.salyk.kg [09:24:43]written 0, free lines is 4095 [09:24:43]Connected sock=10 [09:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4E BF 04 01 9E E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 67 B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EC 02 00 35 04 06 00 87 A2 1D 0C 90 15 C3 E1 AE 01 B2 39 29 4A [09:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 C5 47 00 0B D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 EC 02 00 F4 03 04 00 32 5A 1C 67 B6 04 01 00 00 63 8A 5A D1 C2 61 45 9F [09:24:43]CommunicateWithHost err = 0 [09:24:43]CheckOFDResponse [09:24:43]1017 (14) - 77093643461234 [09:24:43]1041 (16) - 0000000000871754 [09:24:43]1040 (4) - 191671 [09:24:43]1012 (4) - 26.10.2024 02:55 [09:24:43]1206 (1) - 0 [09:24:43]OFD Sender: Remove packet 191671 [09:24:43]ProducePacketName [09:24:43]name=ofd_packets/00191671 [09:24:43]NVStorageDeleteData [09:24:43]Write to MH i2c: 01 00 00 98 E6 7E [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: 01 07 00 98 E6 00 00 00 00 00 B8 0C 49 [09:24:43]RasterBufferAndPrint [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]line [09:24:43]written 0, free lines is 3263 [09:24:43]MH_Cut [09:24:43]Write to MH i2c: D1 01 00 9F E6 01 57 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 01 00 [09:24:43]MH_I2C_Read... [09:24:43]Read from MH i2c: D1 01 00 9F E6 00 56 [09:24:43]Write to MH i2c: 01 00 00 A0 E6 86 [09:24:43]Write i2c OK [09:24:43]MH_I2C_Read... [09:24:44]OFD Sender: No OFD packet to send [09:24:44]*** Cut start [09:24:44]*** Partial cut [09:24:44]*** CUTSNS_PIN = 1 [09:24:44]*** CUTSNS_PIN = 0 [09:24:44]*** Brake cut motor [09:24:45]Read from MH i2c: 01 [09:24:45]MH_I2C_Read... [09:24:45]*** Stop cut motor [09:24:45]*** Cut end [09:24:45]Read from MH i2c: 01 07 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: 01 07 00 A0 E6 00 00 00 00 00 FF 0F 9B [09:24:45]process_action close_receipt done [09:24:45]requested_data is exist [09:24:45]produce_requested_data [09:24:45]requested_item fm.sn is exist - process it [09:24:45]wFMCommunicate request_size=4 [09:24:45]MH_SAM_APDU [09:24:45]CAPDU: 80 11 00 00 [09:24:45]Write to MH i2c: E2 08 00 A1 E6 80 11 00 00 00 00 00 00 01 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:45]Read from MH i2c: E2 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 17 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 17 00 A1 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [09:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:24:45]wFMCommunicate OK [09:24:45]requested_item fd.num is exist - process it [09:24:45]SAM_PROTO_GetFieldsCounters [09:24:45]wFMCommunicate request_size=4 [09:24:45]MH_SAM_APDU [09:24:45]CAPDU: 80 13 00 00 [09:24:45]Write to MH i2c: E2 08 00 A2 E6 80 13 00 00 00 00 00 00 04 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:45]Read from MH i2c: E2 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 62 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 62 00 A2 E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [09:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:45]wFMCommunicate OK [09:24:45]SAM_PROTO_GetFieldsCounters done [09:24:45]requested_item shift.num is exist - process it [09:24:45]requested_item shift.opened is exist - process it [09:24:45]req_shift_opened [09:24:45]FM_GetShiftState [09:24:45]SAM_PROTO_GetShiftState [09:24:45]wFMCommunicate request_size=4 [09:24:45]MH_SAM_APDU [09:24:45]CAPDU: 80 13 01 00 [09:24:45]Write to MH i2c: E2 08 00 A3 E6 80 13 01 00 00 00 00 00 06 [09:24:45]Write i2c OK [09:24:45]MH_I2C_Read... [09:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:45]Read from MH i2c: E2 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 0E 00 [09:24:45]MH_I2C_Read... [09:24:45]Read from MH i2c: E2 0E 00 A3 E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7F [09:24:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:24:45]wFMCommunicate OK [09:24:45]SAM_PROTO_GetShiftState done [09:24:45]FM_GetShiftState done [09:24:45]req_shift_opened done [09:24:45]requested_item shift.open_date is exist - process it [09:24:45]req_shift_open_date [09:24:45]req_shift_open_date done [09:24:45]produce_requested_data done [09:24:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191671,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:24:45]process_action_free close_receipt [09:24:45]json_value_free [09:24:45]json_value_free done [09:24:45]process_json_proto returns [09:24:45]Send response to host [09:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191671,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:24:45]free response buf [09:24:45]execute_script done [09:24:45]execute_script returns [09:24:45]free content buf [09:24:45]Sock 9.Close socket [09:24:45]Sock 9.Thread stoped [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:54]accept exits with 8 [09:26:54]New connection [09:26:54]New thread 3066817892 created [09:26:54]Thread 3066961252 joined [09:26:54]Waiting for new connection... [09:26:54] Sock 8.Parse request [09:26:54]Sock 8.Check first char [09:26:54]Sock 8.First char is OK [09:26:54]request: POST /json_proto HTTP/1.0 [09:26:54]Method: POST [09:26:54]URL: /json_proto [09:26:54]Method is POST - this is cgi request [09:26:54]url: /json_proto [09:26:54]query_string will be loaded in cgi processing [09:26:54]execute_cgi json_proto POST (null) [09:26:54]execute_cgi path=json_proto method=POST [09:26:54]POST find Content-Length [09:26:54]Host: 172.17.63.131:8080 [09:26:54]Content-Length: 791 [09:26:54]Content-Type: application/json [09:26:54] [09:26:54]POST finish read [09:26:54]Found Content-Length = 791 [09:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:54]execute_script... [09:26: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)30974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:54]POST & json_proto [09:26:54]process_json_proto [09:26:54]json parsed OK: [09:26:54]protocol is kg_v1.0 [09:26:54]action value=close_receipt [09:26:54]process_action close_receipt [09:26:54]cmd_close_receipt [09:26:54]MH_GetDate [09:26:54]Write to MH i2c: F0 00 00 A4 E6 79 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: F0 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: F0 09 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: F0 09 00 A4 E6 00 EC B5 1C 67 22 05 6E 64 9F [09:26:54]GetLastDocTimeStamp 1729934695 [09:26:54]current date 1729934828 [09:26:54]FM_GetShiftState [09:26:54]SAM_PROTO_GetShiftState [09:26:54]wFMCommunicate request_size=4 [09:26:54]MH_SAM_APDU [09:26:54]CAPDU: 80 13 01 00 [09:26:54]Write to MH i2c: E2 08 00 A5 E6 80 13 01 00 00 00 00 00 08 [09:26:54]Write i2c OK [09:26:54]MH_I2C_Read... [09:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:54]Read from MH i2c: E2 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0E 00 [09:26:54]MH_I2C_Read... [09:26:54]Read from MH i2c: E2 0E 00 A5 E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 81 [09:26:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:26:54]wFMCommunicate OK [09:26:54]SAM_PROTO_GetShiftState done [09:26:54]FM_GetShiftState done [09:26:54]opened in 1729902770 [09:26:54]opened+sec_in_day 1729989170 [09:26:54]quantity*price = 0 [09:26:54]sum+1 = 1 [09:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 35 26.10.2024 09:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Топливная Карта 00914 ФМ: 0000000000871754 ФД: 191672 ФПД: 97959133544120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191672&fm=97959133544120&tin=02508201610067®Number=0000000000091776&sum=0 [09:26:55]StoreToDocumentArchive [09:26:55]shift 541 fd 191672 [09:26:55]save to /storage/0541/doc_00191672 [09:26:55]save last doc name /storage/0541/doc_00191672 to /storage/kkm_last_doc_name [09:26:55]save OK [09:26:55]Clear old archive folders... [09:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:55]tlvbuf is 019D4EB0 [09:26:55]SAM_PROTO_ClearQueue [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 09 00 00 [09:26:55]Write to MH i2c: E2 08 00 B2 E6 80 09 00 00 00 00 00 00 0A [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 03 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 03 00 B2 E6 00 90 00 0C [09:26:55]RAPDU: 90 00 [09:26:55]wFMCommunicate OK [09:26:55]SAM_PROTO_ClearQueue done [09:26:55]KKMCreateOFDPacket [09:26:55]OFDProtocolAddRootSTLVToBuf [09:26:55]FM_MakeSignedData [09:26:55]FM_MakeSignedData [09:26:55]SAM_PROTO_SignData [09:26:55]wFMCommunicate request_size=4 [09:26:55]MH_SAM_APDU [09:26:55]CAPDU: 80 0D 01 02 [09:26:55]Write to MH i2c: E2 08 00 B3 E6 80 0D 01 02 00 00 00 00 12 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:55]Read from MH i2c: E2 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 03 00 [09:26:55]MH_I2C_Read... [09:26:55]Read from MH i2c: E2 03 00 B3 E6 00 90 00 0D [09:26:55]RAPDU: 90 00 [09:26:55]wFMCommunicate OK [09:26:55]wFMCommunicate request_size=255 [09:26:55]MH_SAM_APDU [09:26: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 A4 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 EC B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EC 02 00 35 04 06 00 59 [09:26:55]Write to MH i2c: E2 02 01 B4 E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 EC B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EC 02 00 35 04 06 00 59 00 00 67 [09:26:55]Write i2c OK [09:26:55]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 B4 E6 00 90 00 0E [09:26:56]RAPDU: 90 00 [09:26:56]wFMCommunicate OK [09:26:56]wFMCommunicate request_size=10 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 0D 02 02 05 17 E3 5B 7E B8 [09:26:56]Write to MH i2c: E2 0D 00 B5 E6 80 0D 02 02 05 00 17 E3 5B 7E B8 00 00 AA [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 03 00 B5 E6 00 90 00 0F [09:26:56]RAPDU: 90 00 [09:26:56]wFMCommunicate OK [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 0D 03 02 [09:26:56]Write to MH i2c: E2 08 00 B6 E6 80 0D 03 02 00 00 00 00 17 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0B 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 0B 00 B6 E6 00 97 2C A6 10 92 0F 9F C1 90 00 92 [09:26:56]RAPDU: 97 2C A6 10 92 0F 9F C1 90 00 [09:26:56]wFMCommunicate OK [09:26:56]SAM_PROTO_SignData done [09:26:56]FM_MakeSignedData done [09:26:56]CreateOFDProtocolMessage [09:26:56]wFMCommunicate request_size=4 [09:26:56]MH_SAM_APDU [09:26:56]CAPDU: 80 11 00 00 [09:26:56]Write to MH i2c: E2 08 00 B7 E6 80 11 00 00 00 00 00 00 17 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:56]Read from MH i2c: E2 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 17 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: E2 17 00 B7 E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [09:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:56]wFMCommunicate OK [09:26:56]CreateOFDProtocolMessage done [09:26:56]OFDSenderStorePacket 191672 [09:26:56]StoreOFDPacket docnum=191672 [09:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 8D 07 01 F8 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 EC B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EC 02 00 35 04 06 00 59 17 E3 5B 7E B8 97 2C A6 10 92 0F 9F C1 [09:26:56]CheckFolder [09:26:56]dirname=/storage/ofd_packets [09:26:56]CheckFolder done [09:26:56]ProducePacketName [09:26:56]name=ofd_packets/00191672 [09:26:56]NVStorageSaveData ofd_packets/00191672 [09:26:56]File name is /storage/ofd_packets/00191672 [09:26:56]Write 301 bytes [09:26:56]NVStorageSaveData done [09:26:56]OFDSenderStorePacket done [09:26:56]KKMCreateOFDPacket done [09:26:56]NVStorageSaveData kkm_last_timestamp [09:26:56]File name is /storage/kkm_last_timestamp [09:26:56]Write 4 bytes [09:26:56]NVStorageSaveData done [09:26:56]ExternCall_PrintAddStr [09:26:56]wPrintStart [09:26:56]Write to MH i2c: 01 00 00 B8 E6 9E [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 B8 E6 00 00 00 00 00 FF 0F B3 [09:26:56]RasterBufferAndPrint [09:26:56]line Счет N : (1)30974 [09:26:56]line ИНН: 02508201610067 [09:26:56]line Контрольно-Кассовый Чек [09:26:56]line ПРОДАЖА [09:26:56]line ТРК (МРК, ГНК) : 12 [09:26:56]line Товар: 2710124130 [09:26:56]line Аи-92-К-5 [09:26:56]line 15.780 * 0.00 [09:26:56]line = 0.00 [09:26:56]line НДС 12% НСП 1% [09:26:56]line > о реализуемом товаре [09:26:56]line ИТОГО: 0.00 [09:26:56]line НСП 1% : 0.00 [09:26:56]line НДС 12% : 0.00 [09:26:56]line Наличными: 0.00 [09:26:56]line Безнал.: 0.00 [09:26:56]line Место: АЗС № 170 "Партнер Нефть" [09:26:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:26:56]line СНО: Общий режим [09:26:56]line Чек 35 26.10.2024 09:27 [09:26:56]line Смена: 541 ФФД: 1.0 [09:26:56]line ЗНМ: 0300000110 [09:26:56]line РНМ: 0000000000091776 [09:26:56]line Версия ККМ: 001 [09:26:56]line Талоны: Топливная Карта [09:26:56]line 00914 [09:26:56]line ФМ: 0000000000871754 [09:26:56]line ФД: 191672 [09:26:56]line ФПД: 97959133544120 [09:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191672&fm=97959133544120&tin=02508201610067®Number=0000000000091776&sum=0 [09:26:56]written 0, free lines is 4095 [09:26:56]OFD Sender: Processing packet 191672 [packets to send 75, broken 74] [09:26:56]ProducePacketName [09:26:56]name=ofd_packets/00191672 [09:26:56]OFD Sender: To server: pG, [09:26:56]CommunicateWithHost lk.salyk.kg:30040 [09:26:56]ConnectInit lk.salyk.kg [09:26:56]Connected sock=10 [09:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 08 8D 07 01 F8 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 EC B5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EC 02 00 35 04 06 00 59 17 E3 5B 7E B8 97 2C A6 10 92 0F 9F C1 [09:26:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 84 75 47 00 66 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 EC 02 00 F4 03 04 00 B7 5A 1C 67 B6 04 01 00 00 74 F4 78 E4 AD 2E C5 5F [09:26:56]CommunicateWithHost err = 0 [09:26:56]CheckOFDResponse [09:26:56]1017 (14) - 77093643461234 [09:26:56]1041 (16) - 0000000000871754 [09:26:56]1040 (4) - 191672 [09:26:56]1012 (4) - 26.10.2024 02:57 [09:26:56]1206 (1) - 0 [09:26:56]OFD Sender: Remove packet 191672 [09:26:56]ProducePacketName [09:26:56]name=ofd_packets/00191672 [09:26:56]NVStorageDeleteData [09:26:56]Write to MH i2c: 01 00 00 E2 E6 C8 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: 01 07 00 E2 E6 00 00 00 00 00 BC 0C 97 [09:26:56]RasterBufferAndPrint [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]line [09:26:56]written 0, free lines is 3267 [09:26:56]MH_Cut [09:26:56]Write to MH i2c: D1 01 00 E9 E6 01 A1 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 01 00 [09:26:56]MH_I2C_Read... [09:26:56]Read from MH i2c: D1 01 00 E9 E6 00 A0 [09:26:56]Write to MH i2c: 01 00 00 EA E6 D0 [09:26:56]Write i2c OK [09:26:56]MH_I2C_Read... [09:26:57]OFD Sender: No OFD packet to send [09:26:57]*** Cut start [09:26:57]*** Partial cut [09:26:57]*** CUTSNS_PIN = 1 [09:26:57]*** CUTSNS_PIN = 0 [09:26:58]*** Brake cut motor [09:26:58]Read from MH i2c: 01 [09:26:58]MH_I2C_Read... [09:26:58]*** Stop cut motor [09:26:58]*** Cut end [09:26:58]Read from MH i2c: 01 07 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: 01 07 00 EA E6 00 00 00 00 00 FF 0F E5 [09:26:58]process_action close_receipt done [09:26:58]requested_data is exist [09:26:58]produce_requested_data [09:26:58]requested_item fm.sn is exist - process it [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 11 00 00 [09:26:58]Write to MH i2c: E2 08 00 EB E6 80 11 00 00 00 00 00 00 4B [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 17 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 17 00 EB E6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [09:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:26:58]wFMCommunicate OK [09:26:58]requested_item fd.num is exist - process it [09:26:58]SAM_PROTO_GetFieldsCounters [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 13 00 00 [09:26:58]Write to MH i2c: E2 08 00 EC E6 80 13 00 00 00 00 00 00 4E [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 62 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 62 00 EC E6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:58]wFMCommunicate OK [09:26:58]SAM_PROTO_GetFieldsCounters done [09:26:58]requested_item shift.num is exist - process it [09:26:58]requested_item shift.opened is exist - process it [09:26:58]req_shift_opened [09:26:58]FM_GetShiftState [09:26:58]SAM_PROTO_GetShiftState [09:26:58]wFMCommunicate request_size=4 [09:26:58]MH_SAM_APDU [09:26:58]CAPDU: 80 13 01 00 [09:26:58]Write to MH i2c: E2 08 00 ED E6 80 13 01 00 00 00 00 00 50 [09:26:58]Write i2c OK [09:26:58]MH_I2C_Read... [09:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:58]Read from MH i2c: E2 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0E 00 [09:26:58]MH_I2C_Read... [09:26:58]Read from MH i2c: E2 0E 00 ED E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C9 [09:26:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:26:58]wFMCommunicate OK [09:26:58]SAM_PROTO_GetShiftState done [09:26:58]FM_GetShiftState done [09:26:58]req_shift_opened done [09:26:58]requested_item shift.open_date is exist - process it [09:26:58]req_shift_open_date [09:26:58]req_shift_open_date done [09:26:58]produce_requested_data done [09:26:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191672,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:26:58]process_action_free close_receipt [09:26:58]json_value_free [09:26:58]json_value_free done [09:26:58]process_json_proto returns [09:26:58]Send response to host [09:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191672,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:26:58]free response buf [09:26:58]execute_script done [09:26:58]execute_script returns [09:26:58]free content buf [09:26:58]Sock 8.Close socket [09:26:58]Sock 8.Thread stoped [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:17]accept exits with 9 [09:27:17]New connection [09:27:17]New thread 3066961252 created [09:27:17]Thread 3066817892 joined [09:27:17]Waiting for new connection... [09:27:17] Sock 9.Parse request [09:27:17]Sock 9.Check first char [09:27:17]Sock 9.First char is OK [09:27:17]request: POST /json_proto HTTP/1.0 [09:27:17]Method: POST [09:27:17]URL: /json_proto [09:27:17]Method is POST - this is cgi request [09:27:17]url: /json_proto [09:27:17]query_string will be loaded in cgi processing [09:27:17]execute_cgi json_proto POST (null) [09:27:17]execute_cgi path=json_proto method=POST [09:27:17]POST find Content-Length [09:27:17]Host: 172.17.63.131:8080 [09:27:17]Content-Length: 676 [09:27:17]Content-Type: application/json [09:27:17] [09:27:17]POST finish read [09:27:17]Found Content-Length = 676 [09:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:17]execute_script... [09:27: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)30975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:17]POST & json_proto [09:27:17]process_json_proto [09:27:17]json parsed OK: [09:27:17]protocol is kg_v1.0 [09:27:17]action value=close_receipt [09:27:17]process_action close_receipt [09:27:17]cmd_close_receipt [09:27:17]MH_GetDate [09:27:17]Write to MH i2c: F0 00 00 EE E6 C3 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: F0 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: F0 09 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: F0 09 00 EE E6 00 03 B6 1C 67 22 05 6E 64 01 [09:27:17]GetLastDocTimeStamp 1729934828 [09:27:17]current date 1729934851 [09:27:17]FM_GetShiftState [09:27:17]SAM_PROTO_GetShiftState [09:27:17]wFMCommunicate request_size=4 [09:27:17]MH_SAM_APDU [09:27:17]CAPDU: 80 13 01 00 [09:27:17]Write to MH i2c: E2 08 00 EF E6 80 13 01 00 00 00 00 00 52 [09:27:17]Write i2c OK [09:27:17]MH_I2C_Read... [09:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:17]Read from MH i2c: E2 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 [09:27:17]MH_I2C_Read... [09:27:17]Read from MH i2c: E2 0E 00 EF E6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CB [09:27:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:27:17]wFMCommunicate OK [09:27:17]SAM_PROTO_GetShiftState done [09:27:17]FM_GetShiftState done [09:27:17]opened in 1729902770 [09:27:17]opened+sec_in_day 1729989170 [09:27:17]quantity*price = 50041 [09:27:17]sum+1 = 50042 [09:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 36 26.10.2024 09:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191673 ФПД: 65747885220984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191673&fm=65747885220984&tin=02508201610067®Number=0000000000091776&sum=50000 [09:27:18]StoreToDocumentArchive [09:27:18]shift 541 fd 191673 [09:27:18]save to /storage/0541/doc_00191673 [09:27:18]save last doc name /storage/0541/doc_00191673 to /storage/kkm_last_doc_name [09:27:18]save OK [09:27:18]Clear old archive folders... [09:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:18]tlvbuf is 018CA870 [09:27:18]SAM_PROTO_ClearQueue [09:27:18]wFMCommunicate request_size=4 [09:27:18]MH_SAM_APDU [09:27:18]CAPDU: 80 09 00 00 [09:27:18]Write to MH i2c: E2 08 00 FC E6 80 09 00 00 00 00 00 00 54 [09:27:18]Write i2c OK [09:27:18]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 FC E6 00 90 00 56 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]SAM_PROTO_ClearQueue done [09:27:19]KKMCreateOFDPacket [09:27:19]OFDProtocolAddRootSTLVToBuf [09:27:19]FM_MakeSignedData [09:27:19]FM_MakeSignedData [09:27:19]SAM_PROTO_SignData [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 01 02 [09:27:19]Write to MH i2c: E2 08 00 FD E6 80 0D 01 02 00 00 00 00 5C [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 FD E6 00 90 00 57 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=255 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 03 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EC 02 00 35 04 06 00 3B [09:27:19]Write to MH i2c: E2 02 01 FE E6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 03 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EC 02 00 35 04 06 00 3B 00 00 51 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 FE E6 00 90 00 58 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=10 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 02 02 05 CC 1F 57 E4 78 [09:27:19]Write to MH i2c: E2 0D 00 FF E6 80 0D 02 02 05 00 CC 1F 57 E4 78 00 00 07 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 03 00 FF E6 00 90 00 59 [09:27:19]RAPDU: 90 00 [09:27:19]wFMCommunicate OK [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 0D 03 02 [09:27:19]Write to MH i2c: E2 08 00 00 E7 80 0D 03 02 00 00 00 00 62 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 0B 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 0B 00 00 E7 00 B5 6C A3 12 6E D2 59 53 90 00 25 [09:27:19]RAPDU: B5 6C A3 12 6E D2 59 53 90 00 [09:27:19]wFMCommunicate OK [09:27:19]SAM_PROTO_SignData done [09:27:19]FM_MakeSignedData done [09:27:19]CreateOFDProtocolMessage [09:27:19]wFMCommunicate request_size=4 [09:27:19]MH_SAM_APDU [09:27:19]CAPDU: 80 11 00 00 [09:27:19]Write to MH i2c: E2 08 00 01 E7 80 11 00 00 00 00 00 00 62 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:19]Read from MH i2c: E2 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 17 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: E2 17 00 01 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [09:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:27:19]wFMCommunicate OK [09:27:19]CreateOFDProtocolMessage done [09:27:19]OFDSenderStorePacket 191673 [09:27:19]StoreOFDPacket docnum=191673 [09:27:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E 93 07 01 FC 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 03 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EC 02 00 35 04 06 00 3B CC 1F 57 E4 78 B5 6C A3 12 6E D2 59 53 [09:27:19]CheckFolder [09:27:19]dirname=/storage/ofd_packets [09:27:19]CheckFolder done [09:27:19]ProducePacketName [09:27:19]name=ofd_packets/00191673 [09:27:19]NVStorageSaveData ofd_packets/00191673 [09:27:19]File name is /storage/ofd_packets/00191673 [09:27:19]Write 301 bytes [09:27:19]NVStorageSaveData done [09:27:19]OFDSenderStorePacket done [09:27:19]KKMCreateOFDPacket done [09:27:19]NVStorageSaveData kkm_last_timestamp [09:27:19]File name is /storage/kkm_last_timestamp [09:27:19]Write 4 bytes [09:27:19]NVStorageSaveData done [09:27:19]ExternCall_PrintAddStr [09:27:19]wPrintStart [09:27:19]Write to MH i2c: 01 00 00 02 E7 E9 [09:27:19]Write i2c OK [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 07 00 [09:27:19]MH_I2C_Read... [09:27:19]Read from MH i2c: 01 07 00 02 E7 00 00 00 00 00 FF 0F FE [09:27:19]RasterBufferAndPrint [09:27:19]line Счет N : (1)30975 [09:27:19]line ИНН: 02508201610067 [09:27:19]line Контрольно-Кассовый Чек [09:27:19]line ПРОДАЖА [09:27:19]line ТРК (МРК, ГНК) : 21 [09:27:19]line Товар: 2710124130 [09:27:19]line Аи-92-К-5 [09:27:19]line 7.480 * 66.90 [09:27:19]line = 500.41 [09:27:19]line НДС 12% НСП 1% [09:27:19]line > о реализуемом товаре [09:27:19]line ОКРУГЛЕНИЕ: -0.41 [09:27:19]line ИТОГО: 500.00 [09:27:19]line Внесено: 500.00 [09:27:19]line СДАЧА: 0.00 [09:27:19]line НСП 1% : 4.43 [09:27:19]line НДС 12% : 53.14 [09:27:19]line Наличными: 500.00 [09:27:19]line Безнал.: 0.00 [09:27:19]line Место: АЗС № 170 "Партнер Нефть" [09:27:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:27:19]line СНО: Общий режим [09:27:19]line Чек 36 26.10.2024 09:27 [09:27:19]line Смена: 541 ФФД: 1.0 [09:27:19]line ЗНМ: 0300000110 [09:27:19]line РНМ: 0000000000091776 [09:27:19]line Версия ККМ: 001 [09:27:19]line ФМ: 0000000000871754 [09:27:19]line ФД: 191673 [09:27:19]line ФПД: 65747885220984 [09:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T092731&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191673&fm=65747885220984&tin=02508201610067®Number=0000000000091776&sum=50000 [09:27:19]OFD Sender: Processing packet 191673 [packets to send 75, broken 74] [09:27:19]ProducePacketName [09:27:19]name=ofd_packets/00191673 [09:27:19]OFD Sender: To server: pG, [09:27:19]CommunicateWithHost lk.salyk.kg:30040 [09:27:19]ConnectInit lk.salyk.kg [09:27:19]written 0, free lines is 4095 [09:27:19]Connected sock=10 [09:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E 93 07 01 FC 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 03 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EC 02 00 35 04 06 00 3B CC 1F 57 E4 78 B5 6C A3 12 6E D2 59 53 [09:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 73 78 47 00 66 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 EC 02 00 F4 03 04 00 CF 5A 1C 67 B6 04 01 00 00 82 BB 4F 33 79 13 8D 20 [09:27:20]CommunicateWithHost err = 0 [09:27:20]CheckOFDResponse [09:27:20]1017 (14) - 77093643461234 [09:27:20]1041 (16) - 0000000000871754 [09:27:20]1040 (4) - 191673 [09:27:20]1012 (4) - 26.10.2024 02:58 [09:27:20]1206 (1) - 0 [09:27:20]OFD Sender: Remove packet 191673 [09:27:20]ProducePacketName [09:27:20]name=ofd_packets/00191673 [09:27:20]NVStorageDeleteData [09:27:20]Write to MH i2c: 01 00 00 2D E7 14 [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: 01 07 00 2D E7 00 00 00 00 00 A5 0C CC [09:27:20]RasterBufferAndPrint [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]line [09:27:20]written 0, free lines is 3242 [09:27:20]MH_Cut [09:27:20]Write to MH i2c: D1 01 00 34 E7 01 ED [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 01 00 [09:27:20]MH_I2C_Read... [09:27:20]Read from MH i2c: D1 01 00 34 E7 00 EC [09:27:20]Write to MH i2c: 01 00 00 35 E7 1C [09:27:20]Write i2c OK [09:27:20]MH_I2C_Read... [09:27:20]OFD Sender: No OFD packet to send [09:27:21]*** Cut start [09:27:21]*** Partial cut [09:27:21]*** CUTSNS_PIN = 1 [09:27:21]*** CUTSNS_PIN = 0 [09:27:21]*** Brake cut motor [09:27:21]Read from MH i2c: 01 [09:27:21]MH_I2C_Read... [09:27:21]*** Stop cut motor [09:27:21]*** Cut end [09:27:21]Read from MH i2c: 01 07 00 [09:27:21]MH_I2C_Read... [09:27:21]Read from MH i2c: 01 07 00 35 E7 00 00 00 00 00 FF 0F 31 [09:27:21]process_action close_receipt done [09:27:21]requested_data is exist [09:27:21]produce_requested_data [09:27:21]requested_item fm.sn is exist - process it [09:27:21]wFMCommunicate request_size=4 [09:27:21]MH_SAM_APDU [09:27:21]CAPDU: 80 11 00 00 [09:27:21]Write to MH i2c: E2 08 00 36 E7 80 11 00 00 00 00 00 00 97 [09:27:21]Write i2c OK [09:27:21]MH_I2C_Read... [09:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:21]Read from MH i2c: E2 [09:27:21]MH_I2C_Read... [09:27:21]Read from MH i2c: E2 17 00 [09:27:21]MH_I2C_Read... [09:27:21]Read from MH i2c: E2 17 00 36 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [09:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:27:21]wFMCommunicate OK [09:27:21]requested_item fd.num is exist - process it [09:27:21]SAM_PROTO_GetFieldsCounters [09:27:21]wFMCommunicate request_size=4 [09:27:21]MH_SAM_APDU [09:27:21]CAPDU: 80 13 00 00 [09:27:21]Write to MH i2c: E2 08 00 37 E7 80 13 00 00 00 00 00 00 9A [09:27:21]Write i2c OK [09:27:21]MH_I2C_Read... [09:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:21]Read from MH i2c: E2 [09:27:21]MH_I2C_Read... [09:27:21]Read from MH i2c: E2 62 00 [09:27:21]MH_I2C_Read... [09:27:21]Read from MH i2c: E2 62 00 37 E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:27:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:21]wFMCommunicate OK [09:27:21]SAM_PROTO_GetFieldsCounters done [09:27:21]requested_item shift.num is exist - process it [09:27:21]requested_item shift.opened is exist - process it [09:27:21]req_shift_opened [09:27:21]FM_GetShiftState [09:27:21]SAM_PROTO_GetShiftState [09:27:21]wFMCommunicate request_size=4 [09:27:21]MH_SAM_APDU [09:27:21]CAPDU: 80 13 01 00 [09:27:21]Write to MH i2c: E2 08 00 38 E7 80 13 01 00 00 00 00 00 9C [09:27:21]Write i2c OK [09:27:21]MH_I2C_Read... [09:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:22]Read from MH i2c: E2 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 0E 00 [09:27:22]MH_I2C_Read... [09:27:22]Read from MH i2c: E2 0E 00 38 E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 15 [09:27:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:27:22]wFMCommunicate OK [09:27:22]SAM_PROTO_GetShiftState done [09:27:22]FM_GetShiftState done [09:27:22]req_shift_opened done [09:27:22]requested_item shift.open_date is exist - process it [09:27:22]req_shift_open_date [09:27:22]req_shift_open_date done [09:27:22]produce_requested_data done [09:27:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191673,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:27:22]process_action_free close_receipt [09:27:22]json_value_free [09:27:22]json_value_free done [09:27:22]process_json_proto returns [09:27:22]Send response to host [09:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191673,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:27:22]free response buf [09:27:22]execute_script done [09:27:22]execute_script returns [09:27:22]free content buf [09:27:22]Sock 9.Close socket [09:27:22]Sock 9.Thread stoped [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]accept exits with 8 [09:30:15]New connection [09:30:15]New thread 3066817892 created [09:30:15]Thread 3066961252 joined [09:30:15]Waiting for new connection... [09:30:15] Sock 8.Parse request [09:30:15]Sock 8.Check first char [09:30:15]Sock 8.First char is OK [09:30:15]request: POST /json_proto HTTP/1.0 [09:30:15]Method: POST [09:30:15]URL: /json_proto [09:30:15]Method is POST - this is cgi request [09:30:15]url: /json_proto [09:30:15]query_string will be loaded in cgi processing [09:30:15]execute_cgi json_proto POST (null) [09:30:15]execute_cgi path=json_proto method=POST [09:30:15]POST find Content-Length [09:30:15]Host: 172.17.63.131:8080 [09:30:15]Content-Length: 676 [09:30:15]Content-Type: application/json [09:30:15] [09:30:15]POST finish read [09:30:15]Found Content-Length = 676 [09:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:15]execute_script... [09:30: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)30976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:15]POST & json_proto [09:30:15]process_json_proto [09:30:15]json parsed OK: [09:30:15]protocol is kg_v1.0 [09:30:15]action value=close_receipt [09:30:15]process_action close_receipt [09:30:15]cmd_close_receipt [09:30:15]MH_GetDate [09:30:15]Write to MH i2c: F0 00 00 39 E7 0F [09:30:15]Write i2c OK [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 09 00 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: F0 09 00 39 E7 00 B5 B6 1C 67 22 05 6E 64 FF [09:30:15]GetLastDocTimeStamp 1729934851 [09:30:15]current date 1729935029 [09:30:15]FM_GetShiftState [09:30:15]SAM_PROTO_GetShiftState [09:30:15]wFMCommunicate request_size=4 [09:30:15]MH_SAM_APDU [09:30:15]CAPDU: 80 13 01 00 [09:30:15]Write to MH i2c: E2 08 00 3A E7 80 13 01 00 00 00 00 00 9E [09:30:15]Write i2c OK [09:30:15]MH_I2C_Read... [09:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:15]Read from MH i2c: E2 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: E2 0E 00 [09:30:15]MH_I2C_Read... [09:30:15]Read from MH i2c: E2 0E 00 3A E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 17 [09:30:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:15]wFMCommunicate OK [09:30:15]SAM_PROTO_GetShiftState done [09:30:15]FM_GetShiftState done [09:30:15]opened in 1729902770 [09:30:15]opened+sec_in_day 1729989170 [09:30:15]quantity*price = 46027 [09:30:15]sum+1 = 46028 [09:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.88 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 37 26.10.2024 09:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191674 ФПД: 38775317684814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191674&fm=38775317684814&tin=02508201610067®Number=0000000000091776&sum=46000 [09:30:16]StoreToDocumentArchive [09:30:16]shift 541 fd 191674 [09:30:16]save to /storage/0541/doc_00191674 [09:30:16]save last doc name /storage/0541/doc_00191674 to /storage/kkm_last_doc_name [09:30:16]save OK [09:30:16]Clear old archive folders... [09:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:16]tlvbuf is 01789C60 [09:30:16]SAM_PROTO_ClearQueue [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 09 00 00 [09:30:16]Write to MH i2c: E2 08 00 47 E7 80 09 00 00 00 00 00 00 A0 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 47 E7 00 90 00 A2 [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]SAM_PROTO_ClearQueue done [09:30:16]KKMCreateOFDPacket [09:30:16]OFDProtocolAddRootSTLVToBuf [09:30:16]FM_MakeSignedData [09:30:16]FM_MakeSignedData [09:30:16]SAM_PROTO_SignData [09:30:16]wFMCommunicate request_size=4 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 01 02 [09:30:16]Write to MH i2c: E2 08 00 48 E7 80 0D 01 02 00 00 00 00 A8 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:16]Read from MH i2c: E2 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 [09:30:16]MH_I2C_Read... [09:30:16]Read from MH i2c: E2 03 00 48 E7 00 90 00 A3 [09:30:16]RAPDU: 90 00 [09:30:16]wFMCommunicate OK [09:30:16]wFMCommunicate request_size=255 [09:30:16]MH_SAM_APDU [09:30:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B5 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EC 02 00 35 04 06 00 23 [09:30:16]Write to MH i2c: E2 02 01 49 E7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B5 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EC 02 00 35 04 06 00 23 00 00 F1 [09:30:16]Write i2c OK [09:30:16]MH_I2C_Read... [09:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:17]Read from MH i2c: E2 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 03 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 03 00 49 E7 00 90 00 A4 [09:30:17]RAPDU: 90 00 [09:30:17]wFMCommunicate OK [09:30:17]wFMCommunicate request_size=10 [09:30:17]MH_SAM_APDU [09:30:17]CAPDU: 80 0D 02 02 05 44 15 09 62 4E [09:30:17]Write to MH i2c: E2 0D 00 4A E7 80 0D 02 02 05 00 44 15 09 62 4E 00 00 C7 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:17]Read from MH i2c: E2 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 03 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 03 00 4A E7 00 90 00 A5 [09:30:17]RAPDU: 90 00 [09:30:17]wFMCommunicate OK [09:30:17]wFMCommunicate request_size=4 [09:30:17]MH_SAM_APDU [09:30:17]CAPDU: 80 0D 03 02 [09:30:17]Write to MH i2c: E2 08 00 4B E7 80 0D 03 02 00 00 00 00 AD [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:17]Read from MH i2c: E2 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 0B 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 0B 00 4B E7 00 64 6C E1 13 BA AD 0E 9B 90 00 82 [09:30:17]RAPDU: 64 6C E1 13 BA AD 0E 9B 90 00 [09:30:17]wFMCommunicate OK [09:30:17]SAM_PROTO_SignData done [09:30:17]FM_MakeSignedData done [09:30:17]CreateOFDProtocolMessage [09:30:17]wFMCommunicate request_size=4 [09:30:17]MH_SAM_APDU [09:30:17]CAPDU: 80 11 00 00 [09:30:17]Write to MH i2c: E2 08 00 4C E7 80 11 00 00 00 00 00 00 AD [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:17]Read from MH i2c: E2 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 17 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: E2 17 00 4C E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [09:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:17]wFMCommunicate OK [09:30:17]CreateOFDProtocolMessage done [09:30:17]OFDSenderStorePacket 191674 [09:30:17]StoreOFDPacket docnum=191674 [09:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 06 CD 07 01 24 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 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B5 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EC 02 00 35 04 06 00 23 44 15 09 62 4E 64 6C E1 13 BA AD 0E 9B [09:30:17]CheckFolder [09:30:17]dirname=/storage/ofd_packets [09:30:17]CheckFolder done [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00191674 [09:30:17]NVStorageSaveData ofd_packets/00191674 [09:30:17]File name is /storage/ofd_packets/00191674 [09:30:17]Write 301 bytes [09:30:17]NVStorageSaveData done [09:30:17]OFDSenderStorePacket done [09:30:17]KKMCreateOFDPacket done [09:30:17]NVStorageSaveData kkm_last_timestamp [09:30:17]File name is /storage/kkm_last_timestamp [09:30:17]Write 4 bytes [09:30:17]NVStorageSaveData done [09:30:17]ExternCall_PrintAddStr [09:30:17]wPrintStart [09:30:17]Write to MH i2c: 01 00 00 4D E7 34 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 4D E7 00 00 00 00 00 FF 0F 49 [09:30:17]RasterBufferAndPrint [09:30:17]line Счет N : (1)30976 [09:30:17]line ИНН: 02508201610067 [09:30:17]line Контрольно-Кассовый Чек [09:30:17]line ПРОДАЖА [09:30:17]line ТРК (МРК, ГНК) : 21 [09:30:17]line Товар: 2710124130 [09:30:17]line Аи-92-К-5 [09:30:17]line 6.880 * 66.90 [09:30:17]line = 460.27 [09:30:17]line НДС 12% НСП 1% [09:30:17]line > о реализуемом товаре [09:30:17]line ОКРУГЛЕНИЕ: -0.27 [09:30:17]line ИТОГО: 460.00 [09:30:17]line Внесено: 460.00 [09:30:17]line СДАЧА: 0.00 [09:30:17]line НСП 1% : 4.07 [09:30:17]line НДС 12% : 48.88 [09:30:17]line Наличными: 460.00 [09:30:17]line Безнал.: 0.00 [09:30:17]line Место: АЗС № 170 "Партнер Нефть" [09:30:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:30:17]line СНО: Общий режим [09:30:17]line Чек 37 26.10.2024 09:30 [09:30:17]line Смена: 541 ФФД: 1.0 [09:30:17]line ЗНМ: 0300000110 [09:30:17]line РНМ: 0000000000091776 [09:30:17]line Версия ККМ: 001 [09:30:17]line ФМ: 0000000000871754 [09:30:17]line ФД: 191674 [09:30:17]line ФПД: 38775317684814 [09:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093029&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191674&fm=38775317684814&tin=02508201610067®Number=0000000000091776&sum=46000 [09:30:17]OFD Sender: Processing packet 191674 [packets to send 75, broken 74] [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00191674 [09:30:17]OFD Sender: To server: pG, [09:30:17]CommunicateWithHost lk.salyk.kg:30040 [09:30:17]ConnectInit lk.salyk.kg [09:30:17]written 0, free lines is 4095 [09:30:17]Connected sock=10 [09:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 06 CD 07 01 24 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 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B5 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EC 02 00 35 04 06 00 23 44 15 09 62 4E 64 6C E1 13 BA AD 0E 9B [09:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 40 47 00 AB 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA EC 02 00 F4 03 04 00 80 5B 1C 67 B6 04 01 00 00 8B A0 AB FA F0 2D 84 5B [09:30:17]CommunicateWithHost err = 0 [09:30:17]CheckOFDResponse [09:30:17]1017 (14) - 77093643461234 [09:30:17]1041 (16) - 0000000000871754 [09:30:17]1040 (4) - 191674 [09:30:17]1012 (4) - 26.10.2024 03:01 [09:30:17]1206 (1) - 0 [09:30:17]OFD Sender: Remove packet 191674 [09:30:17]ProducePacketName [09:30:17]name=ofd_packets/00191674 [09:30:17]NVStorageDeleteData [09:30:17]Write to MH i2c: 01 00 00 78 E7 5F [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: 01 07 00 78 E7 00 00 00 00 00 B2 0C 24 [09:30:17]RasterBufferAndPrint [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]line [09:30:17]written 0, free lines is 3257 [09:30:17]MH_Cut [09:30:17]Write to MH i2c: D1 01 00 7F E7 01 38 [09:30:17]Write i2c OK [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 [09:30:17]MH_I2C_Read... [09:30:17]Read from MH i2c: D1 01 00 7F E7 00 37 [09:30:18]Write to MH i2c: 01 00 00 80 E7 67 [09:30:18]Write i2c OK [09:30:18]MH_I2C_Read... [09:30:18]OFD Sender: No OFD packet to send [09:30:18]*** Cut start [09:30:18]*** Partial cut [09:30:18]*** CUTSNS_PIN = 1 [09:30:18]*** CUTSNS_PIN = 0 [09:30:19]*** Brake cut motor [09:30:19]Read from MH i2c: 01 [09:30:19]MH_I2C_Read... [09:30:19]*** Stop cut motor [09:30:19]*** Cut end [09:30:19]Read from MH i2c: 01 07 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: 01 07 00 80 E7 00 00 00 00 00 FF 0F 7C [09:30:19]process_action close_receipt done [09:30:19]requested_data is exist [09:30:19]produce_requested_data [09:30:19]requested_item fm.sn is exist - process it [09:30:19]wFMCommunicate request_size=4 [09:30:19]MH_SAM_APDU [09:30:19]CAPDU: 80 11 00 00 [09:30:19]Write to MH i2c: E2 08 00 81 E7 80 11 00 00 00 00 00 00 E2 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 17 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 17 00 81 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [09:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:19]wFMCommunicate OK [09:30:19]requested_item fd.num is exist - process it [09:30:19]SAM_PROTO_GetFieldsCounters [09:30:19]wFMCommunicate request_size=4 [09:30:19]MH_SAM_APDU [09:30:19]CAPDU: 80 13 00 00 [09:30:19]Write to MH i2c: E2 08 00 82 E7 80 13 00 00 00 00 00 00 E5 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 62 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 62 00 82 E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:19]wFMCommunicate OK [09:30:19]SAM_PROTO_GetFieldsCounters done [09:30:19]requested_item shift.num is exist - process it [09:30:19]requested_item shift.opened is exist - process it [09:30:19]req_shift_opened [09:30:19]FM_GetShiftState [09:30:19]SAM_PROTO_GetShiftState [09:30:19]wFMCommunicate request_size=4 [09:30:19]MH_SAM_APDU [09:30:19]CAPDU: 80 13 01 00 [09:30:19]Write to MH i2c: E2 08 00 83 E7 80 13 01 00 00 00 00 00 E7 [09:30:19]Write i2c OK [09:30:19]MH_I2C_Read... [09:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:19]Read from MH i2c: E2 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 [09:30:19]MH_I2C_Read... [09:30:19]Read from MH i2c: E2 0E 00 83 E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 60 [09:30:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:19]wFMCommunicate OK [09:30:19]SAM_PROTO_GetShiftState done [09:30:19]FM_GetShiftState done [09:30:19]req_shift_opened done [09:30:19]requested_item shift.open_date is exist - process it [09:30:19]req_shift_open_date [09:30:19]req_shift_open_date done [09:30:19]produce_requested_data done [09:30:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191674,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:30:19]process_action_free close_receipt [09:30:19]json_value_free [09:30:19]json_value_free done [09:30:19]process_json_proto returns [09:30:19]Send response to host [09:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191674,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:30:19]free response buf [09:30:19]execute_script done [09:30:19]execute_script returns [09:30:19]free content buf [09:30:19]Sock 8.Close socket [09:30:19]Sock 8.Thread stoped [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:39]accept exits with 9 [09:30:39]New connection [09:30:39]New thread 3066961252 created [09:30:39]Thread 3066817892 joined [09:30:39]Waiting for new connection... [09:30:39] Sock 9.Parse request [09:30:39]Sock 9.Check first char [09:30:39]Sock 9.First char is OK [09:30:39]request: POST /json_proto HTTP/1.0 [09:30:39]Method: POST [09:30:39]URL: /json_proto [09:30:39]Method is POST - this is cgi request [09:30:39]url: /json_proto [09:30:39]query_string will be loaded in cgi processing [09:30:39]execute_cgi json_proto POST (null) [09:30:39]execute_cgi path=json_proto method=POST [09:30:39]POST find Content-Length [09:30:39]Host: 172.17.63.131:8080 [09:30:39]Content-Length: 676 [09:30:39]Content-Type: application/json [09:30:39] [09:30:39]POST finish read [09:30:39]Found Content-Length = 676 [09:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:39]execute_script... [09:30: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)30977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:39]POST & json_proto [09:30:39]process_json_proto [09:30:39]json parsed OK: [09:30:39]protocol is kg_v1.0 [09:30:39]action value=close_receipt [09:30:39]process_action close_receipt [09:30:39]cmd_close_receipt [09:30:39]MH_GetDate [09:30:39]Write to MH i2c: F0 00 00 84 E7 5A [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 09 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: F0 09 00 84 E7 00 CD B6 1C 67 22 05 6E 64 62 [09:30:39]GetLastDocTimeStamp 1729935029 [09:30:39]current date 1729935053 [09:30:39]FM_GetShiftState [09:30:39]SAM_PROTO_GetShiftState [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 13 01 00 [09:30:39]Write to MH i2c: E2 08 00 85 E7 80 13 01 00 00 00 00 00 E9 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 85 E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 62 [09:30:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_GetShiftState done [09:30:39]FM_GetShiftState done [09:30:39]opened in 1729902770 [09:30:39]opened+sec_in_day 1729989170 [09:30:39]quantity*price = 60009 [09:30:39]sum+1 = 60010 [09:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 38 26.10.2024 09:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191675 ФПД: 58006603676141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191675&fm=58006603676141&tin=02508201610067®Number=0000000000091776&sum=60000 [09:30:40]StoreToDocumentArchive [09:30:40]shift 541 fd 191675 [09:30:40]save to /storage/0541/doc_00191675 [09:30:40]save last doc name /storage/0541/doc_00191675 to /storage/kkm_last_doc_name [09:30:40]save OK [09:30:40]Clear old archive folders... [09:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:40]tlvbuf is 015C85F0 [09:30:40]SAM_PROTO_ClearQueue [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 09 00 00 [09:30:40]Write to MH i2c: E2 08 00 92 E7 80 09 00 00 00 00 00 00 EB [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 92 E7 00 90 00 ED [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_ClearQueue done [09:30:40]KKMCreateOFDPacket [09:30:40]OFDProtocolAddRootSTLVToBuf [09:30:40]FM_MakeSignedData [09:30:40]FM_MakeSignedData [09:30:40]SAM_PROTO_SignData [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 01 02 [09:30:40]Write to MH i2c: E2 08 00 93 E7 80 0D 01 02 00 00 00 00 F3 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 93 E7 00 90 00 EE [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=255 [09:30:40]MH_SAM_APDU [09:30: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CD B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EC 02 00 35 04 06 00 34 [09:30:40]Write to MH i2c: E2 02 01 94 E7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CD B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EC 02 00 35 04 06 00 34 00 00 8C [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 94 E7 00 90 00 EF [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=10 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 02 02 05 C1 B7 01 B9 ED [09:30:40]Write to MH i2c: E2 0D 00 95 E7 80 0D 02 02 05 00 C1 B7 01 B9 ED 00 00 1F [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 03 00 95 E7 00 90 00 F0 [09:30:40]RAPDU: 90 00 [09:30:40]wFMCommunicate OK [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 0D 03 02 [09:30:40]Write to MH i2c: E2 08 00 96 E7 80 0D 03 02 00 00 00 00 F8 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0B 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 0B 00 96 E7 00 57 C5 A4 64 6F 1C 76 FE 90 00 1C [09:30:41]RAPDU: 57 C5 A4 64 6F 1C 76 FE 90 00 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_SignData done [09:30:41]FM_MakeSignedData done [09:30:41]CreateOFDProtocolMessage [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 11 00 00 [09:30:41]Write to MH i2c: E2 08 00 97 E7 80 11 00 00 00 00 00 00 F8 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 17 00 97 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [09:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:41]wFMCommunicate OK [09:30:41]CreateOFDProtocolMessage done [09:30:41]OFDSenderStorePacket 191675 [09:30:41]StoreOFDPacket docnum=191675 [09:30:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 75 07 01 C4 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CD B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EC 02 00 35 04 06 00 34 C1 B7 01 B9 ED 57 C5 A4 64 6F 1C 76 FE [09:30:41]CheckFolder [09:30:41]dirname=/storage/ofd_packets [09:30:41]CheckFolder done [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00191675 [09:30:41]NVStorageSaveData ofd_packets/00191675 [09:30:41]File name is /storage/ofd_packets/00191675 [09:30:41]Write 301 bytes [09:30:41]NVStorageSaveData done [09:30:41]OFDSenderStorePacket done [09:30:41]KKMCreateOFDPacket done [09:30:41]NVStorageSaveData kkm_last_timestamp [09:30:41]File name is /storage/kkm_last_timestamp [09:30:41]Write 4 bytes [09:30:41]NVStorageSaveData done [09:30:41]ExternCall_PrintAddStr [09:30:41]wPrintStart [09:30:41]Write to MH i2c: 01 00 00 98 E7 7F [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 98 E7 00 00 00 00 00 FF 0F 94 [09:30:41]RasterBufferAndPrint [09:30:41]line Счет N : (1)30977 [09:30:41]line ИНН: 02508201610067 [09:30:41]line Контрольно-Кассовый Чек [09:30:41]line ПРОДАЖА [09:30:41]line ТРК (МРК, ГНК) : 12 [09:30:41]line Товар: 2710124130 [09:30:41]line Аи-92-К-5 [09:30:41]line 8.970 * 66.90 [09:30:41]line = 600.09 [09:30:41]line НДС 12% НСП 1% [09:30:41]line > о реализуемом товаре [09:30:41]line ОКРУГЛЕНИЕ: -0.09 [09:30:41]line ИТОГО: 600.00 [09:30:41]line Внесено: 600.00 [09:30:41]line СДАЧА: 0.00 [09:30:41]line НСП 1% : 5.31 [09:30:41]line НДС 12% : 63.73 [09:30:41]line Наличными: 600.00 [09:30:41]line Безнал.: 0.00 [09:30:41]line Место: АЗС № 170 "Партнер Нефть" [09:30:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:30:41]line СНО: Общий режим [09:30:41]line Чек 38 26.10.2024 09:30 [09:30:41]line Смена: 541 ФФД: 1.0 [09:30:41]line ЗНМ: 0300000110 [09:30:41]line РНМ: 0000000000091776 [09:30:41]line Версия ККМ: 001 [09:30:41]line ФМ: 0000000000871754 [09:30:41]line ФД: 191675 [09:30:41]line ФПД: 58006603676141 [09:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093053&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191675&fm=58006603676141&tin=02508201610067®Number=0000000000091776&sum=60000 [09:30:41]OFD Sender: Processing packet 191675 [packets to send 75, broken 74] [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00191675 [09:30:41]OFD Sender: To server: pG, [09:30:41]CommunicateWithHost lk.salyk.kg:30040 [09:30:41]ConnectInit lk.salyk.kg [09:30:41]written 0, free lines is 4095 [09:30:41]Connected sock=10 [09:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 75 07 01 C4 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 CD B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EC 02 00 35 04 06 00 34 C1 B7 01 B9 ED 57 C5 A4 64 6F 1C 76 FE [09:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3F 4F 47 00 51 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB EC 02 00 F4 03 04 00 98 5B 1C 67 B6 04 01 00 00 E5 D4 CE 8B 55 15 13 0A [09:30:41]CommunicateWithHost err = 0 [09:30:41]CheckOFDResponse [09:30:41]1017 (14) - 77093643461234 [09:30:41]1041 (16) - 0000000000871754 [09:30:41]1040 (4) - 191675 [09:30:41]1012 (4) - 26.10.2024 03:01 [09:30:41]1206 (1) - 0 [09:30:41]OFD Sender: Remove packet 191675 [09:30:41]ProducePacketName [09:30:41]name=ofd_packets/00191675 [09:30:41]NVStorageDeleteData [09:30:41]Write to MH i2c: 01 00 00 C3 E7 AA [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: 01 07 00 C3 E7 00 00 00 00 00 A9 0C 66 [09:30:41]RasterBufferAndPrint [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]line [09:30:41]written 0, free lines is 3246 [09:30:41]MH_Cut [09:30:41]Write to MH i2c: D1 01 00 CA E7 01 83 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: D1 01 00 CA E7 00 82 [09:30:41]Write to MH i2c: 01 00 00 CB E7 B2 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:42]OFD Sender: No OFD packet to send [09:30:42]*** Cut start [09:30:42]*** Partial cut [09:30:42]*** CUTSNS_PIN = 1 [09:30:42]*** CUTSNS_PIN = 0 [09:30:42]*** Brake cut motor [09:30:43]Read from MH i2c: 01 [09:30:43]MH_I2C_Read... [09:30:43]*** Stop cut motor [09:30:43]*** Cut end [09:30:43]Read from MH i2c: 01 07 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: 01 07 00 CB E7 00 00 00 00 00 FF 0F C7 [09:30:43]process_action close_receipt done [09:30:43]requested_data is exist [09:30:43]produce_requested_data [09:30:43]requested_item fm.sn is exist - process it [09:30:43]wFMCommunicate request_size=4 [09:30:43]MH_SAM_APDU [09:30:43]CAPDU: 80 11 00 00 [09:30:43]Write to MH i2c: E2 08 00 CC E7 80 11 00 00 00 00 00 00 2D [09:30:43]Write i2c OK [09:30:43]MH_I2C_Read... [09:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:43]Read from MH i2c: E2 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 17 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 17 00 CC E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [09:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:43]wFMCommunicate OK [09:30:43]requested_item fd.num is exist - process it [09:30:43]SAM_PROTO_GetFieldsCounters [09:30:43]wFMCommunicate request_size=4 [09:30:43]MH_SAM_APDU [09:30:43]CAPDU: 80 13 00 00 [09:30:43]Write to MH i2c: E2 08 00 CD E7 80 13 00 00 00 00 00 00 30 [09:30:43]Write i2c OK [09:30:43]MH_I2C_Read... [09:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:43]Read from MH i2c: E2 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 62 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 62 00 CD E7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:30:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:43]wFMCommunicate OK [09:30:43]SAM_PROTO_GetFieldsCounters done [09:30:43]requested_item shift.num is exist - process it [09:30:43]requested_item shift.opened is exist - process it [09:30:43]req_shift_opened [09:30:43]FM_GetShiftState [09:30:43]SAM_PROTO_GetShiftState [09:30:43]wFMCommunicate request_size=4 [09:30:43]MH_SAM_APDU [09:30:43]CAPDU: 80 13 01 00 [09:30:43]Write to MH i2c: E2 08 00 CE E7 80 13 01 00 00 00 00 00 32 [09:30:43]Write i2c OK [09:30:43]MH_I2C_Read... [09:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:43]Read from MH i2c: E2 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 0E 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 0E 00 CE E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AB [09:30:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:43]wFMCommunicate OK [09:30:43]SAM_PROTO_GetShiftState done [09:30:43]FM_GetShiftState done [09:30:43]req_shift_opened done [09:30:43]requested_item shift.open_date is exist - process it [09:30:43]req_shift_open_date [09:30:43]req_shift_open_date done [09:30:43]produce_requested_data done [09:30:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191675,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:30:43]process_action_free close_receipt [09:30:43]json_value_free [09:30:43]json_value_free done [09:30:43]process_json_proto returns [09:30:43]Send response to host [09:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191675,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:30:43]free response buf [09:30:43]execute_script done [09:30:43]execute_script returns [09:30:43]free content buf [09:30:43]Sock 9.Close socket [09:30:43]Sock 9.Thread stoped [09:30:44]accept exits with 8 [09:30:44]New connection [09:30:44]New thread 3066817892 created [09:30:44]Thread 3066961252 joined [09:30:44]Waiting for new connection... [09:30:44] Sock 8.Parse request [09:30:44]Sock 8.Check first char [09:30:44]Sock 8.First char is OK [09:30:44]request: POST /json_proto HTTP/1.0 [09:30:44]Method: POST [09:30:44]URL: /json_proto [09:30:44]Method is POST - this is cgi request [09:30:44]url: /json_proto [09:30:44]query_string will be loaded in cgi processing [09:30:44]execute_cgi json_proto POST (null) [09:30:44]execute_cgi path=json_proto method=POST [09:30:44]POST find Content-Length [09:30:44]Host: 172.17.63.131:8080 [09:30:44]Content-Length: 676 [09:30:44]Content-Type: application/json [09:30:44] [09:30:44]POST finish read [09:30:44]Found Content-Length = 676 [09:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:44]execute_script... [09:30: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)30978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:44]POST & json_proto [09:30:44]process_json_proto [09:30:44]json parsed OK: [09:30:44]protocol is kg_v1.0 [09:30:44]action value=close_receipt [09:30:44]process_action close_receipt [09:30:44]cmd_close_receipt [09:30:44]MH_GetDate [09:30:44]Write to MH i2c: F0 00 00 CF E7 A5 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 09 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 09 00 CF E7 00 D2 B6 1C 67 22 05 6E 64 B2 [09:30:44]GetLastDocTimeStamp 1729935053 [09:30:44]current date 1729935058 [09:30:44]FM_GetShiftState [09:30:44]SAM_PROTO_GetShiftState [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 13 01 00 [09:30:44]Write to MH i2c: E2 08 00 D0 E7 80 13 01 00 00 00 00 00 34 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 D0 E7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AD [09:30:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_GetShiftState done [09:30:44]FM_GetShiftState done [09:30:44]opened in 1729902770 [09:30:44]opened+sec_in_day 1729989170 [09:30:44]quantity*price = 30038 [09:30:44]sum+1 = 30039 [09:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 39 26.10.2024 09:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191676 ФПД: 153688803791667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191676&fm=153688803791667&tin=02508201610067®Number=0000000000091776&sum=30000 [09:30:46]StoreToDocumentArchive [09:30:46]shift 541 fd 191676 [09:30:46]save to /storage/0541/doc_00191676 [09:30:46]save last doc name /storage/0541/doc_00191676 to /storage/kkm_last_doc_name [09:30:46]save OK [09:30:46]Clear old archive folders... [09:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:46]tlvbuf is 019922B0 [09:30:46]SAM_PROTO_ClearQueue [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 09 00 00 [09:30:46]Write to MH i2c: E2 08 00 DD E7 80 09 00 00 00 00 00 00 36 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 DD E7 00 90 00 38 [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]SAM_PROTO_ClearQueue done [09:30:46]KKMCreateOFDPacket [09:30:46]OFDProtocolAddRootSTLVToBuf [09:30:46]FM_MakeSignedData [09:30:46]FM_MakeSignedData [09:30:46]SAM_PROTO_SignData [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 01 02 [09:30:46]Write to MH i2c: E2 08 00 DE E7 80 0D 01 02 00 00 00 00 3E [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 DE E7 00 90 00 39 [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=255 [09:30:46]MH_SAM_APDU [09:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EC 02 00 35 04 06 00 8B [09:30:46]Write to MH i2c: E2 02 01 DF E7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EC 02 00 35 04 06 00 8B 00 00 4C [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 DF E7 00 90 00 3A [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=10 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 02 02 05 C7 76 8E 53 33 [09:30:46]Write to MH i2c: E2 0D 00 E0 E7 80 0D 02 02 05 00 C7 76 8E 53 33 00 00 9C [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 E0 E7 00 90 00 3B [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 03 02 [09:30:46]Write to MH i2c: E2 08 00 E1 E7 80 0D 03 02 00 00 00 00 43 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 0B 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 0B 00 E1 E7 00 F7 87 4E ED 61 9B D6 46 90 00 15 [09:30:46]RAPDU: F7 87 4E ED 61 9B D6 46 90 00 [09:30:46]wFMCommunicate OK [09:30:46]SAM_PROTO_SignData done [09:30:46]FM_MakeSignedData done [09:30:46]CreateOFDProtocolMessage [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 11 00 00 [09:30:46]Write to MH i2c: E2 08 00 E2 E7 80 11 00 00 00 00 00 00 43 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:46]Read from MH i2c: E2 17 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 17 00 E2 E7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [09:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:46]wFMCommunicate OK [09:30:46]CreateOFDProtocolMessage done [09:30:46]OFDSenderStorePacket 191676 [09:30:46]StoreOFDPacket docnum=191676 [09:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 81 07 01 E7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EC 02 00 35 04 06 00 8B C7 76 8E 53 33 F7 87 4E ED 61 9B D6 46 [09:30:46]CheckFolder [09:30:46]dirname=/storage/ofd_packets [09:30:46]CheckFolder done [09:30:46]ProducePacketName [09:30:46]name=ofd_packets/00191676 [09:30:46]NVStorageSaveData ofd_packets/00191676 [09:30:46]File name is /storage/ofd_packets/00191676 [09:30:46]Write 301 bytes [09:30:46]NVStorageSaveData done [09:30:46]OFDSenderStorePacket done [09:30:46]KKMCreateOFDPacket done [09:30:46]NVStorageSaveData kkm_last_timestamp [09:30:46]File name is /storage/kkm_last_timestamp [09:30:46]Write 4 bytes [09:30:46]NVStorageSaveData done [09:30:46]ExternCall_PrintAddStr [09:30:46]wPrintStart [09:30:46]Write to MH i2c: 01 00 00 E3 E7 CA [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 07 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 07 00 E3 E7 00 00 00 00 00 FF 0F DF [09:30:46]RasterBufferAndPrint [09:30:46]line Счет N : (1)30978 [09:30:46]line ИНН: 02508201610067 [09:30:46]line Контрольно-Кассовый Чек [09:30:46]line ПРОДАЖА [09:30:46]line ТРК (МРК, ГНК) : 21 [09:30:46]line Товар: 2710124130 [09:30:46]line Аи-92-К-5 [09:30:46]line 4.490 * 66.90 [09:30:46]line = 300.38 [09:30:46]line НДС 12% НСП 1% [09:30:46]line > о реализуемом товаре [09:30:46]line ОКРУГЛЕНИЕ: -0.38 [09:30:46]line ИТОГО: 300.00 [09:30:46]line Внесено: 300.00 [09:30:46]line СДАЧА: 0.00 [09:30:46]line НСП 1% : 2.66 [09:30:46]line НДС 12% : 31.90 [09:30:46]line Наличными: 300.00 [09:30:46]line Безнал.: 0.00 [09:30:46]line Место: АЗС № 170 "Партнер Нефть" [09:30:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:30:46]line СНО: Общий режим [09:30:46]line Чек 39 26.10.2024 09:30 [09:30:46]line Смена: 541 ФФД: 1.0 [09:30:46]line ЗНМ: 0300000110 [09:30:46]line РНМ: 0000000000091776 [09:30:46]line Версия ККМ: 001 [09:30:46]line ФМ: 0000000000871754 [09:30:46]line ФД: 191676 [09:30:46]line ФПД: 153688803791667 [09:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191676&fm=153688803791667&tin=02508201610067®Number=0000000000091776&sum=30000 [09:30:46]written 0, free lines is 4095 [09:30:46]OFD Sender: Processing packet 191676 [packets to send 75, broken 74] [09:30:46]ProducePacketName [09:30:46]name=ofd_packets/00191676 [09:30:46]OFD Sender: To server: pG, [09:30:46]CommunicateWithHost lk.salyk.kg:30040 [09:30:46]ConnectInit lk.salyk.kg [09:30:46]Connected sock=10 [09:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 81 07 01 E7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 B6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC EC 02 00 35 04 06 00 8B C7 76 8E 53 33 F7 87 4E ED 61 9B D6 46 [09:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC B5 47 00 27 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 31 37 35 34 10 04 04 00 BC EC 02 00 F4 03 04 00 9E 5B 1C 67 B6 04 01 00 00 61 1E 55 A7 73 5D 72 DE [09:30:47]CommunicateWithHost err = 0 [09:30:47]CheckOFDResponse [09:30:47]1017 (14) - 77093643461234 [09:30:47]1041 (16) - 0000000000871754 [09:30:47]1040 (4) - 191676 [09:30:47]1012 (4) - 26.10.2024 03:01 [09:30:47]1206 (1) - 0 [09:30:47]OFD Sender: Remove packet 191676 [09:30:47]ProducePacketName [09:30:47]name=ofd_packets/00191676 [09:30:47]NVStorageDeleteData [09:30:47]Write to MH i2c: 01 00 00 0E E8 F6 [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 07 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 07 00 0E E8 00 00 00 00 00 C3 0C CC [09:30:47]RasterBufferAndPrint [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]written 0, free lines is 3279 [09:30:47]MH_Cut [09:30:47]Write to MH i2c: D1 01 00 15 E8 01 CF [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 01 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 01 00 15 E8 00 CE [09:30:47]Write to MH i2c: 01 00 00 16 E8 FE [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]OFD Sender: No OFD packet to send [09:30:48]*** Cut start [09:30:48]*** Partial cut [09:30:48]*** CUTSNS_PIN = 1 [09:30:48]*** CUTSNS_PIN = 0 [09:30:48]*** Brake cut motor [09:30:48]Read from MH i2c: 01 [09:30:48]MH_I2C_Read... [09:30:48]*** Stop cut motor [09:30:48]*** Cut end [09:30:48]Read from MH i2c: 01 07 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: 01 07 00 16 E8 00 00 00 00 00 FF 0F 13 [09:30:48]process_action close_receipt done [09:30:48]requested_data is exist [09:30:48]produce_requested_data [09:30:48]requested_item fm.sn is exist - process it [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 11 00 00 [09:30:48]Write to MH i2c: E2 08 00 17 E8 80 11 00 00 00 00 00 00 79 [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 17 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 17 00 17 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CC [09:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:30:48]wFMCommunicate OK [09:30:48]requested_item fd.num is exist - process it [09:30:48]SAM_PROTO_GetFieldsCounters [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 13 00 00 [09:30:48]Write to MH i2c: E2 08 00 18 E8 80 13 00 00 00 00 00 00 7C [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 62 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 62 00 18 E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:48]wFMCommunicate OK [09:30:48]SAM_PROTO_GetFieldsCounters done [09:30:48]requested_item shift.num is exist - process it [09:30:48]requested_item shift.opened is exist - process it [09:30:48]req_shift_opened [09:30:48]FM_GetShiftState [09:30:48]SAM_PROTO_GetShiftState [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 13 01 00 [09:30:48]Write to MH i2c: E2 08 00 19 E8 80 13 01 00 00 00 00 00 7E [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 0E 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 0E 00 19 E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F7 [09:30:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:30:48]wFMCommunicate OK [09:30:48]SAM_PROTO_GetShiftState done [09:30:48]FM_GetShiftState done [09:30:48]req_shift_opened done [09:30:48]requested_item shift.open_date is exist - process it [09:30:48]req_shift_open_date [09:30:48]req_shift_open_date done [09:30:48]produce_requested_data done [09:30:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191676,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:30:48]process_action_free close_receipt [09:30:48]json_value_free [09:30:48]json_value_free done [09:30:48]process_json_proto returns [09:30:48]Send response to host [09:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191676,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:30:48]free response buf [09:30:48]execute_script done [09:30:48]execute_script returns [09:30:48]free content buf [09:30:48]Sock 8.Close socket [09:30:48]Sock 8.Thread stoped [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:32]OFD Sender: No OFD packet to send [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:11]accept exits with 9 [09:32:11]New connection [09:32:11]New thread 3066961252 created [09:32:11]Thread 3066817892 joined [09:32:11]Waiting for new connection... [09:32:11] Sock 9.Parse request [09:32:11]Sock 9.Check first char [09:32:11]Sock 9.First char is OK [09:32:11]request: POST /json_proto HTTP/1.0 [09:32:11]Method: POST [09:32:11]URL: /json_proto [09:32:11]Method is POST - this is cgi request [09:32:11]url: /json_proto [09:32:11]query_string will be loaded in cgi processing [09:32:11]execute_cgi json_proto POST (null) [09:32:11]execute_cgi path=json_proto method=POST [09:32:11]POST find Content-Length [09:32:11]Host: 172.17.63.131:8080 [09:32:11]Content-Length: 676 [09:32:11]Content-Type: application/json [09:32:11] [09:32:11]POST finish read [09:32:11]Found Content-Length = 676 [09:32:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:11]execute_script... [09: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)30979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:11]POST & json_proto [09:32:11]process_json_proto [09:32:11]json parsed OK: [09:32:11]protocol is kg_v1.0 [09:32:11]action value=close_receipt [09:32:11]process_action close_receipt [09:32:11]cmd_close_receipt [09:32:11]MH_GetDate [09:32:11]Write to MH i2c: F0 00 00 1A E8 F1 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: F0 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: F0 09 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: F0 09 00 1A E8 00 29 B7 1C 67 22 05 6E 64 56 [09:32:11]GetLastDocTimeStamp 1729935058 [09:32:11]current date 1729935145 [09:32:11]FM_GetShiftState [09:32:11]SAM_PROTO_GetShiftState [09:32:11]wFMCommunicate request_size=4 [09:32:11]MH_SAM_APDU [09:32:11]CAPDU: 80 13 01 00 [09:32:11]Write to MH i2c: E2 08 00 1B E8 80 13 01 00 00 00 00 00 80 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:11]Read from MH i2c: E2 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 0E 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: E2 0E 00 1B E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F9 [09:32:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:32:11]wFMCommunicate OK [09:32:11]SAM_PROTO_GetShiftState done [09:32:11]FM_GetShiftState done [09:32:11]opened in 1729902770 [09:32:11]opened+sec_in_day 1729989170 [09:32:11]quantity*price = 60009 [09:32:11]sum+1 = 60010 [09:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 40 26.10.2024 09:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191677 ФПД: 268639677547125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191677&fm=268639677547125&tin=02508201610067®Number=0000000000091776&sum=60000 [09:32:12]StoreToDocumentArchive [09:32:12]shift 541 fd 191677 [09:32:12]save to /storage/0541/doc_00191677 [09:32:12]save last doc name /storage/0541/doc_00191677 to /storage/kkm_last_doc_name [09:32:12]save OK [09:32:12]Clear old archive folders... [09:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:12]tlvbuf is 01600DA0 [09:32:12]SAM_PROTO_ClearQueue [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 09 00 00 [09:32:12]Write to MH i2c: E2 08 00 28 E8 80 09 00 00 00 00 00 00 82 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 03 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 03 00 28 E8 00 90 00 84 [09:32:12]RAPDU: 90 00 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_ClearQueue done [09:32:12]KKMCreateOFDPacket [09:32:12]OFDProtocolAddRootSTLVToBuf [09:32:12]FM_MakeSignedData [09:32:12]FM_MakeSignedData [09:32:12]SAM_PROTO_SignData [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 0D 01 02 [09:32:12]Write to MH i2c: E2 08 00 29 E8 80 0D 01 02 00 00 00 00 8A [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 03 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 03 00 29 E8 00 90 00 85 [09:32:12]RAPDU: 90 00 [09:32:12]wFMCommunicate OK [09:32:12]wFMCommunicate request_size=255 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 B7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EC 02 00 35 04 06 00 F4 [09:32:12]Write to MH i2c: E2 02 01 2A E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 B7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EC 02 00 35 04 06 00 F4 00 00 44 [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 03 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 03 00 2A E8 00 90 00 86 [09:32:13]RAPDU: 90 00 [09:32:13]wFMCommunicate OK [09:32:13]wFMCommunicate request_size=10 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 0D 02 02 05 53 8C 8D 82 75 [09:32:13]Write to MH i2c: E2 0D 00 2B E8 80 0D 02 02 05 00 53 8C 8D 82 75 00 00 FA [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 03 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 03 00 2B E8 00 90 00 87 [09:32:13]RAPDU: 90 00 [09:32:13]wFMCommunicate OK [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 0D 03 02 [09:32:13]Write to MH i2c: E2 08 00 2C E8 80 0D 03 02 00 00 00 00 8F [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 0B 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 0B 00 2C E8 00 E4 1D D8 96 E3 E9 4C 55 90 00 6C [09:32:13]RAPDU: E4 1D D8 96 E3 E9 4C 55 90 00 [09:32:13]wFMCommunicate OK [09:32:13]SAM_PROTO_SignData done [09:32:13]FM_MakeSignedData done [09:32:13]CreateOFDProtocolMessage [09:32:13]wFMCommunicate request_size=4 [09:32:13]MH_SAM_APDU [09:32:13]CAPDU: 80 11 00 00 [09:32:13]Write to MH i2c: E2 08 00 2D E8 80 11 00 00 00 00 00 00 8F [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:13]Read from MH i2c: E2 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: E2 17 00 2D E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [09:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:32:13]wFMCommunicate OK [09:32:13]CreateOFDProtocolMessage done [09:32:13]OFDSenderStorePacket 191677 [09:32:13]StoreOFDPacket docnum=191677 [09:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 B3 07 01 63 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 B7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EC 02 00 35 04 06 00 F4 53 8C 8D 82 75 E4 1D D8 96 E3 E9 4C 55 [09:32:13]CheckFolder [09:32:13]dirname=/storage/ofd_packets [09:32:13]CheckFolder done [09:32:13]ProducePacketName [09:32:13]name=ofd_packets/00191677 [09:32:13]NVStorageSaveData ofd_packets/00191677 [09:32:13]File name is /storage/ofd_packets/00191677 [09:32:13]Write 301 bytes [09:32:13]NVStorageSaveData done [09:32:13]OFDSenderStorePacket done [09:32:13]KKMCreateOFDPacket done [09:32:13]NVStorageSaveData kkm_last_timestamp [09:32:13]File name is /storage/kkm_last_timestamp [09:32:13]Write 4 bytes [09:32:13]NVStorageSaveData done [09:32:13]ExternCall_PrintAddStr [09:32:13]wPrintStart [09:32:13]Write to MH i2c: 01 00 00 2E E8 16 [09:32:13]Write i2c OK [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: 01 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: 01 07 00 [09:32:13]MH_I2C_Read... [09:32:13]Read from MH i2c: 01 07 00 2E E8 00 00 00 00 00 FF 0F 2B [09:32:13]RasterBufferAndPrint [09:32:13]line Счет N : (1)30979 [09:32:13]line ИНН: 02508201610067 [09:32:13]line Контрольно-Кассовый Чек [09:32:13]line ПРОДАЖА [09:32:13]line ТРК (МРК, ГНК) : 21 [09:32:13]line Товар: 2710124130 [09:32:13]line Аи-92-К-5 [09:32:13]line 8.970 * 66.90 [09:32:13]line = 600.09 [09:32:13]line НДС 12% НСП 1% [09:32:13]line > о реализуемом товаре [09:32:13]line ОКРУГЛЕНИЕ: -0.09 [09:32:13]line ИТОГО: 600.00 [09:32:13]line Внесено: 600.00 [09:32:13]line СДАЧА: 0.00 [09:32:13]line НСП 1% : 5.31 [09:32:13]line НДС 12% : 63.73 [09:32:13]line Наличными: 600.00 [09:32:13]line Безнал.: 0.00 [09:32:13]line Место: АЗС № 170 "Партнер Нефть" [09:32:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:32:13]line СНО: Общий режим [09:32:13]line Чек 40 26.10.2024 09:32 [09:32:13]line Смена: 541 ФФД: 1.0 [09:32:13]line ЗНМ: 0300000110 [09:32:13]line РНМ: 0000000000091776 [09:32:13]line Версия ККМ: 001 [09:32:13]line ФМ: 0000000000871754 [09:32:13]line ФД: 191677 [09:32:13]line ФПД: 268639677547125 [09:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191677&fm=268639677547125&tin=02508201610067®Number=0000000000091776&sum=60000 [09:32:13]OFD Sender: Processing packet 191677 [packets to send 75, broken 74] [09:32:13]ProducePacketName [09:32:13]name=ofd_packets/00191677 [09:32:13]OFD Sender: To server: pG, [09:32:13]CommunicateWithHost lk.salyk.kg:30040 [09:32:13]ConnectInit lk.salyk.kg [09:32:13]written 0, free lines is 4095 [09:32:13]Connected sock=10 [09:32:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 B3 07 01 63 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 29 B7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EC 02 00 35 04 06 00 F4 53 8C 8D 82 75 E4 1D D8 96 E3 E9 4C 55 [09:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B3 4B 47 00 C3 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD EC 02 00 F4 03 04 00 F5 5B 1C 67 B6 04 01 00 00 CD 58 3C 7E FF D1 EE 70 [09:32:14]CommunicateWithHost err = 0 [09:32:14]CheckOFDResponse [09:32:14]1017 (14) - 77093643461234 [09:32:14]1041 (16) - 0000000000871754 [09:32:14]1040 (4) - 191677 [09:32:14]1012 (4) - 26.10.2024 03:03 [09:32:14]1206 (1) - 0 [09:32:14]OFD Sender: Remove packet 191677 [09:32:14]ProducePacketName [09:32:14]name=ofd_packets/00191677 [09:32:14]NVStorageDeleteData [09:32:14]Write to MH i2c: 01 00 00 59 E8 41 [09:32:14]Write i2c OK [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: 01 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: 01 07 00 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: 01 07 00 59 E8 00 00 00 00 00 BD 0C 11 [09:32:14]RasterBufferAndPrint [09:32:14]line [09:32:14]line [09:32:14]line [09:32:14]line [09:32:14]line [09:32:14]written 0, free lines is 3267 [09:32:14]MH_Cut [09:32:14]Write to MH i2c: D1 01 00 60 E8 01 1A [09:32:14]Write i2c OK [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: D1 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: D1 01 00 [09:32:14]MH_I2C_Read... [09:32:14]Read from MH i2c: D1 01 00 60 E8 00 19 [09:32:14]Write to MH i2c: 01 00 00 61 E8 49 [09:32:14]Write i2c OK [09:32:14]MH_I2C_Read... [09:32:14]OFD Sender: No OFD packet to send [09:32:15]*** Cut start [09:32:15]*** Partial cut [09:32:15]*** CUTSNS_PIN = 1 [09:32:15]*** CUTSNS_PIN = 0 [09:32:15]*** Brake cut motor [09:32:15]Read from MH i2c: 01 [09:32:15]MH_I2C_Read... [09:32:15]*** Stop cut motor [09:32:15]*** Cut end [09:32:15]Read from MH i2c: 01 07 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: 01 07 00 61 E8 00 00 00 00 00 FF 0F 5E [09:32:15]process_action close_receipt done [09:32:15]requested_data is exist [09:32:15]produce_requested_data [09:32:15]requested_item fm.sn is exist - process it [09:32:15]wFMCommunicate request_size=4 [09:32:15]MH_SAM_APDU [09:32:15]CAPDU: 80 11 00 00 [09:32:15]Write to MH i2c: E2 08 00 62 E8 80 11 00 00 00 00 00 00 C4 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:15]Read from MH i2c: E2 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 17 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 17 00 62 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [09:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:32:15]wFMCommunicate OK [09:32:15]requested_item fd.num is exist - process it [09:32:15]SAM_PROTO_GetFieldsCounters [09:32:15]wFMCommunicate request_size=4 [09:32:15]MH_SAM_APDU [09:32:15]CAPDU: 80 13 00 00 [09:32:15]Write to MH i2c: E2 08 00 63 E8 80 13 00 00 00 00 00 00 C7 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:15]Read from MH i2c: E2 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 62 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 62 00 63 E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:15]wFMCommunicate OK [09:32:15]SAM_PROTO_GetFieldsCounters done [09:32:15]requested_item shift.num is exist - process it [09:32:15]requested_item shift.opened is exist - process it [09:32:15]req_shift_opened [09:32:15]FM_GetShiftState [09:32:15]SAM_PROTO_GetShiftState [09:32:15]wFMCommunicate request_size=4 [09:32:15]MH_SAM_APDU [09:32:15]CAPDU: 80 13 01 00 [09:32:15]Write to MH i2c: E2 08 00 64 E8 80 13 01 00 00 00 00 00 C9 [09:32:15]Write i2c OK [09:32:15]MH_I2C_Read... [09:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:15]Read from MH i2c: E2 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 [09:32:15]MH_I2C_Read... [09:32:15]Read from MH i2c: E2 0E 00 64 E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 42 [09:32:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:32:15]wFMCommunicate OK [09:32:15]SAM_PROTO_GetShiftState done [09:32:15]FM_GetShiftState done [09:32:15]req_shift_opened done [09:32:15]requested_item shift.open_date is exist - process it [09:32:15]req_shift_open_date [09:32:15]req_shift_open_date done [09:32:15]produce_requested_data done [09:32:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191677,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:32:15]process_action_free close_receipt [09:32:15]json_value_free [09:32:15]json_value_free done [09:32:15]process_json_proto returns [09:32:15]Send response to host [09:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191677,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:32:15]free response buf [09:32:15]execute_script done [09:32:15]execute_script returns [09:32:15]free content buf [09:32:15]Sock 9.Close socket [09:32:15]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [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:37]accept exits with 8 [09:36:37]New connection [09:36:37]New thread 3066817892 created [09:36:37]Thread 3066961252 joined [09:36:37]Waiting for new connection... [09:36:37] Sock 8.Parse request [09:36:37]Sock 8.Check first char [09:36:37]Sock 8.First char is OK [09:36:37]request: POST /json_proto HTTP/1.0 [09:36:37]Method: POST [09:36:37]URL: /json_proto [09:36:37]Method is POST - this is cgi request [09:36:37]url: /json_proto [09:36:37]query_string will be loaded in cgi processing [09:36:37]execute_cgi json_proto POST (null) [09:36:37]execute_cgi path=json_proto method=POST [09:36:37]POST find Content-Length [09:36:37]Host: 172.17.63.131:8080 [09:36:37]Content-Length: 676 [09:36:37]Content-Type: application/json [09:36:37] [09:36:37]POST finish read [09:36:37]Found Content-Length = 676 [09:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:37]execute_script... [09:36: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)30980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:37]POST & json_proto [09:36:37]process_json_proto [09:36:37]json parsed OK: [09:36:37]protocol is kg_v1.0 [09:36:37]action value=close_receipt [09:36:37]process_action close_receipt [09:36:37]cmd_close_receipt [09:36:37]MH_GetDate [09:36:37]Write to MH i2c: F0 00 00 65 E8 3C [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: F0 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: F0 09 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: F0 09 00 65 E8 00 33 B8 1C 67 22 05 6E 64 AC [09:36:37]GetLastDocTimeStamp 1729935145 [09:36:37]current date 1729935411 [09:36:37]FM_GetShiftState [09:36:37]SAM_PROTO_GetShiftState [09:36:37]wFMCommunicate request_size=4 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 13 01 00 [09:36:37]Write to MH i2c: E2 08 00 66 E8 80 13 01 00 00 00 00 00 CB [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:37]Read from MH i2c: E2 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 0E 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 0E 00 66 E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 44 [09:36:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:36:37]wFMCommunicate OK [09:36:37]SAM_PROTO_GetShiftState done [09:36:37]FM_GetShiftState done [09:36:37]opened in 1729902770 [09:36:37]opened+sec_in_day 1729989170 [09:36:37]quantity*price = 50041 [09:36:37]sum+1 = 50042 [09:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 41 26.10.2024 09:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191678 ФПД: 34261039357275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191678&fm=34261039357275&tin=02508201610067®Number=0000000000091776&sum=50000 [09:36:38]StoreToDocumentArchive [09:36:38]shift 541 fd 191678 [09:36:38]save to /storage/0541/doc_00191678 [09:36:38]save last doc name /storage/0541/doc_00191678 to /storage/kkm_last_doc_name [09:36:38]save OK [09:36:38]Clear old archive folders... [09:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:38]tlvbuf is 016CE470 [09:36:38]SAM_PROTO_ClearQueue [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 09 00 00 [09:36:38]Write to MH i2c: E2 08 00 73 E8 80 09 00 00 00 00 00 00 CD [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 03 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 03 00 73 E8 00 90 00 CF [09:36:38]RAPDU: 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_ClearQueue done [09:36:38]KKMCreateOFDPacket [09:36:38]OFDProtocolAddRootSTLVToBuf [09:36:38]FM_MakeSignedData [09:36:38]FM_MakeSignedData [09:36:38]SAM_PROTO_SignData [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 0D 01 02 [09:36:38]Write to MH i2c: E2 08 00 74 E8 80 0D 01 02 00 00 00 00 D5 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 03 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 03 00 74 E8 00 90 00 D0 [09:36:38]RAPDU: 90 00 [09:36:38]wFMCommunicate OK [09:36:38]wFMCommunicate request_size=255 [09:36:38]MH_SAM_APDU [09:36: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 B8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EC 02 00 35 04 06 00 1F [09:36:38]Write to MH i2c: E2 02 01 75 E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 B8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EC 02 00 35 04 06 00 1F 00 00 EA [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 75 E8 00 90 00 D1 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]wFMCommunicate request_size=10 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 0D 02 02 05 29 05 14 9D 5B [09:36:39]Write to MH i2c: E2 0D 00 76 E8 80 0D 02 02 05 00 29 05 14 9D 5B 00 00 1C [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 03 00 76 E8 00 90 00 D2 [09:36:39]RAPDU: 90 00 [09:36:39]wFMCommunicate OK [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 0D 03 02 [09:36:39]Write to MH i2c: E2 08 00 77 E8 80 0D 03 02 00 00 00 00 DA [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0B 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 0B 00 77 E8 00 61 37 E4 C9 09 DF FB ED 90 00 F0 [09:36:39]RAPDU: 61 37 E4 C9 09 DF FB ED 90 00 [09:36:39]wFMCommunicate OK [09:36:39]SAM_PROTO_SignData done [09:36:39]FM_MakeSignedData done [09:36:39]CreateOFDProtocolMessage [09:36:39]wFMCommunicate request_size=4 [09:36:39]MH_SAM_APDU [09:36:39]CAPDU: 80 11 00 00 [09:36:39]Write to MH i2c: E2 08 00 78 E8 80 11 00 00 00 00 00 00 DA [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:39]Read from MH i2c: E2 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 17 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: E2 17 00 78 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [09:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:39]wFMCommunicate OK [09:36:39]CreateOFDProtocolMessage done [09:36:39]OFDSenderStorePacket 191678 [09:36:39]StoreOFDPacket docnum=191678 [09:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 92 07 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 B8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EC 02 00 35 04 06 00 1F 29 05 14 9D 5B 61 37 E4 C9 09 DF FB ED [09:36:39]CheckFolder [09:36:39]dirname=/storage/ofd_packets [09:36:39]CheckFolder done [09:36:39]ProducePacketName [09:36:39]name=ofd_packets/00191678 [09:36:39]NVStorageSaveData ofd_packets/00191678 [09:36:39]File name is /storage/ofd_packets/00191678 [09:36:39]Write 301 bytes [09:36:39]NVStorageSaveData done [09:36:39]OFDSenderStorePacket done [09:36:39]KKMCreateOFDPacket done [09:36:39]NVStorageSaveData kkm_last_timestamp [09:36:39]File name is /storage/kkm_last_timestamp [09:36:39]Write 4 bytes [09:36:39]NVStorageSaveData done [09:36:39]ExternCall_PrintAddStr [09:36:39]wPrintStart [09:36:39]Write to MH i2c: 01 00 00 79 E8 61 [09:36:39]Write i2c OK [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: 01 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: 01 07 00 [09:36:39]MH_I2C_Read... [09:36:39]Read from MH i2c: 01 07 00 79 E8 00 00 00 00 00 FF 0F 76 [09:36:39]RasterBufferAndPrint [09:36:39]line Счет N : (1)30980 [09:36:39]line ИНН: 02508201610067 [09:36:39]line Контрольно-Кассовый Чек [09:36:39]line ПРОДАЖА [09:36:39]line ТРК (МРК, ГНК) : 12 [09:36:39]line Товар: 2710124130 [09:36:39]line Аи-92-К-5 [09:36:39]line 7.480 * 66.90 [09:36:39]line = 500.41 [09:36:39]line НДС 12% НСП 1% [09:36:39]line > о реализуемом товаре [09:36:39]line ОКРУГЛЕНИЕ: -0.41 [09:36:39]line ИТОГО: 500.00 [09:36:39]line Внесено: 500.00 [09:36:39]line СДАЧА: 0.00 [09:36:39]line НСП 1% : 4.43 [09:36:39]line НДС 12% : 53.14 [09:36:39]line Наличными: 500.00 [09:36:39]line Безнал.: 0.00 [09:36:39]line Место: АЗС № 170 "Партнер Нефть" [09:36:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:36:39]line СНО: Общий режим [09:36:39]line Чек 41 26.10.2024 09:36 [09:36:39]line Смена: 541 ФФД: 1.0 [09:36:39]line ЗНМ: 0300000110 [09:36:39]line РНМ: 0000000000091776 [09:36:39]line Версия ККМ: 001 [09:36:39]line ФМ: 0000000000871754 [09:36:39]line ФД: 191678 [09:36:39]line ФПД: 34261039357275 [09:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T093651&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191678&fm=34261039357275&tin=02508201610067®Number=0000000000091776&sum=50000 [09:36:39]OFD Sender: Processing packet 191678 [packets to send 75, broken 74] [09:36:39]ProducePacketName [09:36:39]name=ofd_packets/00191678 [09:36:39]OFD Sender: To server: pG, [09:36:39]CommunicateWithHost lk.salyk.kg:30040 [09:36:39]written 0, free lines is 4095 [09:36:39]ConnectInit lk.salyk.kg [09:36:39]Connected sock=10 [09:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E2 92 07 01 4C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 33 B8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EC 02 00 35 04 06 00 1F 29 05 14 9D 5B 61 37 E4 C9 09 DF FB ED [09:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D DD 47 00 96 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE EC 02 00 F4 03 04 00 FF 5C 1C 67 B6 04 01 00 00 9B AA 75 F5 F6 1C 55 39 [09:36:40]CommunicateWithHost err = 0 [09:36:40]CheckOFDResponse [09:36:40]1017 (14) - 77093643461234 [09:36:40]1041 (16) - 0000000000871754 [09:36:40]1040 (4) - 191678 [09:36:40]1012 (4) - 26.10.2024 03:07 [09:36:40]1206 (1) - 0 [09:36:40]OFD Sender: Remove packet 191678 [09:36:40]ProducePacketName [09:36:40]name=ofd_packets/00191678 [09:36:40]NVStorageDeleteData [09:36:40]Write to MH i2c: 01 00 00 A4 E8 8C [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 A4 E8 00 00 00 00 00 AE 0C 4D [09:36:40]RasterBufferAndPrint [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]line [09:36:40]written 0, free lines is 3252 [09:36:40]MH_Cut [09:36:40]Write to MH i2c: D1 01 00 AB E8 01 65 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: D1 01 00 AB E8 00 64 [09:36:40]Write to MH i2c: 01 00 00 AC E8 94 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]OFD Sender: No OFD packet to send [09:36:40]*** Cut start [09:36:40]*** Partial cut [09:36:40]*** CUTSNS_PIN = 1 [09:36:41]*** CUTSNS_PIN = 0 [09:36:41]*** Brake cut motor [09:36:41]Read from MH i2c: 01 [09:36:41]MH_I2C_Read... [09:36:41]*** Stop cut motor [09:36:41]*** Cut end [09:36:41]Read from MH i2c: 01 07 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: 01 07 00 AC E8 00 00 00 00 00 FF 0F A9 [09:36:41]process_action close_receipt done [09:36:41]requested_data is exist [09:36:41]produce_requested_data [09:36:41]requested_item fm.sn is exist - process it [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 11 00 00 [09:36:41]Write to MH i2c: E2 08 00 AD E8 80 11 00 00 00 00 00 00 0F [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 17 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 17 00 AD E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [09:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:36:41]wFMCommunicate OK [09:36:41]requested_item fd.num is exist - process it [09:36:41]SAM_PROTO_GetFieldsCounters [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 13 00 00 [09:36:41]Write to MH i2c: E2 08 00 AE E8 80 13 00 00 00 00 00 00 12 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 62 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 62 00 AE E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:41]wFMCommunicate OK [09:36:41]SAM_PROTO_GetFieldsCounters done [09:36:41]requested_item shift.num is exist - process it [09:36:41]requested_item shift.opened is exist - process it [09:36:41]req_shift_opened [09:36:41]FM_GetShiftState [09:36:41]SAM_PROTO_GetShiftState [09:36:41]wFMCommunicate request_size=4 [09:36:41]MH_SAM_APDU [09:36:41]CAPDU: 80 13 01 00 [09:36:41]Write to MH i2c: E2 08 00 AF E8 80 13 01 00 00 00 00 00 14 [09:36:41]Write i2c OK [09:36:41]MH_I2C_Read... [09:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:41]Read from MH i2c: E2 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0E 00 [09:36:41]MH_I2C_Read... [09:36:41]Read from MH i2c: E2 0E 00 AF E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8D [09:36:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:36:41]wFMCommunicate OK [09:36:41]SAM_PROTO_GetShiftState done [09:36:41]FM_GetShiftState done [09:36:41]req_shift_opened done [09:36:41]requested_item shift.open_date is exist - process it [09:36:41]req_shift_open_date [09:36:41]req_shift_open_date done [09:36:41]produce_requested_data done [09:36:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191678,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:36:41]process_action_free close_receipt [09:36:41]json_value_free [09:36:41]json_value_free done [09:36:41]process_json_proto returns [09:36:41]Send response to host [09:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191678,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:36:41]free response buf [09:36:41]execute_script done [09:36:41]execute_script returns [09:36:41]free content buf [09:36:41]Sock 8.Close socket [09:36:41]Sock 8.Thread stoped [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:21]accept exits with 9 [09:41:21]New connection [09:41:21]New thread 3066961252 created [09:41:21]Thread 3066817892 joined [09:41:21]Waiting for new connection... [09:41:21] Sock 9.Parse request [09:41:21]Sock 9.Check first char [09:41:21]Sock 9.First char is OK [09:41:21]request: POST /json_proto HTTP/1.0 [09:41:21]Method: POST [09:41:21]URL: /json_proto [09:41:21]Method is POST - this is cgi request [09:41:21]url: /json_proto [09:41:21]query_string will be loaded in cgi processing [09:41:21]execute_cgi json_proto POST (null) [09:41:21]execute_cgi path=json_proto method=POST [09:41:21]POST find Content-Length [09:41:21]Host: 172.17.63.131:8080 [09:41:21]Content-Length: 676 [09:41:21]Content-Type: application/json [09:41:21] [09:41:21]POST finish read [09:41:21]Found Content-Length = 676 [09:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:21]execute_script... [09:41: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)30981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:21]POST & json_proto [09:41:21]process_json_proto [09:41:21]json parsed OK: [09:41:21]protocol is kg_v1.0 [09:41:21]action value=close_receipt [09:41:21]process_action close_receipt [09:41:21]cmd_close_receipt [09:41:21]MH_GetDate [09:41:21]Write to MH i2c: F0 00 00 B0 E8 87 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: F0 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: F0 09 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: F0 09 00 B0 E8 00 4F B9 1C 67 22 05 6E 64 14 [09:41:21]GetLastDocTimeStamp 1729935411 [09:41:21]current date 1729935695 [09:41:21]FM_GetShiftState [09:41:21]SAM_PROTO_GetShiftState [09:41:21]wFMCommunicate request_size=4 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 13 01 00 [09:41:21]Write to MH i2c: E2 08 00 B1 E8 80 13 01 00 00 00 00 00 16 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:21]Read from MH i2c: E2 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 0E 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 0E 00 B1 E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8F [09:41:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:41:21]wFMCommunicate OK [09:41:21]SAM_PROTO_GetShiftState done [09:41:21]FM_GetShiftState done [09:41:21]opened in 1729902770 [09:41:21]opened+sec_in_day 1729989170 [09:41:21]quantity*price = 30038 [09:41:21]sum+1 = 30039 [09:41:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 42 26.10.2024 09:41 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191679 ФПД: 81938700327574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191679&fm=81938700327574&tin=02508201610067®Number=0000000000091776&sum=30000 [09:41:22]StoreToDocumentArchive [09:41:22]shift 541 fd 191679 [09:41:22]save to /storage/0541/doc_00191679 [09:41:22]save last doc name /storage/0541/doc_00191679 to /storage/kkm_last_doc_name [09:41:22]save OK [09:41:22]Clear old archive folders... [09:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:22]tlvbuf is 01992390 [09:41:22]SAM_PROTO_ClearQueue [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 09 00 00 [09:41:22]Write to MH i2c: E2 08 00 BE E8 80 09 00 00 00 00 00 00 18 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 BE E8 00 90 00 1A [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]SAM_PROTO_ClearQueue done [09:41:22]KKMCreateOFDPacket [09:41:22]OFDProtocolAddRootSTLVToBuf [09:41:22]FM_MakeSignedData [09:41:22]FM_MakeSignedData [09:41:22]SAM_PROTO_SignData [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 01 02 [09:41:22]Write to MH i2c: E2 08 00 BF E8 80 0D 01 02 00 00 00 00 20 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 BF E8 00 90 00 1B [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]wFMCommunicate request_size=255 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4F B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EC 02 00 35 04 06 00 4A [09:41:22]Write to MH i2c: E2 02 01 C0 E8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4F B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EC 02 00 35 04 06 00 4A 00 00 73 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:23]Read from MH i2c: E2 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 03 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 03 00 C0 E8 00 90 00 1C [09:41:23]RAPDU: 90 00 [09:41:23]wFMCommunicate OK [09:41:23]wFMCommunicate request_size=10 [09:41:23]MH_SAM_APDU [09:41:23]CAPDU: 80 0D 02 02 05 85 D7 20 5A 96 [09:41:23]Write to MH i2c: E2 0D 00 C1 E8 80 0D 02 02 05 00 85 D7 20 5A 96 00 00 99 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:23]Read from MH i2c: E2 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 03 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 03 00 C1 E8 00 90 00 1D [09:41:23]RAPDU: 90 00 [09:41:23]wFMCommunicate OK [09:41:23]wFMCommunicate request_size=4 [09:41:23]MH_SAM_APDU [09:41:23]CAPDU: 80 0D 03 02 [09:41:23]Write to MH i2c: E2 08 00 C2 E8 80 0D 03 02 00 00 00 00 25 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:23]Read from MH i2c: E2 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 0B 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 0B 00 C2 E8 00 4C 99 AA CD 4E 52 A5 37 90 00 FE [09:41:23]RAPDU: 4C 99 AA CD 4E 52 A5 37 90 00 [09:41:23]wFMCommunicate OK [09:41:23]SAM_PROTO_SignData done [09:41:23]FM_MakeSignedData done [09:41:23]CreateOFDProtocolMessage [09:41:23]wFMCommunicate request_size=4 [09:41:23]MH_SAM_APDU [09:41:23]CAPDU: 80 11 00 00 [09:41:23]Write to MH i2c: E2 08 00 C3 E8 80 11 00 00 00 00 00 00 25 [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:23]Read from MH i2c: E2 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 17 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: E2 17 00 C3 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [09:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:23]wFMCommunicate OK [09:41:23]CreateOFDProtocolMessage done [09:41:23]OFDSenderStorePacket 191679 [09:41:23]StoreOFDPacket docnum=191679 [09:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 14 07 01 55 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4F B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EC 02 00 35 04 06 00 4A 85 D7 20 5A 96 4C 99 AA CD 4E 52 A5 37 [09:41:23]CheckFolder [09:41:23]dirname=/storage/ofd_packets [09:41:23]CheckFolder done [09:41:23]ProducePacketName [09:41:23]name=ofd_packets/00191679 [09:41:23]NVStorageSaveData ofd_packets/00191679 [09:41:23]File name is /storage/ofd_packets/00191679 [09:41:23]Write 301 bytes [09:41:23]NVStorageSaveData done [09:41:23]OFDSenderStorePacket done [09:41:23]KKMCreateOFDPacket done [09:41:23]NVStorageSaveData kkm_last_timestamp [09:41:23]File name is /storage/kkm_last_timestamp [09:41:23]Write 4 bytes [09:41:23]NVStorageSaveData done [09:41:23]ExternCall_PrintAddStr [09:41:23]wPrintStart [09:41:23]Write to MH i2c: 01 00 00 C4 E8 AC [09:41:23]Write i2c OK [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 07 00 [09:41:23]MH_I2C_Read... [09:41:23]Read from MH i2c: 01 07 00 C4 E8 00 00 00 00 00 FF 0F C1 [09:41:23]RasterBufferAndPrint [09:41:23]line Счет N : (1)30981 [09:41:23]line ИНН: 02508201610067 [09:41:23]line Контрольно-Кассовый Чек [09:41:23]line ПРОДАЖА [09:41:23]line ТРК (МРК, ГНК) : 21 [09:41:23]line Товар: 2710124130 [09:41:23]line Аи-92-К-5 [09:41:23]line 4.490 * 66.90 [09:41:23]line = 300.38 [09:41:23]line НДС 12% НСП 1% [09:41:23]line > о реализуемом товаре [09:41:23]line ОКРУГЛЕНИЕ: -0.38 [09:41:23]line ИТОГО: 300.00 [09:41:23]line Внесено: 300.00 [09:41:23]line СДАЧА: 0.00 [09:41:23]line НСП 1% : 2.66 [09:41:23]line НДС 12% : 31.90 [09:41:23]line Наличными: 300.00 [09:41:23]line Безнал.: 0.00 [09:41:23]line Место: АЗС № 170 "Партнер Нефть" [09:41:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:41:23]line СНО: Общий режим [09:41:23]line Чек 42 26.10.2024 09:41 [09:41:23]line Смена: 541 ФФД: 1.0 [09:41:23]line ЗНМ: 0300000110 [09:41:23]line РНМ: 0000000000091776 [09:41:23]line Версия ККМ: 001 [09:41:23]line ФМ: 0000000000871754 [09:41:23]line ФД: 191679 [09:41:23]line ФПД: 81938700327574 [09:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094135&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191679&fm=81938700327574&tin=02508201610067®Number=0000000000091776&sum=30000 [09:41:23]OFD Sender: Processing packet 191679 [packets to send 75, broken 74] [09:41:23]ProducePacketName [09:41:23]name=ofd_packets/00191679 [09:41:23]OFD Sender: To server: pG, [09:41:23]CommunicateWithHost lk.salyk.kg:30040 [09:41:23]ConnectInit lk.salyk.kg [09:41:23]written 0, free lines is 4095 [09:41:23]Connected sock=10 [09:41:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 14 07 01 55 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4F B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EC 02 00 35 04 06 00 4A 85 D7 20 5A 96 4C 99 AA CD 4E 52 A5 37 [09:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 CA 47 00 CE D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF EC 02 00 F4 03 04 00 1B 5E 1C 67 B6 04 01 00 00 1B 31 BD 87 D3 4B 48 5D [09:41:23]CommunicateWithHost err = 0 [09:41:23]CheckOFDResponse [09:41:23]1017 (14) - 77093643461234 [09:41:23]1041 (16) - 0000000000871754 [09:41:23]1040 (4) - 191679 [09:41:23]1012 (4) - 26.10.2024 03:12 [09:41:23]1206 (1) - 0 [09:41:23]OFD Sender: Remove packet 191679 [09:41:23]ProducePacketName [09:41:23]name=ofd_packets/00191679 [09:41:23]NVStorageDeleteData [09:41:24]Write to MH i2c: 01 00 00 EF E8 D7 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: 01 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: 01 07 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: 01 07 00 EF E8 00 00 00 00 00 AA 0C 94 [09:41:24]RasterBufferAndPrint [09:41:24]line [09:41:24]line [09:41:24]line [09:41:24]line [09:41:24]line [09:41:24]written 0, free lines is 3248 [09:41:24]MH_Cut [09:41:24]Write to MH i2c: D1 01 00 F6 E8 01 B0 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: D1 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: D1 01 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: D1 01 00 F6 E8 00 AF [09:41:24]Write to MH i2c: 01 00 00 F7 E8 DF [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]OFD Sender: No OFD packet to send [09:41:24]*** Cut start [09:41:24]*** Partial cut [09:41:24]*** CUTSNS_PIN = 1 [09:41:24]*** CUTSNS_PIN = 0 [09:41:25]*** Brake cut motor [09:41:25]Read from MH i2c: 01 [09:41:25]MH_I2C_Read... [09:41:25]*** Stop cut motor [09:41:25]*** Cut end [09:41:25]Read from MH i2c: 01 07 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 07 00 F7 E8 00 00 00 00 00 FF 0F F4 [09:41:25]process_action close_receipt done [09:41:25]requested_data is exist [09:41:25]produce_requested_data [09:41:25]requested_item fm.sn is exist - process it [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 11 00 00 [09:41:25]Write to MH i2c: E2 08 00 F8 E8 80 11 00 00 00 00 00 00 5A [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 F8 E8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [09:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:41:25]wFMCommunicate OK [09:41:25]requested_item fd.num is exist - process it [09:41:25]SAM_PROTO_GetFieldsCounters [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 13 00 00 [09:41:25]Write to MH i2c: E2 08 00 F9 E8 80 13 00 00 00 00 00 00 5D [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 62 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 62 00 F9 E8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:41:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_GetFieldsCounters done [09:41:25]requested_item shift.num is exist - process it [09:41:25]requested_item shift.opened is exist - process it [09:41:25]req_shift_opened [09:41:25]FM_GetShiftState [09:41:25]SAM_PROTO_GetShiftState [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 13 01 00 [09:41:25]Write to MH i2c: E2 08 00 FA E8 80 13 01 00 00 00 00 00 5F [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0E 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0E 00 FA E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D8 [09:41:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_GetShiftState done [09:41:25]FM_GetShiftState done [09:41:25]req_shift_opened done [09:41:25]requested_item shift.open_date is exist - process it [09:41:25]req_shift_open_date [09:41:25]req_shift_open_date done [09:41:25]produce_requested_data done [09:41:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191679,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:41:25]process_action_free close_receipt [09:41:25]json_value_free [09:41:25]json_value_free done [09:41:25]process_json_proto returns [09:41:25]Send response to host [09:41:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191679,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:41:25]free response buf [09:41:25]execute_script done [09:41:25]execute_script returns [09:41:25]free content buf [09:41:25]Sock 9.Close socket [09:41:25]Sock 9.Thread stoped [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:23]accept exits with 8 [09:43:23]New connection [09:43:23]New thread 3066817892 created [09:43:23]Thread 3066961252 joined [09:43:23]Waiting for new connection... [09:43:23] Sock 8.Parse request [09:43:23]Sock 8.Check first char [09:43:23]Sock 8.First char is OK [09:43:23]request: POST /json_proto HTTP/1.0 [09:43:23]Method: POST [09:43:23]URL: /json_proto [09:43:23]Method is POST - this is cgi request [09:43:23]url: /json_proto [09:43:23]query_string will be loaded in cgi processing [09:43:23]execute_cgi json_proto POST (null) [09:43:23]execute_cgi path=json_proto method=POST [09:43:23]POST find Content-Length [09:43:23]Host: 172.17.63.131:8080 [09:43:23]Content-Length: 676 [09:43:23]Content-Type: application/json [09:43:23] [09:43:23]POST finish read [09:43:23]Found Content-Length = 676 [09:43:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:23]execute_script... [09:43: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)30982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:23]POST & json_proto [09:43:23]process_json_proto [09:43:23]json parsed OK: [09:43:23]protocol is kg_v1.0 [09:43:23]action value=close_receipt [09:43:23]process_action close_receipt [09:43:23]cmd_close_receipt [09:43:23]MH_GetDate [09:43:23]Write to MH i2c: F0 00 00 FB E8 D2 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 09 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: F0 09 00 FB E8 00 C9 B9 1C 67 22 05 6E 64 D9 [09:43:23]GetLastDocTimeStamp 1729935695 [09:43:23]current date 1729935817 [09:43:23]FM_GetShiftState [09:43:23]SAM_PROTO_GetShiftState [09:43:23]wFMCommunicate request_size=4 [09:43:23]MH_SAM_APDU [09:43:23]CAPDU: 80 13 01 00 [09:43:23]Write to MH i2c: E2 08 00 FC E8 80 13 01 00 00 00 00 00 61 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:23]Read from MH i2c: E2 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0E 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: E2 0E 00 FC E8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DA [09:43:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:43:23]wFMCommunicate OK [09:43:23]SAM_PROTO_GetShiftState done [09:43:23]FM_GetShiftState done [09:43:23]opened in 1729902770 [09:43:23]opened+sec_in_day 1729989170 [09:43:23]quantity*price = 30038 [09:43:23]sum+1 = 30039 [09:43:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 43 26.10.2024 09:43 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191680 ФПД: 253635857091752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094337&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191680&fm=253635857091752&tin=02508201610067®Number=0000000000091776&sum=30000 [09:43:24]StoreToDocumentArchive [09:43:24]shift 541 fd 191680 [09:43:24]save to /storage/0541/doc_00191680 [09:43:24]save last doc name /storage/0541/doc_00191680 to /storage/kkm_last_doc_name [09:43:24]save OK [09:43:24]Clear old archive folders... [09:43:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:24]tlvbuf is 01608E70 [09:43:24]SAM_PROTO_ClearQueue [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 09 00 00 [09:43:24]Write to MH i2c: E2 08 00 09 E9 80 09 00 00 00 00 00 00 64 [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:24]Read from MH i2c: E2 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 [09:43:24]MH_I2C_Read... [09:43:24]Read from MH i2c: E2 03 00 09 E9 00 90 00 66 [09:43:24]RAPDU: 90 00 [09:43:24]wFMCommunicate OK [09:43:24]SAM_PROTO_ClearQueue done [09:43:24]KKMCreateOFDPacket [09:43:24]OFDProtocolAddRootSTLVToBuf [09:43:24]FM_MakeSignedData [09:43:24]FM_MakeSignedData [09:43:24]SAM_PROTO_SignData [09:43:24]wFMCommunicate request_size=4 [09:43:24]MH_SAM_APDU [09:43:24]CAPDU: 80 0D 01 02 [09:43:24]Write to MH i2c: E2 08 00 0A E9 80 0D 01 02 00 00 00 00 6C [09:43:24]Write i2c OK [09:43:24]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 0A E9 00 90 00 67 [09:43:25]RAPDU: 90 00 [09:43:25]wFMCommunicate OK [09:43:25]wFMCommunicate request_size=255 [09:43:25]MH_SAM_APDU [09:43: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EC 02 00 35 04 06 00 E6 [09:43:25]Write to MH i2c: E2 02 01 0B E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EC 02 00 35 04 06 00 E6 00 00 D7 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 0B E9 00 90 00 68 [09:43:25]RAPDU: 90 00 [09:43:25]wFMCommunicate OK [09:43:25]wFMCommunicate request_size=10 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 0D 02 02 05 AE 33 2A 0C A8 [09:43:25]Write to MH i2c: E2 0D 00 0C E9 80 0D 02 02 05 00 AE 33 2A 0C A8 00 00 38 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 03 00 0C E9 00 90 00 69 [09:43:25]RAPDU: 90 00 [09:43:25]wFMCommunicate OK [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 0D 03 02 [09:43:25]Write to MH i2c: E2 08 00 0D E9 80 0D 03 02 00 00 00 00 71 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0B 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0B 00 0D E9 00 EC 1A FD 3E FC 8A 89 05 90 00 C7 [09:43:25]RAPDU: EC 1A FD 3E FC 8A 89 05 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_SignData done [09:43:25]FM_MakeSignedData done [09:43:25]CreateOFDProtocolMessage [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 11 00 00 [09:43:25]Write to MH i2c: E2 08 00 0E E9 80 11 00 00 00 00 00 00 71 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 17 00 0E E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [09:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:25]wFMCommunicate OK [09:43:25]CreateOFDProtocolMessage done [09:43:25]OFDSenderStorePacket 191680 [09:43:25]StoreOFDPacket docnum=191680 [09:43:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 4C 07 01 BB 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EC 02 00 35 04 06 00 E6 AE 33 2A 0C A8 EC 1A FD 3E FC 8A 89 05 [09:43:25]CheckFolder [09:43:25]dirname=/storage/ofd_packets [09:43:25]CheckFolder done [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00191680 [09:43:25]NVStorageSaveData ofd_packets/00191680 [09:43:25]File name is /storage/ofd_packets/00191680 [09:43:25]Write 301 bytes [09:43:25]NVStorageSaveData done [09:43:25]OFDSenderStorePacket done [09:43:25]KKMCreateOFDPacket done [09:43:25]NVStorageSaveData kkm_last_timestamp [09:43:25]File name is /storage/kkm_last_timestamp [09:43:25]Write 4 bytes [09:43:25]NVStorageSaveData done [09:43:25]ExternCall_PrintAddStr [09:43:25]wPrintStart [09:43:25]Write to MH i2c: 01 00 00 0F E9 F8 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: 01 07 00 0F E9 00 00 00 00 00 FF 0F 0D [09:43:25]RasterBufferAndPrint [09:43:25]line Счет N : (1)30982 [09:43:25]line ИНН: 02508201610067 [09:43:25]line Контрольно-Кассовый Чек [09:43:25]line ПРОДАЖА [09:43:25]line ТРК (МРК, ГНК) : 21 [09:43:25]line Товар: 2710124130 [09:43:25]line Аи-92-К-5 [09:43:25]line 4.490 * 66.90 [09:43:25]line = 300.38 [09:43:25]line НДС 12% НСП 1% [09:43:25]line > о реализуемом товаре [09:43:25]line ОКРУГЛЕНИЕ: -0.38 [09:43:25]line ИТОГО: 300.00 [09:43:25]line Внесено: 300.00 [09:43:25]line СДАЧА: 0.00 [09:43:25]line НСП 1% : 2.66 [09:43:25]line НДС 12% : 31.90 [09:43:25]line Наличными: 300.00 [09:43:25]line Безнал.: 0.00 [09:43:25]line Место: АЗС № 170 "Партнер Нефть" [09:43:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:43:25]line СНО: Общий режим [09:43:25]line Чек 43 26.10.2024 09:43 [09:43:25]line Смена: 541 ФФД: 1.0 [09:43:25]line ЗНМ: 0300000110 [09:43:25]line РНМ: 0000000000091776 [09:43:25]line Версия ККМ: 001 [09:43:25]line ФМ: 0000000000871754 [09:43:25]line ФД: 191680 [09:43:25]line ФПД: 253635857091752 [09:43:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094337&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191680&fm=253635857091752&tin=02508201610067®Number=0000000000091776&sum=30000 [09:43:25]OFD Sender: Processing packet 191680 [packets to send 75, broken 74] [09:43:25]ProducePacketName [09:43:25]name=ofd_packets/00191680 [09:43:25]OFD Sender: To server: pG, [09:43:25]CommunicateWithHost lk.salyk.kg:30040 [09:43:25]ConnectInit lk.salyk.kg [09:43:25]written 0, free lines is 4095 [09:43:25]Connected sock=10 [09:43:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 4C 07 01 BB 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C9 B9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EC 02 00 35 04 06 00 E6 AE 33 2A 0C A8 EC 1A FD 3E FC 8A 89 05 [09:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 6C 47 00 B6 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 EC 02 00 F4 03 04 00 95 5E 1C 67 B6 04 01 00 00 F0 AE 8A 1C 6E BD 73 6E [09:43:26]CommunicateWithHost err = 0 [09:43:26]CheckOFDResponse [09:43:26]1017 (14) - 77093643461234 [09:43:26]1041 (16) - 0000000000871754 [09:43:26]1040 (4) - 191680 [09:43:26]1012 (4) - 26.10.2024 03:14 [09:43:26]1206 (1) - 0 [09:43:26]OFD Sender: Remove packet 191680 [09:43:26]ProducePacketName [09:43:26]name=ofd_packets/00191680 [09:43:26]NVStorageDeleteData [09:43:26]Write to MH i2c: 01 00 00 3A E9 23 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: 01 07 00 3A E9 00 00 00 00 00 A9 0C DF [09:43:26]RasterBufferAndPrint [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]line [09:43:26]written 0, free lines is 3247 [09:43:26]MH_Cut [09:43:26]Write to MH i2c: D1 01 00 41 E9 01 FC [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 01 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: D1 01 00 41 E9 00 FB [09:43:26]Write to MH i2c: 01 00 00 42 E9 2B [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]OFD Sender: No OFD packet to send [09:43:27]*** Cut start [09:43:27]*** Partial cut [09:43:27]*** CUTSNS_PIN = 1 [09:43:27]*** CUTSNS_PIN = 0 [09:43:27]*** Brake cut motor [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]*** Stop cut motor [09:43:27]*** Cut end [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 42 E9 00 00 00 00 00 FF 0F 40 [09:43:27]process_action close_receipt done [09:43:27]requested_data is exist [09:43:27]produce_requested_data [09:43:27]requested_item fm.sn is exist - process it [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 11 00 00 [09:43:27]Write to MH i2c: E2 08 00 43 E9 80 11 00 00 00 00 00 00 A6 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 43 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [09:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:43:27]wFMCommunicate OK [09:43:27]requested_item fd.num is exist - process it [09:43:27]SAM_PROTO_GetFieldsCounters [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 00 00 [09:43:27]Write to MH i2c: E2 08 00 44 E9 80 13 00 00 00 00 00 00 A9 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 62 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 62 00 44 E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [09:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_GetFieldsCounters done [09:43:27]requested_item shift.num is exist - process it [09:43:27]requested_item shift.opened is exist - process it [09:43:27]req_shift_opened [09:43:27]FM_GetShiftState [09:43:27]SAM_PROTO_GetShiftState [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 13 01 00 [09:43:27]Write to MH i2c: E2 08 00 45 E9 80 13 01 00 00 00 00 00 AB [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:27]Read from MH i2c: E2 0E 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0E 00 45 E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 24 [09:43:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_GetShiftState done [09:43:27]FM_GetShiftState done [09:43:27]req_shift_opened done [09:43:27]requested_item shift.open_date is exist - process it [09:43:27]req_shift_open_date [09:43:27]req_shift_open_date done [09:43:27]produce_requested_data done [09:43:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191680,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:43:27]process_action_free close_receipt [09:43:27]json_value_free [09:43:27]json_value_free done [09:43:27]process_json_proto returns [09:43:27]Send response to host [09:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191680,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:43:27]free response buf [09:43:27]execute_script done [09:43:27]execute_script returns [09:43:27]free content buf [09:43:27]Sock 8.Close socket [09:43:27]Sock 8.Thread stoped [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:35]accept exits with 9 [09:45:35]New connection [09:45:35]New thread 3066961252 created [09:45:35]Thread 3066817892 joined [09:45:35]Waiting for new connection... [09:45:35] Sock 9.Parse request [09:45:35]Sock 9.Check first char [09:45:35]Sock 9.First char is OK [09:45:35]request: POST /json_proto HTTP/1.0 [09:45:35]Method: POST [09:45:35]URL: /json_proto [09:45:35]Method is POST - this is cgi request [09:45:35]url: /json_proto [09:45:35]query_string will be loaded in cgi processing [09:45:35]execute_cgi json_proto POST (null) [09:45:35]execute_cgi path=json_proto method=POST [09:45:35]POST find Content-Length [09:45:35]Host: 172.17.63.131:8080 [09:45:35]Content-Length: 681 [09:45:35]Content-Type: application/json [09:45:35] [09:45:35]POST finish read [09:45:35]Found Content-Length = 681 [09:45:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:35]execute_script... [09:45: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)30983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:35]POST & json_proto [09:45:35]process_json_proto [09:45:35]json parsed OK: [09:45:35]protocol is kg_v1.0 [09:45:35]action value=close_receipt [09:45:35]process_action close_receipt [09:45:35]cmd_close_receipt [09:45:35]MH_GetDate [09:45:35]Write to MH i2c: F0 00 00 46 E9 1E [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 09 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: F0 09 00 46 E9 00 4D BA 1C 67 22 05 6E 64 AA [09:45:35]GetLastDocTimeStamp 1729935817 [09:45:35]current date 1729935949 [09:45:35]FM_GetShiftState [09:45:35]SAM_PROTO_GetShiftState [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 13 01 00 [09:45:35]Write to MH i2c: E2 08 00 47 E9 80 13 01 00 00 00 00 00 AD [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0E 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0E 00 47 E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [09:45:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_GetShiftState done [09:45:35]FM_GetShiftState done [09:45:35]opened in 1729902770 [09:45:35]opened+sec_in_day 1729989170 [09:45:35]quantity*price = 100015 [09:45:35]sum+1 = 100017 [09:45:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 44 26.10.2024 09:45 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191681 ФПД: 54007034100779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191681&fm=54007034100779&tin=02508201610067®Number=0000000000091776&sum=100000 [09:45:36]StoreToDocumentArchive [09:45:36]shift 541 fd 191681 [09:45:36]save to /storage/0541/doc_00191681 [09:45:36]save last doc name /storage/0541/doc_00191681 to /storage/kkm_last_doc_name [09:45:36]save OK [09:45:36]Clear old archive folders... [09:45:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:36]tlvbuf is 016EB500 [09:45:36]SAM_PROTO_ClearQueue [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 09 00 00 [09:45:36]Write to MH i2c: E2 08 00 54 E9 80 09 00 00 00 00 00 00 AF [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 54 E9 00 90 00 B1 [09:45:36]RAPDU: 90 00 [09:45:36]wFMCommunicate OK [09:45:36]SAM_PROTO_ClearQueue done [09:45:36]KKMCreateOFDPacket [09:45:36]OFDProtocolAddRootSTLVToBuf [09:45:36]FM_MakeSignedData [09:45:36]FM_MakeSignedData [09:45:36]SAM_PROTO_SignData [09:45:36]wFMCommunicate request_size=4 [09:45:36]MH_SAM_APDU [09:45:36]CAPDU: 80 0D 01 02 [09:45:36]Write to MH i2c: E2 08 00 55 E9 80 0D 01 02 00 00 00 00 B7 [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 [09:45:36]MH_I2C_Read... [09:45:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:36]Read from MH i2c: E2 03 00 [09:45:36]MH_I2C_Read... [09:45:36]Read from MH i2c: E2 03 00 55 E9 00 90 00 B2 [09:45:36]RAPDU: 90 00 [09:45:36]wFMCommunicate OK [09:45:36]wFMCommunicate request_size=255 [09:45:36]MH_SAM_APDU [09:45: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4D BA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EC 02 00 35 04 06 00 31 [09:45:36]Write to MH i2c: E2 02 01 56 E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4D BA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EC 02 00 35 04 06 00 31 00 00 FA [09:45:36]Write i2c OK [09:45:36]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 56 E9 00 90 00 B3 [09:45:37]RAPDU: 90 00 [09:45:37]wFMCommunicate OK [09:45:37]wFMCommunicate request_size=10 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 0D 02 02 05 1E 7E 15 3C 2B [09:45:37]Write to MH i2c: E2 0D 00 57 E9 80 0D 02 02 05 00 1E 7E 15 3C 2B 00 00 DC [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 03 00 57 E9 00 90 00 B4 [09:45:37]RAPDU: 90 00 [09:45:37]wFMCommunicate OK [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 0D 03 02 [09:45:37]Write to MH i2c: E2 08 00 58 E9 80 0D 03 02 00 00 00 00 BC [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0B 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 0B 00 58 E9 00 79 1E 61 9D 3A 07 5F AF 90 00 A1 [09:45:37]RAPDU: 79 1E 61 9D 3A 07 5F AF 90 00 [09:45:37]wFMCommunicate OK [09:45:37]SAM_PROTO_SignData done [09:45:37]FM_MakeSignedData done [09:45:37]CreateOFDProtocolMessage [09:45:37]wFMCommunicate request_size=4 [09:45:37]MH_SAM_APDU [09:45:37]CAPDU: 80 11 00 00 [09:45:37]Write to MH i2c: E2 08 00 59 E9 80 11 00 00 00 00 00 00 BC [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:37]Read from MH i2c: E2 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: E2 17 00 59 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [09:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:37]wFMCommunicate OK [09:45:37]CreateOFDProtocolMessage done [09:45:37]OFDSenderStorePacket 191681 [09:45:37]StoreOFDPacket docnum=191681 [09:45:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F FD 07 01 EA 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4D BA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EC 02 00 35 04 06 00 31 1E 7E 15 3C 2B 79 1E 61 9D 3A 07 5F AF [09:45:37]CheckFolder [09:45:37]dirname=/storage/ofd_packets [09:45:37]CheckFolder done [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00191681 [09:45:37]NVStorageSaveData ofd_packets/00191681 [09:45:37]File name is /storage/ofd_packets/00191681 [09:45:37]Write 301 bytes [09:45:37]NVStorageSaveData done [09:45:37]OFDSenderStorePacket done [09:45:37]KKMCreateOFDPacket done [09:45:37]NVStorageSaveData kkm_last_timestamp [09:45:37]File name is /storage/kkm_last_timestamp [09:45:37]Write 4 bytes [09:45:37]NVStorageSaveData done [09:45:37]ExternCall_PrintAddStr [09:45:37]wPrintStart [09:45:37]Write to MH i2c: 01 00 00 5A E9 43 [09:45:37]Write i2c OK [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 [09:45:37]MH_I2C_Read... [09:45:37]Read from MH i2c: 01 07 00 5A E9 00 00 00 00 00 FF 0F 58 [09:45:37]RasterBufferAndPrint [09:45:37]line Счет N : (1)30983 [09:45:37]line ИНН: 02508201610067 [09:45:37]line Контрольно-Кассовый Чек [09:45:37]line ПРОДАЖА [09:45:37]line ТРК (МРК, ГНК) : 21 [09:45:37]line Товар: 2710124130 [09:45:37]line Аи-92-К-5 [09:45:37]line 14.950 * 66.90 [09:45:37]line = 1000.16 [09:45:37]line НДС 12% НСП 1% [09:45:37]line > о реализуемом товаре [09:45:37]line ОКРУГЛЕНИЕ: -0.16 [09:45:37]line ИТОГО: 1000.00 [09:45:37]line Внесено: 1000.00 [09:45:37]line СДАЧА: 0.00 [09:45:37]line НСП 1% : 8.85 [09:45:37]line НДС 12% : 106.21 [09:45:37]line Наличными: 1000.00 [09:45:37]line Безнал.: 0.00 [09:45:37]line Место: АЗС № 170 "Партнер Нефть" [09:45:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:45:37]line СНО: Общий режим [09:45:37]line Чек 44 26.10.2024 09:45 [09:45:37]line Смена: 541 ФФД: 1.0 [09:45:37]line ЗНМ: 0300000110 [09:45:37]line РНМ: 0000000000091776 [09:45:37]line Версия ККМ: 001 [09:45:37]line ФМ: 0000000000871754 [09:45:37]line ФД: 191681 [09:45:37]line ФПД: 54007034100779 [09:45:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T094549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191681&fm=54007034100779&tin=02508201610067®Number=0000000000091776&sum=100000 [09:45:37]OFD Sender: Processing packet 191681 [packets to send 75, broken 74] [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00191681 [09:45:37]OFD Sender: To server: pG, [09:45:37]CommunicateWithHost lk.salyk.kg:30040 [09:45:37]ConnectInit lk.salyk.kg [09:45:37]written 0, free lines is 4095 [09:45:37]Connected sock=10 [09:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3F FD 07 01 EA 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 4D BA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EC 02 00 35 04 06 00 31 1E 7E 15 3C 2B 79 1E 61 9D 3A 07 5F AF [09:45:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2D 1C 47 00 44 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 EC 02 00 F4 03 04 00 19 5F 1C 67 B6 04 01 00 00 D9 C5 5F F4 0A F1 C4 C3 [09:45:37]CommunicateWithHost err = 0 [09:45:37]CheckOFDResponse [09:45:37]1017 (14) - 77093643461234 [09:45:37]1041 (16) - 0000000000871754 [09:45:37]1040 (4) - 191681 [09:45:37]1012 (4) - 26.10.2024 03:16 [09:45:37]1206 (1) - 0 [09:45:37]OFD Sender: Remove packet 191681 [09:45:37]ProducePacketName [09:45:37]name=ofd_packets/00191681 [09:45:37]NVStorageDeleteData [09:45:38]Write to MH i2c: 01 00 00 85 E9 6E [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: 01 07 00 85 E9 00 00 00 00 00 A5 0C 26 [09:45:38]RasterBufferAndPrint [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]line [09:45:38]written 0, free lines is 3242 [09:45:38]MH_Cut [09:45:38]Write to MH i2c: D1 01 00 8C E9 01 47 [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 01 00 [09:45:38]MH_I2C_Read... [09:45:38]Read from MH i2c: D1 01 00 8C E9 00 46 [09:45:38]Write to MH i2c: 01 00 00 8D E9 76 [09:45:38]Write i2c OK [09:45:38]MH_I2C_Read... [09:45:38]OFD Sender: No OFD packet to send [09:45:38]*** Cut start [09:45:38]*** Partial cut [09:45:38]*** CUTSNS_PIN = 1 [09:45:38]*** CUTSNS_PIN = 0 [09:45:39]*** Brake cut motor [09:45:39]Read from MH i2c: 01 [09:45:39]MH_I2C_Read... [09:45:39]*** Stop cut motor [09:45:39]*** Cut end [09:45:39]Read from MH i2c: 01 07 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: 01 07 00 8D E9 00 00 00 00 00 FF 0F 8B [09:45:39]process_action close_receipt done [09:45:39]requested_data is exist [09:45:39]produce_requested_data [09:45:39]requested_item fm.sn is exist - process it [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 11 00 00 [09:45:39]Write to MH i2c: E2 08 00 8E E9 80 11 00 00 00 00 00 00 F1 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 17 00 8E E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [09:45:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:45:39]wFMCommunicate OK [09:45:39]requested_item fd.num is exist - process it [09:45:39]SAM_PROTO_GetFieldsCounters [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 00 00 [09:45:39]Write to MH i2c: E2 08 00 8F E9 80 13 00 00 00 00 00 00 F4 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 62 00 8F E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:45:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetFieldsCounters done [09:45:39]requested_item shift.num is exist - process it [09:45:39]requested_item shift.opened is exist - process it [09:45:39]req_shift_opened [09:45:39]FM_GetShiftState [09:45:39]SAM_PROTO_GetShiftState [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 01 00 [09:45:39]Write to MH i2c: E2 08 00 90 E9 80 13 01 00 00 00 00 00 F6 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 90 E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6F [09:45:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetShiftState done [09:45:39]FM_GetShiftState done [09:45:39]req_shift_opened done [09:45:39]requested_item shift.open_date is exist - process it [09:45:39]req_shift_open_date [09:45:39]req_shift_open_date done [09:45:39]produce_requested_data done [09:45:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191681,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:45:39]process_action_free close_receipt [09:45:39]json_value_free [09:45:39]json_value_free done [09:45:39]process_json_proto returns [09:45:39]Send response to host [09:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191681,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:45:39]free response buf [09:45:39]execute_script done [09:45:39]execute_script returns [09:45:39]free content buf [09:45:39]Sock 9.Close socket [09:45:39]Sock 9.Thread stoped [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:03]accept exits with 8 [09:50:03]New connection [09:50:03]New thread 3066817892 created [09:50:03]Thread 3066961252 joined [09:50:03]Waiting for new connection... [09:50:03] Sock 8.Parse request [09:50:03]Sock 8.Check first char [09:50:03]Sock 8.First char is OK [09:50:03]request: POST /json_proto HTTP/1.0 [09:50:03]Method: POST [09:50:03]URL: /json_proto [09:50:03]Method is POST - this is cgi request [09:50:03]url: /json_proto [09:50:03]query_string will be loaded in cgi processing [09:50:03]execute_cgi json_proto POST (null) [09:50:03]execute_cgi path=json_proto method=POST [09:50:03]POST find Content-Length [09:50:03]Host: 172.17.63.131:8080 [09:50:03]Content-Length: 676 [09:50:03]Content-Type: application/json [09:50:03] [09:50:03]POST finish read [09:50:03]Found Content-Length = 676 [09:50:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:03]execute_script... [09:50: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)30984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:03]POST & json_proto [09:50:03]process_json_proto [09:50:03]json parsed OK: [09:50:03]protocol is kg_v1.0 [09:50:03]action value=close_receipt [09:50:03]process_action close_receipt [09:50:03]cmd_close_receipt [09:50:03]MH_GetDate [09:50:03]Write to MH i2c: F0 00 00 91 E9 69 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: F0 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: F0 09 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: F0 09 00 91 E9 00 59 BB 1C 67 22 05 6E 64 02 [09:50:03]GetLastDocTimeStamp 1729935949 [09:50:03]current date 1729936217 [09:50:03]FM_GetShiftState [09:50:03]SAM_PROTO_GetShiftState [09:50:03]wFMCommunicate request_size=4 [09:50:03]MH_SAM_APDU [09:50:03]CAPDU: 80 13 01 00 [09:50:03]Write to MH i2c: E2 08 00 92 E9 80 13 01 00 00 00 00 00 F8 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:04]Read from MH i2c: E2 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: E2 0E 00 [09:50:04]MH_I2C_Read... [09:50:04]Read from MH i2c: E2 0E 00 92 E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 71 [09:50:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:50:04]wFMCommunicate OK [09:50:04]SAM_PROTO_GetShiftState done [09:50:04]FM_GetShiftState done [09:50:04]opened in 1729902770 [09:50:04]opened+sec_in_day 1729989170 [09:50:04]quantity*price = 50041 [09:50:04]sum+1 = 50042 [09:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 45 26.10.2024 09:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191682 ФПД: 279680753447683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191682&fm=279680753447683&tin=02508201610067®Number=0000000000091776&sum=50000 [09:50:05]StoreToDocumentArchive [09:50:05]shift 541 fd 191682 [09:50:05]save to /storage/0541/doc_00191682 [09:50:05]save last doc name /storage/0541/doc_00191682 to /storage/kkm_last_doc_name [09:50:05]save OK [09:50:05]Clear old archive folders... [09:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:05]tlvbuf is 016CE380 [09:50:05]SAM_PROTO_ClearQueue [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 09 00 00 [09:50:05]Write to MH i2c: E2 08 00 9F E9 80 09 00 00 00 00 00 00 FA [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 9F E9 00 90 00 FC [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]SAM_PROTO_ClearQueue done [09:50:05]KKMCreateOFDPacket [09:50:05]OFDProtocolAddRootSTLVToBuf [09:50:05]FM_MakeSignedData [09:50:05]FM_MakeSignedData [09:50:05]SAM_PROTO_SignData [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 01 02 [09:50:05]Write to MH i2c: E2 08 00 A0 E9 80 0D 01 02 00 00 00 00 02 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 A0 E9 00 90 00 FD [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]wFMCommunicate request_size=255 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EC 02 00 35 04 06 00 FE [09:50:05]Write to MH i2c: E2 02 01 A1 E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EC 02 00 35 04 06 00 FE 00 00 27 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 A1 E9 00 90 00 FE [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]wFMCommunicate request_size=10 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 02 02 05 5E 3F F5 B3 03 [09:50:05]Write to MH i2c: E2 0D 00 A2 E9 80 0D 02 02 05 00 5E 3F F5 B3 03 00 00 57 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 03 00 A2 E9 00 90 00 FF [09:50:05]RAPDU: 90 00 [09:50:05]wFMCommunicate OK [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 0D 03 02 [09:50:05]Write to MH i2c: E2 08 00 A3 E9 80 0D 03 02 00 00 00 00 07 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 0B 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 0B 00 A3 E9 00 85 17 59 12 F6 19 06 27 90 00 4B [09:50:05]RAPDU: 85 17 59 12 F6 19 06 27 90 00 [09:50:05]wFMCommunicate OK [09:50:05]SAM_PROTO_SignData done [09:50:05]FM_MakeSignedData done [09:50:05]CreateOFDProtocolMessage [09:50:05]wFMCommunicate request_size=4 [09:50:05]MH_SAM_APDU [09:50:05]CAPDU: 80 11 00 00 [09:50:05]Write to MH i2c: E2 08 00 A4 E9 80 11 00 00 00 00 00 00 07 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:05]Read from MH i2c: E2 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 17 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: E2 17 00 A4 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [09:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:50:05]wFMCommunicate OK [09:50:05]CreateOFDProtocolMessage done [09:50:05]OFDSenderStorePacket 191682 [09:50:05]StoreOFDPacket docnum=191682 [09:50:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 D5 07 01 B3 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EC 02 00 35 04 06 00 FE 5E 3F F5 B3 03 85 17 59 12 F6 19 06 27 [09:50:05]CheckFolder [09:50:05]dirname=/storage/ofd_packets [09:50:05]CheckFolder done [09:50:05]ProducePacketName [09:50:05]name=ofd_packets/00191682 [09:50:05]NVStorageSaveData ofd_packets/00191682 [09:50:05]File name is /storage/ofd_packets/00191682 [09:50:05]Write 301 bytes [09:50:05]NVStorageSaveData done [09:50:05]OFDSenderStorePacket done [09:50:05]KKMCreateOFDPacket done [09:50:05]NVStorageSaveData kkm_last_timestamp [09:50:05]File name is /storage/kkm_last_timestamp [09:50:05]Write 4 bytes [09:50:05]NVStorageSaveData done [09:50:05]ExternCall_PrintAddStr [09:50:05]wPrintStart [09:50:05]Write to MH i2c: 01 00 00 A5 E9 8E [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 A5 E9 00 00 00 00 00 FF 0F A3 [09:50:05]RasterBufferAndPrint [09:50:05]line Счет N : (1)30984 [09:50:05]line ИНН: 02508201610067 [09:50:05]line Контрольно-Кассовый Чек [09:50:05]line ПРОДАЖА [09:50:05]line ТРК (МРК, ГНК) : 12 [09:50:05]line Товар: 2710124130 [09:50:05]line Аи-92-К-5 [09:50:05]line 7.480 * 66.90 [09:50:05]line = 500.41 [09:50:05]line НДС 12% НСП 1% [09:50:05]line > о реализуемом товаре [09:50:05]line ОКРУГЛЕНИЕ: -0.41 [09:50:05]line ИТОГО: 500.00 [09:50:05]line Внесено: 500.00 [09:50:05]line СДАЧА: 0.00 [09:50:05]line НСП 1% : 4.43 [09:50:05]line НДС 12% : 53.14 [09:50:05]line Наличными: 500.00 [09:50:05]line Безнал.: 0.00 [09:50:05]line Место: АЗС № 170 "Партнер Нефть" [09:50:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:50:05]line СНО: Общий режим [09:50:05]line Чек 45 26.10.2024 09:50 [09:50:05]line Смена: 541 ФФД: 1.0 [09:50:05]line ЗНМ: 0300000110 [09:50:05]line РНМ: 0000000000091776 [09:50:05]line Версия ККМ: 001 [09:50:05]line ФМ: 0000000000871754 [09:50:05]line ФД: 191682 [09:50:05]line ФПД: 279680753447683 [09:50:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191682&fm=279680753447683&tin=02508201610067®Number=0000000000091776&sum=50000 [09:50:06]OFD Sender: Processing packet 191682 [packets to send 75, broken 74] [09:50:06]ProducePacketName [09:50:06]name=ofd_packets/00191682 [09:50:06]OFD Sender: To server: pG, [09:50:06]CommunicateWithHost lk.salyk.kg:30040 [09:50:06]ConnectInit lk.salyk.kg [09:50:06]written 0, free lines is 4095 [09:50:06]Connected sock=10 [09:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 99 D5 07 01 B3 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 59 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EC 02 00 35 04 06 00 FE 5E 3F F5 B3 03 85 17 59 12 F6 19 06 27 [09:50:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD 4A 47 00 3D 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 EC 02 00 F4 03 04 00 25 60 1C 67 B6 04 01 00 00 4D 88 45 65 9D 55 06 E0 [09:50:06]CommunicateWithHost err = 0 [09:50:06]CheckOFDResponse [09:50:06]1017 (14) - 77093643461234 [09:50:06]1041 (16) - 0000000000871754 [09:50:06]1040 (4) - 191682 [09:50:06]1012 (4) - 26.10.2024 03:21 [09:50:06]1206 (1) - 0 [09:50:06]OFD Sender: Remove packet 191682 [09:50:06]ProducePacketName [09:50:06]name=ofd_packets/00191682 [09:50:06]NVStorageDeleteData [09:50:06]Write to MH i2c: 01 00 00 D0 E9 B9 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 D0 E9 00 00 00 00 00 AB 0C 77 [09:50:06]RasterBufferAndPrint [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]line [09:50:06]written 0, free lines is 3249 [09:50:06]MH_Cut [09:50:06]Write to MH i2c: D1 01 00 D7 E9 01 92 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 01 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: D1 01 00 D7 E9 00 91 [09:50:06]Write to MH i2c: 01 00 00 D8 E9 C1 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]OFD Sender: No OFD packet to send [09:50:07]*** Cut start [09:50:07]*** Partial cut [09:50:07]*** CUTSNS_PIN = 1 [09:50:07]*** CUTSNS_PIN = 0 [09:50:07]*** Brake cut motor [09:50:07]Read from MH i2c: 01 [09:50:07]MH_I2C_Read... [09:50:07]*** Stop cut motor [09:50:07]*** Cut end [09:50:07]Read from MH i2c: 01 07 00 [09:50:07]MH_I2C_Read... [09:50:07]Read from MH i2c: 01 07 00 D8 E9 00 00 00 00 00 FF 0F D6 [09:50:07]process_action close_receipt done [09:50:07]requested_data is exist [09:50:07]produce_requested_data [09:50:07]requested_item fm.sn is exist - process it [09:50:07]wFMCommunicate request_size=4 [09:50:07]MH_SAM_APDU [09:50:07]CAPDU: 80 11 00 00 [09:50:07]Write to MH i2c: E2 08 00 D9 E9 80 11 00 00 00 00 00 00 3C [09:50:07]Write i2c OK [09:50:07]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 17 00 D9 E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [09:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:50:08]wFMCommunicate OK [09:50:08]requested_item fd.num is exist - process it [09:50:08]SAM_PROTO_GetFieldsCounters [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 00 00 [09:50:08]Write to MH i2c: E2 08 00 DA E9 80 13 00 00 00 00 00 00 3F [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 62 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 62 00 DA E9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetFieldsCounters done [09:50:08]requested_item shift.num is exist - process it [09:50:08]requested_item shift.opened is exist - process it [09:50:08]req_shift_opened [09:50:08]FM_GetShiftState [09:50:08]SAM_PROTO_GetShiftState [09:50:08]wFMCommunicate request_size=4 [09:50:08]MH_SAM_APDU [09:50:08]CAPDU: 80 13 01 00 [09:50:08]Write to MH i2c: E2 08 00 DB E9 80 13 01 00 00 00 00 00 41 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:08]Read from MH i2c: E2 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: E2 0E 00 DB E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BA [09:50:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:50:08]wFMCommunicate OK [09:50:08]SAM_PROTO_GetShiftState done [09:50:08]FM_GetShiftState done [09:50:08]req_shift_opened done [09:50:08]requested_item shift.open_date is exist - process it [09:50:08]req_shift_open_date [09:50:08]req_shift_open_date done [09:50:08]produce_requested_data done [09:50:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191682,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:50:08]process_action_free close_receipt [09:50:08]json_value_free [09:50:08]json_value_free done [09:50:08]process_json_proto returns [09:50:08]Send response to host [09:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191682,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:50:08]free response buf [09:50:08]execute_script done [09:50:08]execute_script returns [09:50:08]free content buf [09:50:08]Sock 8.Close socket [09:50:08]Sock 8.Thread stoped [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:08]accept exits with 9 [09:52:08]New connection [09:52:08]New thread 3066961252 created [09:52:08]Thread 3066817892 joined [09:52:08]Waiting for new connection... [09:52:08] Sock 9.Parse request [09:52:08]Sock 9.Check first char [09:52:08]Sock 9.First char is OK [09:52:08]request: POST /json_proto HTTP/1.0 [09:52:08]Method: POST [09:52:08]URL: /json_proto [09:52:08]Method is POST - this is cgi request [09:52:08]url: /json_proto [09:52:08]query_string will be loaded in cgi processing [09:52:08]execute_cgi json_proto POST (null) [09:52:08]execute_cgi path=json_proto method=POST [09:52:08]POST find Content-Length [09:52:08]Host: 172.17.63.131:8080 [09:52:08]Content-Length: 677 [09:52:08]Content-Type: application/json [09:52:08] [09:52:08]POST finish read [09:52:08]Found Content-Length = 677 [09:52:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:08]execute_script... [09:52: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)30985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:08]POST & json_proto [09:52:08]process_json_proto [09:52:08]json parsed OK: [09:52:08]protocol is kg_v1.0 [09:52:08]action value=close_receipt [09:52:08]process_action close_receipt [09:52:08]cmd_close_receipt [09:52:08]MH_GetDate [09:52:08]Write to MH i2c: F0 00 00 DC E9 B4 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 09 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: F0 09 00 DC E9 00 D5 BB 1C 67 22 05 6E 64 C9 [09:52:08]GetLastDocTimeStamp 1729936217 [09:52:08]current date 1729936341 [09:52:08]FM_GetShiftState [09:52:08]SAM_PROTO_GetShiftState [09:52:08]wFMCommunicate request_size=4 [09:52:08]MH_SAM_APDU [09:52:08]CAPDU: 80 13 01 00 [09:52:08]Write to MH i2c: E2 08 00 DD E9 80 13 01 00 00 00 00 00 43 [09:52:08]Write i2c OK [09:52:08]MH_I2C_Read... [09:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:08]Read from MH i2c: E2 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 [09:52:08]MH_I2C_Read... [09:52:08]Read from MH i2c: E2 0E 00 DD E9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BC [09:52:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:52:08]wFMCommunicate OK [09:52:08]SAM_PROTO_GetShiftState done [09:52:08]FM_GetShiftState done [09:52:08]opened in 1729902770 [09:52:08]opened+sec_in_day 1729989170 [09:52:08]quantity*price = 70044 [09:52:08]sum+1 = 70045 [09:52:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 46 26.10.2024 09:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191683 ФПД: 215804369956218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191683&fm=215804369956218&tin=02508201610067®Number=0000000000091776&sum=70000 [09:52:09]StoreToDocumentArchive [09:52:09]shift 541 fd 191683 [09:52:09]save to /storage/0541/doc_00191683 [09:52:09]save last doc name /storage/0541/doc_00191683 to /storage/kkm_last_doc_name [09:52:09]save OK [09:52:09]Clear old archive folders... [09:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:09]tlvbuf is 015D8910 [09:52:09]SAM_PROTO_ClearQueue [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 09 00 00 [09:52:09]Write to MH i2c: E2 08 00 EA E9 80 09 00 00 00 00 00 00 45 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 EA E9 00 90 00 47 [09:52:09]RAPDU: 90 00 [09:52:09]wFMCommunicate OK [09:52:09]SAM_PROTO_ClearQueue done [09:52:09]KKMCreateOFDPacket [09:52:09]OFDProtocolAddRootSTLVToBuf [09:52:09]FM_MakeSignedData [09:52:09]FM_MakeSignedData [09:52:09]SAM_PROTO_SignData [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 0D 01 02 [09:52:09]Write to MH i2c: E2 08 00 EB E9 80 0D 01 02 00 00 00 00 4D [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 EB E9 00 90 00 48 [09:52:09]RAPDU: 90 00 [09:52:09]wFMCommunicate OK [09:52:09]wFMCommunicate request_size=255 [09:52:09]MH_SAM_APDU [09:52: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D6 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EC 02 00 35 04 06 00 C4 [09:52:09]Write to MH i2c: E2 02 01 EC E9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D6 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EC 02 00 35 04 06 00 C4 00 00 C7 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 EC E9 00 90 00 49 [09:52:09]RAPDU: 90 00 [09:52:09]wFMCommunicate OK [09:52:09]wFMCommunicate request_size=10 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 0D 02 02 05 45 DE CF ED 7A [09:52:09]Write to MH i2c: E2 0D 00 ED E9 80 0D 02 02 05 00 45 DE CF ED 7A 00 00 B3 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 03 00 ED E9 00 90 00 4A [09:52:09]RAPDU: 90 00 [09:52:09]wFMCommunicate OK [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 0D 03 02 [09:52:09]Write to MH i2c: E2 08 00 EE E9 80 0D 03 02 00 00 00 00 52 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 0B 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 0B 00 EE E9 00 95 40 CF 3D 58 79 52 C8 90 00 1F [09:52:09]RAPDU: 95 40 CF 3D 58 79 52 C8 90 00 [09:52:09]wFMCommunicate OK [09:52:09]SAM_PROTO_SignData done [09:52:09]FM_MakeSignedData done [09:52:09]CreateOFDProtocolMessage [09:52:09]wFMCommunicate request_size=4 [09:52:09]MH_SAM_APDU [09:52:09]CAPDU: 80 11 00 00 [09:52:09]Write to MH i2c: E2 08 00 EF E9 80 11 00 00 00 00 00 00 52 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:09]Read from MH i2c: E2 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 17 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: E2 17 00 EF E9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [09:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:09]wFMCommunicate OK [09:52:09]CreateOFDProtocolMessage done [09:52:09]OFDSenderStorePacket 191683 [09:52:09]StoreOFDPacket docnum=191683 [09:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 6E 07 01 5B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D6 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EC 02 00 35 04 06 00 C4 45 DE CF ED 7A 95 40 CF 3D 58 79 52 C8 [09:52:09]CheckFolder [09:52:09]dirname=/storage/ofd_packets [09:52:09]CheckFolder done [09:52:09]ProducePacketName [09:52:09]name=ofd_packets/00191683 [09:52:09]NVStorageSaveData ofd_packets/00191683 [09:52:09]File name is /storage/ofd_packets/00191683 [09:52:09]Write 301 bytes [09:52:09]NVStorageSaveData done [09:52:09]OFDSenderStorePacket done [09:52:09]KKMCreateOFDPacket done [09:52:09]NVStorageSaveData kkm_last_timestamp [09:52:09]File name is /storage/kkm_last_timestamp [09:52:09]Write 4 bytes [09:52:09]NVStorageSaveData done [09:52:09]ExternCall_PrintAddStr [09:52:09]wPrintStart [09:52:09]Write to MH i2c: 01 00 00 F0 E9 D9 [09:52:09]Write i2c OK [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 07 00 [09:52:09]MH_I2C_Read... [09:52:09]Read from MH i2c: 01 07 00 F0 E9 00 00 00 00 00 FF 0F EE [09:52:09]RasterBufferAndPrint [09:52:09]line Счет N : (1)30985 [09:52:09]line ИНН: 02508201610067 [09:52:09]line Контрольно-Кассовый Чек [09:52:09]line ПРОДАЖА [09:52:09]line ТРК (МРК, ГНК) : 12 [09:52:09]line Товар: 2710124130 [09:52:09]line Аи-92-К-5 [09:52:09]line 10.470 * 66.90 [09:52:09]line = 700.44 [09:52:09]line НДС 12% НСП 1% [09:52:09]line > о реализуемом товаре [09:52:09]line ОКРУГЛЕНИЕ: -0.44 [09:52:09]line ИТОГО: 700.00 [09:52:09]line Внесено: 700.00 [09:52:09]line СДАЧА: 0.00 [09:52:09]line НСП 1% : 6.20 [09:52:09]line НДС 12% : 74.38 [09:52:09]line Наличными: 700.00 [09:52:09]line Безнал.: 0.00 [09:52:09]line Место: АЗС № 170 "Партнер Нефть" [09:52:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:52:09]line СНО: Общий режим [09:52:09]line Чек 46 26.10.2024 09:52 [09:52:09]line Смена: 541 ФФД: 1.0 [09:52:09]line ЗНМ: 0300000110 [09:52:09]line РНМ: 0000000000091776 [09:52:09]line Версия ККМ: 001 [09:52:09]line ФМ: 0000000000871754 [09:52:09]line ФД: 191683 [09:52:09]line ФПД: 215804369956218 [09:52:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095222&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191683&fm=215804369956218&tin=02508201610067®Number=0000000000091776&sum=70000 [09:52:10]OFD Sender: Processing packet 191683 [packets to send 75, broken 74] [09:52:10]ProducePacketName [09:52:10]name=ofd_packets/00191683 [09:52:10]OFD Sender: To server: pG, [09:52:10]CommunicateWithHost lk.salyk.kg:30040 [09:52:10]ConnectInit lk.salyk.kg [09:52:10]written 0, free lines is 4095 [09:52:10]Connected sock=10 [09:52:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 6E 07 01 5B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 D6 BB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 EC 02 00 35 04 06 00 C4 45 DE CF ED 7A 95 40 CF 3D 58 79 52 C8 [09:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 42 57 47 00 DF 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 31 37 35 34 10 04 04 00 C3 EC 02 00 F4 03 04 00 A1 60 1C 67 B6 04 01 00 00 BB EC B9 20 1E F5 66 55 [09:52:10]CommunicateWithHost err = 0 [09:52:10]CheckOFDResponse [09:52:10]1017 (14) - 77093643461234 [09:52:10]1041 (16) - 0000000000871754 [09:52:10]1040 (4) - 191683 [09:52:10]1012 (4) - 26.10.2024 03:23 [09:52:10]1206 (1) - 0 [09:52:10]OFD Sender: Remove packet 191683 [09:52:10]ProducePacketName [09:52:10]name=ofd_packets/00191683 [09:52:10]NVStorageDeleteData [09:52:10]Write to MH i2c: 01 00 00 1B EA 05 [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 07 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: 01 07 00 1B EA 00 00 00 00 00 A5 0C BD [09:52:10]RasterBufferAndPrint [09:52:10]line [09:52:10]line [09:52:10]line [09:52:10]line [09:52:10]line [09:52:10]written 0, free lines is 3242 [09:52:10]MH_Cut [09:52:10]Write to MH i2c: D1 01 00 22 EA 01 DE [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: D1 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: D1 01 00 [09:52:10]MH_I2C_Read... [09:52:10]Read from MH i2c: D1 01 00 22 EA 00 DD [09:52:10]Write to MH i2c: 01 00 00 23 EA 0D [09:52:10]Write i2c OK [09:52:10]MH_I2C_Read... [09:52:10]OFD Sender: No OFD packet to send [09:52:11]*** Cut start [09:52:11]*** Partial cut [09:52:11]*** CUTSNS_PIN = 1 [09:52:11]*** CUTSNS_PIN = 0 [09:52:11]*** Brake cut motor [09:52:12]Read from MH i2c: 01 [09:52:12]MH_I2C_Read... [09:52:12]*** Stop cut motor [09:52:12]*** Cut end [09:52:12]Read from MH i2c: 01 07 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: 01 07 00 23 EA 00 00 00 00 00 FF 0F 22 [09:52:12]process_action close_receipt done [09:52:12]requested_data is exist [09:52:12]produce_requested_data [09:52:12]requested_item fm.sn is exist - process it [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 11 00 00 [09:52:12]Write to MH i2c: E2 08 00 24 EA 80 11 00 00 00 00 00 00 88 [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 17 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 17 00 24 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [09:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:52:12]wFMCommunicate OK [09:52:12]requested_item fd.num is exist - process it [09:52:12]SAM_PROTO_GetFieldsCounters [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 13 00 00 [09:52:12]Write to MH i2c: E2 08 00 25 EA 80 13 00 00 00 00 00 00 8B [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 62 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 62 00 25 EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:52:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:12]wFMCommunicate OK [09:52:12]SAM_PROTO_GetFieldsCounters done [09:52:12]requested_item shift.num is exist - process it [09:52:12]requested_item shift.opened is exist - process it [09:52:12]req_shift_opened [09:52:12]FM_GetShiftState [09:52:12]SAM_PROTO_GetShiftState [09:52:12]wFMCommunicate request_size=4 [09:52:12]MH_SAM_APDU [09:52:12]CAPDU: 80 13 01 00 [09:52:12]Write to MH i2c: E2 08 00 26 EA 80 13 01 00 00 00 00 00 8D [09:52:12]Write i2c OK [09:52:12]MH_I2C_Read... [09:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:12]Read from MH i2c: E2 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 [09:52:12]MH_I2C_Read... [09:52:12]Read from MH i2c: E2 0E 00 26 EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 06 [09:52:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:52:12]wFMCommunicate OK [09:52:12]SAM_PROTO_GetShiftState done [09:52:12]FM_GetShiftState done [09:52:12]req_shift_opened done [09:52:12]requested_item shift.open_date is exist - process it [09:52:12]req_shift_open_date [09:52:12]req_shift_open_date done [09:52:12]produce_requested_data done [09:52:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191683,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:52:12]process_action_free close_receipt [09:52:12]json_value_free [09:52:12]json_value_free done [09:52:12]process_json_proto returns [09:52:12]Send response to host [09:52:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191683,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:52:12]free response buf [09:52:12]execute_script done [09:52:12]execute_script returns [09:52:12]free content buf [09:52:12]Sock 9.Close socket [09:52:12]Sock 9.Thread stoped [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]accept exits with 8 [09:53:10]New connection [09:53:10]New thread 3066817892 created [09:53:10]Thread 3066961252 joined [09:53:10]Waiting for new connection... [09:53:10] Sock 8.Parse request [09:53:10]Sock 8.Check first char [09:53:10]Sock 8.First char is OK [09:53:10]request: POST /json_proto HTTP/1.0 [09:53:10]Method: POST [09:53:10]URL: /json_proto [09:53:10]Method is POST - this is cgi request [09:53:10]url: /json_proto [09:53:10]query_string will be loaded in cgi processing [09:53:10]execute_cgi json_proto POST (null) [09:53:10]execute_cgi path=json_proto method=POST [09:53:10]POST find Content-Length [09:53:10]Host: 172.17.63.131:8080 [09:53:10]Content-Length: 677 [09:53:10]Content-Type: application/json [09:53:10] [09:53:10]POST finish read [09:53:10]Found Content-Length = 677 [09:53:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:10]execute_script... [09:53: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)30986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:10]POST & json_proto [09:53:10]process_json_proto [09:53:10]json parsed OK: [09:53:10]protocol is kg_v1.0 [09:53:10]action value=close_receipt [09:53:10]process_action close_receipt [09:53:10]cmd_close_receipt [09:53:10]MH_GetDate [09:53:10]Write to MH i2c: F0 00 00 27 EA 00 [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: F0 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: F0 09 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: F0 09 00 27 EA 00 13 BC 1C 67 22 05 6E 64 54 [09:53:10]GetLastDocTimeStamp 1729936342 [09:53:10]current date 1729936403 [09:53:10]FM_GetShiftState [09:53:10]SAM_PROTO_GetShiftState [09:53:10]wFMCommunicate request_size=4 [09:53:10]MH_SAM_APDU [09:53:10]CAPDU: 80 13 01 00 [09:53:10]Write to MH i2c: E2 08 00 28 EA 80 13 01 00 00 00 00 00 8F [09:53:10]Write i2c OK [09:53:10]MH_I2C_Read... [09:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:10]Read from MH i2c: E2 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 0E 00 [09:53:10]MH_I2C_Read... [09:53:10]Read from MH i2c: E2 0E 00 28 EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [09:53:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:53:10]wFMCommunicate OK [09:53:10]SAM_PROTO_GetShiftState done [09:53:10]FM_GetShiftState done [09:53:10]opened in 1729902770 [09:53:10]opened+sec_in_day 1729989170 [09:53:10]quantity*price = 80012 [09:53:10]sum+1 = 80013 [09:53:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 47 26.10.2024 09:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191684 ФПД: 257946037466373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191684&fm=257946037466373&tin=02508201610067®Number=0000000000091776&sum=80000 [09:53:11]StoreToDocumentArchive [09:53:11]shift 541 fd 191684 [09:53:11]save to /storage/0541/doc_00191684 [09:53:11]save last doc name /storage/0541/doc_00191684 to /storage/kkm_last_doc_name [09:53:11]save OK [09:53:11]Clear old archive folders... [09:53:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:11]tlvbuf is 01625510 [09:53:11]SAM_PROTO_ClearQueue [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 09 00 00 [09:53:11]Write to MH i2c: E2 08 00 35 EA 80 09 00 00 00 00 00 00 91 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 35 EA 00 90 00 93 [09:53:11]RAPDU: 90 00 [09:53:11]wFMCommunicate OK [09:53:11]SAM_PROTO_ClearQueue done [09:53:11]KKMCreateOFDPacket [09:53:11]OFDProtocolAddRootSTLVToBuf [09:53:11]FM_MakeSignedData [09:53:11]FM_MakeSignedData [09:53:11]SAM_PROTO_SignData [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 0D 01 02 [09:53:11]Write to MH i2c: E2 08 00 36 EA 80 0D 01 02 00 00 00 00 99 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 36 EA 00 90 00 94 [09:53:11]RAPDU: 90 00 [09:53:11]wFMCommunicate OK [09:53:11]wFMCommunicate request_size=255 [09:53:11]MH_SAM_APDU [09: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EC 02 00 35 04 06 00 EA [09:53:11]Write to MH i2c: E2 02 01 37 EA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EC 02 00 35 04 06 00 EA 00 00 55 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 37 EA 00 90 00 95 [09:53:11]RAPDU: 90 00 [09:53:11]wFMCommunicate OK [09:53:11]wFMCommunicate request_size=10 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 0D 02 02 05 99 BD EF 35 05 [09:53:11]Write to MH i2c: E2 0D 00 38 EA 80 0D 02 02 05 00 99 BD EF 35 05 00 00 25 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 03 00 38 EA 00 90 00 96 [09:53:11]RAPDU: 90 00 [09:53:11]wFMCommunicate OK [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 0D 03 02 [09:53:11]Write to MH i2c: E2 08 00 39 EA 80 0D 03 02 00 00 00 00 9E [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0B 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 0B 00 39 EA 00 5F 81 AD 19 D0 2B 5A A5 90 00 3F [09:53:11]RAPDU: 5F 81 AD 19 D0 2B 5A A5 90 00 [09:53:11]wFMCommunicate OK [09:53:11]SAM_PROTO_SignData done [09:53:11]FM_MakeSignedData done [09:53:11]CreateOFDProtocolMessage [09:53:11]wFMCommunicate request_size=4 [09:53:11]MH_SAM_APDU [09:53:11]CAPDU: 80 11 00 00 [09:53:11]Write to MH i2c: E2 08 00 3A EA 80 11 00 00 00 00 00 00 9E [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:11]Read from MH i2c: E2 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 17 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: E2 17 00 3A EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [09:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:11]wFMCommunicate OK [09:53:11]CreateOFDProtocolMessage done [09:53:11]OFDSenderStorePacket 191684 [09:53:11]StoreOFDPacket docnum=191684 [09:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 5C 07 01 DE 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EC 02 00 35 04 06 00 EA 99 BD EF 35 05 5F 81 AD 19 D0 2B 5A A5 [09:53:11]CheckFolder [09:53:11]dirname=/storage/ofd_packets [09:53:11]CheckFolder done [09:53:11]ProducePacketName [09:53:11]name=ofd_packets/00191684 [09:53:11]NVStorageSaveData ofd_packets/00191684 [09:53:11]File name is /storage/ofd_packets/00191684 [09:53:11]Write 301 bytes [09:53:11]NVStorageSaveData done [09:53:11]OFDSenderStorePacket done [09:53:11]KKMCreateOFDPacket done [09:53:11]NVStorageSaveData kkm_last_timestamp [09:53:11]File name is /storage/kkm_last_timestamp [09:53:11]Write 4 bytes [09:53:11]NVStorageSaveData done [09:53:11]ExternCall_PrintAddStr [09:53:11]wPrintStart [09:53:11]Write to MH i2c: 01 00 00 3B EA 25 [09:53:11]Write i2c OK [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: 01 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: 01 07 00 [09:53:11]MH_I2C_Read... [09:53:11]Read from MH i2c: 01 07 00 3B EA 00 00 00 00 00 FF 0F 3A [09:53:11]RasterBufferAndPrint [09:53:11]line Счет N : (1)30986 [09:53:11]line ИНН: 02508201610067 [09:53:11]line Контрольно-Кассовый Чек [09:53:11]line ПРОДАЖА [09:53:11]line ТРК (МРК, ГНК) : 21 [09:53:11]line Товар: 2710124130 [09:53:11]line Аи-92-К-5 [09:53:11]line 11.960 * 66.90 [09:53:11]line = 800.12 [09:53:11]line НДС 12% НСП 1% [09:53:11]line > о реализуемом товаре [09:53:11]line ОКРУГЛЕНИЕ: -0.12 [09:53:11]line ИТОГО: 800.00 [09:53:11]line Внесено: 800.00 [09:53:11]line СДАЧА: 0.00 [09:53:11]line НСП 1% : 7.08 [09:53:11]line НДС 12% : 84.97 [09:53:11]line Наличными: 800.00 [09:53:11]line Безнал.: 0.00 [09:53:11]line Место: АЗС № 170 "Партнер Нефть" [09:53:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:53:11]line СНО: Общий режим [09:53:11]line Чек 47 26.10.2024 09:53 [09:53:11]line Смена: 541 ФФД: 1.0 [09:53:11]line ЗНМ: 0300000110 [09:53:11]line РНМ: 0000000000091776 [09:53:11]line Версия ККМ: 001 [09:53:11]line ФМ: 0000000000871754 [09:53:11]line ФД: 191684 [09:53:11]line ФПД: 257946037466373 [09:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191684&fm=257946037466373&tin=02508201610067®Number=0000000000091776&sum=80000 [09:53:12]OFD Sender: Processing packet 191684 [packets to send 75, broken 74] [09:53:12]ProducePacketName [09:53:12]name=ofd_packets/00191684 [09:53:12]OFD Sender: To server: pG, [09:53:12]CommunicateWithHost lk.salyk.kg:30040 [09:53:12]ConnectInit lk.salyk.kg [09:53:12]written 0, free lines is 4095 [09:53:12]Connected sock=10 [09:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 5C 07 01 DE 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 13 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EC 02 00 35 04 06 00 EA 99 BD EF 35 05 5F 81 AD 19 D0 2B 5A A5 [09:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 9C 47 00 F9 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 EC 02 00 F4 03 04 00 DF 60 1C 67 B6 04 01 00 00 54 CD E2 17 64 B1 F6 3B [09:53:12]CommunicateWithHost err = 0 [09:53:12]CheckOFDResponse [09:53:12]1017 (14) - 77093643461234 [09:53:12]1041 (16) - 0000000000871754 [09:53:12]1040 (4) - 191684 [09:53:12]1012 (4) - 26.10.2024 03:24 [09:53:12]1206 (1) - 0 [09:53:12]OFD Sender: Remove packet 191684 [09:53:12]ProducePacketName [09:53:12]name=ofd_packets/00191684 [09:53:12]NVStorageDeleteData [09:53:12]Write to MH i2c: 01 00 00 66 EA 50 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 07 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: 01 07 00 66 EA 00 00 00 00 00 BF 0C 22 [09:53:12]RasterBufferAndPrint [09:53:12]line [09:53:12]line [09:53:12]line [09:53:12]line [09:53:12]line [09:53:12]written 0, free lines is 3269 [09:53:12]MH_Cut [09:53:12]Write to MH i2c: D1 01 00 6D EA 01 29 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: D1 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: D1 01 00 [09:53:12]MH_I2C_Read... [09:53:12]Read from MH i2c: D1 01 00 6D EA 00 28 [09:53:12]Write to MH i2c: 01 00 00 6E EA 58 [09:53:12]Write i2c OK [09:53:12]MH_I2C_Read... [09:53:12]OFD Sender: No OFD packet to send [09:53:13]*** Cut start [09:53:13]*** Partial cut [09:53:13]*** CUTSNS_PIN = 1 [09:53:13]*** CUTSNS_PIN = 0 [09:53:13]*** Brake cut motor [09:53:13]Read from MH i2c: 01 [09:53:14]MH_I2C_Read... [09:53:14]*** Stop cut motor [09:53:14]*** Cut end [09:53:14]Read from MH i2c: 01 07 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: 01 07 00 6E EA 00 00 00 00 00 FF 0F 6D [09:53:14]process_action close_receipt done [09:53:14]requested_data is exist [09:53:14]produce_requested_data [09:53:14]requested_item fm.sn is exist - process it [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 11 00 00 [09:53:14]Write to MH i2c: E2 08 00 6F EA 80 11 00 00 00 00 00 00 D3 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 17 00 6F EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [09:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:53:14]wFMCommunicate OK [09:53:14]requested_item fd.num is exist - process it [09:53:14]SAM_PROTO_GetFieldsCounters [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 13 00 00 [09:53:14]Write to MH i2c: E2 08 00 70 EA 80 13 00 00 00 00 00 00 D6 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 62 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 62 00 70 EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:53:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:14]wFMCommunicate OK [09:53:14]SAM_PROTO_GetFieldsCounters done [09:53:14]requested_item shift.num is exist - process it [09:53:14]requested_item shift.opened is exist - process it [09:53:14]req_shift_opened [09:53:14]FM_GetShiftState [09:53:14]SAM_PROTO_GetShiftState [09:53:14]wFMCommunicate request_size=4 [09:53:14]MH_SAM_APDU [09:53:14]CAPDU: 80 13 01 00 [09:53:14]Write to MH i2c: E2 08 00 71 EA 80 13 01 00 00 00 00 00 D8 [09:53:14]Write i2c OK [09:53:14]MH_I2C_Read... [09:53:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:14]Read from MH i2c: E2 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 [09:53:14]MH_I2C_Read... [09:53:14]Read from MH i2c: E2 0E 00 71 EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 51 [09:53:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:53:14]wFMCommunicate OK [09:53:14]SAM_PROTO_GetShiftState done [09:53:14]FM_GetShiftState done [09:53:14]req_shift_opened done [09:53:14]requested_item shift.open_date is exist - process it [09:53:14]req_shift_open_date [09:53:14]req_shift_open_date done [09:53:14]produce_requested_data done [09:53:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191684,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:53:14]process_action_free close_receipt [09:53:14]json_value_free [09:53:14]json_value_free done [09:53:14]process_json_proto returns [09:53:14]Send response to host [09:53:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191684,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:53:14]free response buf [09:53:14]execute_script done [09:53:14]execute_script returns [09:53:14]free content buf [09:53:14]Sock 8.Close socket [09:53:14]Sock 8.Thread stoped [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:06]accept exits with 9 [09:55:06]New connection [09:55:06]New thread 3066961252 created [09:55:06]Thread 3066817892 joined [09:55:06]Waiting for new connection... [09:55:06] Sock 9.Parse request [09:55:06]Sock 9.Check first char [09:55:06]Sock 9.First char is OK [09:55:06]request: POST /json_proto HTTP/1.0 [09:55:06]Method: POST [09:55:06]URL: /json_proto [09:55:06]Method is POST - this is cgi request [09:55:06]url: /json_proto [09:55:06]query_string will be loaded in cgi processing [09:55:06]execute_cgi json_proto POST (null) [09:55:06]execute_cgi path=json_proto method=POST [09:55:06]POST find Content-Length [09:55:06]Host: 172.17.63.131:8080 [09:55:06]Content-Length: 676 [09:55:06]Content-Type: application/json [09:55:06] [09:55:06]POST finish read [09:55:06]Found Content-Length = 676 [09:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.300, "sum" : 421.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 421.00, "payments": [ { "type": 0, "sum" : 421.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:06]execute_script... [09:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.300, "sum" : 421.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 421.00, "payments": [ { "type": 0, "sum" : 421.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:06]POST & json_proto [09:55:06]process_json_proto [09:55:06]json parsed OK: [09:55:06]protocol is kg_v1.0 [09:55:06]action value=close_receipt [09:55:06]process_action close_receipt [09:55:06]cmd_close_receipt [09:55:06]MH_GetDate [09:55:06]Write to MH i2c: F0 00 00 72 EA 4B [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: F0 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: F0 09 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: F0 09 00 72 EA 00 88 BC 1C 67 22 05 6E 64 14 [09:55:06]GetLastDocTimeStamp 1729936403 [09:55:06]current date 1729936520 [09:55:06]FM_GetShiftState [09:55:06]SAM_PROTO_GetShiftState [09:55:06]wFMCommunicate request_size=4 [09:55:06]MH_SAM_APDU [09:55:06]CAPDU: 80 13 01 00 [09:55:06]Write to MH i2c: E2 08 00 73 EA 80 13 01 00 00 00 00 00 DA [09:55:06]Write i2c OK [09:55:06]MH_I2C_Read... [09:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:06]Read from MH i2c: E2 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 0E 00 [09:55:06]MH_I2C_Read... [09:55:06]Read from MH i2c: E2 0E 00 73 EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 53 [09:55:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:55:06]wFMCommunicate OK [09:55:06]SAM_PROTO_GetShiftState done [09:55:06]FM_GetShiftState done [09:55:06]opened in 1729902770 [09:55:06]opened+sec_in_day 1729989170 [09:55:06]quantity*price = 42147 [09:55:06]sum+1 = 42148 [09:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 421.00 Внесено: 500.00 СДАЧА: 79.00 НСП 1% : 3.73 НДС 12% : 44.76 Наличными: 421.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 48 26.10.2024 09:55 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191685 ФПД: 126343566820061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095520&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191685&fm=126343566820061&tin=02508201610067®Number=0000000000091776&sum=42100 [09:55:07]StoreToDocumentArchive [09:55:07]shift 541 fd 191685 [09:55:07]save to /storage/0541/doc_00191685 [09:55:07]save last doc name /storage/0541/doc_00191685 to /storage/kkm_last_doc_name [09:55:07]save OK [09:55:07]Clear old archive folders... [09:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:07]tlvbuf is 016EB210 [09:55:07]SAM_PROTO_ClearQueue [09:55:07]wFMCommunicate request_size=4 [09:55:07]MH_SAM_APDU [09:55:07]CAPDU: 80 09 00 00 [09:55:07]Write to MH i2c: E2 08 00 80 EA 80 09 00 00 00 00 00 00 DC [09:55:07]Write i2c OK [09:55:07]MH_I2C_Read... [09:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:07]Read from MH i2c: E2 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 03 00 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 03 00 80 EA 00 90 00 DE [09:55:07]RAPDU: 90 00 [09:55:07]wFMCommunicate OK [09:55:07]SAM_PROTO_ClearQueue done [09:55:07]KKMCreateOFDPacket [09:55:07]OFDProtocolAddRootSTLVToBuf [09:55:07]FM_MakeSignedData [09:55:07]FM_MakeSignedData [09:55:07]SAM_PROTO_SignData [09:55:07]wFMCommunicate request_size=4 [09:55:07]MH_SAM_APDU [09:55:07]CAPDU: 80 0D 01 02 [09:55:07]Write to MH i2c: E2 08 00 81 EA 80 0D 01 02 00 00 00 00 E4 [09:55:07]Write i2c OK [09:55:07]MH_I2C_Read... [09:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:07]Read from MH i2c: E2 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 03 00 [09:55:07]MH_I2C_Read... [09:55:07]Read from MH i2c: E2 03 00 81 EA 00 90 00 DF [09:55:07]RAPDU: 90 00 [09:55:07]wFMCommunicate OK [09:55:07]wFMCommunicate request_size=255 [09:55:07]MH_SAM_APDU [09:55: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 9C 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 11 00 00 00 00 07 04 06 00 74 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 30 00 00 00 F4 03 04 00 88 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EC 02 00 35 04 06 00 72 [09:55:07]Write to MH i2c: E2 02 01 82 EA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 11 00 00 00 00 07 04 06 00 74 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 30 00 00 00 F4 03 04 00 88 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EC 02 00 35 04 06 00 72 00 00 98 [09:55:07]Write i2c OK [09:55:07]MH_I2C_Read... [09:55:08]OFD Sender: No OFD packet to send [09:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 82 EA 00 90 00 E0 [09:55:08]RAPDU: 90 00 [09:55:08]wFMCommunicate OK [09:55:08]wFMCommunicate request_size=10 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 0D 02 02 05 E8 A7 6B 82 DD [09:55:08]Write to MH i2c: E2 0D 00 83 EA 80 0D 02 02 05 00 E8 A7 6B 82 DD 00 00 4A [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 03 00 83 EA 00 90 00 E1 [09:55:08]RAPDU: 90 00 [09:55:08]wFMCommunicate OK [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 0D 03 02 [09:55:08]Write to MH i2c: E2 08 00 84 EA 80 0D 03 02 00 00 00 00 E9 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0B 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0B 00 84 EA 00 9B DF 12 B5 A5 20 50 2E 90 00 6E [09:55:08]RAPDU: 9B DF 12 B5 A5 20 50 2E 90 00 [09:55:08]wFMCommunicate OK [09:55:08]SAM_PROTO_SignData done [09:55:08]FM_MakeSignedData done [09:55:08]CreateOFDProtocolMessage [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 11 00 00 [09:55:08]Write to MH i2c: E2 08 00 85 EA 80 11 00 00 00 00 00 00 E9 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 17 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 17 00 85 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [09:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:55:08]wFMCommunicate OK [09:55:08]CreateOFDProtocolMessage done [09:55:08]OFDSenderStorePacket 191685 [09:55:08]StoreOFDPacket docnum=191685 [09:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 FD 07 01 13 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 11 00 00 00 00 07 04 06 00 74 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 30 00 00 00 F4 03 04 00 88 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EC 02 00 35 04 06 00 72 E8 A7 6B 82 DD 9B DF 12 B5 A5 20 50 2E [09:55:08]CheckFolder [09:55:08]dirname=/storage/ofd_packets [09:55:08]CheckFolder done [09:55:08]ProducePacketName [09:55:08]name=ofd_packets/00191685 [09:55:08]NVStorageSaveData ofd_packets/00191685 [09:55:08]File name is /storage/ofd_packets/00191685 [09:55:08]Write 301 bytes [09:55:08]NVStorageSaveData done [09:55:08]OFDSenderStorePacket done [09:55:08]KKMCreateOFDPacket done [09:55:08]NVStorageSaveData kkm_last_timestamp [09:55:08]File name is /storage/kkm_last_timestamp [09:55:08]Write 4 bytes [09:55:08]NVStorageSaveData done [09:55:08]ExternCall_PrintAddStr [09:55:08]wPrintStart [09:55:08]Write to MH i2c: 01 00 00 86 EA 70 [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: 01 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: 01 07 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: 01 07 00 86 EA 00 00 00 00 00 FF 0F 85 [09:55:08]RasterBufferAndPrint [09:55:08]line Счет N : (1)30987 [09:55:08]line ИНН: 02508201610067 [09:55:08]line Контрольно-Кассовый Чек [09:55:08]line ПРОДАЖА [09:55:08]line ТРК (МРК, ГНК) : 21 [09:55:08]line Товар: 2710124130 [09:55:08]line Аи-92-К-5 [09:55:08]line 6.300 * 66.90 [09:55:08]line = 421.47 [09:55:08]line НДС 12% НСП 1% [09:55:08]line > о реализуемом товаре [09:55:08]line ОКРУГЛЕНИЕ: -0.47 [09:55:08]line ИТОГО: 421.00 [09:55:08]line Внесено: 500.00 [09:55:08]line СДАЧА: 79.00 [09:55:08]line НСП 1% : 3.73 [09:55:08]line НДС 12% : 44.76 [09:55:08]line Наличными: 421.00 [09:55:08]line Безнал.: 0.00 [09:55:08]line Место: АЗС № 170 "Партнер Нефть" [09:55:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:55:08]line СНО: Общий режим [09:55:08]line Чек 48 26.10.2024 09:55 [09:55:08]line Смена: 541 ФФД: 1.0 [09:55:08]line ЗНМ: 0300000110 [09:55:08]line РНМ: 0000000000091776 [09:55:08]line Версия ККМ: 001 [09:55:08]line ФМ: 0000000000871754 [09:55:08]line ФД: 191685 [09:55:08]line ФПД: 126343566820061 [09:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095520&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191685&fm=126343566820061&tin=02508201610067®Number=0000000000091776&sum=42100 [09:55:08]OFD Sender: Processing packet 191685 [packets to send 75, broken 74] [09:55:08]ProducePacketName [09:55:08]name=ofd_packets/00191685 [09:55:08]OFD Sender: To server: pG, [09:55:08]CommunicateWithHost lk.salyk.kg:30040 [09:55:08]ConnectInit lk.salyk.kg [09:55:08]written 0, free lines is 4095 [09:55:08]Connected sock=10 [09:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 FD 07 01 13 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A3 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 11 00 00 00 00 07 04 06 00 74 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 30 00 00 00 F4 03 04 00 88 BC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EC 02 00 35 04 06 00 72 E8 A7 6B 82 DD 9B DF 12 B5 A5 20 50 2E [09:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 9F 47 00 38 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 EC 02 00 F4 03 04 00 54 61 1C 67 B6 04 01 00 00 8D 54 85 11 8B F1 3E D0 [09:55:08]CommunicateWithHost err = 0 [09:55:08]CheckOFDResponse [09:55:08]1017 (14) - 77093643461234 [09:55:08]1041 (16) - 0000000000871754 [09:55:08]1040 (4) - 191685 [09:55:08]1012 (4) - 26.10.2024 03:26 [09:55:08]1206 (1) - 0 [09:55:08]OFD Sender: Remove packet 191685 [09:55:08]ProducePacketName [09:55:08]name=ofd_packets/00191685 [09:55:08]NVStorageDeleteData [09:55:09]Write to MH i2c: 01 00 00 B1 EA 9B [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: 01 07 00 B1 EA 00 00 00 00 00 B4 0C 62 [09:55:09]RasterBufferAndPrint [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]line [09:55:09]written 0, free lines is 3259 [09:55:09]MH_Cut [09:55:09]Write to MH i2c: D1 01 00 B8 EA 01 74 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 01 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: D1 01 00 B8 EA 00 73 [09:55:09]Write to MH i2c: 01 00 00 B9 EA A3 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]OFD Sender: No OFD packet to send [09:55:09]*** Cut start [09:55:09]*** Partial cut [09:55:09]*** CUTSNS_PIN = 1 [09:55:09]*** CUTSNS_PIN = 0 [09:55:10]*** Brake cut motor [09:55:10]Read from MH i2c: 01 [09:55:10]MH_I2C_Read... [09:55:10]*** Stop cut motor [09:55:10]*** Cut end [09:55:10]Read from MH i2c: 01 07 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 B9 EA 00 00 00 00 00 FF 0F B8 [09:55:10]process_action close_receipt done [09:55:10]requested_data is exist [09:55:10]produce_requested_data [09:55:10]requested_item fm.sn is exist - process it [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 11 00 00 [09:55:10]Write to MH i2c: E2 08 00 BA EA 80 11 00 00 00 00 00 00 1E [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 17 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 17 00 BA EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [09:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:55:10]wFMCommunicate OK [09:55:10]requested_item fd.num is exist - process it [09:55:10]SAM_PROTO_GetFieldsCounters [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 13 00 00 [09:55:10]Write to MH i2c: E2 08 00 BB EA 80 13 00 00 00 00 00 00 21 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 62 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 62 00 BB EA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [09:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:10]wFMCommunicate OK [09:55:10]SAM_PROTO_GetFieldsCounters done [09:55:10]requested_item shift.num is exist - process it [09:55:10]requested_item shift.opened is exist - process it [09:55:10]req_shift_opened [09:55:10]FM_GetShiftState [09:55:10]SAM_PROTO_GetShiftState [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 13 01 00 [09:55:10]Write to MH i2c: E2 08 00 BC EA 80 13 01 00 00 00 00 00 23 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 0E 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 0E 00 BC EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9C [09:55:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:55:10]wFMCommunicate OK [09:55:10]SAM_PROTO_GetShiftState done [09:55:10]FM_GetShiftState done [09:55:10]req_shift_opened done [09:55:10]requested_item shift.open_date is exist - process it [09:55:10]req_shift_open_date [09:55:10]req_shift_open_date done [09:55:10]produce_requested_data done [09:55:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191685,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:55:10]process_action_free close_receipt [09:55:10]json_value_free [09:55:10]json_value_free done [09:55:10]process_json_proto returns [09:55:10]Send response to host [09:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191685,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:55:10]free response buf [09:55:10]execute_script done [09:55:10]execute_script returns [09:55:10]free content buf [09:55:10]Sock 9.Close socket [09:55:10]Sock 9.Thread stoped [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57: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:52]accept exits with 8 [09:57:52]New connection [09:57:52]New thread 3066817892 created [09:57:52]Thread 3066961252 joined [09:57:52]Waiting for new connection... [09:57:52] Sock 8.Parse request [09:57:52]Sock 8.Check first char [09:57:52]Sock 8.First char is OK [09:57:52]request: POST /json_proto HTTP/1.0 [09:57:52]Method: POST [09:57:52]URL: /json_proto [09:57:52]Method is POST - this is cgi request [09:57:52]url: /json_proto [09:57:52]query_string will be loaded in cgi processing [09:57:52]execute_cgi json_proto POST (null) [09:57:52]execute_cgi path=json_proto method=POST [09:57:52]POST find Content-Length [09:57:52]Host: 172.17.63.131:8080 [09:57:52]Content-Length: 862 [09:57:52]Content-Type: application/json [09:57:52] [09:57:52]POST finish read [09:57:52]Found Content-Length = 862 [09:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:52]execute_script... [09:57: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)30988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:52]POST & json_proto [09:57:52]process_json_proto [09:57:52]json parsed OK: [09:57:52]protocol is kg_v1.0 [09:57:52]action value=close_receipt [09:57:52]process_action close_receipt [09:57:52]cmd_close_receipt [09:57:52]MH_GetDate [09:57:52]Write to MH i2c: F0 00 00 BD EA 96 [09:57:52]Write i2c OK [09:57:52]MH_I2C_Read... [09:57:52]Read from MH i2c: F0 [09:57:52]MH_I2C_Read... [09:57:52]Read from MH i2c: F0 09 00 [09:57:52]MH_I2C_Read... [09:57:52]Read from MH i2c: F0 09 00 BD EA 00 2E BD 1C 67 22 05 6E 64 06 [09:57:52]GetLastDocTimeStamp 1729936520 [09:57:52]current date 1729936686 [09:57:52]FM_GetShiftState [09:57:52]SAM_PROTO_GetShiftState [09:57:52]wFMCommunicate request_size=4 [09:57:52]MH_SAM_APDU [09:57:52]CAPDU: 80 13 01 00 [09:57:52]Write to MH i2c: E2 08 00 BE EA 80 13 01 00 00 00 00 00 25 [09:57:52]Write i2c OK [09:57:52]MH_I2C_Read... [09:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:52]Read from MH i2c: E2 [09:57:52]MH_I2C_Read... [09:57:52]Read from MH i2c: E2 0E 00 [09:57:52]MH_I2C_Read... [09:57:52]Read from MH i2c: E2 0E 00 BE EA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9E [09:57:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:57:52]wFMCommunicate OK [09:57:52]SAM_PROTO_GetShiftState done [09:57:52]FM_GetShiftState done [09:57:52]opened in 1729902770 [09:57:52]opened+sec_in_day 1729989170 [09:57:52]quantity*price = 100050 [09:57:52]sum+1 = 100052 [09:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 49 26.10.2024 09:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191686 ФПД: 120876869021763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095806&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191686&fm=120876869021763&tin=02508201610067®Number=0000000000091776&sum=100051 [09:57:54]StoreToDocumentArchive [09:57:54]shift 541 fd 191686 [09:57:54]save to /storage/0541/doc_00191686 [09:57:54]save last doc name /storage/0541/doc_00191686 to /storage/kkm_last_doc_name [09:57:54]save OK [09:57:54]Clear old archive folders... [09:57:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:54]tlvbuf is 01AA4A50 [09:57:54]SAM_PROTO_ClearQueue [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 09 00 00 [09:57:54]Write to MH i2c: E2 08 00 CB EA 80 09 00 00 00 00 00 00 27 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 CB EA 00 90 00 29 [09:57:54]RAPDU: 90 00 [09:57:54]wFMCommunicate OK [09:57:54]SAM_PROTO_ClearQueue done [09:57:54]KKMCreateOFDPacket [09:57:54]OFDProtocolAddRootSTLVToBuf [09:57:54]FM_MakeSignedData [09:57:54]FM_MakeSignedData [09:57:54]SAM_PROTO_SignData [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 0D 01 02 [09:57:54]Write to MH i2c: E2 08 00 CC EA 80 0D 01 02 00 00 00 00 2F [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 CC EA 00 90 00 2A [09:57:54]RAPDU: 90 00 [09:57:54]wFMCommunicate OK [09:57:54]wFMCommunicate request_size=255 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2E BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EC 02 00 35 04 06 00 6D EF D6 D6 [09:57:54]Write to MH i2c: E2 02 01 CD EA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2E BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EC 02 00 35 04 06 00 6D EF D6 D6 00 00 99 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 CD EA 00 90 00 2B [09:57:54]RAPDU: 90 00 [09:57:54]wFMCommunicate OK [09:57:54]wFMCommunicate request_size=7 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 0D 02 02 02 F0 43 [09:57:54]Write to MH i2c: E2 0A 00 CE EA 80 0D 02 02 02 00 F0 43 00 00 69 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 03 00 CE EA 00 90 00 2C [09:57:54]RAPDU: 90 00 [09:57:54]wFMCommunicate OK [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 0D 03 02 [09:57:54]Write to MH i2c: E2 08 00 CF EA 80 0D 03 02 00 00 00 00 34 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0B 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 0B 00 CF EA 00 F6 61 77 F7 02 33 90 99 90 00 58 [09:57:54]RAPDU: F6 61 77 F7 02 33 90 99 90 00 [09:57:54]wFMCommunicate OK [09:57:54]SAM_PROTO_SignData done [09:57:54]FM_MakeSignedData done [09:57:54]CreateOFDProtocolMessage [09:57:54]wFMCommunicate request_size=4 [09:57:54]MH_SAM_APDU [09:57:54]CAPDU: 80 11 00 00 [09:57:54]Write to MH i2c: E2 08 00 D0 EA 80 11 00 00 00 00 00 00 34 [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:54]Read from MH i2c: E2 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 17 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: E2 17 00 D0 EA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [09:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:57:54]wFMCommunicate OK [09:57:54]CreateOFDProtocolMessage done [09:57:54]OFDSenderStorePacket 191686 [09:57:54]StoreOFDPacket docnum=191686 [09:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 07 66 04 01 24 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2E BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EC 02 00 35 04 06 00 6D EF D6 D6 F0 43 F6 61 77 F7 02 33 90 99 [09:57:54]CheckFolder [09:57:54]dirname=/storage/ofd_packets [09:57:54]CheckFolder done [09:57:54]ProducePacketName [09:57:54]name=ofd_packets/00191686 [09:57:54]NVStorageSaveData ofd_packets/00191686 [09:57:54]File name is /storage/ofd_packets/00191686 [09:57:54]Write 298 bytes [09:57:54]NVStorageSaveData done [09:57:54]OFDSenderStorePacket done [09:57:54]KKMCreateOFDPacket done [09:57:54]NVStorageSaveData kkm_last_timestamp [09:57:54]File name is /storage/kkm_last_timestamp [09:57:54]Write 4 bytes [09:57:54]NVStorageSaveData done [09:57:54]ExternCall_PrintAddStr [09:57:54]wPrintStart [09:57:54]Write to MH i2c: 01 00 00 D1 EA BB [09:57:54]Write i2c OK [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 07 00 [09:57:54]MH_I2C_Read... [09:57:54]Read from MH i2c: 01 07 00 D1 EA 00 00 00 00 00 FF 0F D0 [09:57:54]RasterBufferAndPrint [09:57:54]line Счет N : (1)30988 [09:57:54]line ИНН: 02508201610067 [09:57:54]line Контрольно-Кассовый Чек [09:57:54]line ПРОДАЖА [09:57:54]line ТРК (МРК, ГНК) : 11 [09:57:54]line Товар: 2710194210 [09:57:54]line ДТ-К-5 [09:57:54]line 13.130 * 76.20 [09:57:54]line = 1000.51 [09:57:54]line НДС 12% НСП 1% [09:57:54]line > о реализуемом товаре [09:57:54]line ИТОГО: 1000.51 [09:57:54]line НСП 1% : 8.85 [09:57:54]line НДС 12% : 106.25 [09:57:54]line Наличными: 0.00 [09:57:54]line Безнал.: 1000.51 [09:57:54]line Место: АЗС № 170 "Партнер Нефть" [09:57:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:57:54]line СНО: Общий режим [09:57:54]line Чек 49 26.10.2024 09:58 [09:57:54]line Смена: 541 ФФД: 1.0 [09:57:54]line ЗНМ: 0300000110 [09:57:54]line РНМ: 0000000000091776 [09:57:54]line Версия ККМ: 001 [09:57:54]line Платежная система: Кыргызкоммерцбанк [09:57:54]line ФМ: 0000000000871754 [09:57:54]line ФД: 191686 [09:57:54]line ФПД: 120876869021763 [09:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095806&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191686&fm=120876869021763&tin=02508201610067®Number=0000000000091776&sum=100051 [09:57:54]OFD Sender: Processing packet 191686 [packets to send 75, broken 74] [09:57:54]ProducePacketName [09:57:54]name=ofd_packets/00191686 [09:57:54]OFD Sender: To server: pG, [09:57:54]CommunicateWithHost lk.salyk.kg:30040 [09:57:54]ConnectInit lk.salyk.kg [09:57:54]written 0, free lines is 4095 [09:57:54]Connected sock=10 [09:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 07 66 04 01 24 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 2E BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EC 02 00 35 04 06 00 6D EF D6 D6 F0 43 F6 61 77 F7 02 33 90 99 [09:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 69 47 00 52 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 EC 02 00 F4 03 04 00 FA 61 1C 67 B6 04 01 00 00 C3 E8 C5 BB 23 42 7E A5 [09:57:55]CommunicateWithHost err = 0 [09:57:55]CheckOFDResponse [09:57:55]1017 (14) - 77093643461234 [09:57:55]1041 (16) - 0000000000871754 [09:57:55]1040 (4) - 191686 [09:57:55]1012 (4) - 26.10.2024 03:28 [09:57:55]1206 (1) - 0 [09:57:55]OFD Sender: Remove packet 191686 [09:57:55]ProducePacketName [09:57:55]name=ofd_packets/00191686 [09:57:55]NVStorageDeleteData [09:57:55]Write to MH i2c: 01 00 00 FB EA E5 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: 01 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: 01 07 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: 01 07 00 FB EA 00 00 00 00 00 CA 0C C2 [09:57:55]RasterBufferAndPrint [09:57:55]line [09:57:55]line [09:57:55]line [09:57:55]line [09:57:55]line [09:57:55]written 0, free lines is 3280 [09:57:55]MH_Cut [09:57:55]Write to MH i2c: D1 01 00 02 EB 01 BF [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: D1 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: D1 01 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: D1 01 00 02 EB 00 BE [09:57:55]Write to MH i2c: 01 00 00 03 EB EE [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]OFD Sender: No OFD packet to send [09:57:56]*** Cut start [09:57:56]*** Partial cut [09:57:56]*** CUTSNS_PIN = 1 [09:57:56]*** CUTSNS_PIN = 0 [09:57:56]*** Brake cut motor [09:57:56]Read from MH i2c: 01 [09:57:56]MH_I2C_Read... [09:57:56]*** Stop cut motor [09:57:56]*** Cut end [09:57:56]Read from MH i2c: 01 07 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: 01 07 00 03 EB 00 00 00 00 00 FF 0F 03 [09:57:56]process_action close_receipt done [09:57:56]requested_data is exist [09:57:56]produce_requested_data [09:57:56]requested_item fm.sn is exist - process it [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 11 00 00 [09:57:56]Write to MH i2c: E2 08 00 04 EB 80 11 00 00 00 00 00 00 69 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:56]Read from MH i2c: E2 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 [09:57:56]MH_I2C_Read... [09:57:56]Read from MH i2c: E2 17 00 04 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [09:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:57:56]wFMCommunicate OK [09:57:56]requested_item fd.num is exist - process it [09:57:56]SAM_PROTO_GetFieldsCounters [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 13 00 00 [09:57:56]Write to MH i2c: E2 08 00 05 EB 80 13 00 00 00 00 00 00 6C [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 62 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 62 00 05 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetFieldsCounters done [09:57:57]requested_item shift.num is exist - process it [09:57:57]requested_item shift.opened is exist - process it [09:57:57]req_shift_opened [09:57:57]FM_GetShiftState [09:57:57]SAM_PROTO_GetShiftState [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 13 01 00 [09:57:57]Write to MH i2c: E2 08 00 06 EB 80 13 01 00 00 00 00 00 6E [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0E 00 06 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E7 [09:57:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_GetShiftState done [09:57:57]FM_GetShiftState done [09:57:57]req_shift_opened done [09:57:57]requested_item shift.open_date is exist - process it [09:57:57]req_shift_open_date [09:57:57]req_shift_open_date done [09:57:57]produce_requested_data done [09:57:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191686,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:57:57]process_action_free close_receipt [09:57:57]json_value_free [09:57:57]json_value_free done [09:57:57]process_json_proto returns [09:57:57]Send response to host [09:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191686,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:57:57]free response buf [09:57:57]execute_script done [09:57:57]execute_script returns [09:57:57]free content buf [09:57:57]Sock 8.Close socket [09:57:57]Sock 8.Thread stoped [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:19]accept exits with 9 [09:58:19]New connection [09:58:19]New thread 3066961252 created [09:58:19]Thread 3066817892 joined [09:58:19]Waiting for new connection... [09:58:19] Sock 9.Parse request [09:58:19]Sock 9.Check first char [09:58:19]Sock 9.First char is OK [09:58:19]request: POST /json_proto HTTP/1.0 [09:58:19]Method: POST [09:58:19]URL: /json_proto [09:58:19]Method is POST - this is cgi request [09:58:19]url: /json_proto [09:58:19]query_string will be loaded in cgi processing [09:58:19]execute_cgi json_proto POST (null) [09:58:19]execute_cgi path=json_proto method=POST [09:58:19]POST find Content-Length [09:58:19]Host: 172.17.63.131:8080 [09:58:19]Content-Length: 676 [09:58:19]Content-Type: application/json [09:58:19] [09:58:19]POST finish read [09:58:19]Found Content-Length = 676 [09:58:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:19]execute_script... [09:58: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)30989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:19]POST & json_proto [09:58:19]process_json_proto [09:58:19]json parsed OK: [09:58:19]protocol is kg_v1.0 [09:58:19]action value=close_receipt [09:58:19]process_action close_receipt [09:58:19]cmd_close_receipt [09:58:19]MH_GetDate [09:58:19]Write to MH i2c: F0 00 00 07 EB E1 [09:58:19]Write i2c OK [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: F0 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: F0 09 00 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: F0 09 00 07 EB 00 49 BD 1C 67 22 05 6E 64 6C [09:58:19]GetLastDocTimeStamp 1729936686 [09:58:19]current date 1729936713 [09:58:19]FM_GetShiftState [09:58:19]SAM_PROTO_GetShiftState [09:58:19]wFMCommunicate request_size=4 [09:58:19]MH_SAM_APDU [09:58:19]CAPDU: 80 13 01 00 [09:58:19]Write to MH i2c: E2 08 00 08 EB 80 13 01 00 00 00 00 00 70 [09:58:19]Write i2c OK [09:58:19]MH_I2C_Read... [09:58:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:19]Read from MH i2c: E2 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 [09:58:19]MH_I2C_Read... [09:58:19]Read from MH i2c: E2 0E 00 08 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E9 [09:58:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:58:19]wFMCommunicate OK [09:58:19]SAM_PROTO_GetShiftState done [09:58:19]FM_GetShiftState done [09:58:19]opened in 1729902770 [09:58:19]opened+sec_in_day 1729989170 [09:58:19]quantity*price = 50041 [09:58:19]sum+1 = 50042 [09:58:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 50 26.10.2024 09:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191687 ФПД: 166654629683921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191687&fm=166654629683921&tin=02508201610067®Number=0000000000091776&sum=50000 [09:58:20]StoreToDocumentArchive [09:58:20]shift 541 fd 191687 [09:58:20]save to /storage/0541/doc_00191687 [09:58:20]save last doc name /storage/0541/doc_00191687 to /storage/kkm_last_doc_name [09:58:20]save OK [09:58:20]Clear old archive folders... [09:58:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:20]tlvbuf is 015C8830 [09:58:20]SAM_PROTO_ClearQueue [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 09 00 00 [09:58:20]Write to MH i2c: E2 08 00 15 EB 80 09 00 00 00 00 00 00 72 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 15 EB 00 90 00 74 [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]SAM_PROTO_ClearQueue done [09:58:20]KKMCreateOFDPacket [09:58:20]OFDProtocolAddRootSTLVToBuf [09:58:20]FM_MakeSignedData [09:58:20]FM_MakeSignedData [09:58:20]SAM_PROTO_SignData [09:58:20]wFMCommunicate request_size=4 [09:58:20]MH_SAM_APDU [09:58:20]CAPDU: 80 0D 01 02 [09:58:20]Write to MH i2c: E2 08 00 16 EB 80 0D 01 02 00 00 00 00 7A [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:20]OFD Sender: No OFD packet to send [09:58:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:20]Read from MH i2c: E2 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 [09:58:20]MH_I2C_Read... [09:58:20]Read from MH i2c: E2 03 00 16 EB 00 90 00 75 [09:58:20]RAPDU: 90 00 [09:58:20]wFMCommunicate OK [09:58:20]wFMCommunicate request_size=255 [09:58:20]MH_SAM_APDU [09:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EC 02 00 35 04 06 00 97 [09:58:20]Write to MH i2c: E2 02 01 17 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 49 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EC 02 00 35 04 06 00 97 00 00 34 [09:58:20]Write i2c OK [09:58:20]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 03 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 03 00 17 EB 00 90 00 76 [09:58:21]RAPDU: 90 00 [09:58:21]wFMCommunicate OK [09:58:21]wFMCommunicate request_size=10 [09:58:21]MH_SAM_APDU [09:58:21]CAPDU: 80 0D 02 02 05 92 4E 00 A2 D1 [09:58:21]Write to MH i2c: E2 0D 00 18 EB 80 0D 02 02 05 00 92 4E 00 A2 D1 00 00 DA [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 03 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 03 00 18 EB 00 90 00 77 [09:58:21]RAPDU: 90 00 [09:58:21]wFMCommunicate OK [09:58:21]wFMCommunicate request_size=4 [09:58:21]MH_SAM_APDU [09:58:21]CAPDU: 80 0D 03 02 [09:58:21]Write to MH i2c: E2 08 00 19 EB 80 0D 03 02 00 00 00 00 7F [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0B 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0B 00 19 EB 00 46 E4 33 09 3B 9C C1 2F 90 00 AD [09:58:21]RAPDU: 46 E4 33 09 3B 9C C1 2F 90 00 [09:58:21]wFMCommunicate OK [09:58:21]SAM_PROTO_SignData done [09:58:21]FM_MakeSignedData done [09:58:21]CreateOFDProtocolMessage [09:58:21]wFMCommunicate request_size=4 [09:58:21]MH_SAM_APDU [09:58:21]CAPDU: 80 11 00 00 [09:58:21]Write to MH i2c: E2 08 00 1A EB 80 11 00 00 00 00 00 00 7F [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 17 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 17 00 1A EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [09:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:58:21]wFMCommunicate OK [09:58:21]CreateOFDProtocolMessage done [09:58:21]OFDSenderStorePacket 191687 [09:58:21]StoreOFDPacket docnum=191687 [09:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 C4 07 01 73 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 49 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EC 02 00 35 04 06 00 97 92 4E 00 A2 D1 46 E4 33 09 3B 9C C1 2F [09:58:21]CheckFolder [09:58:21]dirname=/storage/ofd_packets [09:58:21]CheckFolder done [09:58:21]ProducePacketName [09:58:21]name=ofd_packets/00191687 [09:58:21]NVStorageSaveData ofd_packets/00191687 [09:58:21]File name is /storage/ofd_packets/00191687 [09:58:21]Write 301 bytes [09:58:21]NVStorageSaveData done [09:58:21]OFDSenderStorePacket done [09:58:21]KKMCreateOFDPacket done [09:58:21]NVStorageSaveData kkm_last_timestamp [09:58:21]File name is /storage/kkm_last_timestamp [09:58:21]Write 4 bytes [09:58:21]NVStorageSaveData done [09:58:21]ExternCall_PrintAddStr [09:58:21]wPrintStart [09:58:21]Write to MH i2c: 01 00 00 1B EB 06 [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 07 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: 01 07 00 1B EB 00 00 00 00 00 FF 0F 1B [09:58:21]RasterBufferAndPrint [09:58:21]line Счет N : (1)30989 [09:58:21]line ИНН: 02508201610067 [09:58:21]line Контрольно-Кассовый Чек [09:58:21]line ПРОДАЖА [09:58:21]line ТРК (МРК, ГНК) : 21 [09:58:21]line Товар: 2710124130 [09:58:21]line Аи-92-К-5 [09:58:21]line 7.480 * 66.90 [09:58:21]line = 500.41 [09:58:21]line НДС 12% НСП 1% [09:58:21]line > о реализуемом товаре [09:58:21]line ОКРУГЛЕНИЕ: -0.41 [09:58:21]line ИТОГО: 500.00 [09:58:21]line Внесено: 500.00 [09:58:21]line СДАЧА: 0.00 [09:58:21]line НСП 1% : 4.43 [09:58:21]line НДС 12% : 53.14 [09:58:21]line Наличными: 500.00 [09:58:21]line Безнал.: 0.00 [09:58:21]line Место: АЗС № 170 "Партнер Нефть" [09:58:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:58:21]line СНО: Общий режим [09:58:21]line Чек 50 26.10.2024 09:58 [09:58:21]line Смена: 541 ФФД: 1.0 [09:58:21]line ЗНМ: 0300000110 [09:58:21]line РНМ: 0000000000091776 [09:58:21]line Версия ККМ: 001 [09:58:21]line ФМ: 0000000000871754 [09:58:21]line ФД: 191687 [09:58:21]line ФПД: 166654629683921 [09:58:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095833&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191687&fm=166654629683921&tin=02508201610067®Number=0000000000091776&sum=50000 [09:58:21]OFD Sender: Processing packet 191687 [packets to send 75, broken 74] [09:58:21]ProducePacketName [09:58:21]name=ofd_packets/00191687 [09:58:21]OFD Sender: To server: pG, [09:58:21]CommunicateWithHost lk.salyk.kg:30040 [09:58:21]ConnectInit lk.salyk.kg [09:58:21]written 0, free lines is 4095 [09:58:21]Connected sock=10 [09:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 C4 07 01 73 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 49 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EC 02 00 35 04 06 00 97 92 4E 00 A2 D1 46 E4 33 09 3B 9C C1 2F [09:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 73 47 00 DF E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 EC 02 00 F4 03 04 00 15 62 1C 67 B6 04 01 00 00 33 4E 50 71 E8 C0 EB 00 [09:58:21]CommunicateWithHost err = 0 [09:58:21]CheckOFDResponse [09:58:21]1017 (14) - 77093643461234 [09:58:21]1041 (16) - 0000000000871754 [09:58:21]1040 (4) - 191687 [09:58:21]1012 (4) - 26.10.2024 03:29 [09:58:21]1206 (1) - 0 [09:58:21]OFD Sender: Remove packet 191687 [09:58:21]ProducePacketName [09:58:21]name=ofd_packets/00191687 [09:58:21]NVStorageDeleteData [09:58:22]Write to MH i2c: 01 00 00 46 EB 31 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 46 EB 00 00 00 00 00 B4 0C F8 [09:58:22]RasterBufferAndPrint [09:58:22]line [09:58:22]line [09:58:22]line [09:58:22]line [09:58:22]line [09:58:22]written 0, free lines is 3259 [09:58:22]MH_Cut [09:58:22]Write to MH i2c: D1 01 00 4D EB 01 0A [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: D1 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: D1 01 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: D1 01 00 4D EB 00 09 [09:58:22]Write to MH i2c: 01 00 00 4E EB 39 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]OFD Sender: No OFD packet to send [09:58:22]*** Cut start [09:58:22]*** Partial cut [09:58:22]*** CUTSNS_PIN = 1 [09:58:22]*** CUTSNS_PIN = 0 [09:58:23]*** Brake cut motor [09:58:23]Read from MH i2c: 01 [09:58:23]MH_I2C_Read... [09:58:23]*** Stop cut motor [09:58:23]*** Cut end [09:58:23]Read from MH i2c: 01 07 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 07 00 4E EB 00 00 00 00 00 FF 0F 4E [09:58:23]process_action close_receipt done [09:58:23]requested_data is exist [09:58:23]produce_requested_data [09:58:23]requested_item fm.sn is exist - process it [09:58:23]wFMCommunicate request_size=4 [09:58:23]MH_SAM_APDU [09:58:23]CAPDU: 80 11 00 00 [09:58:23]Write to MH i2c: E2 08 00 4F EB 80 11 00 00 00 00 00 00 B4 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:23]Read from MH i2c: E2 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 17 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 17 00 4F EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [09:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:58:23]wFMCommunicate OK [09:58:23]requested_item fd.num is exist - process it [09:58:23]SAM_PROTO_GetFieldsCounters [09:58:23]wFMCommunicate request_size=4 [09:58:23]MH_SAM_APDU [09:58:23]CAPDU: 80 13 00 00 [09:58:23]Write to MH i2c: E2 08 00 50 EB 80 13 00 00 00 00 00 00 B7 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:23]Read from MH i2c: E2 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 62 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 62 00 50 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:58:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:23]wFMCommunicate OK [09:58:23]SAM_PROTO_GetFieldsCounters done [09:58:23]requested_item shift.num is exist - process it [09:58:23]requested_item shift.opened is exist - process it [09:58:23]req_shift_opened [09:58:23]FM_GetShiftState [09:58:23]SAM_PROTO_GetShiftState [09:58:23]wFMCommunicate request_size=4 [09:58:23]MH_SAM_APDU [09:58:23]CAPDU: 80 13 01 00 [09:58:23]Write to MH i2c: E2 08 00 51 EB 80 13 01 00 00 00 00 00 B9 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:23]Read from MH i2c: E2 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 0E 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: E2 0E 00 51 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 32 [09:58:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:58:23]wFMCommunicate OK [09:58:23]SAM_PROTO_GetShiftState done [09:58:23]FM_GetShiftState done [09:58:23]req_shift_opened done [09:58:23]requested_item shift.open_date is exist - process it [09:58:23]req_shift_open_date [09:58:23]req_shift_open_date done [09:58:23]produce_requested_data done [09:58:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191687,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:58:23]process_action_free close_receipt [09:58:23]json_value_free [09:58:23]json_value_free done [09:58:23]process_json_proto returns [09:58:23]Send response to host [09:58:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191687,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:58:23]free response buf [09:58:23]execute_script done [09:58:23]execute_script returns [09:58:23]free content buf [09:58:23]Sock 9.Close socket [09:58:23]Sock 9.Thread stoped [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:35]accept exits with 8 [09:59:35]New connection [09:59:35]New thread 3066817892 created [09:59:35]Thread 3066961252 joined [09:59:35]Waiting for new connection... [09:59:35] Sock 8.Parse request [09:59:35]Sock 8.Check first char [09:59:35]Sock 8.First char is OK [09:59:35]request: POST /json_proto HTTP/1.0 [09:59:35]Method: POST [09:59:35]URL: /json_proto [09:59:35]Method is POST - this is cgi request [09:59:35]url: /json_proto [09:59:35]query_string will be loaded in cgi processing [09:59:35]execute_cgi json_proto POST (null) [09:59:35]execute_cgi path=json_proto method=POST [09:59:35]POST find Content-Length [09:59:35]Host: 172.17.63.131:8080 [09:59:35]Content-Length: 681 [09:59:35]Content-Type: application/json [09:59:35] [09:59:35]POST finish read [09:59:35]Found Content-Length = 681 [09:59:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:35]execute_script... [09:59:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:35]POST & json_proto [09:59:35]process_json_proto [09:59:35]json parsed OK: [09:59:35]protocol is kg_v1.0 [09:59:35]action value=close_receipt [09:59:35]process_action close_receipt [09:59:35]cmd_close_receipt [09:59:35]MH_GetDate [09:59:35]Write to MH i2c: F0 00 00 52 EB 2C [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 09 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: F0 09 00 52 EB 00 95 BD 1C 67 22 05 6E 64 03 [09:59:35]GetLastDocTimeStamp 1729936713 [09:59:35]current date 1729936789 [09:59:35]FM_GetShiftState [09:59:35]SAM_PROTO_GetShiftState [09:59:35]wFMCommunicate request_size=4 [09:59:35]MH_SAM_APDU [09:59:35]CAPDU: 80 13 01 00 [09:59:35]Write to MH i2c: E2 08 00 53 EB 80 13 01 00 00 00 00 00 BB [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:35]Read from MH i2c: E2 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: E2 0E 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: E2 0E 00 53 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 34 [09:59:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:59:35]wFMCommunicate OK [09:59:35]SAM_PROTO_GetShiftState done [09:59:35]FM_GetShiftState done [09:59:35]opened in 1729902770 [09:59:35]opened+sec_in_day 1729989170 [09:59:35]quantity*price = 120018 [09:59:35]sum+1 = 120020 [09:59:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 51 26.10.2024 09:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191688 ФПД: 181383873762788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191688&fm=181383873762788&tin=02508201610067®Number=0000000000091776&sum=120000 [09:59:36]StoreToDocumentArchive [09:59:36]shift 541 fd 191688 [09:59:36]save to /storage/0541/doc_00191688 [09:59:36]save last doc name /storage/0541/doc_00191688 to /storage/kkm_last_doc_name [09:59:36]save OK [09:59:36]Clear old archive folders... [09:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:36]tlvbuf is 01709220 [09:59:36]SAM_PROTO_ClearQueue [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 09 00 00 [09:59:36]Write to MH i2c: E2 08 00 60 EB 80 09 00 00 00 00 00 00 BD [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 60 EB 00 90 00 BF [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]SAM_PROTO_ClearQueue done [09:59:37]KKMCreateOFDPacket [09:59:37]OFDProtocolAddRootSTLVToBuf [09:59:37]FM_MakeSignedData [09:59:37]FM_MakeSignedData [09:59:37]SAM_PROTO_SignData [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 01 02 [09:59:37]Write to MH i2c: E2 08 00 61 EB 80 0D 01 02 00 00 00 00 C5 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 61 EB 00 90 00 C0 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=255 [09:59:37]MH_SAM_APDU [09:59: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 95 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EC 02 00 35 04 06 00 A4 [09:59:37]Write to MH i2c: E2 02 01 62 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 95 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EC 02 00 35 04 06 00 A4 00 00 E1 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 62 EB 00 90 00 C1 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=10 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 02 02 05 F7 B9 5D 15 E4 [09:59:37]Write to MH i2c: E2 0D 00 63 EB 80 0D 02 02 05 00 F7 B9 5D 15 E4 00 00 D8 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 63 EB 00 90 00 C2 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 03 02 [09:59:37]Write to MH i2c: E2 08 00 64 EB 80 0D 03 02 00 00 00 00 CA [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 64 EB 00 7F 63 54 97 C7 08 68 43 90 00 12 [09:59:37]RAPDU: 7F 63 54 97 C7 08 68 43 90 00 [09:59:37]wFMCommunicate OK [09:59:37]SAM_PROTO_SignData done [09:59:37]FM_MakeSignedData done [09:59:37]CreateOFDProtocolMessage [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 11 00 00 [09:59:37]Write to MH i2c: E2 08 00 65 EB 80 11 00 00 00 00 00 00 CA [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 65 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [09:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:37]wFMCommunicate OK [09:59:37]CreateOFDProtocolMessage done [09:59:37]OFDSenderStorePacket 191688 [09:59:37]StoreOFDPacket docnum=191688 [09:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 D5 07 01 DA ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 95 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EC 02 00 35 04 06 00 A4 F7 B9 5D 15 E4 7F 63 54 97 C7 08 68 43 [09:59:37]CheckFolder [09:59:37]dirname=/storage/ofd_packets [09:59:37]CheckFolder done [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00191688 [09:59:37]NVStorageSaveData ofd_packets/00191688 [09:59:37]File name is /storage/ofd_packets/00191688 [09:59:37]Write 301 bytes [09:59:37]NVStorageSaveData done [09:59:37]OFDSenderStorePacket done [09:59:37]KKMCreateOFDPacket done [09:59:37]NVStorageSaveData kkm_last_timestamp [09:59:37]File name is /storage/kkm_last_timestamp [09:59:37]Write 4 bytes [09:59:37]NVStorageSaveData done [09:59:37]ExternCall_PrintAddStr [09:59:37]wPrintStart [09:59:37]Write to MH i2c: 01 00 00 66 EB 51 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 66 EB 00 00 00 00 00 FF 0F 66 [09:59:37]RasterBufferAndPrint [09:59:37]line Счет N : (1)30990 [09:59:37]line ИНН: 02508201610067 [09:59:37]line Контрольно-Кассовый Чек [09:59:37]line ПРОДАЖА [09:59:37]line ТРК (МРК, ГНК) : 21 [09:59:37]line Товар: 2710124130 [09:59:37]line Аи-92-К-5 [09:59:37]line 17.940 * 66.90 [09:59:37]line = 1200.19 [09:59:37]line НДС 12% НСП 1% [09:59:37]line > о реализуемом товаре [09:59:37]line ОКРУГЛЕНИЕ: -0.19 [09:59:37]line ИТОГО: 1200.00 [09:59:37]line Внесено: 1200.00 [09:59:37]line СДАЧА: 0.00 [09:59:37]line НСП 1% : 10.62 [09:59:37]line НДС 12% : 127.45 [09:59:37]line Наличными: 1200.00 [09:59:37]line Безнал.: 0.00 [09:59:37]line Место: АЗС № 170 "Партнер Нефть" [09:59:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [09:59:37]line СНО: Общий режим [09:59:37]line Чек 51 26.10.2024 09:59 [09:59:37]line Смена: 541 ФФД: 1.0 [09:59:37]line ЗНМ: 0300000110 [09:59:37]line РНМ: 0000000000091776 [09:59:37]line Версия ККМ: 001 [09:59:37]line ФМ: 0000000000871754 [09:59:37]line ФД: 191688 [09:59:37]line ФПД: 181383873762788 [09:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T095949&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191688&fm=181383873762788&tin=02508201610067®Number=0000000000091776&sum=120000 [09:59:37]OFD Sender: Processing packet 191688 [packets to send 75, broken 74] [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00191688 [09:59:37]OFD Sender: To server: pG, [09:59:37]CommunicateWithHost lk.salyk.kg:30040 [09:59:37]ConnectInit lk.salyk.kg [09:59:37]written 0, free lines is 4095 [09:59:38]Connected sock=10 [09:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 60 D5 07 01 DA ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 95 BD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EC 02 00 35 04 06 00 A4 F7 B9 5D 15 E4 7F 63 54 97 C7 08 68 43 [09:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 F3 47 00 50 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 EC 02 00 F4 03 04 00 61 62 1C 67 B6 04 01 00 00 3B B7 5D FB 4A 5B 95 7B [09:59:38]CommunicateWithHost err = 0 [09:59:38]CheckOFDResponse [09:59:38]1017 (14) - 77093643461234 [09:59:38]1041 (16) - 0000000000871754 [09:59:38]1040 (4) - 191688 [09:59:38]1012 (4) - 26.10.2024 03:30 [09:59:38]1206 (1) - 0 [09:59:38]OFD Sender: Remove packet 191688 [09:59:38]ProducePacketName [09:59:38]name=ofd_packets/00191688 [09:59:38]NVStorageDeleteData [09:59:38]Write to MH i2c: 01 00 00 91 EB 7C [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 91 EB 00 00 00 00 00 B3 0C 42 [09:59:38]RasterBufferAndPrint [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]written 0, free lines is 3258 [09:59:38]MH_Cut [09:59:38]Write to MH i2c: D1 01 00 98 EB 01 55 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 01 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: D1 01 00 98 EB 00 54 [09:59:38]Write to MH i2c: 01 00 00 99 EB 84 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]OFD Sender: No OFD packet to send [09:59:39]*** Cut start [09:59:39]*** Partial cut [09:59:39]*** CUTSNS_PIN = 1 [09:59:39]*** CUTSNS_PIN = 0 [09:59:39]*** Brake cut motor [09:59:39]Read from MH i2c: 01 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: 01 07 00 [09:59:39]MH_I2C_Read... [09:59:39]*** Stop cut motor [09:59:39]*** Cut end [09:59:39]Read from MH i2c: 01 07 00 99 EB 00 00 00 00 00 FF 0F 99 [09:59:39]process_action close_receipt done [09:59:39]requested_data is exist [09:59:39]produce_requested_data [09:59:39]requested_item fm.sn is exist - process it [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 11 00 00 [09:59:39]Write to MH i2c: E2 08 00 9A EB 80 11 00 00 00 00 00 00 FF [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 17 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 17 00 9A EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [09:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [09:59:39]wFMCommunicate OK [09:59:39]requested_item fd.num is exist - process it [09:59:39]SAM_PROTO_GetFieldsCounters [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 13 00 00 [09:59:39]Write to MH i2c: E2 08 00 9B EB 80 13 00 00 00 00 00 00 02 [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 62 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 62 00 9B EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [09:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:39]wFMCommunicate OK [09:59:39]SAM_PROTO_GetFieldsCounters done [09:59:39]requested_item shift.num is exist - process it [09:59:39]requested_item shift.opened is exist - process it [09:59:39]req_shift_opened [09:59:39]FM_GetShiftState [09:59:39]SAM_PROTO_GetShiftState [09:59:39]wFMCommunicate request_size=4 [09:59:39]MH_SAM_APDU [09:59:39]CAPDU: 80 13 01 00 [09:59:39]Write to MH i2c: E2 08 00 9C EB 80 13 01 00 00 00 00 00 04 [09:59:39]Write i2c OK [09:59:39]MH_I2C_Read... [09:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:40]Read from MH i2c: E2 [09:59:40]MH_I2C_Read... [09:59:40]Read from MH i2c: E2 0E 00 [09:59:40]MH_I2C_Read... [09:59:40]Read from MH i2c: E2 0E 00 9C EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7D [09:59:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [09:59:40]wFMCommunicate OK [09:59:40]SAM_PROTO_GetShiftState done [09:59:40]FM_GetShiftState done [09:59:40]req_shift_opened done [09:59:40]requested_item shift.open_date is exist - process it [09:59:40]req_shift_open_date [09:59:40]req_shift_open_date done [09:59:40]produce_requested_data done [09:59:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191688,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [09:59:40]process_action_free close_receipt [09:59:40]json_value_free [09:59:40]json_value_free done [09:59:40]process_json_proto returns [09:59:40]Send response to host [09:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191688,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [09:59:40]free response buf [09:59:40]execute_script done [09:59:40]execute_script returns [09:59:40]free content buf [09:59:40]Sock 8.Close socket [09:59:40]Sock 8.Thread stoped [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [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:14]accept exits with 9 [10:02:14]New connection [10:02:14]New thread 3066961252 created [10:02:14]Thread 3066817892 joined [10:02:14]Waiting for new connection... [10:02:14] Sock 9.Parse request [10:02:14]Sock 9.Check first char [10:02:14]Sock 9.First char is OK [10:02:14]request: POST /json_proto HTTP/1.0 [10:02:14]Method: POST [10:02:14]URL: /json_proto [10:02:14]Method is POST - this is cgi request [10:02:14]url: /json_proto [10:02:14]query_string will be loaded in cgi processing [10:02:14]execute_cgi json_proto POST (null) [10:02:14]execute_cgi path=json_proto method=POST [10:02:14]POST find Content-Length [10:02:14]Host: 172.17.63.131:8080 [10:02:14]Content-Length: 681 [10:02:14]Content-Type: application/json [10:02:14] [10:02:14]POST finish read [10:02:14]Found Content-Length = 681 [10:02:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:14]execute_script... [10:02:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:14]POST & json_proto [10:02:14]process_json_proto [10:02:14]json parsed OK: [10:02:14]protocol is kg_v1.0 [10:02:14]action value=close_receipt [10:02:14]process_action close_receipt [10:02:14]cmd_close_receipt [10:02:14]MH_GetDate [10:02:14]Write to MH i2c: F0 00 00 9D EB 77 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 09 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: F0 09 00 9D EB 00 34 BE 1C 67 22 05 6E 64 EE [10:02:14]GetLastDocTimeStamp 1729936789 [10:02:14]current date 1729936948 [10:02:14]FM_GetShiftState [10:02:14]SAM_PROTO_GetShiftState [10:02:14]wFMCommunicate request_size=4 [10:02:14]MH_SAM_APDU [10:02:14]CAPDU: 80 13 01 00 [10:02:14]Write to MH i2c: E2 08 00 9E EB 80 13 01 00 00 00 00 00 06 [10:02:14]Write i2c OK [10:02:14]MH_I2C_Read... [10:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:14]Read from MH i2c: E2 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 [10:02:14]MH_I2C_Read... [10:02:14]Read from MH i2c: E2 0E 00 9E EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7F [10:02:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:02:14]wFMCommunicate OK [10:02:14]SAM_PROTO_GetShiftState done [10:02:14]FM_GetShiftState done [10:02:14]opened in 1729902770 [10:02:14]opened+sec_in_day 1729989170 [10:02:14]quantity*price = 100015 [10:02:14]sum+1 = 100017 [10:02:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 52 26.10.2024 10:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191689 ФПД: 158894883005846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191689&fm=158894883005846&tin=02508201610067®Number=0000000000091776&sum=100000 [10:02:15]StoreToDocumentArchive [10:02:15]shift 541 fd 191689 [10:02:15]save to /storage/0541/doc_00191689 [10:02:15]save last doc name /storage/0541/doc_00191689 to /storage/kkm_last_doc_name [10:02:15]save OK [10:02:15]Clear old archive folders... [10:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:15]tlvbuf is 015B0BD0 [10:02:15]SAM_PROTO_ClearQueue [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 09 00 00 [10:02:15]Write to MH i2c: E2 08 00 AB EB 80 09 00 00 00 00 00 00 08 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 AB EB 00 90 00 0A [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_ClearQueue done [10:02:15]KKMCreateOFDPacket [10:02:15]OFDProtocolAddRootSTLVToBuf [10:02:15]FM_MakeSignedData [10:02:15]FM_MakeSignedData [10:02:15]SAM_PROTO_SignData [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 01 02 [10:02:15]Write to MH i2c: E2 08 00 AC EB 80 0D 01 02 00 00 00 00 10 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 AC EB 00 90 00 0B [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=255 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 34 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EC 02 00 35 04 06 00 90 [10:02:15]Write to MH i2c: E2 02 01 AD EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 34 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EC 02 00 35 04 06 00 90 00 00 AD [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 AD EB 00 90 00 0C [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=10 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 02 02 05 83 99 0E E5 96 [10:02:15]Write to MH i2c: E2 0D 00 AE EB 80 0D 02 02 05 00 83 99 0E E5 96 00 00 C2 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 03 00 AE EB 00 90 00 0D [10:02:15]RAPDU: 90 00 [10:02:15]wFMCommunicate OK [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 0D 03 02 [10:02:15]Write to MH i2c: E2 08 00 AF EB 80 0D 03 02 00 00 00 00 15 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0B 00 AF EB 00 15 E5 5F 1B E5 1B 8F 82 90 00 9B [10:02:15]RAPDU: 15 E5 5F 1B E5 1B 8F 82 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_SignData done [10:02:15]FM_MakeSignedData done [10:02:15]CreateOFDProtocolMessage [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 11 00 00 [10:02:15]Write to MH i2c: E2 08 00 B0 EB 80 11 00 00 00 00 00 00 15 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 17 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 17 00 B0 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [10:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:16]wFMCommunicate OK [10:02:16]CreateOFDProtocolMessage done [10:02:16]OFDSenderStorePacket 191689 [10:02:16]StoreOFDPacket docnum=191689 [10:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D F1 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 34 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EC 02 00 35 04 06 00 90 83 99 0E E5 96 15 E5 5F 1B E5 1B 8F 82 [10:02:16]CheckFolder [10:02:16]dirname=/storage/ofd_packets [10:02:16]CheckFolder done [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00191689 [10:02:16]NVStorageSaveData ofd_packets/00191689 [10:02:16]File name is /storage/ofd_packets/00191689 [10:02:16]Write 301 bytes [10:02:16]NVStorageSaveData done [10:02:16]OFDSenderStorePacket done [10:02:16]KKMCreateOFDPacket done [10:02:16]NVStorageSaveData kkm_last_timestamp [10:02:16]File name is /storage/kkm_last_timestamp [10:02:16]Write 4 bytes [10:02:16]NVStorageSaveData done [10:02:16]ExternCall_PrintAddStr [10:02:16]wPrintStart [10:02:16]Write to MH i2c: 01 00 00 B1 EB 9C [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 B1 EB 00 00 00 00 00 FF 0F B1 [10:02:16]RasterBufferAndPrint [10:02:16]line Счет N : (1)30991 [10:02:16]line ИНН: 02508201610067 [10:02:16]line Контрольно-Кассовый Чек [10:02:16]line ПРОДАЖА [10:02:16]line ТРК (МРК, ГНК) : 12 [10:02:16]line Товар: 2710124130 [10:02:16]line Аи-92-К-5 [10:02:16]line 14.950 * 66.90 [10:02:16]line = 1000.16 [10:02:16]line НДС 12% НСП 1% [10:02:16]line > о реализуемом товаре [10:02:16]line ОКРУГЛЕНИЕ: -0.16 [10:02:16]line ИТОГО: 1000.00 [10:02:16]line Внесено: 1000.00 [10:02:16]line СДАЧА: 0.00 [10:02:16]line НСП 1% : 8.85 [10:02:16]line НДС 12% : 106.21 [10:02:16]line Наличными: 1000.00 [10:02:16]line Безнал.: 0.00 [10:02:16]line Место: АЗС № 170 "Партнер Нефть" [10:02:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:02:16]line СНО: Общий режим [10:02:16]line Чек 52 26.10.2024 10:02 [10:02:16]line Смена: 541 ФФД: 1.0 [10:02:16]line ЗНМ: 0300000110 [10:02:16]line РНМ: 0000000000091776 [10:02:16]line Версия ККМ: 001 [10:02:16]line ФМ: 0000000000871754 [10:02:16]line ФД: 191689 [10:02:16]line ФПД: 158894883005846 [10:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100228&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191689&fm=158894883005846&tin=02508201610067®Number=0000000000091776&sum=100000 [10:02:16]OFD Sender: Processing packet 191689 [packets to send 75, broken 74] [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00191689 [10:02:16]OFD Sender: To server: pG, [10:02:16]CommunicateWithHost lk.salyk.kg:30040 [10:02:16]ConnectInit lk.salyk.kg [10:02:16]written 0, free lines is 4095 [10:02:16]Connected sock=10 [10:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D F1 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 34 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EC 02 00 35 04 06 00 90 83 99 0E E5 96 15 E5 5F 1B E5 1B 8F 82 [10:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 26 AC 47 00 B2 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 EC 02 00 F4 03 04 00 FF 62 1C 67 B6 04 01 00 00 2B 49 30 A9 4B 9F A1 03 [10:02:16]CommunicateWithHost err = 0 [10:02:16]CheckOFDResponse [10:02:16]1017 (14) - 77093643461234 [10:02:16]1041 (16) - 0000000000871754 [10:02:16]1040 (4) - 191689 [10:02:16]1012 (4) - 26.10.2024 03:33 [10:02:16]1206 (1) - 0 [10:02:16]OFD Sender: Remove packet 191689 [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00191689 [10:02:16]NVStorageDeleteData [10:02:16]Write to MH i2c: 01 00 00 DC EB C7 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 DC EB 00 00 00 00 00 AA 0C 84 [10:02:16]RasterBufferAndPrint [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]line [10:02:16]written 0, free lines is 3248 [10:02:16]MH_Cut [10:02:16]Write to MH i2c: D1 01 00 E3 EB 01 A0 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 01 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: D1 01 00 E3 EB 00 9F [10:02:16]Write to MH i2c: 01 00 00 E4 EB CF [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:17]OFD Sender: No OFD packet to send [10:02:17]*** Cut start [10:02:17]*** Partial cut [10:02:17]*** CUTSNS_PIN = 1 [10:02:17]*** CUTSNS_PIN = 0 [10:02:17]*** Brake cut motor [10:02:18]Read from MH i2c: 01 [10:02:18]MH_I2C_Read... [10:02:18]*** Stop cut motor [10:02:18]*** Cut end [10:02:18]Read from MH i2c: 01 07 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 E4 EB 00 00 00 00 00 FF 0F E4 [10:02:18]process_action close_receipt done [10:02:18]requested_data is exist [10:02:18]produce_requested_data [10:02:18]requested_item fm.sn is exist - process it [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 11 00 00 [10:02:18]Write to MH i2c: E2 08 00 E5 EB 80 11 00 00 00 00 00 00 4A [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 17 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 17 00 E5 EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [10:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:02:18]wFMCommunicate OK [10:02:18]requested_item fd.num is exist - process it [10:02:18]SAM_PROTO_GetFieldsCounters [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 13 00 00 [10:02:18]Write to MH i2c: E2 08 00 E6 EB 80 13 00 00 00 00 00 00 4D [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 62 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 62 00 E6 EB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [10:02:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:18]wFMCommunicate OK [10:02:18]SAM_PROTO_GetFieldsCounters done [10:02:18]requested_item shift.num is exist - process it [10:02:18]requested_item shift.opened is exist - process it [10:02:18]req_shift_opened [10:02:18]FM_GetShiftState [10:02:18]SAM_PROTO_GetShiftState [10:02:18]wFMCommunicate request_size=4 [10:02:18]MH_SAM_APDU [10:02:18]CAPDU: 80 13 01 00 [10:02:18]Write to MH i2c: E2 08 00 E7 EB 80 13 01 00 00 00 00 00 4F [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:18]Read from MH i2c: E2 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: E2 0E 00 E7 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C8 [10:02:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:02:18]wFMCommunicate OK [10:02:18]SAM_PROTO_GetShiftState done [10:02:18]FM_GetShiftState done [10:02:18]req_shift_opened done [10:02:18]requested_item shift.open_date is exist - process it [10:02:18]req_shift_open_date [10:02:18]req_shift_open_date done [10:02:18]produce_requested_data done [10:02:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191689,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:02:18]process_action_free close_receipt [10:02:18]json_value_free [10:02:18]json_value_free done [10:02:18]process_json_proto returns [10:02:18]Send response to host [10:02:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191689,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:02:18]free response buf [10:02:18]execute_script done [10:02:18]execute_script returns [10:02:18]free content buf [10:02:18]Sock 9.Close socket [10:02:18]Sock 9.Thread stoped [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]accept exits with 8 [10:04:37]New connection [10:04:37]New thread 3066817892 created [10:04:37]Thread 3066961252 joined [10:04:37]Waiting for new connection... [10:04:37] Sock 8.Parse request [10:04:37]Sock 8.Check first char [10:04:37]Sock 8.First char is OK [10:04:37]request: POST /json_proto HTTP/1.0 [10:04:37]Method: POST [10:04:37]URL: /json_proto [10:04:37]Method is POST - this is cgi request [10:04:37]url: /json_proto [10:04:37]query_string will be loaded in cgi processing [10:04:37]execute_cgi json_proto POST (null) [10:04:37]execute_cgi path=json_proto method=POST [10:04:37]POST find Content-Length [10:04:37]Host: 172.17.63.131:8080 [10:04:37]Content-Length: 681 [10:04:37]Content-Type: application/json [10:04:37] [10:04:37]POST finish read [10:04:37]Found Content-Length = 681 [10:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:37]execute_script... [10:04: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)30992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:37]POST & json_proto [10:04:37]process_json_proto [10:04:37]json parsed OK: [10:04:37]protocol is kg_v1.0 [10:04:37]action value=close_receipt [10:04:37]process_action close_receipt [10:04:37]cmd_close_receipt [10:04:37]MH_GetDate [10:04:37]Write to MH i2c: F0 00 00 E8 EB C2 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: F0 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: F0 09 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: F0 09 00 E8 EB 00 C3 BE 1C 67 22 05 6E 64 C8 [10:04:37]GetLastDocTimeStamp 1729936948 [10:04:37]current date 1729937091 [10:04:37]FM_GetShiftState [10:04:37]SAM_PROTO_GetShiftState [10:04:37]wFMCommunicate request_size=4 [10:04:37]MH_SAM_APDU [10:04:37]CAPDU: 80 13 01 00 [10:04:37]Write to MH i2c: E2 08 00 E9 EB 80 13 01 00 00 00 00 00 51 [10:04:37]Write i2c OK [10:04:37]MH_I2C_Read... [10:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:37]Read from MH i2c: E2 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0E 00 [10:04:37]MH_I2C_Read... [10:04:37]Read from MH i2c: E2 0E 00 E9 EB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CA [10:04:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:04:37]wFMCommunicate OK [10:04:37]SAM_PROTO_GetShiftState done [10:04:37]FM_GetShiftState done [10:04:37]opened in 1729902770 [10:04:37]opened+sec_in_day 1729989170 [10:04:37]quantity*price = 100015 [10:04:37]sum+1 = 100017 [10:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 53 26.10.2024 10:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191690 ФПД: 192767099263046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191690&fm=192767099263046&tin=02508201610067®Number=0000000000091776&sum=100000 [10:04:38]StoreToDocumentArchive [10:04:38]shift 541 fd 191690 [10:04:38]save to /storage/0541/doc_00191690 [10:04:38]save last doc name /storage/0541/doc_00191690 to /storage/kkm_last_doc_name [10:04:38]save OK [10:04:38]Clear old archive folders... [10:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:38]tlvbuf is 01789D10 [10:04:38]SAM_PROTO_ClearQueue [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 09 00 00 [10:04:38]Write to MH i2c: E2 08 00 F6 EB 80 09 00 00 00 00 00 00 53 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 F6 EB 00 90 00 55 [10:04:38]RAPDU: 90 00 [10:04:38]wFMCommunicate OK [10:04:38]SAM_PROTO_ClearQueue done [10:04:38]KKMCreateOFDPacket [10:04:38]OFDProtocolAddRootSTLVToBuf [10:04:38]FM_MakeSignedData [10:04:38]FM_MakeSignedData [10:04:38]SAM_PROTO_SignData [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 0D 01 02 [10:04:38]Write to MH i2c: E2 08 00 F7 EB 80 0D 01 02 00 00 00 00 5B [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 F7 EB 00 90 00 56 [10:04:38]RAPDU: 90 00 [10:04:38]wFMCommunicate OK [10:04:38]wFMCommunicate request_size=255 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C3 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EC 02 00 35 04 06 00 AF [10:04:38]Write to MH i2c: E2 02 01 F8 EB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C3 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EC 02 00 35 04 06 00 AF 00 00 A8 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 F8 EB 00 90 00 57 [10:04:38]RAPDU: 90 00 [10:04:38]wFMCommunicate OK [10:04:38]wFMCommunicate request_size=10 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 0D 02 02 05 52 16 79 D8 46 [10:04:38]Write to MH i2c: E2 0D 00 F9 EB 80 0D 02 02 05 00 52 16 79 D8 46 00 00 67 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 03 00 F9 EB 00 90 00 58 [10:04:38]RAPDU: 90 00 [10:04:38]wFMCommunicate OK [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 0D 03 02 [10:04:38]Write to MH i2c: E2 08 00 FA EB 80 0D 03 02 00 00 00 00 60 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 0B 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 0B 00 FA EB 00 83 22 C5 4D 1A 45 1B 6C 90 00 FE [10:04:38]RAPDU: 83 22 C5 4D 1A 45 1B 6C 90 00 [10:04:38]wFMCommunicate OK [10:04:38]SAM_PROTO_SignData done [10:04:38]FM_MakeSignedData done [10:04:38]CreateOFDProtocolMessage [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 11 00 00 [10:04:38]Write to MH i2c: E2 08 00 FB EB 80 11 00 00 00 00 00 00 60 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 17 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 17 00 FB EB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [10:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:38]wFMCommunicate OK [10:04:38]CreateOFDProtocolMessage done [10:04:38]OFDSenderStorePacket 191690 [10:04:38]StoreOFDPacket docnum=191690 [10:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 C9 07 01 9A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C3 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EC 02 00 35 04 06 00 AF 52 16 79 D8 46 83 22 C5 4D 1A 45 1B 6C [10:04:38]CheckFolder [10:04:38]dirname=/storage/ofd_packets [10:04:38]CheckFolder done [10:04:38]ProducePacketName [10:04:38]name=ofd_packets/00191690 [10:04:38]NVStorageSaveData ofd_packets/00191690 [10:04:38]File name is /storage/ofd_packets/00191690 [10:04:38]Write 301 bytes [10:04:38]NVStorageSaveData done [10:04:38]OFDSenderStorePacket done [10:04:38]KKMCreateOFDPacket done [10:04:38]NVStorageSaveData kkm_last_timestamp [10:04:38]File name is /storage/kkm_last_timestamp [10:04:38]Write 4 bytes [10:04:38]NVStorageSaveData done [10:04:38]ExternCall_PrintAddStr [10:04:38]wPrintStart [10:04:38]Write to MH i2c: 01 00 00 FC EB E7 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: 01 07 00 FC EB 00 00 00 00 00 FF 0F FC [10:04:38]RasterBufferAndPrint [10:04:38]line Счет N : (1)30992 [10:04:38]line ИНН: 02508201610067 [10:04:38]line Контрольно-Кассовый Чек [10:04:38]line ПРОДАЖА [10:04:38]line ТРК (МРК, ГНК) : 12 [10:04:38]line Товар: 2710124130 [10:04:38]line Аи-92-К-5 [10:04:38]line 14.950 * 66.90 [10:04:38]line = 1000.16 [10:04:38]line НДС 12% НСП 1% [10:04:38]line > о реализуемом товаре [10:04:38]line ОКРУГЛЕНИЕ: -0.16 [10:04:38]line ИТОГО: 1000.00 [10:04:38]line Внесено: 1000.00 [10:04:38]line СДАЧА: 0.00 [10:04:38]line НСП 1% : 8.85 [10:04:38]line НДС 12% : 106.21 [10:04:38]line Наличными: 1000.00 [10:04:38]line Безнал.: 0.00 [10:04:38]line Место: АЗС № 170 "Партнер Нефть" [10:04:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:04:38]line СНО: Общий режим [10:04:38]line Чек 53 26.10.2024 10:04 [10:04:38]line Смена: 541 ФФД: 1.0 [10:04:38]line ЗНМ: 0300000110 [10:04:38]line РНМ: 0000000000091776 [10:04:38]line Версия ККМ: 001 [10:04:38]line ФМ: 0000000000871754 [10:04:38]line ФД: 191690 [10:04:38]line ФПД: 192767099263046 [10:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100451&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191690&fm=192767099263046&tin=02508201610067®Number=0000000000091776&sum=100000 [10:04:39]OFD Sender: Processing packet 191690 [packets to send 75, broken 74] [10:04:39]ProducePacketName [10:04:39]name=ofd_packets/00191690 [10:04:39]OFD Sender: To server: pG, [10:04:39]CommunicateWithHost lk.salyk.kg:30040 [10:04:39]ConnectInit lk.salyk.kg [10:04:39]written 0, free lines is 4095 [10:04:39]Connected sock=9 [10:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D5 C9 07 01 9A 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 C3 BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EC 02 00 35 04 06 00 AF 52 16 79 D8 46 83 22 C5 4D 1A 45 1B 6C [10:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 45 47 00 37 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA EC 02 00 F4 03 04 00 8E 63 1C 67 B6 04 01 00 00 FB B2 27 09 E5 8F 1D CB [10:04:39]CommunicateWithHost err = 0 [10:04:39]CheckOFDResponse [10:04:39]1017 (14) - 77093643461234 [10:04:39]1041 (16) - 0000000000871754 [10:04:39]1040 (4) - 191690 [10:04:39]1012 (4) - 26.10.2024 03:35 [10:04:39]1206 (1) - 0 [10:04:39]OFD Sender: Remove packet 191690 [10:04:39]ProducePacketName [10:04:39]name=ofd_packets/00191690 [10:04:39]NVStorageDeleteData [10:04:39]Write to MH i2c: 01 00 00 27 EC 13 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: 01 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: 01 07 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: 01 07 00 27 EC 00 00 00 00 00 AB 0C D1 [10:04:39]RasterBufferAndPrint [10:04:39]line [10:04:39]line [10:04:39]line [10:04:39]line [10:04:39]line [10:04:39]written 0, free lines is 3252 [10:04:39]MH_Cut [10:04:39]Write to MH i2c: D1 01 00 2E EC 01 EC [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: D1 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: D1 01 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: D1 01 00 2E EC 00 EB [10:04:39]Write to MH i2c: 01 00 00 2F EC 1B [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]OFD Sender: No OFD packet to send [10:04:40]*** Cut start [10:04:40]*** Partial cut [10:04:40]*** CUTSNS_PIN = 1 [10:04:40]*** CUTSNS_PIN = 0 [10:04:40]*** Brake cut motor [10:04:41]Read from MH i2c: 01 [10:04:41]MH_I2C_Read... [10:04:41]*** Stop cut motor [10:04:41]*** Cut end [10:04:41]Read from MH i2c: 01 07 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: 01 07 00 2F EC 00 00 00 00 00 FF 0F 30 [10:04:41]process_action close_receipt done [10:04:41]requested_data is exist [10:04:41]produce_requested_data [10:04:41]requested_item fm.sn is exist - process it [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 11 00 00 [10:04:41]Write to MH i2c: E2 08 00 30 EC 80 11 00 00 00 00 00 00 96 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:41]Read from MH i2c: E2 17 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 17 00 30 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [10:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:04:41]wFMCommunicate OK [10:04:41]requested_item fd.num is exist - process it [10:04:41]SAM_PROTO_GetFieldsCounters [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 13 00 00 [10:04:41]Write to MH i2c: E2 08 00 31 EC 80 13 00 00 00 00 00 00 99 [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 62 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 62 00 31 EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [10:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:41]wFMCommunicate OK [10:04:41]SAM_PROTO_GetFieldsCounters done [10:04:41]requested_item shift.num is exist - process it [10:04:41]requested_item shift.opened is exist - process it [10:04:41]req_shift_opened [10:04:41]FM_GetShiftState [10:04:41]SAM_PROTO_GetShiftState [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 13 01 00 [10:04:41]Write to MH i2c: E2 08 00 32 EC 80 13 01 00 00 00 00 00 9B [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 0E 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 0E 00 32 EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 14 [10:04:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:04:41]wFMCommunicate OK [10:04:41]SAM_PROTO_GetShiftState done [10:04:41]FM_GetShiftState done [10:04:41]req_shift_opened done [10:04:41]requested_item shift.open_date is exist - process it [10:04:41]req_shift_open_date [10:04:41]req_shift_open_date done [10:04:41]produce_requested_data done [10:04:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191690,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:04:41]process_action_free close_receipt [10:04:41]json_value_free [10:04:41]json_value_free done [10:04:41]process_json_proto returns [10:04:41]Send response to host [10:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191690,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:04:41]free response buf [10:04:41]execute_script done [10:04:41]execute_script returns [10:04:41]free content buf [10:04:41]Sock 8.Close socket [10:04:41]Sock 8.Thread stoped [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:04]accept exits with 10 [10:05:04]New connection [10:05:04]New thread 3066961252 created [10:05:04]Thread 3066817892 joined [10:05:04]Waiting for new connection... [10:05:04] Sock 10.Parse request [10:05:04]Sock 10.Check first char [10:05:04]Sock 10.First char is OK [10:05:04]request: POST /json_proto HTTP/1.0 [10:05:04]Method: POST [10:05:04]URL: /json_proto [10:05:04]Method is POST - this is cgi request [10:05:04]url: /json_proto [10:05:04]query_string will be loaded in cgi processing [10:05:04]execute_cgi json_proto POST (null) [10:05:04]execute_cgi path=json_proto method=POST [10:05:04]POST find Content-Length [10:05:04]Host: 172.17.63.131:8080 [10:05:04]Content-Length: 676 [10:05:04]Content-Type: application/json [10:05:04] [10:05:04]POST finish read [10:05:04]Found Content-Length = 676 [10:05:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:04]execute_script... [10:05: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)30993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:04]POST & json_proto [10:05:04]process_json_proto [10:05:04]json parsed OK: [10:05:04]protocol is kg_v1.0 [10:05:04]action value=close_receipt [10:05:04]process_action close_receipt [10:05:04]cmd_close_receipt [10:05:04]MH_GetDate [10:05:04]Write to MH i2c: F0 00 00 33 EC 0E [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: F0 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: F0 09 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: F0 09 00 33 EC 00 DE BE 1C 67 22 05 6E 64 2F [10:05:04]GetLastDocTimeStamp 1729937091 [10:05:04]current date 1729937118 [10:05:04]FM_GetShiftState [10:05:04]SAM_PROTO_GetShiftState [10:05:04]wFMCommunicate request_size=4 [10:05:04]MH_SAM_APDU [10:05:04]CAPDU: 80 13 01 00 [10:05:04]Write to MH i2c: E2 08 00 34 EC 80 13 01 00 00 00 00 00 9D [10:05:04]Write i2c OK [10:05:04]MH_I2C_Read... [10:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:04]Read from MH i2c: E2 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 [10:05:04]MH_I2C_Read... [10:05:04]Read from MH i2c: E2 0E 00 34 EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 16 [10:05:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:05:04]wFMCommunicate OK [10:05:04]SAM_PROTO_GetShiftState done [10:05:04]FM_GetShiftState done [10:05:04]opened in 1729902770 [10:05:04]opened+sec_in_day 1729989170 [10:05:04]quantity*price = 40006 [10:05:04]sum+1 = 40007 [10:05:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 54 26.10.2024 10:05 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191691 ФПД: 28956861814288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100518&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191691&fm=28956861814288&tin=02508201610067®Number=0000000000091776&sum=40000 [10:05:05]StoreToDocumentArchive [10:05:05]shift 541 fd 191691 [10:05:05]save to /storage/0541/doc_00191691 [10:05:05]save last doc name /storage/0541/doc_00191691 to /storage/kkm_last_doc_name [10:05:05]save OK [10:05:05]Clear old archive folders... [10:05:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:05]tlvbuf is 0160B210 [10:05:05]SAM_PROTO_ClearQueue [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 09 00 00 [10:05:05]Write to MH i2c: E2 08 00 41 EC 80 09 00 00 00 00 00 00 9F [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 41 EC 00 90 00 A1 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]SAM_PROTO_ClearQueue done [10:05:05]KKMCreateOFDPacket [10:05:05]OFDProtocolAddRootSTLVToBuf [10:05:05]FM_MakeSignedData [10:05:05]FM_MakeSignedData [10:05:05]SAM_PROTO_SignData [10:05:05]wFMCommunicate request_size=4 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 01 02 [10:05:05]Write to MH i2c: E2 08 00 42 EC 80 0D 01 02 00 00 00 00 A7 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 42 EC 00 90 00 A2 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]wFMCommunicate request_size=255 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EC 02 00 35 04 06 00 1A [10:05:05]Write to MH i2c: E2 02 01 43 EC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EC 02 00 35 04 06 00 1A 00 00 51 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:05]Read from MH i2c: E2 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 [10:05:05]MH_I2C_Read... [10:05:05]Read from MH i2c: E2 03 00 43 EC 00 90 00 A3 [10:05:05]RAPDU: 90 00 [10:05:05]wFMCommunicate OK [10:05:05]wFMCommunicate request_size=10 [10:05:05]MH_SAM_APDU [10:05:05]CAPDU: 80 0D 02 02 05 56 0B 76 56 10 [10:05:05]Write to MH i2c: E2 0D 00 44 EC 80 0D 02 02 05 00 56 0B 76 56 10 00 00 F1 [10:05:05]Write i2c OK [10:05:05]MH_I2C_Read... [10:05:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 03 00 44 EC 00 90 00 A4 [10:05:06]RAPDU: 90 00 [10:05:06]wFMCommunicate OK [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 0D 03 02 [10:05:06]Write to MH i2c: E2 08 00 45 EC 80 0D 03 02 00 00 00 00 AC [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 0B 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 0B 00 45 EC 00 00 43 70 04 6D E0 75 26 90 00 4C [10:05:06]RAPDU: 00 43 70 04 6D E0 75 26 90 00 [10:05:06]wFMCommunicate OK [10:05:06]SAM_PROTO_SignData done [10:05:06]FM_MakeSignedData done [10:05:06]CreateOFDProtocolMessage [10:05:06]wFMCommunicate request_size=4 [10:05:06]MH_SAM_APDU [10:05:06]CAPDU: 80 11 00 00 [10:05:06]Write to MH i2c: E2 08 00 46 EC 80 11 00 00 00 00 00 00 AC [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:06]Read from MH i2c: E2 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 17 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: E2 17 00 46 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [10:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:05:06]wFMCommunicate OK [10:05:06]CreateOFDProtocolMessage done [10:05:06]OFDSenderStorePacket 191691 [10:05:06]StoreOFDPacket docnum=191691 [10:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 71 07 01 34 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EC 02 00 35 04 06 00 1A 56 0B 76 56 10 00 43 70 04 6D E0 75 26 [10:05:06]CheckFolder [10:05:06]dirname=/storage/ofd_packets [10:05:06]CheckFolder done [10:05:06]ProducePacketName [10:05:06]name=ofd_packets/00191691 [10:05:06]NVStorageSaveData ofd_packets/00191691 [10:05:06]File name is /storage/ofd_packets/00191691 [10:05:06]Write 301 bytes [10:05:06]NVStorageSaveData done [10:05:06]OFDSenderStorePacket done [10:05:06]KKMCreateOFDPacket done [10:05:06]NVStorageSaveData kkm_last_timestamp [10:05:06]File name is /storage/kkm_last_timestamp [10:05:06]Write 4 bytes [10:05:06]NVStorageSaveData done [10:05:06]ExternCall_PrintAddStr [10:05:06]wPrintStart [10:05:06]Write to MH i2c: 01 00 00 47 EC 33 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 47 EC 00 00 00 00 00 FF 0F 48 [10:05:06]RasterBufferAndPrint [10:05:06]line Счет N : (1)30993 [10:05:06]line ИНН: 02508201610067 [10:05:06]line Контрольно-Кассовый Чек [10:05:06]line ПРОДАЖА [10:05:06]line ТРК (МРК, ГНК) : 21 [10:05:06]line Товар: 2710124130 [10:05:06]line Аи-92-К-5 [10:05:06]line 5.980 * 66.90 [10:05:06]line = 400.06 [10:05:06]line НДС 12% НСП 1% [10:05:06]line > о реализуемом товаре [10:05:06]line ОКРУГЛЕНИЕ: -0.06 [10:05:06]line ИТОГО: 400.00 [10:05:06]line Внесено: 400.00 [10:05:06]line СДАЧА: 0.00 [10:05:06]line НСП 1% : 3.54 [10:05:06]line НДС 12% : 42.48 [10:05:06]line Наличными: 400.00 [10:05:06]line Безнал.: 0.00 [10:05:06]line Место: АЗС № 170 "Партнер Нефть" [10:05:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:05:06]line СНО: Общий режим [10:05:06]line Чек 54 26.10.2024 10:05 [10:05:06]line Смена: 541 ФФД: 1.0 [10:05:06]line ЗНМ: 0300000110 [10:05:06]line РНМ: 0000000000091776 [10:05:06]line Версия ККМ: 001 [10:05:06]line ФМ: 0000000000871754 [10:05:06]line ФД: 191691 [10:05:06]line ФПД: 28956861814288 [10:05:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T100518&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191691&fm=28956861814288&tin=02508201610067®Number=0000000000091776&sum=40000 [10:05:06]OFD Sender: Processing packet 191691 [packets to send 75, broken 74] [10:05:06]ProducePacketName [10:05:06]name=ofd_packets/00191691 [10:05:06]OFD Sender: To server: pG, [10:05:06]CommunicateWithHost lk.salyk.kg:30040 [10:05:06]ConnectInit lk.salyk.kg [10:05:06]written 0, free lines is 4095 [10:05:06]Connected sock=9 [10:05:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 71 07 01 34 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 DE BE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EC 02 00 35 04 06 00 1A 56 0B 76 56 10 00 43 70 04 6D E0 75 26 [10:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC 00 47 00 1E DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB EC 02 00 F4 03 04 00 A9 63 1C 67 B6 04 01 00 00 15 DB 13 A4 2A F6 EC F7 [10:05:06]CommunicateWithHost err = 0 [10:05:06]CheckOFDResponse [10:05:06]1017 (14) - 77093643461234 [10:05:06]1041 (16) - 0000000000871754 [10:05:06]1040 (4) - 191691 [10:05:06]1012 (4) - 26.10.2024 03:36 [10:05:06]1206 (1) - 0 [10:05:06]OFD Sender: Remove packet 191691 [10:05:06]ProducePacketName [10:05:06]name=ofd_packets/00191691 [10:05:06]NVStorageDeleteData [10:05:06]Write to MH i2c: 01 00 00 72 EC 5E [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: 01 07 00 72 EC 00 00 00 00 00 AE 0C 1F [10:05:06]RasterBufferAndPrint [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]line [10:05:06]written 0, free lines is 3253 [10:05:06]MH_Cut [10:05:06]Write to MH i2c: D1 01 00 79 EC 01 37 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 01 00 [10:05:06]MH_I2C_Read... [10:05:06]Read from MH i2c: D1 01 00 79 EC 00 36 [10:05:06]Write to MH i2c: 01 00 00 7A EC 66 [10:05:06]Write i2c OK [10:05:06]MH_I2C_Read... [10:05:07]OFD Sender: No OFD packet to send [10:05:07]*** Cut start [10:05:07]*** Partial cut [10:05:07]*** CUTSNS_PIN = 1 [10:05:07]*** CUTSNS_PIN = 0 [10:05:08]*** Brake cut motor [10:05:08]Read from MH i2c: 01 [10:05:08]MH_I2C_Read... [10:05:08]*** Stop cut motor [10:05:08]*** Cut end [10:05:08]Read from MH i2c: 01 07 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: 01 07 00 7A EC 00 00 00 00 00 FF 0F 7B [10:05:08]process_action close_receipt done [10:05:08]requested_data is exist [10:05:08]produce_requested_data [10:05:08]requested_item fm.sn is exist - process it [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 11 00 00 [10:05:08]Write to MH i2c: E2 08 00 7B EC 80 11 00 00 00 00 00 00 E1 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 17 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 17 00 7B EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [10:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:05:08]wFMCommunicate OK [10:05:08]requested_item fd.num is exist - process it [10:05:08]SAM_PROTO_GetFieldsCounters [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 13 00 00 [10:05:08]Write to MH i2c: E2 08 00 7C EC 80 13 00 00 00 00 00 00 E4 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 62 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 62 00 7C EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [10:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_GetFieldsCounters done [10:05:08]requested_item shift.num is exist - process it [10:05:08]requested_item shift.opened is exist - process it [10:05:08]req_shift_opened [10:05:08]FM_GetShiftState [10:05:08]SAM_PROTO_GetShiftState [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 13 01 00 [10:05:08]Write to MH i2c: E2 08 00 7D EC 80 13 01 00 00 00 00 00 E6 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 0E 00 7D EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5F [10:05:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_GetShiftState done [10:05:08]FM_GetShiftState done [10:05:08]req_shift_opened done [10:05:08]requested_item shift.open_date is exist - process it [10:05:08]req_shift_open_date [10:05:08]req_shift_open_date done [10:05:08]produce_requested_data done [10:05:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191691,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:05:08]process_action_free close_receipt [10:05:08]json_value_free [10:05:08]json_value_free done [10:05:08]process_json_proto returns [10:05:08]Send response to host [10:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191691,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:05:08]free response buf [10:05:08]execute_script done [10:05:08]execute_script returns [10:05:08]free content buf [10:05:08]Sock 10.Close socket [10:05:08]Sock 10.Thread stoped [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:54]accept exits with 8 [10:09:54]New connection [10:09:54]New thread 3066817892 created [10:09:54]Thread 3066961252 joined [10:09:54]Waiting for new connection... [10:09:54] Sock 8.Parse request [10:09:54]Sock 8.Check first char [10:09:54]Sock 8.First char is OK [10:09:54]request: POST /json_proto HTTP/1.0 [10:09:54]Method: POST [10:09:54]URL: /json_proto [10:09:54]Method is POST - this is cgi request [10:09:54]url: /json_proto [10:09:54]query_string will be loaded in cgi processing [10:09:54]execute_cgi json_proto POST (null) [10:09:54]execute_cgi path=json_proto method=POST [10:09:54]POST find Content-Length [10:09:54]Host: 172.17.63.131:8080 [10:09:54]Content-Length: 676 [10:09:54]Content-Type: application/json [10:09:54] [10:09:54]POST finish read [10:09:54]Found Content-Length = 676 [10:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]execute_script... [10:09: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)30994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]POST & json_proto [10:09:54]process_json_proto [10:09:54]json parsed OK: [10:09:54]protocol is kg_v1.0 [10:09:54]action value=close_receipt [10:09:54]process_action close_receipt [10:09:54]cmd_close_receipt [10:09:54]MH_GetDate [10:09:54]Write to MH i2c: F0 00 00 7E EC 59 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 7E EC 00 00 C0 1C 67 22 05 6E 64 9E [10:09:54]GetLastDocTimeStamp 1729937118 [10:09:54]current date 1729937408 [10:09:54]FM_GetShiftState [10:09:54]SAM_PROTO_GetShiftState [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 13 01 00 [10:09:54]Write to MH i2c: E2 08 00 7F EC 80 13 01 00 00 00 00 00 E8 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 7F EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 61 [10:09:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_GetShiftState done [10:09:54]FM_GetShiftState done [10:09:54]opened in 1729902770 [10:09:54]opened+sec_in_day 1729989170 [10:09:54]quantity*price = 50041 [10:09:54]sum+1 = 50042 [10:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 55 26.10.2024 10:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191692 ФПД: 268111088032741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191692&fm=268111088032741&tin=02508201610067®Number=0000000000091776&sum=50000 [10:09:55]StoreToDocumentArchive [10:09:55]shift 541 fd 191692 [10:09:55]save to /storage/0541/doc_00191692 [10:09:55]save last doc name /storage/0541/doc_00191692 to /storage/kkm_last_doc_name [10:09:55]save OK [10:09:55]Clear old archive folders... [10:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:56]tlvbuf is 015A9670 [10:09:56]SAM_PROTO_ClearQueue [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 09 00 00 [10:09:56]Write to MH i2c: E2 08 00 8C EC 80 09 00 00 00 00 00 00 EA [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 8C EC 00 90 00 EC [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_ClearQueue done [10:09:56]KKMCreateOFDPacket [10:09:56]OFDProtocolAddRootSTLVToBuf [10:09:56]FM_MakeSignedData [10:09:56]FM_MakeSignedData [10:09:56]SAM_PROTO_SignData [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 01 02 [10:09:56]Write to MH i2c: E2 08 00 8D EC 80 0D 01 02 00 00 00 00 F2 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 8D EC 00 90 00 ED [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=255 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 C0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EC 02 00 35 04 06 00 F3 [10:09:56]Write to MH i2c: E2 02 01 8E EC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 C0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EC 02 00 35 04 06 00 F3 00 00 CC [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 8E EC 00 90 00 EE [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=10 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 02 02 05 D8 7A 29 9B E5 [10:09:56]Write to MH i2c: E2 0D 00 8F EC 80 0D 02 02 05 00 D8 7A 29 9B E5 00 00 FA [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 03 00 8F EC 00 90 00 EF [10:09:56]RAPDU: 90 00 [10:09:56]wFMCommunicate OK [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 0D 03 02 [10:09:56]Write to MH i2c: E2 08 00 90 EC 80 0D 03 02 00 00 00 00 F7 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0B 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 0B 00 90 EC 00 F3 6B 14 52 3E 2C 76 DE 90 00 7A [10:09:56]RAPDU: F3 6B 14 52 3E 2C 76 DE 90 00 [10:09:56]wFMCommunicate OK [10:09:56]SAM_PROTO_SignData done [10:09:56]FM_MakeSignedData done [10:09:56]CreateOFDProtocolMessage [10:09:56]wFMCommunicate request_size=4 [10:09:56]MH_SAM_APDU [10:09:56]CAPDU: 80 11 00 00 [10:09:56]Write to MH i2c: E2 08 00 91 EC 80 11 00 00 00 00 00 00 F7 [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:56]Read from MH i2c: E2 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: E2 17 00 91 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [10:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:09:56]wFMCommunicate OK [10:09:56]CreateOFDProtocolMessage done [10:09:56]OFDSenderStorePacket 191692 [10:09:56]StoreOFDPacket docnum=191692 [10:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 9A 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 C0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EC 02 00 35 04 06 00 F3 D8 7A 29 9B E5 F3 6B 14 52 3E 2C 76 DE [10:09:56]CheckFolder [10:09:56]dirname=/storage/ofd_packets [10:09:56]CheckFolder done [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00191692 [10:09:56]NVStorageSaveData ofd_packets/00191692 [10:09:56]File name is /storage/ofd_packets/00191692 [10:09:56]Write 301 bytes [10:09:56]NVStorageSaveData done [10:09:56]OFDSenderStorePacket done [10:09:56]KKMCreateOFDPacket done [10:09:56]NVStorageSaveData kkm_last_timestamp [10:09:56]File name is /storage/kkm_last_timestamp [10:09:56]Write 4 bytes [10:09:56]NVStorageSaveData done [10:09:56]ExternCall_PrintAddStr [10:09:56]wPrintStart [10:09:56]Write to MH i2c: 01 00 00 92 EC 7E [10:09:56]Write i2c OK [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 [10:09:56]MH_I2C_Read... [10:09:56]Read from MH i2c: 01 07 00 92 EC 00 00 00 00 00 FF 0F 93 [10:09:56]RasterBufferAndPrint [10:09:56]line Счет N : (1)30994 [10:09:56]line ИНН: 02508201610067 [10:09:56]line Контрольно-Кассовый Чек [10:09:56]line ПРОДАЖА [10:09:56]line ТРК (МРК, ГНК) : 12 [10:09:56]line Товар: 2710124130 [10:09:56]line Аи-92-К-5 [10:09:56]line 7.480 * 66.90 [10:09:56]line = 500.41 [10:09:56]line НДС 12% НСП 1% [10:09:56]line > о реализуемом товаре [10:09:56]line ОКРУГЛЕНИЕ: -0.41 [10:09:56]line ИТОГО: 500.00 [10:09:56]line Внесено: 500.00 [10:09:56]line СДАЧА: 0.00 [10:09:56]line НСП 1% : 4.43 [10:09:56]line НДС 12% : 53.14 [10:09:56]line Наличными: 500.00 [10:09:56]line Безнал.: 0.00 [10:09:56]line Место: АЗС № 170 "Партнер Нефть" [10:09:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:09:56]line СНО: Общий режим [10:09:56]line Чек 55 26.10.2024 10:10 [10:09:56]line Смена: 541 ФФД: 1.0 [10:09:56]line ЗНМ: 0300000110 [10:09:56]line РНМ: 0000000000091776 [10:09:56]line Версия ККМ: 001 [10:09:56]line ФМ: 0000000000871754 [10:09:56]line ФД: 191692 [10:09:56]line ФПД: 268111088032741 [10:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101008&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191692&fm=268111088032741&tin=02508201610067®Number=0000000000091776&sum=50000 [10:09:56]OFD Sender: Processing packet 191692 [packets to send 75, broken 74] [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00191692 [10:09:56]OFD Sender: To server: pG, [10:09:56]CommunicateWithHost lk.salyk.kg:30040 [10:09:56]ConnectInit lk.salyk.kg [10:09:56]written 0, free lines is 4095 [10:09:56]Connected sock=10 [10:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 9A 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 C0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EC 02 00 35 04 06 00 F3 D8 7A 29 9B E5 F3 6B 14 52 3E 2C 76 DE [10:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A3 25 47 00 73 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC EC 02 00 F4 03 04 00 CC 64 1C 67 B6 04 01 00 00 72 3B 88 E6 F3 EA D3 3B [10:09:57]CommunicateWithHost err = 0 [10:09:57]CheckOFDResponse [10:09:57]1017 (14) - 77093643461234 [10:09:57]1041 (16) - 0000000000871754 [10:09:57]1040 (4) - 191692 [10:09:57]1012 (4) - 26.10.2024 03:41 [10:09:57]1206 (1) - 0 [10:09:57]OFD Sender: Remove packet 191692 [10:09:57]ProducePacketName [10:09:57]name=ofd_packets/00191692 [10:09:57]NVStorageDeleteData [10:09:57]Write to MH i2c: 01 00 00 BD EC A9 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: 01 07 00 BD EC 00 00 00 00 00 A7 0C 63 [10:09:57]RasterBufferAndPrint [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]line [10:09:57]written 0, free lines is 3245 [10:09:57]MH_Cut [10:09:57]Write to MH i2c: D1 01 00 C4 EC 01 82 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 01 00 [10:09:57]MH_I2C_Read... [10:09:57]Read from MH i2c: D1 01 00 C4 EC 00 81 [10:09:57]Write to MH i2c: 01 00 00 C5 EC B1 [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [10:09:57]OFD Sender: No OFD packet to send [10:09:58]*** Cut start [10:09:58]*** Partial cut [10:09:58]*** CUTSNS_PIN = 1 [10:09:58]*** CUTSNS_PIN = 0 [10:09:58]*** Brake cut motor [10:09:58]Read from MH i2c: 01 [10:09:58]MH_I2C_Read... [10:09:58]*** Stop cut motor [10:09:58]*** Cut end [10:09:58]Read from MH i2c: 01 07 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: 01 07 00 C5 EC 00 00 00 00 00 FF 0F C6 [10:09:58]process_action close_receipt done [10:09:58]requested_data is exist [10:09:58]produce_requested_data [10:09:58]requested_item fm.sn is exist - process it [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 11 00 00 [10:09:58]Write to MH i2c: E2 08 00 C6 EC 80 11 00 00 00 00 00 00 2C [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 17 00 C6 EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:09:58]wFMCommunicate OK [10:09:58]requested_item fd.num is exist - process it [10:09:58]SAM_PROTO_GetFieldsCounters [10:09:58]wFMCommunicate request_size=4 [10:09:58]MH_SAM_APDU [10:09:58]CAPDU: 80 13 00 00 [10:09:58]Write to MH i2c: E2 08 00 C7 EC 80 13 00 00 00 00 00 00 2F [10:09:58]Write i2c OK [10:09:58]MH_I2C_Read... [10:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:58]Read from MH i2c: E2 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 62 00 [10:09:58]MH_I2C_Read... [10:09:58]Read from MH i2c: E2 62 00 C7 EC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:58]wFMCommunicate OK [10:09:58]SAM_PROTO_GetFieldsCounters done [10:09:58]requested_item shift.num is exist - process it [10:09:58]requested_item shift.opened is exist - process it [10:09:59]req_shift_opened [10:09:59]FM_GetShiftState [10:09:59]SAM_PROTO_GetShiftState [10:09:59]wFMCommunicate request_size=4 [10:09:59]MH_SAM_APDU [10:09:59]CAPDU: 80 13 01 00 [10:09:59]Write to MH i2c: E2 08 00 C8 EC 80 13 01 00 00 00 00 00 31 [10:09:59]Write i2c OK [10:09:59]MH_I2C_Read... [10:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:59]Read from MH i2c: E2 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 [10:09:59]MH_I2C_Read... [10:09:59]Read from MH i2c: E2 0E 00 C8 EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AA [10:09:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:09:59]wFMCommunicate OK [10:09:59]SAM_PROTO_GetShiftState done [10:09:59]FM_GetShiftState done [10:09:59]req_shift_opened done [10:09:59]requested_item shift.open_date is exist - process it [10:09:59]req_shift_open_date [10:09:59]req_shift_open_date done [10:09:59]produce_requested_data done [10:09:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191692,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:09:59]process_action_free close_receipt [10:09:59]json_value_free [10:09:59]json_value_free done [10:09:59]process_json_proto returns [10:09:59]Send response to host [10:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191692,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:09:59]free response buf [10:09:59]execute_script done [10:09:59]execute_script returns [10:09:59]free content buf [10:09:59]Sock 8.Close socket [10:09:59]Sock 8.Thread stoped [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: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:58]OFD Sender: No OFD packet to send [10:14:58]ConnectInit Can't connect to host [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:35]accept exits with 9 [10:15:35]New connection [10:15:35]New thread 3066961252 created [10:15:35]Thread 3066817892 joined [10:15:35]Waiting for new connection... [10:15:35] Sock 9.Parse request [10:15:35]Sock 9.Check first char [10:15:35]Sock 9.First char is OK [10:15:35]request: POST /json_proto HTTP/1.0 [10:15:35]Method: POST [10:15:35]URL: /json_proto [10:15:35]Method is POST - this is cgi request [10:15:35]url: /json_proto [10:15:35]query_string will be loaded in cgi processing [10:15:35]execute_cgi json_proto POST (null) [10:15:35]execute_cgi path=json_proto method=POST [10:15:35]POST find Content-Length [10:15:35]Host: 172.17.63.131:8080 [10:15:35]Content-Length: 676 [10:15:35]Content-Type: application/json [10:15:35] [10:15:35]POST finish read [10:15:35]Found Content-Length = 676 [10:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:35]execute_script... [10:15: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)30995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:35]POST & json_proto [10:15:35]process_json_proto [10:15:35]json parsed OK: [10:15:35]protocol is kg_v1.0 [10:15:35]action value=close_receipt [10:15:35]process_action close_receipt [10:15:35]cmd_close_receipt [10:15:35]MH_GetDate [10:15:35]Write to MH i2c: F0 00 00 C9 EC A4 [10:15:35]Write i2c OK [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: F0 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: F0 09 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: F0 09 00 C9 EC 00 55 C1 1C 67 22 05 6E 64 3F [10:15:35]GetLastDocTimeStamp 1729937408 [10:15:35]current date 1729937749 [10:15:35]FM_GetShiftState [10:15:35]SAM_PROTO_GetShiftState [10:15:35]wFMCommunicate request_size=4 [10:15:35]MH_SAM_APDU [10:15:35]CAPDU: 80 13 01 00 [10:15:35]Write to MH i2c: E2 08 00 CA EC 80 13 01 00 00 00 00 00 33 [10:15:35]Write i2c OK [10:15:35]MH_I2C_Read... [10:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:35]Read from MH i2c: E2 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 0E 00 [10:15:35]MH_I2C_Read... [10:15:35]Read from MH i2c: E2 0E 00 CA EC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AC [10:15:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:15:35]wFMCommunicate OK [10:15:35]SAM_PROTO_GetShiftState done [10:15:35]FM_GetShiftState done [10:15:35]opened in 1729902770 [10:15:35]opened+sec_in_day 1729989170 [10:15:35]quantity*price = 20003 [10:15:35]sum+1 = 20004 [10:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 56 26.10.2024 10:15 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191693 ФПД: 14621778662983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191693&fm=14621778662983&tin=02508201610067®Number=0000000000091776&sum=20000 [10:15:36]StoreToDocumentArchive [10:15:36]shift 541 fd 191693 [10:15:36]save to /storage/0541/doc_00191693 [10:15:36]save last doc name /storage/0541/doc_00191693 to /storage/kkm_last_doc_name [10:15:36]save OK [10:15:36]Clear old archive folders... [10:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:36]tlvbuf is 0160B450 [10:15:36]SAM_PROTO_ClearQueue [10:15:36]wFMCommunicate request_size=4 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 09 00 00 [10:15:36]Write to MH i2c: E2 08 00 D7 EC 80 09 00 00 00 00 00 00 35 [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 D7 EC 00 90 00 37 [10:15:36]RAPDU: 90 00 [10:15:36]wFMCommunicate OK [10:15:36]SAM_PROTO_ClearQueue done [10:15:36]KKMCreateOFDPacket [10:15:36]OFDProtocolAddRootSTLVToBuf [10:15:36]FM_MakeSignedData [10:15:36]FM_MakeSignedData [10:15:36]SAM_PROTO_SignData [10:15:36]wFMCommunicate request_size=4 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 0D 01 02 [10:15:36]Write to MH i2c: E2 08 00 D8 EC 80 0D 01 02 00 00 00 00 3D [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 D8 EC 00 90 00 38 [10:15:36]RAPDU: 90 00 [10:15:36]wFMCommunicate OK [10:15:36]wFMCommunicate request_size=255 [10:15:36]MH_SAM_APDU [10:15: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EC 02 00 35 04 06 00 0D [10:15:36]Write to MH i2c: E2 02 01 D9 EC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EC 02 00 35 04 06 00 0D 00 00 4B [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 D9 EC 00 90 00 39 [10:15:36]RAPDU: 90 00 [10:15:36]wFMCommunicate OK [10:15:36]wFMCommunicate request_size=10 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 0D 02 02 05 4C 65 EC 56 47 [10:15:36]Write to MH i2c: E2 0D 00 DA EC 80 0D 02 02 05 00 4C 65 EC 56 47 00 00 84 [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 03 00 DA EC 00 90 00 3A [10:15:36]RAPDU: 90 00 [10:15:36]wFMCommunicate OK [10:15:36]wFMCommunicate request_size=4 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 0D 03 02 [10:15:36]Write to MH i2c: E2 08 00 DB EC 80 0D 03 02 00 00 00 00 42 [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 0B 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 0B 00 DB EC 00 FC 4B 79 8A 3A F1 EF 8F 90 00 36 [10:15:36]RAPDU: FC 4B 79 8A 3A F1 EF 8F 90 00 [10:15:36]wFMCommunicate OK [10:15:36]SAM_PROTO_SignData done [10:15:36]FM_MakeSignedData done [10:15:36]CreateOFDProtocolMessage [10:15:36]wFMCommunicate request_size=4 [10:15:36]MH_SAM_APDU [10:15:36]CAPDU: 80 11 00 00 [10:15:36]Write to MH i2c: E2 08 00 DC EC 80 11 00 00 00 00 00 00 42 [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:36]Read from MH i2c: E2 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 17 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: E2 17 00 DC EC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [10:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:15:36]wFMCommunicate OK [10:15:36]CreateOFDProtocolMessage done [10:15:36]OFDSenderStorePacket 191693 [10:15:36]StoreOFDPacket docnum=191693 [10:15:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 CB 07 01 6B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EC 02 00 35 04 06 00 0D 4C 65 EC 56 47 FC 4B 79 8A 3A F1 EF 8F [10:15:36]CheckFolder [10:15:36]dirname=/storage/ofd_packets [10:15:36]CheckFolder done [10:15:36]ProducePacketName [10:15:36]name=ofd_packets/00191693 [10:15:36]NVStorageSaveData ofd_packets/00191693 [10:15:36]File name is /storage/ofd_packets/00191693 [10:15:36]Write 301 bytes [10:15:36]NVStorageSaveData done [10:15:36]OFDSenderStorePacket done [10:15:36]KKMCreateOFDPacket done [10:15:36]NVStorageSaveData kkm_last_timestamp [10:15:36]File name is /storage/kkm_last_timestamp [10:15:36]Write 4 bytes [10:15:36]NVStorageSaveData done [10:15:36]ExternCall_PrintAddStr [10:15:36]wPrintStart [10:15:36]Write to MH i2c: 01 00 00 DD EC C9 [10:15:36]Write i2c OK [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: 01 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: 01 07 00 [10:15:36]MH_I2C_Read... [10:15:36]Read from MH i2c: 01 07 00 DD EC 00 00 00 00 00 FF 0F DE [10:15:36]RasterBufferAndPrint [10:15:36]line Счет N : (1)30995 [10:15:36]line ИНН: 02508201610067 [10:15:36]line Контрольно-Кассовый Чек [10:15:36]line ПРОДАЖА [10:15:36]line ТРК (МРК, ГНК) : 12 [10:15:36]line Товар: 2710124130 [10:15:36]line Аи-92-К-5 [10:15:36]line 2.990 * 66.90 [10:15:36]line = 200.03 [10:15:36]line НДС 12% НСП 1% [10:15:36]line > о реализуемом товаре [10:15:36]line ОКРУГЛЕНИЕ: -0.03 [10:15:36]line ИТОГО: 200.00 [10:15:36]line Внесено: 200.00 [10:15:36]line СДАЧА: 0.00 [10:15:36]line НСП 1% : 1.77 [10:15:36]line НДС 12% : 21.24 [10:15:36]line Наличными: 200.00 [10:15:36]line Безнал.: 0.00 [10:15:36]line Место: АЗС № 170 "Партнер Нефть" [10:15:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:15:36]line СНО: Общий режим [10:15:36]line Чек 56 26.10.2024 10:15 [10:15:36]line Смена: 541 ФФД: 1.0 [10:15:36]line ЗНМ: 0300000110 [10:15:36]line РНМ: 0000000000091776 [10:15:36]line Версия ККМ: 001 [10:15:36]line ФМ: 0000000000871754 [10:15:36]line ФД: 191693 [10:15:36]line ФПД: 14621778662983 [10:15:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101549&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191693&fm=14621778662983&tin=02508201610067®Number=0000000000091776&sum=20000 [10:15:37]OFD Sender: Processing packet 191693 [packets to send 75, broken 74] [10:15:37]ProducePacketName [10:15:37]name=ofd_packets/00191693 [10:15:37]OFD Sender: To server: pG, [10:15:37]CommunicateWithHost lk.salyk.kg:30040 [10:15:37]ConnectInit lk.salyk.kg [10:15:37]written 0, free lines is 4095 [10:15:37]Connected sock=11 [10:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 14 CB 07 01 6B 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 55 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EC 02 00 35 04 06 00 0D 4C 65 EC 56 47 FC 4B 79 8A 3A F1 EF 8F [10:15:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 A3 47 00 7F CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD EC 02 00 F4 03 04 00 20 66 1C 67 B6 04 01 00 00 C3 CE 14 FC 42 24 13 F5 [10:15:37]CommunicateWithHost err = 0 [10:15:37]CheckOFDResponse [10:15:37]1017 (14) - 77093643461234 [10:15:37]1041 (16) - 0000000000871754 [10:15:37]1040 (4) - 191693 [10:15:37]1012 (4) - 26.10.2024 03:46 [10:15:37]1206 (1) - 0 [10:15:37]OFD Sender: Remove packet 191693 [10:15:37]ProducePacketName [10:15:37]name=ofd_packets/00191693 [10:15:37]NVStorageDeleteData [10:15:37]Write to MH i2c: 01 00 00 08 ED F5 [10:15:37]Write i2c OK [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: 01 [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: 01 07 00 [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: 01 07 00 08 ED 00 00 00 00 00 AD 0C B5 [10:15:37]RasterBufferAndPrint [10:15:37]line [10:15:37]line [10:15:37]line [10:15:37]line [10:15:37]line [10:15:37]written 0, free lines is 3253 [10:15:37]MH_Cut [10:15:37]Write to MH i2c: D1 01 00 0F ED 01 CE [10:15:37]Write i2c OK [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: D1 [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: D1 01 00 [10:15:37]MH_I2C_Read... [10:15:37]Read from MH i2c: D1 01 00 0F ED 00 CD [10:15:37]Write to MH i2c: 01 00 00 10 ED FD [10:15:37]Write i2c OK [10:15:37]MH_I2C_Read... [10:15:38]OFD Sender: No OFD packet to send [10:15:38]*** Cut start [10:15:38]*** Partial cut [10:15:38]*** CUTSNS_PIN = 1 [10:15:38]*** CUTSNS_PIN = 0 [10:15:38]*** Brake cut motor [10:15:39]Read from MH i2c: 01 [10:15:39]MH_I2C_Read... [10:15:39]*** Stop cut motor [10:15:39]*** Cut end [10:15:39]Read from MH i2c: 01 07 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: 01 07 00 10 ED 00 00 00 00 00 FF 0F 12 [10:15:39]process_action close_receipt done [10:15:39]requested_data is exist [10:15:39]produce_requested_data [10:15:39]requested_item fm.sn is exist - process it [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 11 00 00 [10:15:39]Write to MH i2c: E2 08 00 11 ED 80 11 00 00 00 00 00 00 78 [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 17 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 17 00 11 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [10:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:15:39]wFMCommunicate OK [10:15:39]requested_item fd.num is exist - process it [10:15:39]SAM_PROTO_GetFieldsCounters [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 13 00 00 [10:15:39]Write to MH i2c: E2 08 00 12 ED 80 13 00 00 00 00 00 00 7B [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 62 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 62 00 12 ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:15:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:39]wFMCommunicate OK [10:15:39]SAM_PROTO_GetFieldsCounters done [10:15:39]requested_item shift.num is exist - process it [10:15:39]requested_item shift.opened is exist - process it [10:15:39]req_shift_opened [10:15:39]FM_GetShiftState [10:15:39]SAM_PROTO_GetShiftState [10:15:39]wFMCommunicate request_size=4 [10:15:39]MH_SAM_APDU [10:15:39]CAPDU: 80 13 01 00 [10:15:39]Write to MH i2c: E2 08 00 13 ED 80 13 01 00 00 00 00 00 7D [10:15:39]Write i2c OK [10:15:39]MH_I2C_Read... [10:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:39]Read from MH i2c: E2 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0E 00 [10:15:39]MH_I2C_Read... [10:15:39]Read from MH i2c: E2 0E 00 13 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F6 [10:15:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:15:39]wFMCommunicate OK [10:15:39]SAM_PROTO_GetShiftState done [10:15:39]FM_GetShiftState done [10:15:39]req_shift_opened done [10:15:39]requested_item shift.open_date is exist - process it [10:15:39]req_shift_open_date [10:15:39]req_shift_open_date done [10:15:39]produce_requested_data done [10:15:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191693,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:15:39]process_action_free close_receipt [10:15:39]json_value_free [10:15:39]json_value_free done [10:15:39]process_json_proto returns [10:15:39]Send response to host [10:15:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191693,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:15:39]free response buf [10:15:39]execute_script done [10:15:39]execute_script returns [10:15:39]free content buf [10:15:39]Sock 9.Close socket [10:15:39]Sock 9.Thread stoped [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:49]accept exits with 10 [10:15:49]New connection [10:15:49]New thread 3066817892 created [10:15:49]Thread 3066961252 joined [10:15:49]Waiting for new connection... [10:15:49] Sock 10.Parse request [10:15:49]Sock 10.Check first char [10:15:49]Sock 10.First char is OK [10:15:49]request: POST /json_proto HTTP/1.0 [10:15:49]Method: POST [10:15:49]URL: /json_proto [10:15:49]Method is POST - this is cgi request [10:15:49]url: /json_proto [10:15:49]query_string will be loaded in cgi processing [10:15:49]execute_cgi json_proto POST (null) [10:15:49]execute_cgi path=json_proto method=POST [10:15:49]POST find Content-Length [10:15:49]Host: 172.17.63.131:8080 [10:15:49]Content-Length: 677 [10:15:49]Content-Type: application/json [10:15:49] [10:15:49]POST finish read [10:15:49]Found Content-Length = 677 [10:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:49]execute_script... [10:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:49]POST & json_proto [10:15:49]process_json_proto [10:15:49]json parsed OK: [10:15:49]protocol is kg_v1.0 [10:15:49]action value=close_receipt [10:15:49]process_action close_receipt [10:15:49]cmd_close_receipt [10:15:49]MH_GetDate [10:15:49]Write to MH i2c: F0 00 00 14 ED F0 [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 09 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: F0 09 00 14 ED 00 63 C1 1C 67 22 05 6E 64 99 [10:15:49]GetLastDocTimeStamp 1729937749 [10:15:49]current date 1729937763 [10:15:49]FM_GetShiftState [10:15:49]SAM_PROTO_GetShiftState [10:15:49]wFMCommunicate request_size=4 [10:15:49]MH_SAM_APDU [10:15:49]CAPDU: 80 13 01 00 [10:15:49]Write to MH i2c: E2 08 00 15 ED 80 13 01 00 00 00 00 00 7F [10:15:49]Write i2c OK [10:15:49]MH_I2C_Read... [10:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:49]Read from MH i2c: E2 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 [10:15:49]MH_I2C_Read... [10:15:49]Read from MH i2c: E2 0E 00 15 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F8 [10:15:49]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:15:49]wFMCommunicate OK [10:15:49]SAM_PROTO_GetShiftState done [10:15:49]FM_GetShiftState done [10:15:49]opened in 1729902770 [10:15:49]opened+sec_in_day 1729989170 [10:15:49]quantity*price = 80012 [10:15:49]sum+1 = 80013 [10:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 57 26.10.2024 10:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191694 ФПД: 60377247527085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191694&fm=60377247527085&tin=02508201610067®Number=0000000000091776&sum=80000 [10:15:50]StoreToDocumentArchive [10:15:50]shift 541 fd 191694 [10:15:50]save to /storage/0541/doc_00191694 [10:15:50]save last doc name /storage/0541/doc_00191694 to /storage/kkm_last_doc_name [10:15:50]save OK [10:15:50]Clear old archive folders... [10:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:50]tlvbuf is 016A0420 [10:15:50]SAM_PROTO_ClearQueue [10:15:50]wFMCommunicate request_size=4 [10:15:50]MH_SAM_APDU [10:15:50]CAPDU: 80 09 00 00 [10:15:50]Write to MH i2c: E2 08 00 22 ED 80 09 00 00 00 00 00 00 81 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 22 ED 00 90 00 83 [10:15:50]RAPDU: 90 00 [10:15:50]wFMCommunicate OK [10:15:50]SAM_PROTO_ClearQueue done [10:15:50]KKMCreateOFDPacket [10:15:50]OFDProtocolAddRootSTLVToBuf [10:15:50]FM_MakeSignedData [10:15:50]FM_MakeSignedData [10:15:50]SAM_PROTO_SignData [10:15:50]wFMCommunicate request_size=4 [10:15:50]MH_SAM_APDU [10:15:50]CAPDU: 80 0D 01 02 [10:15:50]Write to MH i2c: E2 08 00 23 ED 80 0D 01 02 00 00 00 00 89 [10:15:50]Write i2c OK [10:15:50]MH_I2C_Read... [10:15:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:50]Read from MH i2c: E2 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 [10:15:50]MH_I2C_Read... [10:15:50]Read from MH i2c: E2 03 00 23 ED 00 90 00 84 [10:15:50]RAPDU: 90 00 [10:15:50]wFMCommunicate OK [10:15:50]wFMCommunicate request_size=255 [10:15:50]MH_SAM_APDU [10:15: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 63 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EC 02 00 35 04 06 00 36 [10:15:50]Write to MH i2c: E2 02 01 24 ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 63 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EC 02 00 35 04 06 00 36 00 00 FA [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 24 ED 00 90 00 85 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=10 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 02 02 05 E9 AC 64 30 AD [10:15:51]Write to MH i2c: E2 0D 00 25 ED 80 0D 02 02 05 00 E9 AC 64 30 AD 00 00 6C [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 03 00 25 ED 00 90 00 86 [10:15:51]RAPDU: 90 00 [10:15:51]wFMCommunicate OK [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 0D 03 02 [10:15:51]Write to MH i2c: E2 08 00 26 ED 80 0D 03 02 00 00 00 00 8E [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0B 00 26 ED 00 29 A3 12 A4 32 33 63 5F 90 00 38 [10:15:51]RAPDU: 29 A3 12 A4 32 33 63 5F 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_SignData done [10:15:51]FM_MakeSignedData done [10:15:51]CreateOFDProtocolMessage [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 11 00 00 [10:15:51]Write to MH i2c: E2 08 00 27 ED 80 11 00 00 00 00 00 00 8E [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 17 00 27 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [10:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:15:51]wFMCommunicate OK [10:15:51]CreateOFDProtocolMessage done [10:15:51]OFDSenderStorePacket 191694 [10:15:51]StoreOFDPacket docnum=191694 [10:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 05 07 01 A5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 63 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EC 02 00 35 04 06 00 36 E9 AC 64 30 AD 29 A3 12 A4 32 33 63 5F [10:15:51]CheckFolder [10:15:51]dirname=/storage/ofd_packets [10:15:51]CheckFolder done [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00191694 [10:15:51]NVStorageSaveData ofd_packets/00191694 [10:15:51]File name is /storage/ofd_packets/00191694 [10:15:51]Write 301 bytes [10:15:51]NVStorageSaveData done [10:15:51]OFDSenderStorePacket done [10:15:51]KKMCreateOFDPacket done [10:15:51]NVStorageSaveData kkm_last_timestamp [10:15:51]File name is /storage/kkm_last_timestamp [10:15:51]Write 4 bytes [10:15:51]NVStorageSaveData done [10:15:51]ExternCall_PrintAddStr [10:15:51]wPrintStart [10:15:51]Write to MH i2c: 01 00 00 28 ED 15 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: 01 07 00 28 ED 00 00 00 00 00 FF 0F 2A [10:15:51]RasterBufferAndPrint [10:15:51]line Счет N : (1)30996 [10:15:51]line ИНН: 02508201610067 [10:15:51]line Контрольно-Кассовый Чек [10:15:51]line ПРОДАЖА [10:15:51]line ТРК (МРК, ГНК) : 21 [10:15:51]line Товар: 2710124130 [10:15:51]line Аи-92-К-5 [10:15:51]line 11.960 * 66.90 [10:15:51]line = 800.12 [10:15:51]line НДС 12% НСП 1% [10:15:51]line > о реализуемом товаре [10:15:51]line ОКРУГЛЕНИЕ: -0.12 [10:15:51]line ИТОГО: 800.00 [10:15:51]line Внесено: 800.00 [10:15:51]line СДАЧА: 0.00 [10:15:51]line НСП 1% : 7.08 [10:15:51]line НДС 12% : 84.97 [10:15:51]line Наличными: 800.00 [10:15:51]line Безнал.: 0.00 [10:15:51]line Место: АЗС № 170 "Партнер Нефть" [10:15:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:15:51]line СНО: Общий режим [10:15:51]line Чек 57 26.10.2024 10:16 [10:15:51]line Смена: 541 ФФД: 1.0 [10:15:51]line ЗНМ: 0300000110 [10:15:51]line РНМ: 0000000000091776 [10:15:51]line Версия ККМ: 001 [10:15:51]line ФМ: 0000000000871754 [10:15:51]line ФД: 191694 [10:15:51]line ФПД: 60377247527085 [10:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T101603&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191694&fm=60377247527085&tin=02508201610067®Number=0000000000091776&sum=80000 [10:15:51]OFD Sender: Processing packet 191694 [packets to send 75, broken 74] [10:15:51]ProducePacketName [10:15:51]name=ofd_packets/00191694 [10:15:51]written 0, free lines is 4095 [10:15:51]OFD Sender: To server: pG, [10:15:51]CommunicateWithHost lk.salyk.kg:30040 [10:15:51]ConnectInit lk.salyk.kg [10:15:51]Connected sock=11 [10:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 01 05 07 01 A5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 63 C1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EC 02 00 35 04 06 00 36 E9 AC 64 30 AD 29 A3 12 A4 32 33 63 5F [10:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE E0 47 00 02 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE EC 02 00 F4 03 04 00 2F 66 1C 67 B6 04 01 00 00 90 1D F8 13 E7 B6 14 E5 [10:15:52]CommunicateWithHost err = 0 [10:15:52]CheckOFDResponse [10:15:52]1017 (14) - 77093643461234 [10:15:52]1041 (16) - 0000000000871754 [10:15:52]1040 (4) - 191694 [10:15:52]1012 (4) - 26.10.2024 03:46 [10:15:52]1206 (1) - 0 [10:15:52]OFD Sender: Remove packet 191694 [10:15:52]ProducePacketName [10:15:52]name=ofd_packets/00191694 [10:15:52]NVStorageDeleteData [10:15:52]Write to MH i2c: 01 00 00 53 ED 40 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: 01 07 00 53 ED 00 00 00 00 00 AF 0C 02 [10:15:52]RasterBufferAndPrint [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]line [10:15:52]written 0, free lines is 3266 [10:15:52]MH_Cut [10:15:52]Write to MH i2c: D1 01 00 5A ED 01 19 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 01 00 [10:15:52]MH_I2C_Read... [10:15:52]Read from MH i2c: D1 01 00 5A ED 00 18 [10:15:52]Write to MH i2c: 01 00 00 5B ED 48 [10:15:52]Write i2c OK [10:15:52]MH_I2C_Read... [10:15:52]OFD Sender: No OFD packet to send [10:15:53]*** Cut start [10:15:53]*** Partial cut [10:15:53]*** CUTSNS_PIN = 1 [10:15:53]*** CUTSNS_PIN = 0 [10:15:53]*** Brake cut motor [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]*** Stop cut motor [10:15:53]*** Cut end [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 5B ED 00 00 00 00 00 FF 0F 5D [10:15:53]process_action close_receipt done [10:15:53]requested_data is exist [10:15:53]produce_requested_data [10:15:53]requested_item fm.sn is exist - process it [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 11 00 00 [10:15:53]Write to MH i2c: E2 08 00 5C ED 80 11 00 00 00 00 00 00 C3 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 5C ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [10:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:15:53]wFMCommunicate OK [10:15:53]requested_item fd.num is exist - process it [10:15:53]SAM_PROTO_GetFieldsCounters [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 13 00 00 [10:15:53]Write to MH i2c: E2 08 00 5D ED 80 13 00 00 00 00 00 00 C6 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 62 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 62 00 5D ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetFieldsCounters done [10:15:54]requested_item shift.num is exist - process it [10:15:54]requested_item shift.opened is exist - process it [10:15:54]req_shift_opened [10:15:54]FM_GetShiftState [10:15:54]SAM_PROTO_GetShiftState [10:15:54]wFMCommunicate request_size=4 [10:15:54]MH_SAM_APDU [10:15:54]CAPDU: 80 13 01 00 [10:15:54]Write to MH i2c: E2 08 00 5E ED 80 13 01 00 00 00 00 00 C8 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:54]Read from MH i2c: E2 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: E2 0E 00 5E ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 41 [10:15:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:15:54]wFMCommunicate OK [10:15:54]SAM_PROTO_GetShiftState done [10:15:54]FM_GetShiftState done [10:15:54]req_shift_opened done [10:15:54]requested_item shift.open_date is exist - process it [10:15:54]req_shift_open_date [10:15:54]req_shift_open_date done [10:15:54]produce_requested_data done [10:15:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191694,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:15:54]process_action_free close_receipt [10:15:54]json_value_free [10:15:54]json_value_free done [10:15:54]process_json_proto returns [10:15:54]Send response to host [10:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191694,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:15:54]free response buf [10:15:54]execute_script done [10:15:54]execute_script returns [10:15:54]free content buf [10:15:54]Sock 10.Close socket [10:15:54]Sock 10.Thread stoped [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]accept exits with 9 [10:19:57]New connection [10:19:57]New thread 3066961252 created [10:19:57]Thread 3066817892 joined [10:19:57]Waiting for new connection... [10:19:57] Sock 9.Parse request [10:19:57]Sock 9.Check first char [10:19:57]Sock 9.First char is OK [10:19:57]request: POST /json_proto HTTP/1.0 [10:19:57]Method: POST [10:19:57]URL: /json_proto [10:19:57]Method is POST - this is cgi request [10:19:57]url: /json_proto [10:19:57]query_string will be loaded in cgi processing [10:19:57]execute_cgi json_proto POST (null) [10:19:57]execute_cgi path=json_proto method=POST [10:19:57]POST find Content-Length [10:19:57]Host: 172.17.63.131:8080 [10:19:57]Content-Length: 677 [10:19:57]Content-Type: application/json [10:19:57] [10:19:57]POST finish read [10:19:57]Found Content-Length = 677 [10:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:57]execute_script... [10:19:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:57]POST & json_proto [10:19:57]process_json_proto [10:19:57]json parsed OK: [10:19:57]protocol is kg_v1.0 [10:19:57]action value=close_receipt [10:19:57]process_action close_receipt [10:19:57]cmd_close_receipt [10:19:57]MH_GetDate [10:19:57]Write to MH i2c: F0 00 00 5F ED 3B [10:19:57]Write i2c OK [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 09 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: F0 09 00 5F ED 00 5B C2 1C 67 22 05 6E 64 DD [10:19:57]GetLastDocTimeStamp 1729937763 [10:19:57]current date 1729938011 [10:19:57]FM_GetShiftState [10:19:57]SAM_PROTO_GetShiftState [10:19:57]wFMCommunicate request_size=4 [10:19:57]MH_SAM_APDU [10:19:57]CAPDU: 80 13 01 00 [10:19:57]Write to MH i2c: E2 08 00 60 ED 80 13 01 00 00 00 00 00 CA [10:19:57]Write i2c OK [10:19:57]MH_I2C_Read... [10:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:57]Read from MH i2c: E2 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 [10:19:57]MH_I2C_Read... [10:19:57]Read from MH i2c: E2 0E 00 60 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 43 [10:19:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:19:57]wFMCommunicate OK [10:19:57]SAM_PROTO_GetShiftState done [10:19:57]FM_GetShiftState done [10:19:57]opened in 1729902770 [10:19:57]opened+sec_in_day 1729989170 [10:19:57]quantity*price = 90047 [10:19:57]sum+1 = 90048 [10:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 58 26.10.2024 10:20 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191695 ФПД: 34525172457901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102011&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191695&fm=34525172457901&tin=02508201610067®Number=0000000000091776&sum=90000 [10:19:58]StoreToDocumentArchive [10:19:58]shift 541 fd 191695 [10:19:58]save to /storage/0541/doc_00191695 [10:19:58]save last doc name /storage/0541/doc_00191695 to /storage/kkm_last_doc_name [10:19:58]save OK [10:19:58]Clear old archive folders... [10:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:58]tlvbuf is 016EB1D0 [10:19:58]SAM_PROTO_ClearQueue [10:19:58]wFMCommunicate request_size=4 [10:19:58]MH_SAM_APDU [10:19:58]CAPDU: 80 09 00 00 [10:19:58]Write to MH i2c: E2 08 00 6D ED 80 09 00 00 00 00 00 00 CC [10:19:58]Write i2c OK [10:19:58]MH_I2C_Read... [10:19:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:58]Read from MH i2c: E2 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 6D ED 00 90 00 CE [10:19:58]RAPDU: 90 00 [10:19:58]wFMCommunicate OK [10:19:58]SAM_PROTO_ClearQueue done [10:19:58]KKMCreateOFDPacket [10:19:58]OFDProtocolAddRootSTLVToBuf [10:19:58]FM_MakeSignedData [10:19:58]FM_MakeSignedData [10:19:58]SAM_PROTO_SignData [10:19:58]wFMCommunicate request_size=4 [10:19:58]MH_SAM_APDU [10:19:58]CAPDU: 80 0D 01 02 [10:19:58]Write to MH i2c: E2 08 00 6E ED 80 0D 01 02 00 00 00 00 D4 [10:19:58]Write i2c OK [10:19:58]MH_I2C_Read... [10:19:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:58]Read from MH i2c: E2 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 [10:19:58]MH_I2C_Read... [10:19:58]Read from MH i2c: E2 03 00 6E ED 00 90 00 CF [10:19:58]RAPDU: 90 00 [10:19:58]wFMCommunicate OK [10:19:58]wFMCommunicate request_size=255 [10:19:58]MH_SAM_APDU [10:19: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5B C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EC 02 00 35 04 06 00 1F [10:19:58]Write to MH i2c: E2 02 01 6F ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5B C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EC 02 00 35 04 06 00 1F 00 00 5A [10:19:58]Write i2c OK [10:19:58]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 6F ED 00 90 00 D0 [10:19:59]RAPDU: 90 00 [10:19:59]wFMCommunicate OK [10:19:59]wFMCommunicate request_size=10 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 0D 02 02 05 66 84 A3 E1 AD [10:19:59]Write to MH i2c: E2 0D 00 70 ED 80 0D 02 02 05 00 66 84 A3 E1 AD 00 00 FC [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 03 00 70 ED 00 90 00 D1 [10:19:59]RAPDU: 90 00 [10:19:59]wFMCommunicate OK [10:19:59]wFMCommunicate request_size=4 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 0D 03 02 [10:19:59]Write to MH i2c: E2 08 00 71 ED 80 0D 03 02 00 00 00 00 D9 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 0B 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 0B 00 71 ED 00 FB B3 F6 33 75 20 F5 9E 90 00 D9 [10:19:59]RAPDU: FB B3 F6 33 75 20 F5 9E 90 00 [10:19:59]wFMCommunicate OK [10:19:59]SAM_PROTO_SignData done [10:19:59]FM_MakeSignedData done [10:19:59]CreateOFDProtocolMessage [10:19:59]wFMCommunicate request_size=4 [10:19:59]MH_SAM_APDU [10:19:59]CAPDU: 80 11 00 00 [10:19:59]Write to MH i2c: E2 08 00 72 ED 80 11 00 00 00 00 00 00 D9 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:59]Read from MH i2c: E2 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 17 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: E2 17 00 72 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [10:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:19:59]wFMCommunicate OK [10:19:59]CreateOFDProtocolMessage done [10:19:59]OFDSenderStorePacket 191695 [10:19:59]StoreOFDPacket docnum=191695 [10:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 C5 07 01 F0 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5B C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EC 02 00 35 04 06 00 1F 66 84 A3 E1 AD FB B3 F6 33 75 20 F5 9E [10:19:59]CheckFolder [10:19:59]dirname=/storage/ofd_packets [10:19:59]CheckFolder done [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00191695 [10:19:59]NVStorageSaveData ofd_packets/00191695 [10:19:59]File name is /storage/ofd_packets/00191695 [10:19:59]Write 301 bytes [10:19:59]NVStorageSaveData done [10:19:59]OFDSenderStorePacket done [10:19:59]KKMCreateOFDPacket done [10:19:59]NVStorageSaveData kkm_last_timestamp [10:19:59]File name is /storage/kkm_last_timestamp [10:19:59]Write 4 bytes [10:19:59]NVStorageSaveData done [10:19:59]ExternCall_PrintAddStr [10:19:59]wPrintStart [10:19:59]Write to MH i2c: 01 00 00 73 ED 60 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 73 ED 00 00 00 00 00 FF 0F 75 [10:19:59]RasterBufferAndPrint [10:19:59]line Счет N : (1)30997 [10:19:59]line ИНН: 02508201610067 [10:19:59]line Контрольно-Кассовый Чек [10:19:59]line ПРОДАЖА [10:19:59]line ТРК (МРК, ГНК) : 21 [10:19:59]line Товар: 2710124130 [10:19:59]line Аи-92-К-5 [10:19:59]line 13.460 * 66.90 [10:19:59]line = 900.47 [10:19:59]line НДС 12% НСП 1% [10:19:59]line > о реализуемом товаре [10:19:59]line ОКРУГЛЕНИЕ: -0.47 [10:19:59]line ИТОГО: 900.00 [10:19:59]line Внесено: 900.00 [10:19:59]line СДАЧА: 0.00 [10:19:59]line НСП 1% : 7.97 [10:19:59]line НДС 12% : 95.62 [10:19:59]line Наличными: 900.00 [10:19:59]line Безнал.: 0.00 [10:19:59]line Место: АЗС № 170 "Партнер Нефть" [10:19:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:19:59]line СНО: Общий режим [10:19:59]line Чек 58 26.10.2024 10:20 [10:19:59]line Смена: 541 ФФД: 1.0 [10:19:59]line ЗНМ: 0300000110 [10:19:59]line РНМ: 0000000000091776 [10:19:59]line Версия ККМ: 001 [10:19:59]line ФМ: 0000000000871754 [10:19:59]line ФД: 191695 [10:19:59]line ФПД: 34525172457901 [10:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102011&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191695&fm=34525172457901&tin=02508201610067®Number=0000000000091776&sum=90000 [10:19:59]OFD Sender: Processing packet 191695 [packets to send 75, broken 74] [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00191695 [10:19:59]OFD Sender: To server: pG, [10:19:59]CommunicateWithHost lk.salyk.kg:30040 [10:19:59]ConnectInit lk.salyk.kg [10:19:59]written 0, free lines is 4095 [10:19:59]Connected sock=10 [10:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 C5 07 01 F0 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 5B C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EC 02 00 35 04 06 00 1F 66 84 A3 E1 AD FB B3 F6 33 75 20 F5 9E [10:19:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 50 E6 47 00 95 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF EC 02 00 F4 03 04 00 27 67 1C 67 B6 04 01 00 00 CE CF B6 05 1D E3 0D 5E [10:19:59]CommunicateWithHost err = 0 [10:19:59]CheckOFDResponse [10:19:59]1017 (14) - 77093643461234 [10:19:59]1041 (16) - 0000000000871754 [10:19:59]1040 (4) - 191695 [10:19:59]1012 (4) - 26.10.2024 03:51 [10:19:59]1206 (1) - 0 [10:19:59]OFD Sender: Remove packet 191695 [10:19:59]ProducePacketName [10:19:59]name=ofd_packets/00191695 [10:19:59]NVStorageDeleteData [10:19:59]Write to MH i2c: 01 00 00 9E ED 8B [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: 01 07 00 9E ED 00 00 00 00 00 A3 0C 41 [10:19:59]RasterBufferAndPrint [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]line [10:19:59]written 0, free lines is 3241 [10:19:59]MH_Cut [10:19:59]Write to MH i2c: D1 01 00 A5 ED 01 64 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 01 00 [10:19:59]MH_I2C_Read... [10:19:59]Read from MH i2c: D1 01 00 A5 ED 00 63 [10:19:59]Write to MH i2c: 01 00 00 A6 ED 93 [10:19:59]Write i2c OK [10:19:59]MH_I2C_Read... [10:20:00]OFD Sender: No OFD packet to send [10:20:00]*** Cut start [10:20:00]*** Partial cut [10:20:00]*** CUTSNS_PIN = 1 [10:20:00]*** CUTSNS_PIN = 0 [10:20:01]*** Brake cut motor [10:20:01]Read from MH i2c: 01 [10:20:01]MH_I2C_Read... [10:20:01]*** Stop cut motor [10:20:01]*** Cut end [10:20:01]Read from MH i2c: 01 07 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: 01 07 00 A6 ED 00 00 00 00 00 FF 0F A8 [10:20:01]process_action close_receipt done [10:20:01]requested_data is exist [10:20:01]produce_requested_data [10:20:01]requested_item fm.sn is exist - process it [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 11 00 00 [10:20:01]Write to MH i2c: E2 08 00 A7 ED 80 11 00 00 00 00 00 00 0E [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 17 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 17 00 A7 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [10:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:20:01]wFMCommunicate OK [10:20:01]requested_item fd.num is exist - process it [10:20:01]SAM_PROTO_GetFieldsCounters [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 00 00 [10:20:01]Write to MH i2c: E2 08 00 A8 ED 80 13 00 00 00 00 00 00 11 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 62 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 62 00 A8 ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:20:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetFieldsCounters done [10:20:01]requested_item shift.num is exist - process it [10:20:01]requested_item shift.opened is exist - process it [10:20:01]req_shift_opened [10:20:01]FM_GetShiftState [10:20:01]SAM_PROTO_GetShiftState [10:20:01]wFMCommunicate request_size=4 [10:20:01]MH_SAM_APDU [10:20:01]CAPDU: 80 13 01 00 [10:20:01]Write to MH i2c: E2 08 00 A9 ED 80 13 01 00 00 00 00 00 13 [10:20:01]Write i2c OK [10:20:01]MH_I2C_Read... [10:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:01]Read from MH i2c: E2 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 [10:20:01]MH_I2C_Read... [10:20:01]Read from MH i2c: E2 0E 00 A9 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8C [10:20:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:20:01]wFMCommunicate OK [10:20:01]SAM_PROTO_GetShiftState done [10:20:01]FM_GetShiftState done [10:20:01]req_shift_opened done [10:20:01]requested_item shift.open_date is exist - process it [10:20:01]req_shift_open_date [10:20:01]req_shift_open_date done [10:20:01]produce_requested_data done [10:20:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191695,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:20:01]process_action_free close_receipt [10:20:01]json_value_free [10:20:01]json_value_free done [10:20:01]process_json_proto returns [10:20:01]Send response to host [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:20:55]accept exits with 8 [10:20:55]New connection [10:20:55]New thread 3066817892 created [10:20:55]Thread 3066961252 joined [10:20:55]Waiting for new connection... [10:20:55] Sock 8.Parse request [10:20:55]Sock 8.Check first char [10:20:55]Sock 8.First char is OK [10:20:55]request: POST /json_proto HTTP/1.0 [10:20:55]Method: POST [10:20:55]URL: /json_proto [10:20:55]Method is POST - this is cgi request [10:20:55]url: /json_proto [10:20:55]query_string will be loaded in cgi processing [10:20:55]execute_cgi json_proto POST (null) [10:20:55]execute_cgi path=json_proto method=POST [10:20:55]POST find Content-Length [10:20:55]Host: 172.17.63.131:8080 [10:20:55]Content-Length: 676 [10:20:55]Content-Type: application/json [10:20:55] [10:20:55]POST finish read [10:20:55]Found Content-Length = 676 [10:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:55]execute_script... [10:20: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)30998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:55]POST & json_proto [10:20:55]process_json_proto [10:20:55]json parsed OK: [10:20:55]protocol is kg_v1.0 [10:20:55]action value=close_receipt [10:20:55]process_action close_receipt [10:20:55]cmd_close_receipt [10:20:55]MH_GetDate [10:20:55]Write to MH i2c: F0 00 00 AA ED 86 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 AA ED 00 95 C2 1C 67 22 05 6E 64 62 [10:20:55]GetLastDocTimeStamp 1729938011 [10:20:55]current date 1729938069 [10:20:55]FM_GetShiftState [10:20:55]SAM_PROTO_GetShiftState [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 13 01 00 [10:20:55]Write to MH i2c: E2 08 00 AB ED 80 13 01 00 00 00 00 00 15 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 AB ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8E [10:20:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:20:55]wFMCommunicate OK [10:20:55]SAM_PROTO_GetShiftState done [10:20:55]FM_GetShiftState done [10:20:55]opened in 1729902770 [10:20:55]opened+sec_in_day 1729989170 [10:20:55]quantity*price = 50041 [10:20:55]sum+1 = 50042 [10:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 59 26.10.2024 10:21 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191696 ФПД: 76273666175852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191696&fm=76273666175852&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:56]StoreToDocumentArchive [10:20:56]shift 541 fd 191696 [10:20:56]save to /storage/0541/doc_00191696 [10:20:56]save last doc name /storage/0541/doc_00191696 to /storage/kkm_last_doc_name [10:20:56]save OK [10:20:56]Clear old archive folders... [10:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:56]tlvbuf is 016012A0 [10:20:56]SAM_PROTO_ClearQueue [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 09 00 00 [10:20:56]Write to MH i2c: E2 08 00 B8 ED 80 09 00 00 00 00 00 00 17 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 B8 ED 00 90 00 19 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]SAM_PROTO_ClearQueue done [10:20:56]KKMCreateOFDPacket [10:20:56]OFDProtocolAddRootSTLVToBuf [10:20:56]FM_MakeSignedData [10:20:56]FM_MakeSignedData [10:20:56]SAM_PROTO_SignData [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 01 02 [10:20:56]Write to MH i2c: E2 08 00 B9 ED 80 0D 01 02 00 00 00 00 1F [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 B9 ED 00 90 00 1A [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=255 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 95 C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EC 02 00 35 04 06 00 45 [10:20:56]Write to MH i2c: E2 02 01 BA ED 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 95 C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EC 02 00 35 04 06 00 45 00 00 EA [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 03 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 03 00 BA ED 00 90 00 1B [10:20:57]RAPDU: 90 00 [10:20:57]wFMCommunicate OK [10:20:57]wFMCommunicate request_size=10 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 0D 02 02 05 5E D8 C7 33 6C [10:20:57]Write to MH i2c: E2 0D 00 BB ED 80 0D 02 02 05 00 5E D8 C7 33 6C 00 00 C8 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 03 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 03 00 BB ED 00 90 00 1C [10:20:57]RAPDU: 90 00 [10:20:57]wFMCommunicate OK [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 0D 03 02 [10:20:57]Write to MH i2c: E2 08 00 BC ED 80 0D 03 02 00 00 00 00 24 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0B 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0B 00 BC ED 00 80 9A 79 B7 FC E9 00 7C 90 00 D0 [10:20:57]RAPDU: 80 9A 79 B7 FC E9 00 7C 90 00 [10:20:57]wFMCommunicate OK [10:20:57]SAM_PROTO_SignData done [10:20:57]FM_MakeSignedData done [10:20:57]CreateOFDProtocolMessage [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 11 00 00 [10:20:57]Write to MH i2c: E2 08 00 BD ED 80 11 00 00 00 00 00 00 24 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 17 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 17 00 BD ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [10:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:20:57]wFMCommunicate OK [10:20:57]CreateOFDProtocolMessage done [10:20:57]OFDSenderStorePacket 191696 [10:20:57]StoreOFDPacket docnum=191696 [10:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 13 07 01 FF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 95 C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EC 02 00 35 04 06 00 45 5E D8 C7 33 6C 80 9A 79 B7 FC E9 00 7C [10:20:57]CheckFolder [10:20:57]dirname=/storage/ofd_packets [10:20:57]CheckFolder done [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00191696 [10:20:57]NVStorageSaveData ofd_packets/00191696 [10:20:57]File name is /storage/ofd_packets/00191696 [10:20:57]Write 301 bytes [10:20:57]NVStorageSaveData done [10:20:57]OFDSenderStorePacket done [10:20:57]KKMCreateOFDPacket done [10:20:57]NVStorageSaveData kkm_last_timestamp [10:20:57]File name is /storage/kkm_last_timestamp [10:20:57]Write 4 bytes [10:20:57]NVStorageSaveData done [10:20:57]ExternCall_PrintAddStr [10:20:57]wPrintStart [10:20:57]Write to MH i2c: 01 00 00 BE ED AB [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 BE ED 00 00 00 00 00 FF 0F C0 [10:20:57]RasterBufferAndPrint [10:20:57]line Счет N : (1)30998 [10:20:57]line ИНН: 02508201610067 [10:20:57]line Контрольно-Кассовый Чек [10:20:57]line ПРОДАЖА [10:20:57]line ТРК (МРК, ГНК) : 12 [10:20:57]line Товар: 2710124130 [10:20:57]line Аи-92-К-5 [10:20:57]line 7.480 * 66.90 [10:20:57]line = 500.41 [10:20:57]line НДС 12% НСП 1% [10:20:57]line > о реализуемом товаре [10:20:57]line ОКРУГЛЕНИЕ: -0.41 [10:20:57]line ИТОГО: 500.00 [10:20:57]line Внесено: 500.00 [10:20:57]line СДАЧА: 0.00 [10:20:57]line НСП 1% : 4.43 [10:20:57]line НДС 12% : 53.14 [10:20:57]line Наличными: 500.00 [10:20:57]line Безнал.: 0.00 [10:20:57]line Место: АЗС № 170 "Партнер Нефть" [10:20:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:20:57]line СНО: Общий режим [10:20:57]line Чек 59 26.10.2024 10:21 [10:20:57]line Смена: 541 ФФД: 1.0 [10:20:57]line ЗНМ: 0300000110 [10:20:57]line РНМ: 0000000000091776 [10:20:57]line Версия ККМ: 001 [10:20:57]line ФМ: 0000000000871754 [10:20:57]line ФД: 191696 [10:20:57]line ФПД: 76273666175852 [10:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191696&fm=76273666175852&tin=02508201610067®Number=0000000000091776&sum=50000 [10:20:57]OFD Sender: Processing packet 191696 [packets to send 75, broken 74] [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00191696 [10:20:57]OFD Sender: To server: pG, [10:20:57]CommunicateWithHost lk.salyk.kg:30040 [10:20:57]ConnectInit lk.salyk.kg [10:20:57]written 0, free lines is 4095 [10:20:57]Connected sock=11 [10:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 13 07 01 FF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 95 C2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EC 02 00 35 04 06 00 45 5E D8 C7 33 6C 80 9A 79 B7 FC E9 00 7C [10:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D 9A 47 00 9E 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 EC 02 00 F4 03 04 00 61 67 1C 67 B6 04 01 00 00 2F 36 EC D4 75 50 F8 20 [10:20:58]CommunicateWithHost err = 0 [10:20:58]CheckOFDResponse [10:20:58]1017 (14) - 77093643461234 [10:20:58]1041 (16) - 0000000000871754 [10:20:58]1040 (4) - 191696 [10:20:58]1012 (4) - 26.10.2024 03:52 [10:20:58]1206 (1) - 0 [10:20:58]OFD Sender: Remove packet 191696 [10:20:58]ProducePacketName [10:20:58]name=ofd_packets/00191696 [10:20:58]NVStorageDeleteData [10:20:58]Write to MH i2c: 01 00 00 E9 ED D6 [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 07 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 07 00 E9 ED 00 00 00 00 00 AA 0C 93 [10:20:58]RasterBufferAndPrint [10:20:58]line [10:20:58]line [10:20:58]line [10:20:58]line [10:20:58]line [10:20:58]written 0, free lines is 3248 [10:20:58]MH_Cut [10:20:58]Write to MH i2c: D1 01 00 F0 ED 01 AF [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: D1 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: D1 01 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: D1 01 00 F0 ED 00 AE [10:20:58]Write to MH i2c: 01 00 00 F1 ED DE [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]OFD Sender: No OFD packet to send [10:20:58]*** Cut start [10:20:58]*** Partial cut [10:20:58]*** CUTSNS_PIN = 1 [10:20:59]*** CUTSNS_PIN = 0 [10:20:59]*** Brake cut motor [10:20:59]Read from MH i2c: 01 [10:20:59]MH_I2C_Read... [10:20:59]*** Stop cut motor [10:20:59]*** Cut end [10:20:59]Read from MH i2c: 01 07 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: 01 07 00 F1 ED 00 00 00 00 00 FF 0F F3 [10:20:59]process_action close_receipt done [10:20:59]requested_data is exist [10:20:59]produce_requested_data [10:20:59]requested_item fm.sn is exist - process it [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 11 00 00 [10:20:59]Write to MH i2c: E2 08 00 F2 ED 80 11 00 00 00 00 00 00 59 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 17 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 17 00 F2 ED 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [10:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:20:59]wFMCommunicate OK [10:20:59]requested_item fd.num is exist - process it [10:20:59]SAM_PROTO_GetFieldsCounters [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 13 00 00 [10:20:59]Write to MH i2c: E2 08 00 F3 ED 80 13 00 00 00 00 00 00 5C [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 62 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 62 00 F3 ED 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [10:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:59]wFMCommunicate OK [10:20:59]SAM_PROTO_GetFieldsCounters done [10:20:59]requested_item shift.num is exist - process it [10:20:59]requested_item shift.opened is exist - process it [10:20:59]req_shift_opened [10:20:59]FM_GetShiftState [10:20:59]SAM_PROTO_GetShiftState [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 13 01 00 [10:20:59]Write to MH i2c: E2 08 00 F4 ED 80 13 01 00 00 00 00 00 5E [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 F4 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D7 [10:20:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:20:59]wFMCommunicate OK [10:20:59]SAM_PROTO_GetShiftState done [10:20:59]FM_GetShiftState done [10:20:59]req_shift_opened done [10:20:59]requested_item shift.open_date is exist - process it [10:20:59]req_shift_open_date [10:20:59]req_shift_open_date done [10:20:59]produce_requested_data done [10:20:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191696,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:20:59]process_action_free close_receipt [10:20:59]json_value_free [10:20:59]json_value_free done [10:20:59]process_json_proto returns [10:20:59]Send response to host [10:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191696,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:20:59]free response buf [10:20:59]execute_script done [10:20:59]execute_script returns [10:20:59]free content buf [10:20:59]Sock 8.Close socket [10:20:59]Sock 8.Thread stoped [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:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:28]ConnectInit Can't connect to host [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:46]accept exits with 10 [10:22:46]New connection [10:22:46]New thread 3066961252 created [10:22:46]Thread 3066817892 joined [10:22:46]Waiting for new connection... [10:22:46] Sock 10.Parse request [10:22:46]Sock 10.Check first char [10:22:46]Sock 10.First char is OK [10:22:46]request: POST /json_proto HTTP/1.0 [10:22:46]Method: POST [10:22:46]URL: /json_proto [10:22:46]Method is POST - this is cgi request [10:22:46]url: /json_proto [10:22:46]query_string will be loaded in cgi processing [10:22:46]execute_cgi json_proto POST (null) [10:22:46]execute_cgi path=json_proto method=POST [10:22:46]POST find Content-Length [10:22:46]Host: 172.17.63.131:8080 [10:22:46]Content-Length: 983 [10:22:46]Content-Type: application/json [10:22:46] [10:22:46]POST finish read [10:22:46]Found Content-Length = 983 [10:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)30999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:46]execute_script... [10:22: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)30999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:46]POST & json_proto [10:22:46]process_json_proto [10:22:46]json parsed OK: [10:22:46]protocol is kg_v1.0 [10:22:46]action value=close_receipt [10:22:46]process_action close_receipt [10:22:46]cmd_close_receipt [10:22:46]MH_GetDate [10:22:46]Write to MH i2c: F0 00 00 F5 ED D1 [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: F0 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: F0 09 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: F0 09 00 F5 ED 00 04 C3 1C 67 22 05 6E 64 1D [10:22:46]GetLastDocTimeStamp 1729938069 [10:22:46]current date 1729938180 [10:22:46]FM_GetShiftState [10:22:46]SAM_PROTO_GetShiftState [10:22:46]wFMCommunicate request_size=4 [10:22:46]MH_SAM_APDU [10:22:46]CAPDU: 80 13 01 00 [10:22:46]Write to MH i2c: E2 08 00 F6 ED 80 13 01 00 00 00 00 00 60 [10:22:46]Write i2c OK [10:22:46]MH_I2C_Read... [10:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:46]Read from MH i2c: E2 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 0E 00 [10:22:46]MH_I2C_Read... [10:22:46]Read from MH i2c: E2 0E 00 F6 ED 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D9 [10:22:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:22:46]wFMCommunicate OK [10:22:46]SAM_PROTO_GetShiftState done [10:22:46]FM_GetShiftState done [10:22:46]opened in 1729902770 [10:22:46]opened+sec_in_day 1729989170 [10:22:46]quantity*price = 200006 [10:22:46]sum+1 = 200008 [10:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 60 26.10.2024 10:23 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 191697 ФПД: 79157236562531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191697&fm=79157236562531&tin=02508201610067®Number=0000000000091776&sum=200000 [10:22:48]StoreToDocumentArchive [10:22:48]shift 541 fd 191697 [10:22:48]save to /storage/0541/doc_00191697 [10:22:48]save last doc name /storage/0541/doc_00191697 to /storage/kkm_last_doc_name [10:22:48]save OK [10:22:48]Clear old archive folders... [10:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:48]tlvbuf is 0183C4F0 [10:22:48]SAM_PROTO_ClearQueue [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 09 00 00 [10:22:48]Write to MH i2c: E2 08 00 03 EE 80 09 00 00 00 00 00 00 63 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 03 EE 00 90 00 65 [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]SAM_PROTO_ClearQueue done [10:22:48]KKMCreateOFDPacket [10:22:48]OFDProtocolAddRootSTLVToBuf [10:22:48]FM_MakeSignedData [10:22:48]FM_MakeSignedData [10:22:48]SAM_PROTO_SignData [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 01 02 [10:22:48]Write to MH i2c: E2 08 00 04 EE 80 0D 01 02 00 00 00 00 6B [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 04 EE 00 90 00 66 [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]wFMCommunicate request_size=255 [10:22:48]MH_SAM_APDU [10:22: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EC 02 00 35 04 06 00 47 [10:22:48]Write to MH i2c: E2 02 01 05 EE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EC 02 00 35 04 06 00 47 00 00 31 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 05 EE 00 90 00 67 [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]wFMCommunicate request_size=10 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 02 02 05 FE 3A F7 7A 63 [10:22:48]Write to MH i2c: E2 0D 00 06 EE 80 0D 02 02 05 00 FE 3A F7 7A 63 00 00 84 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 03 00 06 EE 00 90 00 68 [10:22:48]RAPDU: 90 00 [10:22:48]wFMCommunicate OK [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 0D 03 02 [10:22:48]Write to MH i2c: E2 08 00 07 EE 80 0D 03 02 00 00 00 00 70 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 0B 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 0B 00 07 EE 00 1D 9B 96 18 5E 7A B0 84 90 00 E3 [10:22:48]RAPDU: 1D 9B 96 18 5E 7A B0 84 90 00 [10:22:48]wFMCommunicate OK [10:22:48]SAM_PROTO_SignData done [10:22:48]FM_MakeSignedData done [10:22:48]CreateOFDProtocolMessage [10:22:48]wFMCommunicate request_size=4 [10:22:48]MH_SAM_APDU [10:22:48]CAPDU: 80 11 00 00 [10:22:48]Write to MH i2c: E2 08 00 08 EE 80 11 00 00 00 00 00 00 70 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:48]Read from MH i2c: E2 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 17 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: E2 17 00 08 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [10:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:48]wFMCommunicate OK [10:22:48]CreateOFDProtocolMessage done [10:22:48]OFDSenderStorePacket 191697 [10:22:48]StoreOFDPacket docnum=191697 [10:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 1A 07 01 A4 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EC 02 00 35 04 06 00 47 FE 3A F7 7A 63 1D 9B 96 18 5E 7A B0 84 [10:22:48]CheckFolder [10:22:48]dirname=/storage/ofd_packets [10:22:48]CheckFolder done [10:22:48]ProducePacketName [10:22:48]name=ofd_packets/00191697 [10:22:48]NVStorageSaveData ofd_packets/00191697 [10:22:48]File name is /storage/ofd_packets/00191697 [10:22:48]Write 301 bytes [10:22:48]NVStorageSaveData done [10:22:48]OFDSenderStorePacket done [10:22:48]KKMCreateOFDPacket done [10:22:48]NVStorageSaveData kkm_last_timestamp [10:22:48]File name is /storage/kkm_last_timestamp [10:22:48]Write 4 bytes [10:22:48]NVStorageSaveData done [10:22:48]ExternCall_PrintAddStr [10:22:48]wPrintStart [10:22:48]Write to MH i2c: 01 00 00 09 EE F7 [10:22:48]Write i2c OK [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 07 00 [10:22:48]MH_I2C_Read... [10:22:48]Read from MH i2c: 01 07 00 09 EE 00 00 00 00 00 FF 0F 0C [10:22:48]RasterBufferAndPrint [10:22:48]line Счет N : (1)30999 [10:22:48]line ИНН: 02508201610067 [10:22:48]line Контрольно-Кассовый Чек [10:22:48]line ПРОДАЖА [10:22:48]line ТРК (МРК, ГНК) : 21 [10:22:48]line Товар: 2710124130 [10:22:48]line Аи-92-К-5 [10:22:48]line 30.350 * 65.90 [10:22:48]line = 2000.07 [10:22:48]line НДС 12% НСП 1% [10:22:48]line > о реализуемом товаре [10:22:48]line ОКРУГЛЕНИЕ: -0.07 [10:22:48]line ИТОГО: 2000.00 [10:22:48]line Внесено: 2000.00 [10:22:48]line СДАЧА: 0.00 [10:22:48]line НСП 1% : 17.70 [10:22:48]line НДС 12% : 212.40 [10:22:48]line Наличными: 2000.00 [10:22:48]line Безнал.: 0.00 [10:22:48]line Место: АЗС № 170 "Партнер Нефть" [10:22:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:22:48]line СНО: Общий режим [10:22:48]line Чек 60 26.10.2024 10:23 [10:22:48]line Смена: 541 ФФД: 1.0 [10:22:48]line ЗНМ: 0300000110 [10:22:48]line РНМ: 0000000000091776 [10:22:48]line Версия ККМ: 001 [10:22:48]line [10:22:48]line Дисконтная программа [10:22:48]line АИ-92 [10:22:48]line номер 170 [10:22:48]line сэкономлено 30.35 сом [10:22:48]line ФМ: 0000000000871754 [10:22:48]line ФД: 191697 [10:22:48]line ФПД: 79157236562531 [10:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191697&fm=79157236562531&tin=02508201610067®Number=0000000000091776&sum=200000 [10:22:48]OFD Sender: Processing packet 191697 [packets to send 75, broken 74] [10:22:48]ProducePacketName [10:22:48]name=ofd_packets/00191697 [10:22:48]OFD Sender: To server: pG, [10:22:48]CommunicateWithHost lk.salyk.kg:30040 [10:22:48]ConnectInit lk.salyk.kg [10:22:48]written 0, free lines is 4095 [10:22:49]Connected sock=9 [10:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 1A 07 01 A4 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 04 C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EC 02 00 35 04 06 00 47 FE 3A F7 7A 63 1D 9B 96 18 5E 7A B0 84 [10:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 D7 47 00 A1 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 EC 02 00 F4 03 04 00 D0 67 1C 67 B6 04 01 00 00 61 7F C3 EF CF 24 3B 86 [10:22:49]CommunicateWithHost err = 0 [10:22:49]CheckOFDResponse [10:22:49]1017 (14) - 77093643461234 [10:22:49]1041 (16) - 0000000000871754 [10:22:49]1040 (4) - 191697 [10:22:49]1012 (4) - 26.10.2024 03:53 [10:22:49]1206 (1) - 0 [10:22:49]OFD Sender: Remove packet 191697 [10:22:49]ProducePacketName [10:22:49]name=ofd_packets/00191697 [10:22:49]NVStorageDeleteData [10:22:49]Write to MH i2c: 01 00 00 39 EE 27 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: 01 07 00 39 EE 00 00 00 00 00 51 0C 8B [10:22:49]RasterBufferAndPrint [10:22:49]line [10:22:49]line [10:22:49]line [10:22:49]line [10:22:49]line [10:22:49]written 0, free lines is 3160 [10:22:49]MH_Cut [10:22:49]Write to MH i2c: D1 01 00 40 EE 01 00 [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: D1 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: D1 01 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: D1 01 00 40 EE 00 FF [10:22:49]Write to MH i2c: 01 00 00 41 EE 2F [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]OFD Sender: No OFD packet to send [10:22:50]*** Cut start [10:22:50]*** Partial cut [10:22:50]*** CUTSNS_PIN = 1 [10:22:50]*** CUTSNS_PIN = 0 [10:22:50]*** Brake cut motor [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]*** Stop cut motor [10:22:51]*** Cut end [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 41 EE 00 00 00 00 00 FF 0F 44 [10:22:51]process_action close_receipt done [10:22:51]requested_data is exist [10:22:51]produce_requested_data [10:22:51]requested_item fm.sn is exist - process it [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 11 00 00 [10:22:51]Write to MH i2c: E2 08 00 42 EE 80 11 00 00 00 00 00 00 AA [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 17 00 42 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [10:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:22:51]wFMCommunicate OK [10:22:51]requested_item fd.num is exist - process it [10:22:51]SAM_PROTO_GetFieldsCounters [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 00 00 [10:22:51]Write to MH i2c: E2 08 00 43 EE 80 13 00 00 00 00 00 00 AD [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 62 00 43 EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [10:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_GetFieldsCounters done [10:22:51]requested_item shift.num is exist - process it [10:22:51]requested_item shift.opened is exist - process it [10:22:51]req_shift_opened [10:22:51]FM_GetShiftState [10:22:51]SAM_PROTO_GetShiftState [10:22:51]wFMCommunicate request_size=4 [10:22:51]MH_SAM_APDU [10:22:51]CAPDU: 80 13 01 00 [10:22:51]Write to MH i2c: E2 08 00 44 EE 80 13 01 00 00 00 00 00 AF [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:51]Read from MH i2c: E2 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0E 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: E2 0E 00 44 EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 28 [10:22:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:22:51]wFMCommunicate OK [10:22:51]SAM_PROTO_GetShiftState done [10:22:51]FM_GetShiftState done [10:22:51]req_shift_opened done [10:22:51]requested_item shift.open_date is exist - process it [10:22:51]req_shift_open_date [10:22:51]req_shift_open_date done [10:22:51]produce_requested_data done [10:22:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191697,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:22:51]process_action_free close_receipt [10:22:51]json_value_free [10:22:51]json_value_free done [10:22:51]process_json_proto returns [10:22:51]Send response to host [10:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191697,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:22:51]free response buf [10:22:51]execute_script done [10:22:51]execute_script returns [10:22:51]free content buf [10:22:51]Sock 10.Close socket [10:22:51]Sock 10.Thread stoped [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:28]accept exits with 8 [10:24:28]New connection [10:24:28]New thread 3066817892 created [10:24:28]Thread 3066961252 joined [10:24:28]Waiting for new connection... [10:24:28] Sock 8.Parse request [10:24:28]Sock 8.Check first char [10:24:28]Sock 8.First char is OK [10:24:28]request: POST /json_proto HTTP/1.0 [10:24:28]Method: POST [10:24:28]URL: /json_proto [10:24:28]Method is POST - this is cgi request [10:24:28]url: /json_proto [10:24:28]query_string will be loaded in cgi processing [10:24:28]execute_cgi json_proto POST (null) [10:24:28]execute_cgi path=json_proto method=POST [10:24:28]POST find Content-Length [10:24:28]Host: 172.17.63.131:8080 [10:24:28]Content-Length: 673 [10:24:28]Content-Type: application/json [10:24:28] [10:24:28]POST finish read [10:24:28]Found Content-Length = 673 [10:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31000", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:28]execute_script... [10:24: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)31000", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:28]POST & json_proto [10:24:28]process_json_proto [10:24:28]json parsed OK: [10:24:28]protocol is kg_v1.0 [10:24:28]action value=close_receipt [10:24:28]process_action close_receipt [10:24:28]cmd_close_receipt [10:24:28]MH_GetDate [10:24:28]Write to MH i2c: F0 00 00 45 EE 22 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: F0 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: F0 09 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: F0 09 00 45 EE 00 6A C3 1C 67 22 05 6E 64 D4 [10:24:28]GetLastDocTimeStamp 1729938180 [10:24:28]current date 1729938282 [10:24:28]FM_GetShiftState [10:24:28]SAM_PROTO_GetShiftState [10:24:28]wFMCommunicate request_size=4 [10:24:28]MH_SAM_APDU [10:24:28]CAPDU: 80 13 01 00 [10:24:28]Write to MH i2c: E2 08 00 46 EE 80 13 01 00 00 00 00 00 B1 [10:24:28]Write i2c OK [10:24:28]MH_I2C_Read... [10:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:28]Read from MH i2c: E2 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 [10:24:28]MH_I2C_Read... [10:24:28]Read from MH i2c: E2 0E 00 46 EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2A [10:24:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:24:28]wFMCommunicate OK [10:24:28]SAM_PROTO_GetShiftState done [10:24:28]FM_GetShiftState done [10:24:28]opened in 1729902770 [10:24:28]opened+sec_in_day 1729989170 [10:24:28]quantity*price = 50063 [10:24:28]sum+1 = 50064 [10:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 61 26.10.2024 10:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191698 ФПД: 89706785122877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191698&fm=89706785122877&tin=02508201610067®Number=0000000000091776&sum=50000 [10:24:29]StoreToDocumentArchive [10:24:29]shift 541 fd 191698 [10:24:29]save to /storage/0541/doc_00191698 [10:24:29]save last doc name /storage/0541/doc_00191698 to /storage/kkm_last_doc_name [10:24:29]save OK [10:24:29]Clear old archive folders... [10:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:29]tlvbuf is 016EB150 [10:24:29]SAM_PROTO_ClearQueue [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 09 00 00 [10:24:29]Write to MH i2c: E2 08 00 53 EE 80 09 00 00 00 00 00 00 B3 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 53 EE 00 90 00 B5 [10:24:29]RAPDU: 90 00 [10:24:29]wFMCommunicate OK [10:24:29]SAM_PROTO_ClearQueue done [10:24:29]KKMCreateOFDPacket [10:24:29]OFDProtocolAddRootSTLVToBuf [10:24:29]FM_MakeSignedData [10:24:29]FM_MakeSignedData [10:24:29]SAM_PROTO_SignData [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 0D 01 02 [10:24:29]Write to MH i2c: E2 08 00 54 EE 80 0D 01 02 00 00 00 00 BB [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 54 EE 00 90 00 B6 [10:24:29]RAPDU: 90 00 [10:24:29]wFMCommunicate OK [10:24:29]wFMCommunicate request_size=255 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6A C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EC 02 00 35 04 06 00 51 96 7D 0F [10:24:29]Write to MH i2c: E2 02 01 55 EE 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6A C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EC 02 00 35 04 06 00 51 96 7D 0F 00 00 0C [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 55 EE 00 90 00 B7 [10:24:29]RAPDU: 90 00 [10:24:29]wFMCommunicate OK [10:24:29]wFMCommunicate request_size=7 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 0D 02 02 02 AA 3D [10:24:29]Write to MH i2c: E2 0A 00 56 EE 80 0D 02 02 02 00 AA 3D 00 00 A9 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 03 00 56 EE 00 90 00 B8 [10:24:29]RAPDU: 90 00 [10:24:29]wFMCommunicate OK [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 0D 03 02 [10:24:29]Write to MH i2c: E2 08 00 57 EE 80 0D 03 02 00 00 00 00 C0 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:29]OFD Sender: No OFD packet to send [10:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:29]Read from MH i2c: E2 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0B 00 [10:24:29]MH_I2C_Read... [10:24:29]Read from MH i2c: E2 0B 00 57 EE 00 A2 6C 8D 45 77 EA 8C 7B 90 00 09 [10:24:29]RAPDU: A2 6C 8D 45 77 EA 8C 7B 90 00 [10:24:29]wFMCommunicate OK [10:24:29]SAM_PROTO_SignData done [10:24:29]FM_MakeSignedData done [10:24:29]CreateOFDProtocolMessage [10:24:29]wFMCommunicate request_size=4 [10:24:29]MH_SAM_APDU [10:24:29]CAPDU: 80 11 00 00 [10:24:29]Write to MH i2c: E2 08 00 58 EE 80 11 00 00 00 00 00 00 C0 [10:24:29]Write i2c OK [10:24:29]MH_I2C_Read... [10:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:30]Read from MH i2c: E2 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 17 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: E2 17 00 58 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [10:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:30]wFMCommunicate OK [10:24:30]CreateOFDProtocolMessage done [10:24:30]OFDSenderStorePacket 191698 [10:24:30]StoreOFDPacket docnum=191698 [10:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DC B1 04 01 17 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6A C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EC 02 00 35 04 06 00 51 96 7D 0F AA 3D A2 6C 8D 45 77 EA 8C 7B [10:24:30]CheckFolder [10:24:30]dirname=/storage/ofd_packets [10:24:30]CheckFolder done [10:24:30]ProducePacketName [10:24:30]name=ofd_packets/00191698 [10:24:30]NVStorageSaveData ofd_packets/00191698 [10:24:30]File name is /storage/ofd_packets/00191698 [10:24:30]Write 298 bytes [10:24:30]NVStorageSaveData done [10:24:30]OFDSenderStorePacket done [10:24:30]KKMCreateOFDPacket done [10:24:30]NVStorageSaveData kkm_last_timestamp [10:24:30]File name is /storage/kkm_last_timestamp [10:24:30]Write 4 bytes [10:24:30]NVStorageSaveData done [10:24:30]ExternCall_PrintAddStr [10:24:30]wPrintStart [10:24:30]Write to MH i2c: 01 00 00 59 EE 47 [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 07 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 07 00 59 EE 00 00 00 00 00 FF 0F 5C [10:24:30]RasterBufferAndPrint [10:24:30]line Счет N : (1)31000 [10:24:30]line ИНН: 02508201610067 [10:24:30]line Контрольно-Кассовый Чек [10:24:30]line ПРОДАЖА [10:24:30]line ТРК (МРК, ГНК) : 22 [10:24:30]line Товар: 2710194210 [10:24:30]line ДТ-К-5 [10:24:30]line 6.570 * 76.20 [10:24:30]line = 500.63 [10:24:30]line НДС 12% НСП 1% [10:24:30]line > о реализуемом товаре [10:24:30]line ОКРУГЛЕНИЕ: -0.63 [10:24:30]line ИТОГО: 500.00 [10:24:30]line Внесено: 500.00 [10:24:30]line СДАЧА: 0.00 [10:24:30]line НСП 1% : 4.43 [10:24:30]line НДС 12% : 53.16 [10:24:30]line Наличными: 500.00 [10:24:30]line Безнал.: 0.00 [10:24:30]line Место: АЗС № 170 "Партнер Нефть" [10:24:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:24:30]line СНО: Общий режим [10:24:30]line Чек 61 26.10.2024 10:24 [10:24:30]line Смена: 541 ФФД: 1.0 [10:24:30]line ЗНМ: 0300000110 [10:24:30]line РНМ: 0000000000091776 [10:24:30]line Версия ККМ: 001 [10:24:30]line ФМ: 0000000000871754 [10:24:30]line ФД: 191698 [10:24:30]line ФПД: 89706785122877 [10:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191698&fm=89706785122877&tin=02508201610067®Number=0000000000091776&sum=50000 [10:24:30]OFD Sender: Processing packet 191698 [packets to send 75, broken 74] [10:24:30]ProducePacketName [10:24:30]name=ofd_packets/00191698 [10:24:30]OFD Sender: To server: pG, [10:24:30]CommunicateWithHost lk.salyk.kg:30040 [10:24:30]ConnectInit lk.salyk.kg [10:24:30]written 0, free lines is 4095 [10:24:30]Connected sock=10 [10:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DC B1 04 01 17 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 6A C3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EC 02 00 35 04 06 00 51 96 7D 0F AA 3D A2 6C 8D 45 77 EA 8C 7B [10:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 62 33 47 00 A7 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 EC 02 00 F4 03 04 00 35 68 1C 67 B6 04 01 00 00 14 A6 7B 03 1F 36 D0 1A [10:24:30]CommunicateWithHost err = 0 [10:24:30]CheckOFDResponse [10:24:30]1017 (14) - 77093643461234 [10:24:30]1041 (16) - 0000000000871754 [10:24:30]1040 (4) - 191698 [10:24:30]1012 (4) - 26.10.2024 03:55 [10:24:30]1206 (1) - 0 [10:24:30]OFD Sender: Remove packet 191698 [10:24:30]ProducePacketName [10:24:30]name=ofd_packets/00191698 [10:24:30]NVStorageDeleteData [10:24:30]Write to MH i2c: 01 00 00 84 EE 72 [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 07 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: 01 07 00 84 EE 00 00 00 00 00 B4 0C 39 [10:24:30]RasterBufferAndPrint [10:24:30]line [10:24:30]line [10:24:30]line [10:24:30]line [10:24:30]line [10:24:30]written 0, free lines is 3258 [10:24:30]MH_Cut [10:24:30]Write to MH i2c: D1 01 00 8B EE 01 4B [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: D1 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: D1 01 00 [10:24:30]MH_I2C_Read... [10:24:30]Read from MH i2c: D1 01 00 8B EE 00 4A [10:24:30]Write to MH i2c: 01 00 00 8C EE 7A [10:24:30]Write i2c OK [10:24:30]MH_I2C_Read... [10:24:31]OFD Sender: No OFD packet to send [10:24:31]*** Cut start [10:24:31]*** Partial cut [10:24:31]*** CUTSNS_PIN = 1 [10:24:31]*** CUTSNS_PIN = 0 [10:24:31]*** Brake cut motor [10:24:32]Read from MH i2c: 01 [10:24:32]MH_I2C_Read... [10:24:32]*** Stop cut motor [10:24:32]*** Cut end [10:24:32]Read from MH i2c: 01 07 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: 01 07 00 8C EE 00 00 00 00 00 FF 0F 8F [10:24:32]process_action close_receipt done [10:24:32]requested_data is exist [10:24:32]produce_requested_data [10:24:32]requested_item fm.sn is exist - process it [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 11 00 00 [10:24:32]Write to MH i2c: E2 08 00 8D EE 80 11 00 00 00 00 00 00 F5 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 17 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 17 00 8D EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [10:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:24:32]wFMCommunicate OK [10:24:32]requested_item fd.num is exist - process it [10:24:32]SAM_PROTO_GetFieldsCounters [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 13 00 00 [10:24:32]Write to MH i2c: E2 08 00 8E EE 80 13 00 00 00 00 00 00 F8 [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 62 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 62 00 8E EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [10:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:32]wFMCommunicate OK [10:24:32]SAM_PROTO_GetFieldsCounters done [10:24:32]requested_item shift.num is exist - process it [10:24:32]requested_item shift.opened is exist - process it [10:24:32]req_shift_opened [10:24:32]FM_GetShiftState [10:24:32]SAM_PROTO_GetShiftState [10:24:32]wFMCommunicate request_size=4 [10:24:32]MH_SAM_APDU [10:24:32]CAPDU: 80 13 01 00 [10:24:32]Write to MH i2c: E2 08 00 8F EE 80 13 01 00 00 00 00 00 FA [10:24:32]Write i2c OK [10:24:32]MH_I2C_Read... [10:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:32]Read from MH i2c: E2 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 0E 00 [10:24:32]MH_I2C_Read... [10:24:32]Read from MH i2c: E2 0E 00 8F EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [10:24:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:24:32]wFMCommunicate OK [10:24:32]SAM_PROTO_GetShiftState done [10:24:32]FM_GetShiftState done [10:24:32]req_shift_opened done [10:24:32]requested_item shift.open_date is exist - process it [10:24:32]req_shift_open_date [10:24:32]req_shift_open_date done [10:24:32]produce_requested_data done [10:24:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191698,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:24:32]process_action_free close_receipt [10:24:32]json_value_free [10:24:32]json_value_free done [10:24:32]process_json_proto returns [10:24:32]Send response to host [10:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191698,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:24:32]free response buf [10:24:32]execute_script done [10:24:32]execute_script returns [10:24:32]free content buf [10:24:32]Sock 8.Close socket [10:24:32]Sock 8.Thread stoped [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:08]accept exits with 9 [10:27:08]New connection [10:27:08]New thread 3066961252 created [10:27:08]Thread 3066817892 joined [10:27:08]Waiting for new connection... [10:27:08] Sock 9.Parse request [10:27:08]Sock 9.Check first char [10:27:08]Sock 9.First char is OK [10:27:08]request: POST /json_proto HTTP/1.0 [10:27:08]Method: POST [10:27:08]URL: /json_proto [10:27:08]Method is POST - this is cgi request [10:27:08]url: /json_proto [10:27:08]query_string will be loaded in cgi processing [10:27:08]execute_cgi json_proto POST (null) [10:27:08]execute_cgi path=json_proto method=POST [10:27:08]POST find Content-Length [10:27:08]Host: 172.17.63.131:8080 [10:27:08]Content-Length: 676 [10:27:08]Content-Type: application/json [10:27:08] [10:27:08]POST finish read [10:27:08]Found Content-Length = 676 [10:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:08]execute_script... [10:27: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)31001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:08]POST & json_proto [10:27:08]process_json_proto [10:27:08]json parsed OK: [10:27:08]protocol is kg_v1.0 [10:27:08]action value=close_receipt [10:27:08]process_action close_receipt [10:27:08]cmd_close_receipt [10:27:08]MH_GetDate [10:27:08]Write to MH i2c: F0 00 00 90 EE 6D [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: F0 09 00 90 EE 00 0A C4 1C 67 22 05 6E 64 C0 [10:27:08]GetLastDocTimeStamp 1729938282 [10:27:08]current date 1729938442 [10:27:08]FM_GetShiftState [10:27:08]SAM_PROTO_GetShiftState [10:27:08]wFMCommunicate request_size=4 [10:27:08]MH_SAM_APDU [10:27:08]CAPDU: 80 13 01 00 [10:27:08]Write to MH i2c: E2 08 00 91 EE 80 13 01 00 00 00 00 00 FC [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:08]Read from MH i2c: E2 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: E2 0E 00 91 EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 75 [10:27:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:27:08]wFMCommunicate OK [10:27:08]SAM_PROTO_GetShiftState done [10:27:08]FM_GetShiftState done [10:27:08]opened in 1729902770 [10:27:08]opened+sec_in_day 1729989170 [10:27:08]quantity*price = 30038 [10:27:08]sum+1 = 30039 [10:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 62 26.10.2024 10:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191699 ФПД: 55895734441348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191699&fm=55895734441348&tin=02508201610067®Number=0000000000091776&sum=30000 [10:27:09]StoreToDocumentArchive [10:27:09]shift 541 fd 191699 [10:27:09]save to /storage/0541/doc_00191699 [10:27:09]save last doc name /storage/0541/doc_00191699 to /storage/kkm_last_doc_name [10:27:09]save OK [10:27:09]Clear old archive folders... [10:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:09]tlvbuf is 015D86D0 [10:27:09]SAM_PROTO_ClearQueue [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 09 00 00 [10:27:09]Write to MH i2c: E2 08 00 9E EE 80 09 00 00 00 00 00 00 FE [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 9E EE 00 90 00 00 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_ClearQueue done [10:27:09]KKMCreateOFDPacket [10:27:09]OFDProtocolAddRootSTLVToBuf [10:27:09]FM_MakeSignedData [10:27:09]FM_MakeSignedData [10:27:09]SAM_PROTO_SignData [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 0D 01 02 [10:27:09]Write to MH i2c: E2 08 00 9F EE 80 0D 01 02 00 00 00 00 06 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 9F EE 00 90 00 01 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]wFMCommunicate request_size=255 [10:27:09]MH_SAM_APDU [10:27: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EC 02 00 35 04 06 00 32 [10:27:09]Write to MH i2c: E2 02 01 A0 EE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EC 02 00 35 04 06 00 32 00 00 2F [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 A0 EE 00 90 00 02 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]wFMCommunicate request_size=10 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 0D 02 02 05 D6 3D 65 55 84 [10:27:09]Write to MH i2c: E2 0D 00 A1 EE 80 0D 02 02 05 00 D6 3D 65 55 84 00 00 64 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 03 00 A1 EE 00 90 00 03 [10:27:09]RAPDU: 90 00 [10:27:09]wFMCommunicate OK [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 0D 03 02 [10:27:09]Write to MH i2c: E2 08 00 A2 EE 80 0D 03 02 00 00 00 00 0B [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 0B 00 A2 EE 00 9C FE C5 D1 82 B7 3E 10 90 00 C3 [10:27:10]RAPDU: 9C FE C5 D1 82 B7 3E 10 90 00 [10:27:10]wFMCommunicate OK [10:27:10]SAM_PROTO_SignData done [10:27:10]FM_MakeSignedData done [10:27:10]CreateOFDProtocolMessage [10:27:10]wFMCommunicate request_size=4 [10:27:10]MH_SAM_APDU [10:27:10]CAPDU: 80 11 00 00 [10:27:10]Write to MH i2c: E2 08 00 A3 EE 80 11 00 00 00 00 00 00 0B [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:10]Read from MH i2c: E2 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: E2 17 00 A3 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [10:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:10]wFMCommunicate OK [10:27:10]CreateOFDProtocolMessage done [10:27:10]OFDSenderStorePacket 191699 [10:27:10]StoreOFDPacket docnum=191699 [10:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 81 07 01 34 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EC 02 00 35 04 06 00 32 D6 3D 65 55 84 9C FE C5 D1 82 B7 3E 10 [10:27:10]CheckFolder [10:27:10]dirname=/storage/ofd_packets [10:27:10]CheckFolder done [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00191699 [10:27:10]NVStorageSaveData ofd_packets/00191699 [10:27:10]File name is /storage/ofd_packets/00191699 [10:27:10]Write 301 bytes [10:27:10]NVStorageSaveData done [10:27:10]OFDSenderStorePacket done [10:27:10]KKMCreateOFDPacket done [10:27:10]NVStorageSaveData kkm_last_timestamp [10:27:10]File name is /storage/kkm_last_timestamp [10:27:10]Write 4 bytes [10:27:10]NVStorageSaveData done [10:27:10]ExternCall_PrintAddStr [10:27:10]wPrintStart [10:27:10]Write to MH i2c: 01 00 00 A4 EE 92 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 A4 EE 00 00 00 00 00 FF 0F A7 [10:27:10]RasterBufferAndPrint [10:27:10]line Счет N : (1)31001 [10:27:10]line ИНН: 02508201610067 [10:27:10]line Контрольно-Кассовый Чек [10:27:10]line ПРОДАЖА [10:27:10]line ТРК (МРК, ГНК) : 21 [10:27:10]line Товар: 2710124130 [10:27:10]line Аи-92-К-5 [10:27:10]line 4.490 * 66.90 [10:27:10]line = 300.38 [10:27:10]line НДС 12% НСП 1% [10:27:10]line > о реализуемом товаре [10:27:10]line ОКРУГЛЕНИЕ: -0.38 [10:27:10]line ИТОГО: 300.00 [10:27:10]line Внесено: 300.00 [10:27:10]line СДАЧА: 0.00 [10:27:10]line НСП 1% : 2.66 [10:27:10]line НДС 12% : 31.90 [10:27:10]line Наличными: 300.00 [10:27:10]line Безнал.: 0.00 [10:27:10]line Место: АЗС № 170 "Партнер Нефть" [10:27:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:27:10]line СНО: Общий режим [10:27:10]line Чек 62 26.10.2024 10:27 [10:27:10]line Смена: 541 ФФД: 1.0 [10:27:10]line ЗНМ: 0300000110 [10:27:10]line РНМ: 0000000000091776 [10:27:10]line Версия ККМ: 001 [10:27:10]line ФМ: 0000000000871754 [10:27:10]line ФД: 191699 [10:27:10]line ФПД: 55895734441348 [10:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102722&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191699&fm=55895734441348&tin=02508201610067®Number=0000000000091776&sum=30000 [10:27:10]written 0, free lines is 4095 [10:27:10]OFD Sender: Processing packet 191699 [packets to send 75, broken 74] [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00191699 [10:27:10]OFD Sender: To server: pG, [10:27:10]CommunicateWithHost lk.salyk.kg:30040 [10:27:10]ConnectInit lk.salyk.kg [10:27:10]Connected sock=10 [10:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 81 07 01 34 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EC 02 00 35 04 06 00 32 D6 3D 65 55 84 9C FE C5 D1 82 B7 3E 10 [10:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 01 5A 47 00 27 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 EC 02 00 F4 03 04 00 D5 68 1C 67 B6 04 01 00 00 65 9C E7 30 AB 1C 3F 2F [10:27:10]CommunicateWithHost err = 0 [10:27:10]CheckOFDResponse [10:27:10]1017 (14) - 77093643461234 [10:27:10]1041 (16) - 0000000000871754 [10:27:10]1040 (4) - 191699 [10:27:10]1012 (4) - 26.10.2024 03:58 [10:27:10]1206 (1) - 0 [10:27:10]OFD Sender: Remove packet 191699 [10:27:10]ProducePacketName [10:27:10]name=ofd_packets/00191699 [10:27:10]NVStorageDeleteData [10:27:10]Write to MH i2c: 01 00 00 CF EE BD [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: 01 07 00 CF EE 00 00 00 00 00 B9 0C 89 [10:27:10]RasterBufferAndPrint [10:27:10]line [10:27:10]line [10:27:10]line [10:27:10]line [10:27:10]line [10:27:10]written 0, free lines is 3264 [10:27:10]MH_Cut [10:27:10]Write to MH i2c: D1 01 00 D6 EE 01 96 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: D1 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: D1 01 00 [10:27:10]MH_I2C_Read... [10:27:10]Read from MH i2c: D1 01 00 D6 EE 00 95 [10:27:10]Write to MH i2c: 01 00 00 D7 EE C5 [10:27:10]Write i2c OK [10:27:10]MH_I2C_Read... [10:27:10]OFD Sender: No OFD packet to send [10:27:11]*** Cut start [10:27:11]*** Partial cut [10:27:11]*** CUTSNS_PIN = 1 [10:27:11]*** CUTSNS_PIN = 0 [10:27:11]*** Brake cut motor [10:27:11]Read from MH i2c: 01 [10:27:11]MH_I2C_Read... [10:27:11]*** Stop cut motor [10:27:11]*** Cut end [10:27:11]Read from MH i2c: 01 07 00 [10:27:11]MH_I2C_Read... [10:27:11]Read from MH i2c: 01 07 00 D7 EE 00 00 00 00 00 FF 0F DA [10:27:11]process_action close_receipt done [10:27:11]requested_data is exist [10:27:11]produce_requested_data [10:27:11]requested_item fm.sn is exist - process it [10:27:11]wFMCommunicate request_size=4 [10:27:11]MH_SAM_APDU [10:27:12]CAPDU: 80 11 00 00 [10:27:12]Write to MH i2c: E2 08 00 D8 EE 80 11 00 00 00 00 00 00 40 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 17 00 D8 EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [10:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:12]wFMCommunicate OK [10:27:12]requested_item fd.num is exist - process it [10:27:12]SAM_PROTO_GetFieldsCounters [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 00 00 [10:27:12]Write to MH i2c: E2 08 00 D9 EE 80 13 00 00 00 00 00 00 43 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 62 00 D9 EE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [10:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetFieldsCounters done [10:27:12]requested_item shift.num is exist - process it [10:27:12]requested_item shift.opened is exist - process it [10:27:12]req_shift_opened [10:27:12]FM_GetShiftState [10:27:12]SAM_PROTO_GetShiftState [10:27:12]wFMCommunicate request_size=4 [10:27:12]MH_SAM_APDU [10:27:12]CAPDU: 80 13 01 00 [10:27:12]Write to MH i2c: E2 08 00 DA EE 80 13 01 00 00 00 00 00 45 [10:27:12]Write i2c OK [10:27:12]MH_I2C_Read... [10:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:12]Read from MH i2c: E2 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 [10:27:12]MH_I2C_Read... [10:27:12]Read from MH i2c: E2 0E 00 DA EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [10:27:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:27:12]wFMCommunicate OK [10:27:12]SAM_PROTO_GetShiftState done [10:27:12]FM_GetShiftState done [10:27:12]req_shift_opened done [10:27:12]requested_item shift.open_date is exist - process it [10:27:12]req_shift_open_date [10:27:12]req_shift_open_date done [10:27:12]produce_requested_data done [10:27:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191699,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:27:12]process_action_free close_receipt [10:27:12]json_value_free [10:27:12]json_value_free done [10:27:12]process_json_proto returns [10:27:12]Send response to host [10:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191699,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:27:12]free response buf [10:27:12]execute_script done [10:27:12]execute_script returns [10:27:12]free content buf [10:27:12]Sock 9.Close socket [10:27:12]Sock 9.Thread stoped [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:27:56]accept exits with 8 [10:27:56]New connection [10:27:56]New thread 3066817892 created [10:27:56]Thread 3066961252 joined [10:27:56]Waiting for new connection... [10:27:56] Sock 8.Parse request [10:27:56]Sock 8.Check first char [10:27:56]Sock 8.First char is OK [10:27:56]request: POST /json_proto HTTP/1.0 [10:27:56]Method: POST [10:27:56]URL: /json_proto [10:27:56]Method is POST - this is cgi request [10:27:56]url: /json_proto [10:27:56]query_string will be loaded in cgi processing [10:27:56]execute_cgi json_proto POST (null) [10:27:56]execute_cgi path=json_proto method=POST [10:27:56]POST find Content-Length [10:27:56]Host: 172.17.63.131:8080 [10:27:56]Content-Length: 681 [10:27:56]Content-Type: application/json [10:27:56] [10:27:56]POST finish read [10:27:56]Found Content-Length = 681 [10:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:56]execute_script... [10:27: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)31002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:56]POST & json_proto [10:27:56]process_json_proto [10:27:56]json parsed OK: [10:27:56]protocol is kg_v1.0 [10:27:56]action value=close_receipt [10:27:56]process_action close_receipt [10:27:56]cmd_close_receipt [10:27:56]MH_GetDate [10:27:56]Write to MH i2c: F0 00 00 DB EE B8 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: F0 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: F0 09 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: F0 09 00 DB EE 00 3A C4 1C 67 22 05 6E 64 3B [10:27:56]GetLastDocTimeStamp 1729938442 [10:27:56]current date 1729938490 [10:27:56]FM_GetShiftState [10:27:56]SAM_PROTO_GetShiftState [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 13 01 00 [10:27:56]Write to MH i2c: E2 08 00 DC EE 80 13 01 00 00 00 00 00 47 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0E 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0E 00 DC EE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C0 [10:27:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_GetShiftState done [10:27:56]FM_GetShiftState done [10:27:56]opened in 1729902770 [10:27:56]opened+sec_in_day 1729989170 [10:27:56]quantity*price = 100015 [10:27:56]sum+1 = 100017 [10:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 63 26.10.2024 10:28 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191700 ФПД: 192509980546769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191700&fm=192509980546769&tin=02508201610067®Number=0000000000091776&sum=100000 [10:27:57]StoreToDocumentArchive [10:27:57]shift 541 fd 191700 [10:27:57]save to /storage/0541/doc_00191700 [10:27:57]save last doc name /storage/0541/doc_00191700 to /storage/kkm_last_doc_name [10:27:57]save OK [10:27:57]Clear old archive folders... [10:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:57]tlvbuf is 0185FBB0 [10:27:57]SAM_PROTO_ClearQueue [10:27:57]wFMCommunicate request_size=4 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 09 00 00 [10:27:57]Write to MH i2c: E2 08 00 E9 EE 80 09 00 00 00 00 00 00 49 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 E9 EE 00 90 00 4B [10:27:57]RAPDU: 90 00 [10:27:57]wFMCommunicate OK [10:27:57]SAM_PROTO_ClearQueue done [10:27:57]KKMCreateOFDPacket [10:27:57]OFDProtocolAddRootSTLVToBuf [10:27:57]FM_MakeSignedData [10:27:57]FM_MakeSignedData [10:27:57]SAM_PROTO_SignData [10:27:57]wFMCommunicate request_size=4 [10:27:57]MH_SAM_APDU [10:27:57]CAPDU: 80 0D 01 02 [10:27:57]Write to MH i2c: E2 08 00 EA EE 80 0D 01 02 00 00 00 00 51 [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:57]Read from MH i2c: E2 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 [10:27:57]MH_I2C_Read... [10:27:57]Read from MH i2c: E2 03 00 EA EE 00 90 00 4C [10:27:57]RAPDU: 90 00 [10:27:57]wFMCommunicate OK [10:27:57]wFMCommunicate request_size=255 [10:27:57]MH_SAM_APDU [10:27: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EC 02 00 35 04 06 00 AF [10:27:57]Write to MH i2c: E2 02 01 EB EE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EC 02 00 35 04 06 00 AF 00 00 2F [10:27:57]Write i2c OK [10:27:57]MH_I2C_Read... [10:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:58]Read from MH i2c: E2 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 03 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 03 00 EB EE 00 90 00 4D [10:27:58]RAPDU: 90 00 [10:27:58]wFMCommunicate OK [10:27:58]wFMCommunicate request_size=10 [10:27:58]MH_SAM_APDU [10:27:58]CAPDU: 80 0D 02 02 05 16 39 01 96 D1 [10:27:58]Write to MH i2c: E2 0D 00 EC EE 80 0D 02 02 05 00 16 39 01 96 D1 00 00 15 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:58]Read from MH i2c: E2 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 03 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 03 00 EC EE 00 90 00 4E [10:27:58]RAPDU: 90 00 [10:27:58]wFMCommunicate OK [10:27:58]wFMCommunicate request_size=4 [10:27:58]MH_SAM_APDU [10:27:58]CAPDU: 80 0D 03 02 [10:27:58]Write to MH i2c: E2 08 00 ED EE 80 0D 03 02 00 00 00 00 56 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:58]Read from MH i2c: E2 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 0B 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 0B 00 ED EE 00 0A A1 2B 31 47 7F 36 2C 90 00 86 [10:27:58]RAPDU: 0A A1 2B 31 47 7F 36 2C 90 00 [10:27:58]wFMCommunicate OK [10:27:58]SAM_PROTO_SignData done [10:27:58]FM_MakeSignedData done [10:27:58]CreateOFDProtocolMessage [10:27:58]wFMCommunicate request_size=4 [10:27:58]MH_SAM_APDU [10:27:58]CAPDU: 80 11 00 00 [10:27:58]Write to MH i2c: E2 08 00 EE EE 80 11 00 00 00 00 00 00 56 [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:58]Read from MH i2c: E2 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 17 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: E2 17 00 EE EE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [10:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:27:58]wFMCommunicate OK [10:27:58]CreateOFDProtocolMessage done [10:27:58]OFDSenderStorePacket 191700 [10:27:58]StoreOFDPacket docnum=191700 [10:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 5F 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EC 02 00 35 04 06 00 AF 16 39 01 96 D1 0A A1 2B 31 47 7F 36 2C [10:27:58]CheckFolder [10:27:58]dirname=/storage/ofd_packets [10:27:58]CheckFolder done [10:27:58]ProducePacketName [10:27:58]name=ofd_packets/00191700 [10:27:58]NVStorageSaveData ofd_packets/00191700 [10:27:58]File name is /storage/ofd_packets/00191700 [10:27:58]Write 301 bytes [10:27:58]NVStorageSaveData done [10:27:58]OFDSenderStorePacket done [10:27:58]KKMCreateOFDPacket done [10:27:58]NVStorageSaveData kkm_last_timestamp [10:27:58]File name is /storage/kkm_last_timestamp [10:27:58]Write 4 bytes [10:27:58]NVStorageSaveData done [10:27:58]ExternCall_PrintAddStr [10:27:58]wPrintStart [10:27:58]Write to MH i2c: 01 00 00 EF EE DD [10:27:58]Write i2c OK [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 07 00 [10:27:58]MH_I2C_Read... [10:27:58]Read from MH i2c: 01 07 00 EF EE 00 00 00 00 00 FF 0F F2 [10:27:58]RasterBufferAndPrint [10:27:58]line Счет N : (1)31002 [10:27:58]line ИНН: 02508201610067 [10:27:58]line Контрольно-Кассовый Чек [10:27:58]line ПРОДАЖА [10:27:58]line ТРК (МРК, ГНК) : 21 [10:27:58]line Товар: 2710124130 [10:27:58]line Аи-92-К-5 [10:27:58]line 14.950 * 66.90 [10:27:58]line = 1000.16 [10:27:58]line НДС 12% НСП 1% [10:27:58]line > о реализуемом товаре [10:27:58]line ОКРУГЛЕНИЕ: -0.16 [10:27:58]line ИТОГО: 1000.00 [10:27:58]line Внесено: 1000.00 [10:27:58]line СДАЧА: 0.00 [10:27:58]line НСП 1% : 8.85 [10:27:58]line НДС 12% : 106.21 [10:27:58]line Наличными: 1000.00 [10:27:58]line Безнал.: 0.00 [10:27:58]line Место: АЗС № 170 "Партнер Нефть" [10:27:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:27:58]line СНО: Общий режим [10:27:58]line Чек 63 26.10.2024 10:28 [10:27:58]line Смена: 541 ФФД: 1.0 [10:27:58]line ЗНМ: 0300000110 [10:27:58]line РНМ: 0000000000091776 [10:27:58]line Версия ККМ: 001 [10:27:58]line ФМ: 0000000000871754 [10:27:58]line ФД: 191700 [10:27:58]line ФПД: 192509980546769 [10:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T102810&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191700&fm=192509980546769&tin=02508201610067®Number=0000000000091776&sum=100000 [10:27:58]OFD Sender: Processing packet 191700 [packets to send 75, broken 74] [10:27:58]ProducePacketName [10:27:58]name=ofd_packets/00191700 [10:27:58]OFD Sender: To server: pG, [10:27:58]CommunicateWithHost lk.salyk.kg:30040 [10:27:58]ConnectInit lk.salyk.kg [10:27:58]written 0, free lines is 4095 [10:27:58]Connected sock=10 [10:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 5F 07 01 13 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 3A C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EC 02 00 35 04 06 00 AF 16 39 01 96 D1 0A A1 2B 31 47 7F 36 2C [10:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 3E 47 00 1D 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 EC 02 00 F4 03 04 00 06 69 1C 67 B6 04 01 00 00 BF 22 47 07 67 43 02 02 [10:27:59]CommunicateWithHost err = 0 [10:27:59]CheckOFDResponse [10:27:59]1017 (14) - 77093643461234 [10:27:59]1041 (16) - 0000000000871754 [10:27:59]1040 (4) - 191700 [10:27:59]1012 (4) - 26.10.2024 03:59 [10:27:59]1206 (1) - 0 [10:27:59]OFD Sender: Remove packet 191700 [10:27:59]ProducePacketName [10:27:59]name=ofd_packets/00191700 [10:27:59]NVStorageDeleteData [10:27:59]Write to MH i2c: 01 00 00 1A EF 09 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: 01 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: 01 07 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: 01 07 00 1A EF 00 00 00 00 00 BE 0C DA [10:27:59]RasterBufferAndPrint [10:27:59]line [10:27:59]line [10:27:59]line [10:27:59]line [10:27:59]line [10:27:59]written 0, free lines is 3267 [10:27:59]MH_Cut [10:27:59]Write to MH i2c: D1 01 00 21 EF 01 E2 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: D1 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: D1 01 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: D1 01 00 21 EF 00 E1 [10:27:59]Write to MH i2c: 01 00 00 22 EF 11 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]OFD Sender: No OFD packet to send [10:27:59]*** Cut start [10:27:59]*** Partial cut [10:27:59]*** CUTSNS_PIN = 1 [10:28:00]*** CUTSNS_PIN = 0 [10:28:00]*** Brake cut motor [10:28:00]Read from MH i2c: 01 [10:28:00]MH_I2C_Read... [10:28:00]*** Stop cut motor [10:28:00]*** Cut end [10:28:00]Read from MH i2c: 01 07 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: 01 07 00 22 EF 00 00 00 00 00 FF 0F 26 [10:28:00]process_action close_receipt done [10:28:00]requested_data is exist [10:28:00]produce_requested_data [10:28:00]requested_item fm.sn is exist - process it [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 11 00 00 [10:28:00]Write to MH i2c: E2 08 00 23 EF 80 11 00 00 00 00 00 00 8C [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 17 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 17 00 23 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [10:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:28:00]wFMCommunicate OK [10:28:00]requested_item fd.num is exist - process it [10:28:00]SAM_PROTO_GetFieldsCounters [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 13 00 00 [10:28:00]Write to MH i2c: E2 08 00 24 EF 80 13 00 00 00 00 00 00 8F [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 62 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 62 00 24 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_GetFieldsCounters done [10:28:00]requested_item shift.num is exist - process it [10:28:00]requested_item shift.opened is exist - process it [10:28:00]req_shift_opened [10:28:00]FM_GetShiftState [10:28:00]SAM_PROTO_GetShiftState [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 13 01 00 [10:28:00]Write to MH i2c: E2 08 00 25 EF 80 13 01 00 00 00 00 00 91 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 0E 00 25 EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [10:28:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_GetShiftState done [10:28:00]FM_GetShiftState done [10:28:00]req_shift_opened done [10:28:00]requested_item shift.open_date is exist - process it [10:28:00]req_shift_open_date [10:28:00]req_shift_open_date done [10:28:00]produce_requested_data done [10:28:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191700,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:28:00]process_action_free close_receipt [10:28:00]json_value_free [10:28:00]json_value_free done [10:28:00]process_json_proto returns [10:28:00]Send response to host [10:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191700,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:28:00]free response buf [10:28:00]execute_script done [10:28:00]execute_script returns [10:28:00]free content buf [10:28:00]Sock 8.Close socket [10:28:00]Sock 8.Thread stoped [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:30]accept exits with 9 [10:30:30]New connection [10:30:30]New thread 3066961252 created [10:30:30]Thread 3066817892 joined [10:30:30]Waiting for new connection... [10:30:30] Sock 9.Parse request [10:30:30]Sock 9.Check first char [10:30:30]Sock 9.First char is OK [10:30:30]request: POST /json_proto HTTP/1.0 [10:30:30]Method: POST [10:30:30]URL: /json_proto [10:30:30]Method is POST - this is cgi request [10:30:30]url: /json_proto [10:30:30]query_string will be loaded in cgi processing [10:30:30]execute_cgi json_proto POST (null) [10:30:30]execute_cgi path=json_proto method=POST [10:30:30]POST find Content-Length [10:30:30]Host: 172.17.63.131:8080 [10:30:30]Content-Length: 983 [10:30:30]Content-Type: application/json [10:30:30] [10:30:30]POST finish read [10:30:30]Found Content-Length = 983 [10:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.560, "sum" : 1618.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.56 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1618.00, "payments": [ { "type": 0, "sum" : 1618.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:30]execute_script... [10:30: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)31003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.560, "sum" : 1618.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.56 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 1618.00, "payments": [ { "type": 0, "sum" : 1618.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:30]POST & json_proto [10:30:30]process_json_proto [10:30:30]json parsed OK: [10:30:30]protocol is kg_v1.0 [10:30:30]action value=close_receipt [10:30:30]process_action close_receipt [10:30:30]cmd_close_receipt [10:30:30]MH_GetDate [10:30:30]Write to MH i2c: F0 00 00 26 EF 04 [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 09 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: F0 09 00 26 EF 00 D4 C4 1C 67 22 05 6E 64 21 [10:30:30]GetLastDocTimeStamp 1729938490 [10:30:30]current date 1729938644 [10:30:30]FM_GetShiftState [10:30:30]SAM_PROTO_GetShiftState [10:30:30]wFMCommunicate request_size=4 [10:30:30]MH_SAM_APDU [10:30:30]CAPDU: 80 13 01 00 [10:30:30]Write to MH i2c: E2 08 00 27 EF 80 13 01 00 00 00 00 00 93 [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:30]Read from MH i2c: E2 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: E2 0E 00 27 EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0C [10:30:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:30:30]wFMCommunicate OK [10:30:30]SAM_PROTO_GetShiftState done [10:30:30]FM_GetShiftState done [10:30:30]opened in 1729902770 [10:30:30]opened+sec_in_day 1729989170 [10:30:30]quantity*price = 161850 [10:30:30]sum+1 = 161851 [10:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1618.00 Внесено: 2000.00 СДАЧА: 382.00 НСП 1% : 14.32 НДС 12% : 171.88 Наличными: 1618.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 64 26.10.2024 10:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 24.56 сом ФМ: 0000000000871754 ФД: 191701 ФПД: 66875700526616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191701&fm=66875700526616&tin=02508201610067®Number=0000000000091776&sum=161800 [10:30:31]StoreToDocumentArchive [10:30:31]shift 541 fd 191701 [10:30:31]save to /storage/0541/doc_00191701 [10:30:31]save last doc name /storage/0541/doc_00191701 to /storage/kkm_last_doc_name [10:30:31]save OK [10:30:31]Clear old archive folders... [10:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:31]tlvbuf is 016BC570 [10:30:31]SAM_PROTO_ClearQueue [10:30:31]wFMCommunicate request_size=4 [10:30:31]MH_SAM_APDU [10:30:31]CAPDU: 80 09 00 00 [10:30:31]Write to MH i2c: E2 08 00 34 EF 80 09 00 00 00 00 00 00 95 [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:31]Read from MH i2c: E2 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 03 00 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 03 00 34 EF 00 90 00 97 [10:30:31]RAPDU: 90 00 [10:30:31]wFMCommunicate OK [10:30:31]SAM_PROTO_ClearQueue done [10:30:31]KKMCreateOFDPacket [10:30:31]OFDProtocolAddRootSTLVToBuf [10:30:31]FM_MakeSignedData [10:30:31]FM_MakeSignedData [10:30:31]SAM_PROTO_SignData [10:30:31]wFMCommunicate request_size=4 [10:30:31]MH_SAM_APDU [10:30:31]CAPDU: 80 0D 01 02 [10:30:31]Write to MH i2c: E2 08 00 35 EF 80 0D 01 02 00 00 00 00 9D [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:31]Read from MH i2c: E2 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 03 00 [10:30:31]MH_I2C_Read... [10:30:31]Read from MH i2c: E2 03 00 35 EF 00 90 00 98 [10:30:31]RAPDU: 90 00 [10:30:31]wFMCommunicate OK [10:30:31]wFMCommunicate request_size=255 [10:30:31]MH_SAM_APDU [10:30: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 F0 5F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 43 00 00 00 00 07 04 06 00 08 78 02 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 D4 C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EC 02 00 35 04 06 00 3C [10:30:31]Write to MH i2c: E2 02 01 36 EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 5F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 43 00 00 00 00 07 04 06 00 08 78 02 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 D4 C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EC 02 00 35 04 06 00 3C 00 00 07 [10:30:31]Write i2c OK [10:30:31]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 36 EF 00 90 00 99 [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]wFMCommunicate request_size=10 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 02 02 05 D2 B6 5F BE 18 [10:30:32]Write to MH i2c: E2 0D 00 37 EF 80 0D 02 02 05 00 D2 B6 5F BE 18 00 00 67 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 03 00 37 EF 00 90 00 9A [10:30:32]RAPDU: 90 00 [10:30:32]wFMCommunicate OK [10:30:32]wFMCommunicate request_size=4 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 0D 03 02 [10:30:32]Write to MH i2c: E2 08 00 38 EF 80 0D 03 02 00 00 00 00 A2 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0B 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0B 00 38 EF 00 B7 5B 11 31 FF 3A CF 4D 90 00 4C [10:30:32]RAPDU: B7 5B 11 31 FF 3A CF 4D 90 00 [10:30:32]wFMCommunicate OK [10:30:32]SAM_PROTO_SignData done [10:30:32]FM_MakeSignedData done [10:30:32]CreateOFDProtocolMessage [10:30:32]wFMCommunicate request_size=4 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 11 00 00 [10:30:32]Write to MH i2c: E2 08 00 39 EF 80 11 00 00 00 00 00 00 A2 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 17 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 17 00 39 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [10:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:32]wFMCommunicate OK [10:30:32]CreateOFDProtocolMessage done [10:30:32]OFDSenderStorePacket 191701 [10:30:32]StoreOFDPacket docnum=191701 [10:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 45 07 01 E7 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 5F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 43 00 00 00 00 07 04 06 00 08 78 02 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 D4 C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EC 02 00 35 04 06 00 3C D2 B6 5F BE 18 B7 5B 11 31 FF 3A CF 4D [10:30:32]CheckFolder [10:30:32]dirname=/storage/ofd_packets [10:30:32]CheckFolder done [10:30:32]ProducePacketName [10:30:32]name=ofd_packets/00191701 [10:30:32]NVStorageSaveData ofd_packets/00191701 [10:30:32]File name is /storage/ofd_packets/00191701 [10:30:32]Write 301 bytes [10:30:32]NVStorageSaveData done [10:30:32]OFDSenderStorePacket done [10:30:32]KKMCreateOFDPacket done [10:30:32]NVStorageSaveData kkm_last_timestamp [10:30:32]File name is /storage/kkm_last_timestamp [10:30:32]Write 4 bytes [10:30:32]NVStorageSaveData done [10:30:32]ExternCall_PrintAddStr [10:30:32]wPrintStart [10:30:32]Write to MH i2c: 01 00 00 3A EF 29 [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: 01 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: 01 07 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: 01 07 00 3A EF 00 00 00 00 00 FF 0F 3E [10:30:32]RasterBufferAndPrint [10:30:32]line Счет N : (1)31003 [10:30:32]line ИНН: 02508201610067 [10:30:32]line Контрольно-Кассовый Чек [10:30:32]line ПРОДАЖА [10:30:32]line ТРК (МРК, ГНК) : 12 [10:30:32]line Товар: 2710124130 [10:30:32]line Аи-92-К-5 [10:30:32]line 24.560 * 65.90 [10:30:32]line = 1618.50 [10:30:32]line НДС 12% НСП 1% [10:30:32]line > о реализуемом товаре [10:30:32]line ОКРУГЛЕНИЕ: -0.50 [10:30:32]line ИТОГО: 1618.00 [10:30:32]line Внесено: 2000.00 [10:30:32]line СДАЧА: 382.00 [10:30:32]line НСП 1% : 14.32 [10:30:32]line НДС 12% : 171.88 [10:30:32]line Наличными: 1618.00 [10:30:32]line Безнал.: 0.00 [10:30:32]line Место: АЗС № 170 "Партнер Нефть" [10:30:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:30:32]line СНО: Общий режим [10:30:32]line Чек 64 26.10.2024 10:30 [10:30:32]line Смена: 541 ФФД: 1.0 [10:30:32]line ЗНМ: 0300000110 [10:30:32]line РНМ: 0000000000091776 [10:30:32]line Версия ККМ: 001 [10:30:32]line [10:30:32]line Дисконтная программа [10:30:32]line АИ-92 [10:30:32]line номер 170 [10:30:32]line сэкономлено 24.56 сом [10:30:32]line ФМ: 0000000000871754 [10:30:32]line ФД: 191701 [10:30:32]line ФПД: 66875700526616 [10:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103044&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191701&fm=66875700526616&tin=02508201610067®Number=0000000000091776&sum=161800 [10:30:32]OFD Sender: Processing packet 191701 [packets to send 75, broken 74] [10:30:32]ProducePacketName [10:30:32]name=ofd_packets/00191701 [10:30:32]OFD Sender: To server: pG, [10:30:32]CommunicateWithHost lk.salyk.kg:30040 [10:30:32]ConnectInit lk.salyk.kg [10:30:32]written 0, free lines is 4095 [10:30:32]Connected sock=10 [10:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 45 07 01 E7 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 5F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 3A 78 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 78 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 43 00 00 00 00 07 04 06 00 08 78 02 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 D4 C4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EC 02 00 35 04 06 00 3C D2 B6 5F BE 18 B7 5B 11 31 FF 3A CF 4D [10:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A 38 47 00 3C 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 EC 02 00 F4 03 04 00 A0 69 1C 67 B6 04 01 00 00 DB 83 82 1F DF 84 55 10 [10:30:32]CommunicateWithHost err = 0 [10:30:32]CheckOFDResponse [10:30:32]1017 (14) - 77093643461234 [10:30:32]1041 (16) - 0000000000871754 [10:30:32]1040 (4) - 191701 [10:30:32]1012 (4) - 26.10.2024 04:01 [10:30:32]1206 (1) - 0 [10:30:32]OFD Sender: Remove packet 191701 [10:30:32]ProducePacketName [10:30:32]name=ofd_packets/00191701 [10:30:32]NVStorageDeleteData [10:30:33]Write to MH i2c: 01 00 00 6A EF 59 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: 01 07 00 6A EF 00 00 00 00 00 5F 0C CB [10:30:33]RasterBufferAndPrint [10:30:33]line [10:30:33]line [10:30:33]line [10:30:33]line [10:30:33]line [10:30:33]written 0, free lines is 3173 [10:30:33]MH_Cut [10:30:33]Write to MH i2c: D1 01 00 71 EF 01 32 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: D1 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: D1 01 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: D1 01 00 71 EF 00 31 [10:30:33]Write to MH i2c: 01 00 00 72 EF 61 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]OFD Sender: No OFD packet to send [10:30:34]*** Cut start [10:30:34]*** Partial cut [10:30:34]*** CUTSNS_PIN = 1 [10:30:34]*** CUTSNS_PIN = 0 [10:30:34]*** Brake cut motor [10:30:34]Read from MH i2c: 01 [10:30:34]MH_I2C_Read... [10:30:34]*** Stop cut motor [10:30:34]*** Cut end [10:30:34]Read from MH i2c: 01 07 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 72 EF 00 00 00 00 00 FF 0F 76 [10:30:34]process_action close_receipt done [10:30:34]requested_data is exist [10:30:34]produce_requested_data [10:30:34]requested_item fm.sn is exist - process it [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 11 00 00 [10:30:34]Write to MH i2c: E2 08 00 73 EF 80 11 00 00 00 00 00 00 DC [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 17 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 17 00 73 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [10:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:30:34]wFMCommunicate OK [10:30:34]requested_item fd.num is exist - process it [10:30:34]SAM_PROTO_GetFieldsCounters [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 13 00 00 [10:30:34]Write to MH i2c: E2 08 00 74 EF 80 13 00 00 00 00 00 00 DF [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 62 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 62 00 74 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [10:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:34]wFMCommunicate OK [10:30:34]SAM_PROTO_GetFieldsCounters done [10:30:34]requested_item shift.num is exist - process it [10:30:34]requested_item shift.opened is exist - process it [10:30:34]req_shift_opened [10:30:34]FM_GetShiftState [10:30:34]SAM_PROTO_GetShiftState [10:30:34]wFMCommunicate request_size=4 [10:30:34]MH_SAM_APDU [10:30:34]CAPDU: 80 13 01 00 [10:30:34]Write to MH i2c: E2 08 00 75 EF 80 13 01 00 00 00 00 00 E1 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 0E 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 0E 00 75 EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5A [10:30:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:30:34]wFMCommunicate OK [10:30:34]SAM_PROTO_GetShiftState done [10:30:34]FM_GetShiftState done [10:30:34]req_shift_opened done [10:30:34]requested_item shift.open_date is exist - process it [10:30:34]req_shift_open_date [10:30:34]req_shift_open_date done [10:30:34]produce_requested_data done [10:30:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191701,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:30:34]process_action_free close_receipt [10:30:34]json_value_free [10:30:34]json_value_free done [10:30:34]process_json_proto returns [10:30:34]Send response to host [10:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191701,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:30:34]free response buf [10:30:34]execute_script done [10:30:34]execute_script returns [10:30:34]free content buf [10:30:34]Sock 9.Close socket [10:30:34]Sock 9.Thread stoped [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:56]accept exits with 8 [10:32:56]New connection [10:32:56]New thread 3066817892 created [10:32:56]Thread 3066961252 joined [10:32:56]Waiting for new connection... [10:32:56] Sock 8.Parse request [10:32:56]Sock 8.Check first char [10:32:56]Sock 8.First char is OK [10:32:56]request: POST /json_proto HTTP/1.0 [10:32:56]Method: POST [10:32:56]URL: /json_proto [10:32:56]Method is POST - this is cgi request [10:32:56]url: /json_proto [10:32:56]query_string will be loaded in cgi processing [10:32:56]execute_cgi json_proto POST (null) [10:32:56]execute_cgi path=json_proto method=POST [10:32:56]POST find Content-Length [10:32:56]Host: 172.17.63.131:8080 [10:32:56]Content-Length: 862 [10:32:56]Content-Type: application/json [10:32:56] [10:32:56]POST finish read [10:32:56]Found Content-Length = 862 [10:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:56]execute_script... [10:32:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:56]POST & json_proto [10:32:56]process_json_proto [10:32:56]json parsed OK: [10:32:56]protocol is kg_v1.0 [10:32:56]action value=close_receipt [10:32:56]process_action close_receipt [10:32:56]cmd_close_receipt [10:32:56]MH_GetDate [10:32:56]Write to MH i2c: F0 00 00 76 EF 54 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 09 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: F0 09 00 76 EF 00 66 C5 1C 67 22 05 6E 64 04 [10:32:56]GetLastDocTimeStamp 1729938644 [10:32:56]current date 1729938790 [10:32:56]FM_GetShiftState [10:32:56]SAM_PROTO_GetShiftState [10:32:56]wFMCommunicate request_size=4 [10:32:56]MH_SAM_APDU [10:32:56]CAPDU: 80 13 01 00 [10:32:56]Write to MH i2c: E2 08 00 77 EF 80 13 01 00 00 00 00 00 E3 [10:32:56]Write i2c OK [10:32:56]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 77 EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5C [10:32:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]opened in 1729902770 [10:32:56]opened+sec_in_day 1729989170 [10:32:56]quantity*price = 40006 [10:32:56]sum+1 = 40007 [10:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 65 26.10.2024 10:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191702 ФПД: 77235261037370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191702&fm=77235261037370&tin=02508201610067®Number=0000000000091776&sum=40006 [10:32:57]StoreToDocumentArchive [10:32:57]shift 541 fd 191702 [10:32:57]save to /storage/0541/doc_00191702 [10:32:57]save last doc name /storage/0541/doc_00191702 to /storage/kkm_last_doc_name [10:32:57]save OK [10:32:57]Clear old archive folders... [10:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:57]tlvbuf is 016AFFD0 [10:32:57]SAM_PROTO_ClearQueue [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 09 00 00 [10:32:57]Write to MH i2c: E2 08 00 84 EF 80 09 00 00 00 00 00 00 E5 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 84 EF 00 90 00 E7 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_ClearQueue done [10:32:57]KKMCreateOFDPacket [10:32:57]OFDProtocolAddRootSTLVToBuf [10:32:57]FM_MakeSignedData [10:32:57]FM_MakeSignedData [10:32:57]SAM_PROTO_SignData [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 01 02 [10:32:57]Write to MH i2c: E2 08 00 85 EF 80 0D 01 02 00 00 00 00 ED [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 85 EF 00 90 00 E8 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=255 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 66 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EC 02 00 35 04 06 00 46 [10:32:57]Write to MH i2c: E2 02 01 86 EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 66 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EC 02 00 35 04 06 00 46 00 00 74 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 86 EF 00 90 00 E9 [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=10 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 05 3E BC 4C 5B 3A [10:32:57]Write to MH i2c: E2 0D 00 87 EF 80 0D 02 02 05 00 3E BC 4C 5B 3A 00 00 D5 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 87 EF 00 90 00 EA [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 03 02 [10:32:57]Write to MH i2c: E2 08 00 88 EF 80 0D 03 02 00 00 00 00 F2 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 88 EF 00 C6 13 5D FF 5B 75 DC 35 90 00 09 [10:32:57]RAPDU: C6 13 5D FF 5B 75 DC 35 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_SignData done [10:32:57]FM_MakeSignedData done [10:32:57]CreateOFDProtocolMessage [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 11 00 00 [10:32:57]Write to MH i2c: E2 08 00 89 EF 80 11 00 00 00 00 00 00 F2 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:58]Read from MH i2c: E2 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: E2 17 00 89 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [10:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:32:58]wFMCommunicate OK [10:32:58]CreateOFDProtocolMessage done [10:32:58]OFDSenderStorePacket 191702 [10:32:58]StoreOFDPacket docnum=191702 [10:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 EE 07 01 89 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 66 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EC 02 00 35 04 06 00 46 3E BC 4C 5B 3A C6 13 5D FF 5B 75 DC 35 [10:32:58]CheckFolder [10:32:58]dirname=/storage/ofd_packets [10:32:58]CheckFolder done [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00191702 [10:32:58]NVStorageSaveData ofd_packets/00191702 [10:32:58]File name is /storage/ofd_packets/00191702 [10:32:58]Write 301 bytes [10:32:58]NVStorageSaveData done [10:32:58]OFDSenderStorePacket done [10:32:58]KKMCreateOFDPacket done [10:32:58]NVStorageSaveData kkm_last_timestamp [10:32:58]File name is /storage/kkm_last_timestamp [10:32:58]Write 4 bytes [10:32:58]NVStorageSaveData done [10:32:58]ExternCall_PrintAddStr [10:32:58]wPrintStart [10:32:58]Write to MH i2c: 01 00 00 8A EF 79 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 8A EF 00 00 00 00 00 FF 0F 8E [10:32:58]RasterBufferAndPrint [10:32:58]line Счет N : (1)31004 [10:32:58]line ИНН: 02508201610067 [10:32:58]line Контрольно-Кассовый Чек [10:32:58]line ПРОДАЖА [10:32:58]line ТРК (МРК, ГНК) : 12 [10:32:58]line Товар: 2710124130 [10:32:58]line Аи-92-К-5 [10:32:58]line 5.980 * 66.90 [10:32:58]line = 400.06 [10:32:58]line НДС 12% НСП 1% [10:32:58]line > о реализуемом товаре [10:32:58]line ИТОГО: 400.06 [10:32:58]line НСП 1% : 3.54 [10:32:58]line НДС 12% : 42.48 [10:32:58]line Наличными: 0.00 [10:32:58]line Безнал.: 400.06 [10:32:58]line Место: АЗС № 170 "Партнер Нефть" [10:32:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:32:58]line СНО: Общий режим [10:32:58]line Чек 65 26.10.2024 10:33 [10:32:58]line Смена: 541 ФФД: 1.0 [10:32:58]line ЗНМ: 0300000110 [10:32:58]line РНМ: 0000000000091776 [10:32:58]line Версия ККМ: 001 [10:32:58]line Платежная система: Кыргызкоммерцбанк [10:32:58]line ФМ: 0000000000871754 [10:32:58]line ФД: 191702 [10:32:58]line ФПД: 77235261037370 [10:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191702&fm=77235261037370&tin=02508201610067®Number=0000000000091776&sum=40006 [10:32:58]written 0, free lines is 4095 [10:32:58]OFD Sender: Processing packet 191702 [packets to send 75, broken 74] [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00191702 [10:32:58]OFD Sender: To server: pG, [10:32:58]CommunicateWithHost lk.salyk.kg:30040 [10:32:58]ConnectInit lk.salyk.kg [10:32:58]Connected sock=10 [10:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 EE 07 01 89 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 66 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EC 02 00 35 04 06 00 46 3E BC 4C 5B 3A C6 13 5D FF 5B 75 DC 35 [10:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 80 47 00 93 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 EC 02 00 F4 03 04 00 31 6A 1C 67 B6 04 01 00 00 9F 41 BA 6F 60 94 14 8E [10:32:58]CommunicateWithHost err = 0 [10:32:58]CheckOFDResponse [10:32:58]1017 (14) - 77093643461234 [10:32:58]1041 (16) - 0000000000871754 [10:32:58]1040 (4) - 191702 [10:32:58]1012 (4) - 26.10.2024 04:04 [10:32:58]1206 (1) - 0 [10:32:58]OFD Sender: Remove packet 191702 [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00191702 [10:32:58]NVStorageDeleteData [10:32:58]Write to MH i2c: 01 00 00 B4 EF A3 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 B4 EF 00 00 00 00 00 D4 0C 8A [10:32:58]RasterBufferAndPrint [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]written 0, free lines is 3294 [10:32:58]MH_Cut [10:32:58]Write to MH i2c: D1 01 00 BB EF 01 7C [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 BB EF 00 7B [10:32:58]Write to MH i2c: 01 00 00 BC EF AB [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:59]OFD Sender: No OFD packet to send [10:32:59]*** Cut start [10:32:59]*** Partial cut [10:32:59]*** CUTSNS_PIN = 1 [10:32:59]*** CUTSNS_PIN = 0 [10:32:59]*** Brake cut motor [10:33:00]Read from MH i2c: 01 [10:33:00]MH_I2C_Read... [10:33:00]*** Stop cut motor [10:33:00]*** Cut end [10:33:00]Read from MH i2c: 01 07 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 BC EF 00 00 00 00 00 FF 0F C0 [10:33:00]process_action close_receipt done [10:33:00]requested_data is exist [10:33:00]produce_requested_data [10:33:00]requested_item fm.sn is exist - process it [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 11 00 00 [10:33:00]Write to MH i2c: E2 08 00 BD EF 80 11 00 00 00 00 00 00 26 [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 17 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 17 00 BD EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [10:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:33:00]wFMCommunicate OK [10:33:00]requested_item fd.num is exist - process it [10:33:00]SAM_PROTO_GetFieldsCounters [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 13 00 00 [10:33:00]Write to MH i2c: E2 08 00 BE EF 80 13 00 00 00 00 00 00 29 [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 62 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 62 00 BE EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:00]wFMCommunicate OK [10:33:00]SAM_PROTO_GetFieldsCounters done [10:33:00]requested_item shift.num is exist - process it [10:33:00]requested_item shift.opened is exist - process it [10:33:00]req_shift_opened [10:33:00]FM_GetShiftState [10:33:00]SAM_PROTO_GetShiftState [10:33:00]wFMCommunicate request_size=4 [10:33:00]MH_SAM_APDU [10:33:00]CAPDU: 80 13 01 00 [10:33:00]Write to MH i2c: E2 08 00 BF EF 80 13 01 00 00 00 00 00 2B [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 BF EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A4 [10:33:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:33:00]wFMCommunicate OK [10:33:00]SAM_PROTO_GetShiftState done [10:33:00]FM_GetShiftState done [10:33:00]req_shift_opened done [10:33:00]requested_item shift.open_date is exist - process it [10:33:00]req_shift_open_date [10:33:00]req_shift_open_date done [10:33:00]produce_requested_data done [10:33:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191702,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:33:00]process_action_free close_receipt [10:33:00]json_value_free [10:33:00]json_value_free done [10:33:00]process_json_proto returns [10:33:00]Send response to host [10:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191702,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:33:00]free response buf [10:33:00]execute_script done [10:33:00]execute_script returns [10:33:00]free content buf [10:33:00]Sock 8.Close socket [10:33:00]Sock 8.Thread stoped [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:30]accept exits with 9 [10:33:30]New connection [10:33:30]New thread 3066961252 created [10:33:30]Thread 3066817892 joined [10:33:30]Waiting for new connection... [10:33:30] Sock 9.Parse request [10:33:30]Sock 9.Check first char [10:33:30]Sock 9.First char is OK [10:33:30]request: POST /json_proto HTTP/1.0 [10:33:30]Method: POST [10:33:30]URL: /json_proto [10:33:30]Method is POST - this is cgi request [10:33:30]url: /json_proto [10:33:30]query_string will be loaded in cgi processing [10:33:30]execute_cgi json_proto POST (null) [10:33:30]execute_cgi path=json_proto method=POST [10:33:30]POST find Content-Length [10:33:30]Host: 172.17.63.131:8080 [10:33:30]Content-Length: 676 [10:33:30]Content-Type: application/json [10:33:30] [10:33:30]POST finish read [10:33:30]Found Content-Length = 676 [10:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:30]execute_script... [10: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)31005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:30]POST & json_proto [10:33:30]process_json_proto [10:33:30]json parsed OK: [10:33:30]protocol is kg_v1.0 [10:33:30]action value=close_receipt [10:33:30]process_action close_receipt [10:33:30]cmd_close_receipt [10:33:30]MH_GetDate [10:33:30]Write to MH i2c: F0 00 00 C0 EF 9E [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 09 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 09 00 C0 EF 00 88 C5 1C 67 22 05 6E 64 70 [10:33:30]GetLastDocTimeStamp 1729938790 [10:33:30]current date 1729938824 [10:33:30]FM_GetShiftState [10:33:30]SAM_PROTO_GetShiftState [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 13 01 00 [10:33:30]Write to MH i2c: E2 08 00 C1 EF 80 13 01 00 00 00 00 00 2D [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0E 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0E 00 C1 EF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A6 [10:33:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:33:30]wFMCommunicate OK [10:33:30]SAM_PROTO_GetShiftState done [10:33:30]FM_GetShiftState done [10:33:30]opened in 1729902770 [10:33:30]opened+sec_in_day 1729989170 [10:33:30]quantity*price = 50041 [10:33:30]sum+1 = 50042 [10:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 66 26.10.2024 10:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191703 ФПД: 43401874189823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191703&fm=43401874189823&tin=02508201610067®Number=0000000000091776&sum=50000 [10:33:31]StoreToDocumentArchive [10:33:31]shift 541 fd 191703 [10:33:31]save to /storage/0541/doc_00191703 [10:33:31]save last doc name /storage/0541/doc_00191703 to /storage/kkm_last_doc_name [10:33:31]save OK [10:33:31]Clear old archive folders... [10:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:31]tlvbuf is 01880FB0 [10:33:31]SAM_PROTO_ClearQueue [10:33:31]wFMCommunicate request_size=4 [10:33:31]MH_SAM_APDU [10:33:31]CAPDU: 80 09 00 00 [10:33:31]Write to MH i2c: E2 08 00 CE EF 80 09 00 00 00 00 00 00 2F [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:31]Read from MH i2c: E2 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 03 00 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 03 00 CE EF 00 90 00 31 [10:33:31]RAPDU: 90 00 [10:33:31]wFMCommunicate OK [10:33:31]SAM_PROTO_ClearQueue done [10:33:31]KKMCreateOFDPacket [10:33:31]OFDProtocolAddRootSTLVToBuf [10:33:31]FM_MakeSignedData [10:33:31]FM_MakeSignedData [10:33:31]SAM_PROTO_SignData [10:33:31]wFMCommunicate request_size=4 [10:33:31]MH_SAM_APDU [10:33:31]CAPDU: 80 0D 01 02 [10:33:31]Write to MH i2c: E2 08 00 CF EF 80 0D 01 02 00 00 00 00 37 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:31]Read from MH i2c: E2 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 03 00 [10:33:31]MH_I2C_Read... [10:33:31]Read from MH i2c: E2 03 00 CF EF 00 90 00 32 [10:33:31]RAPDU: 90 00 [10:33:31]wFMCommunicate OK [10:33:31]wFMCommunicate request_size=255 [10:33:31]MH_SAM_APDU [10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 88 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EC 02 00 35 04 06 00 27 [10:33:31]Write to MH i2c: E2 02 01 D0 EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 88 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EC 02 00 35 04 06 00 27 00 00 E8 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 D0 EF 00 90 00 33 [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]wFMCommunicate request_size=10 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 02 02 05 79 49 4B 2D FF [10:33:32]Write to MH i2c: E2 0D 00 D1 EF 80 0D 02 02 05 00 79 49 4B 2D FF 00 00 7D [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 D1 EF 00 90 00 34 [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 03 02 [10:33:32]Write to MH i2c: E2 08 00 D2 EF 80 0D 03 02 00 00 00 00 3C [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 0B 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 0B 00 D2 EF 00 DF A6 D4 1A 24 C9 26 38 90 00 FB [10:33:32]RAPDU: DF A6 D4 1A 24 C9 26 38 90 00 [10:33:32]wFMCommunicate OK [10:33:32]SAM_PROTO_SignData done [10:33:32]FM_MakeSignedData done [10:33:32]CreateOFDProtocolMessage [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 11 00 00 [10:33:32]Write to MH i2c: E2 08 00 D3 EF 80 11 00 00 00 00 00 00 3C [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 D3 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [10:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:33:32]wFMCommunicate OK [10:33:32]CreateOFDProtocolMessage done [10:33:32]OFDSenderStorePacket 191703 [10:33:32]StoreOFDPacket docnum=191703 [10:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 77 07 01 ED 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 88 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EC 02 00 35 04 06 00 27 79 49 4B 2D FF DF A6 D4 1A 24 C9 26 38 [10:33:32]CheckFolder [10:33:32]dirname=/storage/ofd_packets [10:33:32]CheckFolder done [10:33:32]ProducePacketName [10:33:32]name=ofd_packets/00191703 [10:33:32]NVStorageSaveData ofd_packets/00191703 [10:33:32]File name is /storage/ofd_packets/00191703 [10:33:32]Write 301 bytes [10:33:32]NVStorageSaveData done [10:33:32]OFDSenderStorePacket done [10:33:32]KKMCreateOFDPacket done [10:33:32]NVStorageSaveData kkm_last_timestamp [10:33:32]File name is /storage/kkm_last_timestamp [10:33:32]Write 4 bytes [10:33:32]NVStorageSaveData done [10:33:32]ExternCall_PrintAddStr [10:33:32]wPrintStart [10:33:32]Write to MH i2c: 01 00 00 D4 EF C3 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 07 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 07 00 D4 EF 00 00 00 00 00 FF 0F D8 [10:33:32]RasterBufferAndPrint [10:33:32]line Счет N : (1)31005 [10:33:32]line ИНН: 02508201610067 [10:33:32]line Контрольно-Кассовый Чек [10:33:32]line ПРОДАЖА [10:33:32]line ТРК (МРК, ГНК) : 12 [10:33:32]line Товар: 2710124130 [10:33:32]line Аи-92-К-5 [10:33:32]line 7.480 * 66.90 [10:33:32]line = 500.41 [10:33:32]line НДС 12% НСП 1% [10:33:32]line > о реализуемом товаре [10:33:32]line ОКРУГЛЕНИЕ: -0.41 [10:33:32]line ИТОГО: 500.00 [10:33:32]line Внесено: 500.00 [10:33:32]line СДАЧА: 0.00 [10:33:32]line НСП 1% : 4.43 [10:33:32]line НДС 12% : 53.14 [10:33:32]line Наличными: 500.00 [10:33:32]line Безнал.: 0.00 [10:33:32]line Место: АЗС № 170 "Партнер Нефть" [10:33:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:33:32]line СНО: Общий режим [10:33:32]line Чек 66 26.10.2024 10:33 [10:33:32]line Смена: 541 ФФД: 1.0 [10:33:32]line ЗНМ: 0300000110 [10:33:32]line РНМ: 0000000000091776 [10:33:32]line Версия ККМ: 001 [10:33:32]line ФМ: 0000000000871754 [10:33:32]line ФД: 191703 [10:33:32]line ФПД: 43401874189823 [10:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191703&fm=43401874189823&tin=02508201610067®Number=0000000000091776&sum=50000 [10:33:32]OFD Sender: Processing packet 191703 [packets to send 75, broken 74] [10:33:32]ProducePacketName [10:33:32]name=ofd_packets/00191703 [10:33:32]OFD Sender: To server: pG, [10:33:32]CommunicateWithHost lk.salyk.kg:30040 [10:33:32]ConnectInit lk.salyk.kg [10:33:32]written 0, free lines is 4095 [10:33:32]Connected sock=10 [10:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 77 07 01 ED 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 88 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EC 02 00 35 04 06 00 27 79 49 4B 2D FF DF A6 D4 1A 24 C9 26 38 [10:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 6C 47 00 00 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 EC 02 00 F4 03 04 00 54 6A 1C 67 B6 04 01 00 00 A3 AE DA C8 31 7A 9C 0A [10:33:32]CommunicateWithHost err = 0 [10:33:32]CheckOFDResponse [10:33:32]1017 (14) - 77093643461234 [10:33:32]1041 (16) - 0000000000871754 [10:33:32]1040 (4) - 191703 [10:33:32]1012 (4) - 26.10.2024 04:04 [10:33:32]1206 (1) - 0 [10:33:32]OFD Sender: Remove packet 191703 [10:33:32]ProducePacketName [10:33:32]name=ofd_packets/00191703 [10:33:32]NVStorageDeleteData [10:33:33]Write to MH i2c: 01 00 00 FF EF EE [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 07 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 07 00 FF EF 00 00 00 00 00 BB 0C BC [10:33:33]RasterBufferAndPrint [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]written 0, free lines is 3266 [10:33:33]MH_Cut [10:33:33]Write to MH i2c: D1 01 00 06 F0 01 C8 [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 01 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 01 00 06 F0 00 C7 [10:33:33]Write to MH i2c: 01 00 00 07 F0 F7 [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]OFD Sender: No OFD packet to send [10:33:33]*** Cut start [10:33:33]*** Partial cut [10:33:33]*** CUTSNS_PIN = 1 [10:33:33]*** CUTSNS_PIN = 0 [10:33:34]*** Brake cut motor [10:33:34]Read from MH i2c: 01 [10:33:34]MH_I2C_Read... [10:33:34]*** Stop cut motor [10:33:34]*** Cut end [10:33:34]Read from MH i2c: 01 07 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: 01 07 00 07 F0 00 00 00 00 00 FF 0F 0C [10:33:34]process_action close_receipt done [10:33:34]requested_data is exist [10:33:34]produce_requested_data [10:33:34]requested_item fm.sn is exist - process it [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 11 00 00 [10:33:34]Write to MH i2c: E2 08 00 08 F0 80 11 00 00 00 00 00 00 72 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:34]Read from MH i2c: E2 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 17 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 17 00 08 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [10:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:33:34]wFMCommunicate OK [10:33:34]requested_item fd.num is exist - process it [10:33:34]SAM_PROTO_GetFieldsCounters [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 13 00 00 [10:33:34]Write to MH i2c: E2 08 00 09 F0 80 13 00 00 00 00 00 00 75 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:34]Read from MH i2c: E2 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 62 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 62 00 09 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:34]wFMCommunicate OK [10:33:34]SAM_PROTO_GetFieldsCounters done [10:33:34]requested_item shift.num is exist - process it [10:33:34]requested_item shift.opened is exist - process it [10:33:34]req_shift_opened [10:33:34]FM_GetShiftState [10:33:34]SAM_PROTO_GetShiftState [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 13 01 00 [10:33:34]Write to MH i2c: E2 08 00 0A F0 80 13 01 00 00 00 00 00 77 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:34]Read from MH i2c: E2 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 0E 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 0E 00 0A F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F0 [10:33:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:33:34]wFMCommunicate OK [10:33:34]SAM_PROTO_GetShiftState done [10:33:34]FM_GetShiftState done [10:33:34]req_shift_opened done [10:33:34]requested_item shift.open_date is exist - process it [10:33:34]req_shift_open_date [10:33:34]req_shift_open_date done [10:33:34]produce_requested_data done [10:33:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191703,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:33:34]process_action_free close_receipt [10:33:34]json_value_free [10:33:34]json_value_free done [10:33:34]process_json_proto returns [10:33:34]Send response to host [10:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191703,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:33:34]free response buf [10:33:34]execute_script done [10:33:34]execute_script returns [10:33:34]free content buf [10:33:34]Sock 9.Close socket [10:33:34]Sock 9.Thread stoped [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:35]accept exits with 8 [10:34:35]New connection [10:34:35]New thread 3066817892 created [10:34:35]Thread 3066961252 joined [10:34:35]Waiting for new connection... [10:34:35] Sock 8.Parse request [10:34:35]Sock 8.Check first char [10:34:35]Sock 8.First char is OK [10:34:35]request: POST /json_proto HTTP/1.0 [10:34:35]Method: POST [10:34:35]URL: /json_proto [10:34:35]Method is POST - this is cgi request [10:34:35]url: /json_proto [10:34:35]query_string will be loaded in cgi processing [10:34:35]execute_cgi json_proto POST (null) [10:34:35]execute_cgi path=json_proto method=POST [10:34:35]POST find Content-Length [10:34:35]Host: 172.17.63.131:8080 [10:34:35]Content-Length: 983 [10:34:35]Content-Type: application/json [10:34:35] [10:34:35]POST finish read [10:34:35]Found Content-Length = 983 [10:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.280, "sum" : 1600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.28 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:35]execute_script... [10:34: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)31006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 24.280, "sum" : 1600.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 24.28 \u0441\u043E\u043C", "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:35]POST & json_proto [10:34:35]process_json_proto [10:34:35]json parsed OK: [10:34:35]protocol is kg_v1.0 [10:34:35]action value=close_receipt [10:34:35]process_action close_receipt [10:34:35]cmd_close_receipt [10:34:35]MH_GetDate [10:34:35]Write to MH i2c: F0 00 00 0B F0 EA [10:34:35]Write i2c OK [10:34:35]MH_I2C_Read... [10:34:35]Read from MH i2c: F0 [10:34:35]MH_I2C_Read... [10:34:35]Read from MH i2c: F0 09 00 [10:34:35]MH_I2C_Read... [10:34:35]Read from MH i2c: F0 09 00 0B F0 00 C9 C5 1C 67 22 05 6E 64 FD [10:34:35]GetLastDocTimeStamp 1729938824 [10:34:35]current date 1729938889 [10:34:35]FM_GetShiftState [10:34:35]SAM_PROTO_GetShiftState [10:34:35]wFMCommunicate request_size=4 [10:34:35]MH_SAM_APDU [10:34:35]CAPDU: 80 13 01 00 [10:34:35]Write to MH i2c: E2 08 00 0C F0 80 13 01 00 00 00 00 00 79 [10:34:35]Write i2c OK [10:34:35]MH_I2C_Read... [10:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:35]Read from MH i2c: E2 [10:34:35]MH_I2C_Read... [10:34:35]Read from MH i2c: E2 0E 00 [10:34:35]MH_I2C_Read... [10:34:35]Read from MH i2c: E2 0E 00 0C F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F2 [10:34:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:34:35]wFMCommunicate OK [10:34:35]SAM_PROTO_GetShiftState done [10:34:35]FM_GetShiftState done [10:34:35]opened in 1729902770 [10:34:35]opened+sec_in_day 1729989170 [10:34:35]quantity*price = 160005 [10:34:35]sum+1 = 160006 [10:34:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 67 26.10.2024 10:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 24.28 сом ФМ: 0000000000871754 ФД: 191704 ФПД: 62612439784187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191704&fm=62612439784187&tin=02508201610067®Number=0000000000091776&sum=160000 [10:34:37]StoreToDocumentArchive [10:34:37]shift 541 fd 191704 [10:34:37]save to /storage/0541/doc_00191704 [10:34:37]save last doc name /storage/0541/doc_00191704 to /storage/kkm_last_doc_name [10:34:37]save OK [10:34:37]Clear old archive folders... [10:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:37]tlvbuf is 016EB9D0 [10:34:37]SAM_PROTO_ClearQueue [10:34:37]wFMCommunicate request_size=4 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 09 00 00 [10:34:37]Write to MH i2c: E2 08 00 19 F0 80 09 00 00 00 00 00 00 7B [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 19 F0 00 90 00 7D [10:34:37]RAPDU: 90 00 [10:34:37]wFMCommunicate OK [10:34:37]SAM_PROTO_ClearQueue done [10:34:37]KKMCreateOFDPacket [10:34:37]OFDProtocolAddRootSTLVToBuf [10:34:37]FM_MakeSignedData [10:34:37]FM_MakeSignedData [10:34:37]SAM_PROTO_SignData [10:34:37]wFMCommunicate request_size=4 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 0D 01 02 [10:34:37]Write to MH i2c: E2 08 00 1A F0 80 0D 01 02 00 00 00 00 83 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 1A F0 00 90 00 7E [10:34:37]RAPDU: 90 00 [10:34:37]wFMCommunicate OK [10:34:37]wFMCommunicate request_size=255 [10:34:37]MH_SAM_APDU [10:34: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 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C9 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EC 02 00 35 04 06 00 38 [10:34:37]Write to MH i2c: E2 02 01 1B F0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C9 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EC 02 00 35 04 06 00 38 00 00 9D [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 1B F0 00 90 00 7F [10:34:37]RAPDU: 90 00 [10:34:37]wFMCommunicate OK [10:34:37]wFMCommunicate request_size=10 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 0D 02 02 05 F2 18 3B 5A FB [10:34:37]Write to MH i2c: E2 0D 00 1C F0 80 0D 02 02 05 00 F2 18 3B 5A FB 00 00 2A [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 03 00 1C F0 00 90 00 80 [10:34:37]RAPDU: 90 00 [10:34:37]wFMCommunicate OK [10:34:37]wFMCommunicate request_size=4 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 0D 03 02 [10:34:37]Write to MH i2c: E2 08 00 1D F0 80 0D 03 02 00 00 00 00 88 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 0B 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 0B 00 1D F0 00 11 EB D9 88 25 41 C2 34 90 00 42 [10:34:37]RAPDU: 11 EB D9 88 25 41 C2 34 90 00 [10:34:37]wFMCommunicate OK [10:34:37]SAM_PROTO_SignData done [10:34:37]FM_MakeSignedData done [10:34:37]CreateOFDProtocolMessage [10:34:37]wFMCommunicate request_size=4 [10:34:37]MH_SAM_APDU [10:34:37]CAPDU: 80 11 00 00 [10:34:37]Write to MH i2c: E2 08 00 1E F0 80 11 00 00 00 00 00 00 88 [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:37]Read from MH i2c: E2 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 17 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: E2 17 00 1E F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [10:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:37]wFMCommunicate OK [10:34:37]CreateOFDProtocolMessage done [10:34:37]OFDSenderStorePacket 191704 [10:34:37]StoreOFDPacket docnum=191704 [10:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 AA 07 01 B3 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 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C9 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EC 02 00 35 04 06 00 38 F2 18 3B 5A FB 11 EB D9 88 25 41 C2 34 [10:34:37]CheckFolder [10:34:37]dirname=/storage/ofd_packets [10:34:37]CheckFolder done [10:34:37]ProducePacketName [10:34:37]name=ofd_packets/00191704 [10:34:37]NVStorageSaveData ofd_packets/00191704 [10:34:37]File name is /storage/ofd_packets/00191704 [10:34:37]Write 301 bytes [10:34:37]NVStorageSaveData done [10:34:37]OFDSenderStorePacket done [10:34:37]KKMCreateOFDPacket done [10:34:37]NVStorageSaveData kkm_last_timestamp [10:34:37]File name is /storage/kkm_last_timestamp [10:34:37]Write 4 bytes [10:34:37]NVStorageSaveData done [10:34:37]ExternCall_PrintAddStr [10:34:37]wPrintStart [10:34:37]Write to MH i2c: 01 00 00 1F F0 0F [10:34:37]Write i2c OK [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 07 00 [10:34:37]MH_I2C_Read... [10:34:37]Read from MH i2c: 01 07 00 1F F0 00 00 00 00 00 FF 0F 24 [10:34:37]RasterBufferAndPrint [10:34:37]line Счет N : (1)31006 [10:34:37]line ИНН: 02508201610067 [10:34:37]line Контрольно-Кассовый Чек [10:34:37]line ПРОДАЖА [10:34:37]line ТРК (МРК, ГНК) : 12 [10:34:37]line Товар: 2710124130 [10:34:37]line Аи-92-К-5 [10:34:37]line 24.280 * 65.90 [10:34:37]line = 1600.05 [10:34:37]line НДС 12% НСП 1% [10:34:37]line > о реализуемом товаре [10:34:37]line ОКРУГЛЕНИЕ: -0.05 [10:34:37]line ИТОГО: 1600.00 [10:34:37]line Внесено: 1600.00 [10:34:37]line СДАЧА: 0.00 [10:34:37]line НСП 1% : 14.16 [10:34:37]line НДС 12% : 169.92 [10:34:37]line Наличными: 1600.00 [10:34:37]line Безнал.: 0.00 [10:34:37]line Место: АЗС № 170 "Партнер Нефть" [10:34:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:34:37]line СНО: Общий режим [10:34:37]line Чек 67 26.10.2024 10:34 [10:34:37]line Смена: 541 ФФД: 1.0 [10:34:37]line ЗНМ: 0300000110 [10:34:37]line РНМ: 0000000000091776 [10:34:37]line Версия ККМ: 001 [10:34:37]line [10:34:37]line Дисконтная программа [10:34:37]line АИ-92 [10:34:37]line номер 170 [10:34:37]line сэкономлено 24.28 сом [10:34:37]line ФМ: 0000000000871754 [10:34:37]line ФД: 191704 [10:34:37]line ФПД: 62612439784187 [10:34:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191704&fm=62612439784187&tin=02508201610067®Number=0000000000091776&sum=160000 [10:34:37]OFD Sender: Processing packet 191704 [packets to send 75, broken 74] [10:34:37]ProducePacketName [10:34:37]name=ofd_packets/00191704 [10:34:37]OFD Sender: To server: pG, [10:34:37]CommunicateWithHost lk.salyk.kg:30040 [10:34:37]ConnectInit lk.salyk.kg [10:34:37]written 0, free lines is 4095 [10:34:37]Connected sock=10 [10:34:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 AA 07 01 B3 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 D8 5E 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 05 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 C9 C5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EC 02 00 35 04 06 00 38 F2 18 3B 5A FB 11 EB D9 88 25 41 C2 34 [10:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A0 15 47 00 BB FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 EC 02 00 F4 03 04 00 95 6A 1C 67 B6 04 01 00 00 A5 C9 5D 1E C3 FB 04 86 [10:34:38]CommunicateWithHost err = 0 [10:34:38]CheckOFDResponse [10:34:38]1017 (14) - 77093643461234 [10:34:38]1041 (16) - 0000000000871754 [10:34:38]1040 (4) - 191704 [10:34:38]1012 (4) - 26.10.2024 04:05 [10:34:38]1206 (1) - 0 [10:34:38]OFD Sender: Remove packet 191704 [10:34:38]ProducePacketName [10:34:38]name=ofd_packets/00191704 [10:34:38]NVStorageDeleteData [10:34:38]Write to MH i2c: 01 00 00 4F F0 3F [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: 01 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: 01 07 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: 01 07 00 4F F0 00 00 00 00 00 64 0C B6 [10:34:38]RasterBufferAndPrint [10:34:38]line [10:34:38]line [10:34:38]line [10:34:38]line [10:34:38]line [10:34:38]written 0, free lines is 3179 [10:34:38]MH_Cut [10:34:38]Write to MH i2c: D1 01 00 56 F0 01 18 [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: D1 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: D1 01 00 [10:34:38]MH_I2C_Read... [10:34:38]Read from MH i2c: D1 01 00 56 F0 00 17 [10:34:38]Write to MH i2c: 01 00 00 57 F0 47 [10:34:38]Write i2c OK [10:34:38]MH_I2C_Read... [10:34:38]OFD Sender: No OFD packet to send [10:34:39]*** Cut start [10:34:39]*** Partial cut [10:34:39]*** CUTSNS_PIN = 1 [10:34:39]*** CUTSNS_PIN = 0 [10:34:39]*** Brake cut motor [10:34:39]Read from MH i2c: 01 [10:34:39]MH_I2C_Read... [10:34:39]*** Stop cut motor [10:34:39]*** Cut end [10:34:39]Read from MH i2c: 01 07 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: 01 07 00 57 F0 00 00 00 00 00 FF 0F 5C [10:34:39]process_action close_receipt done [10:34:39]requested_data is exist [10:34:39]produce_requested_data [10:34:39]requested_item fm.sn is exist - process it [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 11 00 00 [10:34:39]Write to MH i2c: E2 08 00 58 F0 80 11 00 00 00 00 00 00 C2 [10:34:39]Write i2c OK [10:34:39]MH_I2C_Read... [10:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:39]Read from MH i2c: E2 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 17 00 [10:34:39]MH_I2C_Read... [10:34:39]Read from MH i2c: E2 17 00 58 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [10:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:34:39]wFMCommunicate OK [10:34:39]requested_item fd.num is exist - process it [10:34:39]SAM_PROTO_GetFieldsCounters [10:34:39]wFMCommunicate request_size=4 [10:34:39]MH_SAM_APDU [10:34:39]CAPDU: 80 13 00 00 [10:34:39]Write to MH i2c: E2 08 00 59 F0 80 13 00 00 00 00 00 00 C5 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 62 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 62 00 59 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_GetFieldsCounters done [10:34:40]requested_item shift.num is exist - process it [10:34:40]requested_item shift.opened is exist - process it [10:34:40]req_shift_opened [10:34:40]FM_GetShiftState [10:34:40]SAM_PROTO_GetShiftState [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 13 01 00 [10:34:40]Write to MH i2c: E2 08 00 5A F0 80 13 01 00 00 00 00 00 C7 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 5A F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 40 [10:34:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_GetShiftState done [10:34:40]FM_GetShiftState done [10:34:40]req_shift_opened done [10:34:40]requested_item shift.open_date is exist - process it [10:34:40]req_shift_open_date [10:34:40]req_shift_open_date done [10:34:40]produce_requested_data done [10:34:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191704,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:34:40]process_action_free close_receipt [10:34:40]json_value_free [10:34:40]json_value_free done [10:34:40]process_json_proto returns [10:34:40]Send response to host [10:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191704,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:34:40]free response buf [10:34:40]execute_script done [10:34:40]execute_script returns [10:34:40]free content buf [10:34:40]Sock 8.Close socket [10:34:40]Sock 8.Thread stoped [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:54]accept exits with 9 [10:36:54]New connection [10:36:54]New thread 3066961252 created [10:36:54]Thread 3066817892 joined [10:36:54]Waiting for new connection... [10:36:54] Sock 9.Parse request [10:36:54]Sock 9.Check first char [10:36:54]Sock 9.First char is OK [10:36:54]request: POST /json_proto HTTP/1.0 [10:36:54]Method: POST [10:36:54]URL: /json_proto [10:36:54]Method is POST - this is cgi request [10:36:54]url: /json_proto [10:36:54]query_string will be loaded in cgi processing [10:36:54]execute_cgi json_proto POST (null) [10:36:54]execute_cgi path=json_proto method=POST [10:36:54]POST find Content-Length [10:36:54]Host: 172.17.63.131:8080 [10:36:54]Content-Length: 676 [10:36:54]Content-Type: application/json [10:36:54] [10:36:54]POST finish read [10:36:54]Found Content-Length = 676 [10:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:54]execute_script... [10:36: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)31007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:54]POST & json_proto [10:36:54]process_json_proto [10:36:54]json parsed OK: [10:36:54]protocol is kg_v1.0 [10:36:54]action value=close_receipt [10:36:54]process_action close_receipt [10:36:54]cmd_close_receipt [10:36:54]MH_GetDate [10:36:54]Write to MH i2c: F0 00 00 5B F0 3A [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 09 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: F0 09 00 5B F0 00 54 C6 1C 67 22 05 6E 64 D9 [10:36:54]GetLastDocTimeStamp 1729938889 [10:36:54]current date 1729939028 [10:36:54]FM_GetShiftState [10:36:54]SAM_PROTO_GetShiftState [10:36:54]wFMCommunicate request_size=4 [10:36:54]MH_SAM_APDU [10:36:54]CAPDU: 80 13 01 00 [10:36:54]Write to MH i2c: E2 08 00 5C F0 80 13 01 00 00 00 00 00 C9 [10:36:54]Write i2c OK [10:36:54]MH_I2C_Read... [10:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:54]Read from MH i2c: E2 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 0E 00 [10:36:54]MH_I2C_Read... [10:36:54]Read from MH i2c: E2 0E 00 5C F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 42 [10:36:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:36:54]wFMCommunicate OK [10:36:54]SAM_PROTO_GetShiftState done [10:36:54]FM_GetShiftState done [10:36:54]opened in 1729902770 [10:36:54]opened+sec_in_day 1729989170 [10:36:54]quantity*price = 40006 [10:36:54]sum+1 = 40007 [10:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 68 26.10.2024 10:37 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191705 ФПД: 19335144328443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191705&fm=19335144328443&tin=02508201610067®Number=0000000000091776&sum=40000 [10:36:56]StoreToDocumentArchive [10:36:56]shift 541 fd 191705 [10:36:56]save to /storage/0541/doc_00191705 [10:36:56]save last doc name /storage/0541/doc_00191705 to /storage/kkm_last_doc_name [10:36:56]save OK [10:36:56]Clear old archive folders... [10:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:56]tlvbuf is 01600DB0 [10:36:56]SAM_PROTO_ClearQueue [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 09 00 00 [10:36:56]Write to MH i2c: E2 08 00 69 F0 80 09 00 00 00 00 00 00 CB [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 69 F0 00 90 00 CD [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_ClearQueue done [10:36:56]KKMCreateOFDPacket [10:36:56]OFDProtocolAddRootSTLVToBuf [10:36:56]FM_MakeSignedData [10:36:56]FM_MakeSignedData [10:36:56]SAM_PROTO_SignData [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 01 02 [10:36:56]Write to MH i2c: E2 08 00 6A F0 80 0D 01 02 00 00 00 00 D3 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 6A F0 00 90 00 CE [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=255 [10:36:56]MH_SAM_APDU [10:36: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 54 C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EC 02 00 35 04 06 00 11 [10:36:56]Write to MH i2c: E2 02 01 6B F0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 54 C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EC 02 00 35 04 06 00 11 00 00 0E [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 6B F0 00 90 00 CF [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=10 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 02 02 05 95 D0 68 CC FB [10:36:56]Write to MH i2c: E2 0D 00 6C F0 80 0D 02 02 05 00 95 D0 68 CC FB 00 00 74 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 03 00 6C F0 00 90 00 D0 [10:36:56]RAPDU: 90 00 [10:36:56]wFMCommunicate OK [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 0D 03 02 [10:36:56]Write to MH i2c: E2 08 00 6D F0 80 0D 03 02 00 00 00 00 D8 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 0B 00 6D F0 00 E8 C3 50 16 29 91 B7 8A 90 00 E5 [10:36:56]RAPDU: E8 C3 50 16 29 91 B7 8A 90 00 [10:36:56]wFMCommunicate OK [10:36:56]SAM_PROTO_SignData done [10:36:56]FM_MakeSignedData done [10:36:56]CreateOFDProtocolMessage [10:36:56]wFMCommunicate request_size=4 [10:36:56]MH_SAM_APDU [10:36:56]CAPDU: 80 11 00 00 [10:36:56]Write to MH i2c: E2 08 00 6E F0 80 11 00 00 00 00 00 00 D8 [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:56]Read from MH i2c: E2 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: E2 17 00 6E F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2B [10:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:56]wFMCommunicate OK [10:36:56]CreateOFDProtocolMessage done [10:36:56]OFDSenderStorePacket 191705 [10:36:56]StoreOFDPacket docnum=191705 [10:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 1A 07 01 61 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 54 C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EC 02 00 35 04 06 00 11 95 D0 68 CC FB E8 C3 50 16 29 91 B7 8A [10:36:56]CheckFolder [10:36:56]dirname=/storage/ofd_packets [10:36:56]CheckFolder done [10:36:56]ProducePacketName [10:36:56]name=ofd_packets/00191705 [10:36:56]NVStorageSaveData ofd_packets/00191705 [10:36:56]File name is /storage/ofd_packets/00191705 [10:36:56]Write 301 bytes [10:36:56]NVStorageSaveData done [10:36:56]OFDSenderStorePacket done [10:36:56]KKMCreateOFDPacket done [10:36:56]NVStorageSaveData kkm_last_timestamp [10:36:56]File name is /storage/kkm_last_timestamp [10:36:56]Write 4 bytes [10:36:56]NVStorageSaveData done [10:36:56]ExternCall_PrintAddStr [10:36:56]wPrintStart [10:36:56]Write to MH i2c: 01 00 00 6F F0 5F [10:36:56]Write i2c OK [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 [10:36:56]MH_I2C_Read... [10:36:56]Read from MH i2c: 01 07 00 6F F0 00 00 00 00 00 FF 0F 74 [10:36:56]RasterBufferAndPrint [10:36:56]line Счет N : (1)31007 [10:36:56]line ИНН: 02508201610067 [10:36:56]line Контрольно-Кассовый Чек [10:36:56]line ПРОДАЖА [10:36:56]line ТРК (МРК, ГНК) : 12 [10:36:56]line Товар: 2710124130 [10:36:56]line Аи-92-К-5 [10:36:56]line 5.980 * 66.90 [10:36:56]line = 400.06 [10:36:56]line НДС 12% НСП 1% [10:36:56]line > о реализуемом товаре [10:36:56]line ОКРУГЛЕНИЕ: -0.06 [10:36:56]line ИТОГО: 400.00 [10:36:56]line Внесено: 400.00 [10:36:56]line СДАЧА: 0.00 [10:36:56]line НСП 1% : 3.54 [10:36:56]line НДС 12% : 42.48 [10:36:56]line Наличными: 400.00 [10:36:56]line Безнал.: 0.00 [10:36:56]line Место: АЗС № 170 "Партнер Нефть" [10:36:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:36:56]line СНО: Общий режим [10:36:56]line Чек 68 26.10.2024 10:37 [10:36:56]line Смена: 541 ФФД: 1.0 [10:36:56]line ЗНМ: 0300000110 [10:36:56]line РНМ: 0000000000091776 [10:36:56]line Версия ККМ: 001 [10:36:56]line ФМ: 0000000000871754 [10:36:56]line ФД: 191705 [10:36:56]line ФПД: 19335144328443 [10:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191705&fm=19335144328443&tin=02508201610067®Number=0000000000091776&sum=40000 [10:36:56]OFD Sender: Processing packet 191705 [packets to send 75, broken 74] [10:36:56]ProducePacketName [10:36:56]name=ofd_packets/00191705 [10:36:56]OFD Sender: To server: pG, [10:36:56]CommunicateWithHost lk.salyk.kg:30040 [10:36:56]ConnectInit lk.salyk.kg [10:36:56]written 0, free lines is 4095 [10:36:57]Connected sock=10 [10:36:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 1A 07 01 61 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 54 C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EC 02 00 35 04 06 00 11 95 D0 68 CC FB E8 C3 50 16 29 91 B7 8A [10:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF FC 47 00 A5 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 EC 02 00 F4 03 04 00 20 6B 1C 67 B6 04 01 00 00 81 7A D7 C2 F2 16 1C 97 [10:36:57]CommunicateWithHost err = 0 [10:36:57]CheckOFDResponse [10:36:57]1017 (14) - 77093643461234 [10:36:57]1041 (16) - 0000000000871754 [10:36:57]1040 (4) - 191705 [10:36:57]1012 (4) - 26.10.2024 04:08 [10:36:57]1206 (1) - 0 [10:36:57]OFD Sender: Remove packet 191705 [10:36:57]ProducePacketName [10:36:57]name=ofd_packets/00191705 [10:36:57]NVStorageDeleteData [10:36:57]Write to MH i2c: 01 00 00 9A F0 8A [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: 01 07 00 9A F0 00 00 00 00 00 C6 0C 63 [10:36:57]RasterBufferAndPrint [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]line [10:36:57]written 0, free lines is 3279 [10:36:57]MH_Cut [10:36:57]Write to MH i2c: D1 01 00 A1 F0 01 63 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 [10:36:57]MH_I2C_Read... [10:36:57]Read from MH i2c: D1 01 00 A1 F0 00 62 [10:36:57]Write to MH i2c: 01 00 00 A2 F0 92 [10:36:57]Write i2c OK [10:36:57]MH_I2C_Read... [10:36:57]OFD Sender: No OFD packet to send [10:36:58]*** Cut start [10:36:58]*** Partial cut [10:36:58]*** CUTSNS_PIN = 1 [10:36:58]*** CUTSNS_PIN = 0 [10:36:58]*** Brake cut motor [10:36:58]Read from MH i2c: 01 [10:36:58]MH_I2C_Read... [10:36:58]*** Stop cut motor [10:36:58]*** Cut end [10:36:58]Read from MH i2c: 01 07 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: 01 07 00 A2 F0 00 00 00 00 00 FF 0F A7 [10:36:58]process_action close_receipt done [10:36:58]requested_data is exist [10:36:58]produce_requested_data [10:36:58]requested_item fm.sn is exist - process it [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 11 00 00 [10:36:58]Write to MH i2c: E2 08 00 A3 F0 80 11 00 00 00 00 00 00 0D [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:58]Read from MH i2c: E2 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 [10:36:58]MH_I2C_Read... [10:36:58]Read from MH i2c: E2 17 00 A3 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [10:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:36:58]wFMCommunicate OK [10:36:58]requested_item fd.num is exist - process it [10:36:58]SAM_PROTO_GetFieldsCounters [10:36:58]wFMCommunicate request_size=4 [10:36:58]MH_SAM_APDU [10:36:58]CAPDU: 80 13 00 00 [10:36:58]Write to MH i2c: E2 08 00 A4 F0 80 13 00 00 00 00 00 00 10 [10:36:58]Write i2c OK [10:36:58]MH_I2C_Read... [10:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 62 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 62 00 A4 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:36:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_GetFieldsCounters done [10:36:59]requested_item shift.num is exist - process it [10:36:59]requested_item shift.opened is exist - process it [10:36:59]req_shift_opened [10:36:59]FM_GetShiftState [10:36:59]SAM_PROTO_GetShiftState [10:36:59]wFMCommunicate request_size=4 [10:36:59]MH_SAM_APDU [10:36:59]CAPDU: 80 13 01 00 [10:36:59]Write to MH i2c: E2 08 00 A5 F0 80 13 01 00 00 00 00 00 12 [10:36:59]Write i2c OK [10:36:59]MH_I2C_Read... [10:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:59]Read from MH i2c: E2 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0E 00 [10:36:59]MH_I2C_Read... [10:36:59]Read from MH i2c: E2 0E 00 A5 F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8B [10:36:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:36:59]wFMCommunicate OK [10:36:59]SAM_PROTO_GetShiftState done [10:36:59]FM_GetShiftState done [10:36:59]req_shift_opened done [10:36:59]requested_item shift.open_date is exist - process it [10:36:59]req_shift_open_date [10:36:59]req_shift_open_date done [10:36:59]produce_requested_data done [10:36:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191705,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:36:59]process_action_free close_receipt [10:36:59]json_value_free [10:36:59]json_value_free done [10:36:59]process_json_proto returns [10:36:59]Send response to host [10:36:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191705,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:36:59]free response buf [10:36:59]execute_script done [10:36:59]execute_script returns [10:36:59]free content buf [10:36:59]Sock 9.Close socket [10:36:59]Sock 9.Thread stoped [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:04]accept exits with 8 [10:38:04]New connection [10:38:04]New thread 3066817892 created [10:38:04]Thread 3066961252 joined [10:38:04]Waiting for new connection... [10:38:04] Sock 8.Parse request [10:38:04]Sock 8.Check first char [10:38:04]Sock 8.First char is OK [10:38:04]request: POST /json_proto HTTP/1.0 [10:38:04]Method: POST [10:38:04]URL: /json_proto [10:38:04]Method is POST - this is cgi request [10:38:04]url: /json_proto [10:38:04]query_string will be loaded in cgi processing [10:38:04]execute_cgi json_proto POST (null) [10:38:04]execute_cgi path=json_proto method=POST [10:38:04]POST find Content-Length [10:38:04]Host: 172.17.63.131:8080 [10:38:04]Content-Length: 676 [10:38:04]Content-Type: application/json [10:38:04] [10:38:04]POST finish read [10:38:04]Found Content-Length = 676 [10:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:04]execute_script... [10:38: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)31008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:04]POST & json_proto [10:38:04]process_json_proto [10:38:04]json parsed OK: [10:38:04]protocol is kg_v1.0 [10:38:04]action value=close_receipt [10:38:04]process_action close_receipt [10:38:04]cmd_close_receipt [10:38:04]MH_GetDate [10:38:04]Write to MH i2c: F0 00 00 A6 F0 85 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: F0 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: F0 09 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: F0 09 00 A6 F0 00 9A C6 1C 67 22 05 6E 64 6A [10:38:04]GetLastDocTimeStamp 1729939028 [10:38:04]current date 1729939098 [10:38:04]FM_GetShiftState [10:38:04]SAM_PROTO_GetShiftState [10:38:04]wFMCommunicate request_size=4 [10:38:04]MH_SAM_APDU [10:38:04]CAPDU: 80 13 01 00 [10:38:04]Write to MH i2c: E2 08 00 A7 F0 80 13 01 00 00 00 00 00 14 [10:38:04]Write i2c OK [10:38:04]MH_I2C_Read... [10:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:04]Read from MH i2c: E2 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 0E 00 [10:38:04]MH_I2C_Read... [10:38:04]Read from MH i2c: E2 0E 00 A7 F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8D [10:38:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:38:04]wFMCommunicate OK [10:38:04]SAM_PROTO_GetShiftState done [10:38:04]FM_GetShiftState done [10:38:04]opened in 1729902770 [10:38:04]opened+sec_in_day 1729989170 [10:38:04]quantity*price = 50041 [10:38:04]sum+1 = 50042 [10:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 69 26.10.2024 10:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191706 ФПД: 278753221918179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191706&fm=278753221918179&tin=02508201610067®Number=0000000000091776&sum=50000 [10:38:05]StoreToDocumentArchive [10:38:05]shift 541 fd 191706 [10:38:05]save to /storage/0541/doc_00191706 [10:38:05]save last doc name /storage/0541/doc_00191706 to /storage/kkm_last_doc_name [10:38:05]save OK [10:38:05]Clear old archive folders... [10:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:05]tlvbuf is 01708E70 [10:38:05]SAM_PROTO_ClearQueue [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 09 00 00 [10:38:05]Write to MH i2c: E2 08 00 B4 F0 80 09 00 00 00 00 00 00 16 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 B4 F0 00 90 00 18 [10:38:05]RAPDU: 90 00 [10:38:05]wFMCommunicate OK [10:38:05]SAM_PROTO_ClearQueue done [10:38:05]KKMCreateOFDPacket [10:38:05]OFDProtocolAddRootSTLVToBuf [10:38:05]FM_MakeSignedData [10:38:05]FM_MakeSignedData [10:38:05]SAM_PROTO_SignData [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 0D 01 02 [10:38:05]Write to MH i2c: E2 08 00 B5 F0 80 0D 01 02 00 00 00 00 1E [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 B5 F0 00 90 00 19 [10:38:05]RAPDU: 90 00 [10:38:05]wFMCommunicate OK [10:38:05]wFMCommunicate request_size=255 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 9A C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EC 02 00 35 04 06 00 FD [10:38:05]Write to MH i2c: E2 02 01 B6 F0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EC 02 00 35 04 06 00 FD 00 00 BE [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 B6 F0 00 90 00 1A [10:38:05]RAPDU: 90 00 [10:38:05]wFMCommunicate OK [10:38:05]wFMCommunicate request_size=10 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 0D 02 02 05 86 4A C5 BD E3 [10:38:05]Write to MH i2c: E2 0D 00 B7 F0 80 0D 02 02 05 00 86 4A C5 BD E3 00 00 60 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 03 00 B7 F0 00 90 00 1B [10:38:05]RAPDU: 90 00 [10:38:05]wFMCommunicate OK [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 0D 03 02 [10:38:05]Write to MH i2c: E2 08 00 B8 F0 80 0D 03 02 00 00 00 00 23 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0B 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 0B 00 B8 F0 00 8B BF 4B DD 7E 9A C5 8E 90 00 01 [10:38:05]RAPDU: 8B BF 4B DD 7E 9A C5 8E 90 00 [10:38:05]wFMCommunicate OK [10:38:05]SAM_PROTO_SignData done [10:38:05]FM_MakeSignedData done [10:38:05]CreateOFDProtocolMessage [10:38:05]wFMCommunicate request_size=4 [10:38:05]MH_SAM_APDU [10:38:05]CAPDU: 80 11 00 00 [10:38:05]Write to MH i2c: E2 08 00 B9 F0 80 11 00 00 00 00 00 00 23 [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:05]Read from MH i2c: E2 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 17 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: E2 17 00 B9 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 76 [10:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:05]wFMCommunicate OK [10:38:05]CreateOFDProtocolMessage done [10:38:05]OFDSenderStorePacket 191706 [10:38:05]StoreOFDPacket docnum=191706 [10:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E 41 07 01 8E D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EC 02 00 35 04 06 00 FD 86 4A C5 BD E3 8B BF 4B DD 7E 9A C5 8E [10:38:05]CheckFolder [10:38:05]dirname=/storage/ofd_packets [10:38:05]CheckFolder done [10:38:05]ProducePacketName [10:38:05]name=ofd_packets/00191706 [10:38:05]NVStorageSaveData ofd_packets/00191706 [10:38:05]File name is /storage/ofd_packets/00191706 [10:38:05]Write 301 bytes [10:38:05]NVStorageSaveData done [10:38:05]OFDSenderStorePacket done [10:38:05]KKMCreateOFDPacket done [10:38:05]NVStorageSaveData kkm_last_timestamp [10:38:05]File name is /storage/kkm_last_timestamp [10:38:05]Write 4 bytes [10:38:05]NVStorageSaveData done [10:38:05]ExternCall_PrintAddStr [10:38:05]wPrintStart [10:38:05]Write to MH i2c: 01 00 00 BA F0 AA [10:38:05]OFD Sender: Processing packet 191706 [packets to send 75, broken 74] [10:38:05]ProducePacketName [10:38:05]name=ofd_packets/00191706 [10:38:05]OFD Sender: To server: pG, [10:38:05]CommunicateWithHost lk.salyk.kg:30040 [10:38:05]ConnectInit lk.salyk.kg [10:38:05]Write i2c OK [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: 01 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: 01 07 00 [10:38:05]MH_I2C_Read... [10:38:05]Read from MH i2c: 01 07 00 BA F0 00 00 00 00 00 FF 0F BF [10:38:05]RasterBufferAndPrint [10:38:05]line Счет N : (1)31008 [10:38:05]line ИНН: 02508201610067 [10:38:05]line Контрольно-Кассовый Чек [10:38:05]line ПРОДАЖА [10:38:05]line ТРК (МРК, ГНК) : 12 [10:38:05]line Товар: 2710124130 [10:38:05]line Аи-92-К-5 [10:38:05]line 7.480 * 66.90 [10:38:05]line = 500.41 [10:38:05]line НДС 12% НСП 1% [10:38:05]line > о реализуемом товаре [10:38:05]line ОКРУГЛЕНИЕ: -0.41 [10:38:05]line ИТОГО: 500.00 [10:38:05]line Внесено: 500.00 [10:38:05]line СДАЧА: 0.00 [10:38:05]line НСП 1% : 4.43 [10:38:05]line НДС 12% : 53.14 [10:38:05]line Наличными: 500.00 [10:38:05]line Безнал.: 0.00 [10:38:05]line Место: АЗС № 170 "Партнер Нефть" [10:38:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:38:05]line СНО: Общий режим [10:38:05]line Чек 69 26.10.2024 10:38 [10:38:05]line Смена: 541 ФФД: 1.0 [10:38:05]line ЗНМ: 0300000110 [10:38:05]line РНМ: 0000000000091776 [10:38:05]line Версия ККМ: 001 [10:38:05]line ФМ: 0000000000871754 [10:38:05]line ФД: 191706 [10:38:05]line ФПД: 278753221918179 [10:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T103818&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191706&fm=278753221918179&tin=02508201610067®Number=0000000000091776&sum=50000 [10:38:05]written 0, free lines is 4095 [10:38:06]Connected sock=10 [10:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E 41 07 01 8E D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A C6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EC 02 00 35 04 06 00 FD 86 4A C5 BD E3 8B BF 4B DD 7E 9A C5 8E [10:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DD 79 47 00 E3 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA EC 02 00 F4 03 04 00 65 6B 1C 67 B6 04 01 00 00 71 05 90 C3 5B 4A D5 6B [10:38:06]CommunicateWithHost err = 0 [10:38:06]CheckOFDResponse [10:38:06]1017 (14) - 77093643461234 [10:38:06]1041 (16) - 0000000000871754 [10:38:06]1040 (4) - 191706 [10:38:06]1012 (4) - 26.10.2024 04:09 [10:38:06]1206 (1) - 0 [10:38:06]OFD Sender: Remove packet 191706 [10:38:06]ProducePacketName [10:38:06]name=ofd_packets/00191706 [10:38:06]NVStorageDeleteData [10:38:06]Write to MH i2c: 01 00 00 E5 F0 D5 [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: 01 07 00 E5 F0 00 00 00 00 00 B9 0C A1 [10:38:06]RasterBufferAndPrint [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]line [10:38:06]written 0, free lines is 3264 [10:38:06]MH_Cut [10:38:06]Write to MH i2c: D1 01 00 EC F0 01 AE [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 01 00 [10:38:06]MH_I2C_Read... [10:38:06]Read from MH i2c: D1 01 00 EC F0 00 AD [10:38:06]Write to MH i2c: 01 00 00 ED F0 DD [10:38:06]Write i2c OK [10:38:06]MH_I2C_Read... [10:38:06]OFD Sender: No OFD packet to send [10:38:07]*** Cut start [10:38:07]*** Partial cut [10:38:07]*** CUTSNS_PIN = 1 [10:38:07]*** CUTSNS_PIN = 0 [10:38:07]*** Brake cut motor [10:38:07]Read from MH i2c: 01 [10:38:07]MH_I2C_Read... [10:38:07]*** Stop cut motor [10:38:07]*** Cut end [10:38:07]Read from MH i2c: 01 07 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: 01 07 00 ED F0 00 00 00 00 00 FF 0F F2 [10:38:07]process_action close_receipt done [10:38:07]requested_data is exist [10:38:07]produce_requested_data [10:38:07]requested_item fm.sn is exist - process it [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 11 00 00 [10:38:07]Write to MH i2c: E2 08 00 EE F0 80 11 00 00 00 00 00 00 58 [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:07]Read from MH i2c: E2 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 17 00 [10:38:07]MH_I2C_Read... [10:38:07]Read from MH i2c: E2 17 00 EE F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [10:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:38:07]wFMCommunicate OK [10:38:07]requested_item fd.num is exist - process it [10:38:07]SAM_PROTO_GetFieldsCounters [10:38:07]wFMCommunicate request_size=4 [10:38:07]MH_SAM_APDU [10:38:07]CAPDU: 80 13 00 00 [10:38:07]Write to MH i2c: E2 08 00 EF F0 80 13 00 00 00 00 00 00 5B [10:38:07]Write i2c OK [10:38:07]MH_I2C_Read... [10:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:08]Read from MH i2c: E2 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 62 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 62 00 EF F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:08]wFMCommunicate OK [10:38:08]SAM_PROTO_GetFieldsCounters done [10:38:08]requested_item shift.num is exist - process it [10:38:08]requested_item shift.opened is exist - process it [10:38:08]req_shift_opened [10:38:08]FM_GetShiftState [10:38:08]SAM_PROTO_GetShiftState [10:38:08]wFMCommunicate request_size=4 [10:38:08]MH_SAM_APDU [10:38:08]CAPDU: 80 13 01 00 [10:38:08]Write to MH i2c: E2 08 00 F0 F0 80 13 01 00 00 00 00 00 5D [10:38:08]Write i2c OK [10:38:08]MH_I2C_Read... [10:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:08]Read from MH i2c: E2 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 0E 00 [10:38:08]MH_I2C_Read... [10:38:08]Read from MH i2c: E2 0E 00 F0 F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D6 [10:38:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:38:08]wFMCommunicate OK [10:38:08]SAM_PROTO_GetShiftState done [10:38:08]FM_GetShiftState done [10:38:08]req_shift_opened done [10:38:08]requested_item shift.open_date is exist - process it [10:38:08]req_shift_open_date [10:38:08]req_shift_open_date done [10:38:08]produce_requested_data done [10:38:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191706,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:38:08]process_action_free close_receipt [10:38:08]json_value_free [10:38:08]json_value_free done [10:38:08]process_json_proto returns [10:38:08]Send response to host [10:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191706,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:38:08]free response buf [10:38:08]execute_script done [10:38:08]execute_script returns [10:38:08]free content buf [10:38:08]Sock 8.Close socket [10:38:08]Sock 8.Thread stoped [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:28]accept exits with 9 [10:40:28]New connection [10:40:28]New thread 3066961252 created [10:40:28]Thread 3066817892 joined [10:40:28]Waiting for new connection... [10:40:28] Sock 9.Parse request [10:40:28]Sock 9.Check first char [10:40:28]Sock 9.First char is OK [10:40:28]request: POST /json_proto HTTP/1.0 [10:40:28]Method: POST [10:40:28]URL: /json_proto [10:40:28]Method is POST - this is cgi request [10:40:28]url: /json_proto [10:40:28]query_string will be loaded in cgi processing [10:40:28]execute_cgi json_proto POST (null) [10:40:28]execute_cgi path=json_proto method=POST [10:40:28]POST find Content-Length [10:40:28]Host: 172.17.63.131:8080 [10:40:28]Content-Length: 676 [10:40:28]Content-Type: application/json [10:40:28] [10:40:28]POST finish read [10:40:28]Found Content-Length = 676 [10:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:28]execute_script... [10:40: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)31010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:28]POST & json_proto [10:40:28]process_json_proto [10:40:28]json parsed OK: [10:40:28]protocol is kg_v1.0 [10:40:28]action value=close_receipt [10:40:28]process_action close_receipt [10:40:28]cmd_close_receipt [10:40:28]MH_GetDate [10:40:28]Write to MH i2c: F0 00 00 F1 F0 D0 [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: F0 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: F0 09 00 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: F0 09 00 F1 F0 00 2A C7 1C 67 22 05 6E 64 46 [10:40:28]GetLastDocTimeStamp 1729939098 [10:40:28]current date 1729939242 [10:40:28]FM_GetShiftState [10:40:28]SAM_PROTO_GetShiftState [10:40:28]wFMCommunicate request_size=4 [10:40:28]MH_SAM_APDU [10:40:28]CAPDU: 80 13 01 00 [10:40:28]Write to MH i2c: E2 08 00 F2 F0 80 13 01 00 00 00 00 00 5F [10:40:28]Write i2c OK [10:40:28]MH_I2C_Read... [10:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:28]Read from MH i2c: E2 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 0E 00 [10:40:28]MH_I2C_Read... [10:40:28]Read from MH i2c: E2 0E 00 F2 F0 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D8 [10:40:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:40:28]wFMCommunicate OK [10:40:28]SAM_PROTO_GetShiftState done [10:40:28]FM_GetShiftState done [10:40:28]opened in 1729902770 [10:40:28]opened+sec_in_day 1729989170 [10:40:28]quantity*price = 30038 [10:40:28]sum+1 = 30039 [10:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 70 26.10.2024 10:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191707 ФПД: 264514206077290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191707&fm=264514206077290&tin=02508201610067®Number=0000000000091776&sum=30000 [10:40:29]StoreToDocumentArchive [10:40:29]shift 541 fd 191707 [10:40:29]save to /storage/0541/doc_00191707 [10:40:29]save last doc name /storage/0541/doc_00191707 to /storage/kkm_last_doc_name [10:40:29]save OK [10:40:29]Clear old archive folders... [10:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:29]tlvbuf is 019D27A0 [10:40:29]SAM_PROTO_ClearQueue [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 09 00 00 [10:40:29]Write to MH i2c: E2 08 00 FF F0 80 09 00 00 00 00 00 00 61 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 FF F0 00 90 00 63 [10:40:29]RAPDU: 90 00 [10:40:29]wFMCommunicate OK [10:40:29]SAM_PROTO_ClearQueue done [10:40:29]KKMCreateOFDPacket [10:40:29]OFDProtocolAddRootSTLVToBuf [10:40:29]FM_MakeSignedData [10:40:29]FM_MakeSignedData [10:40:29]SAM_PROTO_SignData [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 0D 01 02 [10:40:29]Write to MH i2c: E2 08 00 00 F1 80 0D 01 02 00 00 00 00 6A [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 00 F1 00 90 00 65 [10:40:29]RAPDU: 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=255 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EC 02 00 35 04 06 00 F0 [10:40:29]Write to MH i2c: E2 02 01 01 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EC 02 00 35 04 06 00 F0 00 00 84 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 01 F1 00 90 00 66 [10:40:29]RAPDU: 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=10 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 0D 02 02 05 93 03 4A 91 6A [10:40:29]Write to MH i2c: E2 0D 00 02 F1 80 0D 02 02 05 00 93 03 4A 91 6A 00 00 52 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 03 00 02 F1 00 90 00 67 [10:40:29]RAPDU: 90 00 [10:40:29]wFMCommunicate OK [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 0D 03 02 [10:40:29]Write to MH i2c: E2 08 00 03 F1 80 0D 03 02 00 00 00 00 6F [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 0B 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 0B 00 03 F1 00 42 2F E0 23 07 73 FD 42 90 00 9D [10:40:29]RAPDU: 42 2F E0 23 07 73 FD 42 90 00 [10:40:29]wFMCommunicate OK [10:40:29]SAM_PROTO_SignData done [10:40:29]FM_MakeSignedData done [10:40:29]CreateOFDProtocolMessage [10:40:29]wFMCommunicate request_size=4 [10:40:29]MH_SAM_APDU [10:40:29]CAPDU: 80 11 00 00 [10:40:29]Write to MH i2c: E2 08 00 04 F1 80 11 00 00 00 00 00 00 6F [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:29]Read from MH i2c: E2 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 17 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: E2 17 00 04 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [10:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:29]wFMCommunicate OK [10:40:29]CreateOFDProtocolMessage done [10:40:29]OFDSenderStorePacket 191707 [10:40:29]StoreOFDPacket docnum=191707 [10:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB D4 07 01 DC 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EC 02 00 35 04 06 00 F0 93 03 4A 91 6A 42 2F E0 23 07 73 FD 42 [10:40:29]CheckFolder [10:40:29]dirname=/storage/ofd_packets [10:40:29]CheckFolder done [10:40:29]ProducePacketName [10:40:29]name=ofd_packets/00191707 [10:40:29]NVStorageSaveData ofd_packets/00191707 [10:40:29]File name is /storage/ofd_packets/00191707 [10:40:29]Write 301 bytes [10:40:29]NVStorageSaveData done [10:40:29]OFDSenderStorePacket done [10:40:29]KKMCreateOFDPacket done [10:40:29]NVStorageSaveData kkm_last_timestamp [10:40:29]File name is /storage/kkm_last_timestamp [10:40:29]Write 4 bytes [10:40:29]NVStorageSaveData done [10:40:29]ExternCall_PrintAddStr [10:40:29]wPrintStart [10:40:29]Write to MH i2c: 01 00 00 05 F1 F6 [10:40:29]Write i2c OK [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: 01 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: 01 07 00 [10:40:29]MH_I2C_Read... [10:40:29]Read from MH i2c: 01 07 00 05 F1 00 00 00 00 00 FF 0F 0B [10:40:29]RasterBufferAndPrint [10:40:29]line Счет N : (1)31010 [10:40:29]line ИНН: 02508201610067 [10:40:29]line Контрольно-Кассовый Чек [10:40:29]line ПРОДАЖА [10:40:29]line ТРК (МРК, ГНК) : 12 [10:40:29]line Товар: 2710124130 [10:40:29]line Аи-92-К-5 [10:40:29]line 4.490 * 66.90 [10:40:29]line = 300.38 [10:40:29]line НДС 12% НСП 1% [10:40:29]line > о реализуемом товаре [10:40:29]line ОКРУГЛЕНИЕ: -0.38 [10:40:29]line ИТОГО: 300.00 [10:40:29]line Внесено: 300.00 [10:40:29]line СДАЧА: 0.00 [10:40:29]line НСП 1% : 2.66 [10:40:29]line НДС 12% : 31.90 [10:40:29]line Наличными: 300.00 [10:40:29]line Безнал.: 0.00 [10:40:29]line Место: АЗС № 170 "Партнер Нефть" [10:40:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:40:29]line СНО: Общий режим [10:40:29]line Чек 70 26.10.2024 10:40 [10:40:29]line Смена: 541 ФФД: 1.0 [10:40:29]line ЗНМ: 0300000110 [10:40:29]line РНМ: 0000000000091776 [10:40:29]line Версия ККМ: 001 [10:40:29]line ФМ: 0000000000871754 [10:40:29]line ФД: 191707 [10:40:29]line ФПД: 264514206077290 [10:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191707&fm=264514206077290&tin=02508201610067®Number=0000000000091776&sum=30000 [10:40:30]OFD Sender: Processing packet 191707 [packets to send 75, broken 74] [10:40:30]ProducePacketName [10:40:30]name=ofd_packets/00191707 [10:40:30]OFD Sender: To server: pG, [10:40:30]CommunicateWithHost lk.salyk.kg:30040 [10:40:30]ConnectInit lk.salyk.kg [10:40:30]written 0, free lines is 4095 [10:40:30]Connected sock=10 [10:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FB D4 07 01 DC 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EC 02 00 35 04 06 00 F0 93 03 4A 91 6A 42 2F E0 23 07 73 FD 42 [10:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FE 1E 47 00 CB 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB EC 02 00 F4 03 04 00 F5 6B 1C 67 B6 04 01 00 00 71 C7 39 4E 51 15 6A 81 [10:40:30]CommunicateWithHost err = 0 [10:40:30]CheckOFDResponse [10:40:30]1017 (14) - 77093643461234 [10:40:30]1041 (16) - 0000000000871754 [10:40:30]1040 (4) - 191707 [10:40:30]1012 (4) - 26.10.2024 04:11 [10:40:30]1206 (1) - 0 [10:40:30]OFD Sender: Remove packet 191707 [10:40:30]ProducePacketName [10:40:30]name=ofd_packets/00191707 [10:40:30]NVStorageDeleteData [10:40:30]Write to MH i2c: 01 00 00 30 F1 21 [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: 01 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: 01 07 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: 01 07 00 30 F1 00 00 00 00 00 C5 0C F9 [10:40:30]RasterBufferAndPrint [10:40:30]line [10:40:30]line [10:40:30]line [10:40:30]line [10:40:30]line [10:40:30]written 0, free lines is 3275 [10:40:30]MH_Cut [10:40:30]Write to MH i2c: D1 01 00 37 F1 01 FA [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: D1 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: D1 01 00 [10:40:30]MH_I2C_Read... [10:40:30]Read from MH i2c: D1 01 00 37 F1 00 F9 [10:40:30]Write to MH i2c: 01 00 00 38 F1 29 [10:40:30]Write i2c OK [10:40:30]MH_I2C_Read... [10:40:31]OFD Sender: No OFD packet to send [10:40:31]*** Cut start [10:40:31]*** Partial cut [10:40:31]*** CUTSNS_PIN = 1 [10:40:31]*** CUTSNS_PIN = 0 [10:40:31]*** Brake cut motor [10:40:32]Read from MH i2c: 01 [10:40:32]MH_I2C_Read... [10:40:32]*** Stop cut motor [10:40:32]*** Cut end [10:40:32]Read from MH i2c: 01 07 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: 01 07 00 38 F1 00 00 00 00 00 FF 0F 3E [10:40:32]process_action close_receipt done [10:40:32]requested_data is exist [10:40:32]produce_requested_data [10:40:32]requested_item fm.sn is exist - process it [10:40:32]wFMCommunicate request_size=4 [10:40:32]MH_SAM_APDU [10:40:32]CAPDU: 80 11 00 00 [10:40:32]Write to MH i2c: E2 08 00 39 F1 80 11 00 00 00 00 00 00 A4 [10:40:32]Write i2c OK [10:40:32]MH_I2C_Read... [10:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:32]Read from MH i2c: E2 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 17 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 17 00 39 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [10:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:32]wFMCommunicate OK [10:40:32]requested_item fd.num is exist - process it [10:40:32]SAM_PROTO_GetFieldsCounters [10:40:32]wFMCommunicate request_size=4 [10:40:32]MH_SAM_APDU [10:40:32]CAPDU: 80 13 00 00 [10:40:32]Write to MH i2c: E2 08 00 3A F1 80 13 00 00 00 00 00 00 A7 [10:40:32]Write i2c OK [10:40:32]MH_I2C_Read... [10:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:32]Read from MH i2c: E2 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 62 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 62 00 3A F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:32]wFMCommunicate OK [10:40:32]SAM_PROTO_GetFieldsCounters done [10:40:32]requested_item shift.num is exist - process it [10:40:32]requested_item shift.opened is exist - process it [10:40:32]req_shift_opened [10:40:32]FM_GetShiftState [10:40:32]SAM_PROTO_GetShiftState [10:40:32]wFMCommunicate request_size=4 [10:40:32]MH_SAM_APDU [10:40:32]CAPDU: 80 13 01 00 [10:40:32]Write to MH i2c: E2 08 00 3B F1 80 13 01 00 00 00 00 00 A9 [10:40:32]Write i2c OK [10:40:32]MH_I2C_Read... [10:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:32]Read from MH i2c: E2 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 0E 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 0E 00 3B F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 22 [10:40:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:40:32]wFMCommunicate OK [10:40:32]SAM_PROTO_GetShiftState done [10:40:32]FM_GetShiftState done [10:40:32]req_shift_opened done [10:40:32]requested_item shift.open_date is exist - process it [10:40:32]req_shift_open_date [10:40:32]req_shift_open_date done [10:40:32]produce_requested_data done [10:40:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191707,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:40:32]process_action_free close_receipt [10:40:32]json_value_free [10:40:32]json_value_free done [10:40:32]process_json_proto returns [10:40:32]Send response to host [10:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191707,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:40:32]free response buf [10:40:32]execute_script done [10:40:32]execute_script returns [10:40:32]free content buf [10:40:32]Sock 9.Close socket [10:40:32]Sock 9.Thread stoped [10:40:33]accept exits with 8 [10:40:33]New connection [10:40:33]New thread 3066817892 created [10:40:33]Thread 3066961252 joined [10:40:33]Waiting for new connection... [10:40:33] Sock 8.Parse request [10:40:33]Sock 8.Check first char [10:40:33]Sock 8.First char is OK [10:40:33]request: POST /json_proto HTTP/1.0 [10:40:33]Method: POST [10:40:33]URL: /json_proto [10:40:33]Method is POST - this is cgi request [10:40:33]url: /json_proto [10:40:33]query_string will be loaded in cgi processing [10:40:33]execute_cgi json_proto POST (null) [10:40:33]execute_cgi path=json_proto method=POST [10:40:33]POST find Content-Length [10:40:33]Host: 172.17.63.131:8080 [10:40:33]Content-Length: 681 [10:40:33]Content-Type: application/json [10:40:33] [10:40:33]POST finish read [10:40:33]Found Content-Length = 681 [10:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:33]execute_script... [10:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:33]POST & json_proto [10:40:33]process_json_proto [10:40:33]json parsed OK: [10:40:33]protocol is kg_v1.0 [10:40:33]action value=close_receipt [10:40:33]process_action close_receipt [10:40:33]cmd_close_receipt [10:40:33]MH_GetDate [10:40:33]Write to MH i2c: F0 00 00 3C F1 1C [10:40:33]Write i2c OK [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: F0 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: F0 09 00 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: F0 09 00 3C F1 00 2F C7 1C 67 22 05 6E 64 97 [10:40:33]GetLastDocTimeStamp 1729939242 [10:40:33]current date 1729939247 [10:40:33]FM_GetShiftState [10:40:33]SAM_PROTO_GetShiftState [10:40:33]wFMCommunicate request_size=4 [10:40:33]MH_SAM_APDU [10:40:33]CAPDU: 80 13 01 00 [10:40:33]Write to MH i2c: E2 08 00 3D F1 80 13 01 00 00 00 00 00 AB [10:40:33]Write i2c OK [10:40:33]MH_I2C_Read... [10:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:33]Read from MH i2c: E2 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: E2 0E 00 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: E2 0E 00 3D F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 24 [10:40:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:40:33]wFMCommunicate OK [10:40:33]SAM_PROTO_GetShiftState done [10:40:33]FM_GetShiftState done [10:40:33]opened in 1729902770 [10:40:33]opened+sec_in_day 1729989170 [10:40:33]quantity*price = 150056 [10:40:33]sum+1 = 150058 [10:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 71 26.10.2024 10:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191708 ФПД: 29878261752101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104047&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191708&fm=29878261752101&tin=02508201610067®Number=0000000000091776&sum=150000 [10:40:34]StoreToDocumentArchive [10:40:34]shift 541 fd 191708 [10:40:34]save to /storage/0541/doc_00191708 [10:40:34]save last doc name /storage/0541/doc_00191708 to /storage/kkm_last_doc_name [10:40:34]save OK [10:40:34]Clear old archive folders... [10:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:34]tlvbuf is 017B8FB0 [10:40:34]SAM_PROTO_ClearQueue [10:40:34]wFMCommunicate request_size=4 [10:40:34]MH_SAM_APDU [10:40:34]CAPDU: 80 09 00 00 [10:40:34]Write to MH i2c: E2 08 00 4A F1 80 09 00 00 00 00 00 00 AD [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 4A F1 00 90 00 AF [10:40:35]RAPDU: 90 00 [10:40:35]wFMCommunicate OK [10:40:35]SAM_PROTO_ClearQueue done [10:40:35]KKMCreateOFDPacket [10:40:35]OFDProtocolAddRootSTLVToBuf [10:40:35]FM_MakeSignedData [10:40:35]FM_MakeSignedData [10:40:35]SAM_PROTO_SignData [10:40:35]wFMCommunicate request_size=4 [10:40:35]MH_SAM_APDU [10:40:35]CAPDU: 80 0D 01 02 [10:40:35]Write to MH i2c: E2 08 00 4B F1 80 0D 01 02 00 00 00 00 B5 [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 4B F1 00 90 00 B0 [10:40:35]RAPDU: 90 00 [10:40:35]wFMCommunicate OK [10:40:35]wFMCommunicate request_size=255 [10:40:35]MH_SAM_APDU [10:40:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2F C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EC 02 00 35 04 06 00 1B [10:40:35]Write to MH i2c: E2 02 01 4C F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2F C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EC 02 00 35 04 06 00 1B 00 00 56 [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 4C F1 00 90 00 B1 [10:40:35]RAPDU: 90 00 [10:40:35]wFMCommunicate OK [10:40:35]wFMCommunicate request_size=10 [10:40:35]MH_SAM_APDU [10:40:35]CAPDU: 80 0D 02 02 05 2C 93 2D A1 25 [10:40:35]Write to MH i2c: E2 0D 00 4D F1 80 0D 02 02 05 00 2C 93 2D A1 25 00 00 74 [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 03 00 4D F1 00 90 00 B2 [10:40:35]RAPDU: 90 00 [10:40:35]wFMCommunicate OK [10:40:35]wFMCommunicate request_size=4 [10:40:35]MH_SAM_APDU [10:40:35]CAPDU: 80 0D 03 02 [10:40:35]Write to MH i2c: E2 08 00 4E F1 80 0D 03 02 00 00 00 00 BA [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 0B 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 0B 00 4E F1 00 65 0F 25 35 4C 8A A4 22 90 00 25 [10:40:35]RAPDU: 65 0F 25 35 4C 8A A4 22 90 00 [10:40:35]wFMCommunicate OK [10:40:35]SAM_PROTO_SignData done [10:40:35]FM_MakeSignedData done [10:40:35]CreateOFDProtocolMessage [10:40:35]wFMCommunicate request_size=4 [10:40:35]MH_SAM_APDU [10:40:35]CAPDU: 80 11 00 00 [10:40:35]Write to MH i2c: E2 08 00 4F F1 80 11 00 00 00 00 00 00 BA [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:35]Read from MH i2c: E2 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 17 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: E2 17 00 4F F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [10:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:35]wFMCommunicate OK [10:40:35]CreateOFDProtocolMessage done [10:40:35]OFDSenderStorePacket 191708 [10:40:35]StoreOFDPacket docnum=191708 [10:40:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 58 42 07 01 EF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2F C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EC 02 00 35 04 06 00 1B 2C 93 2D A1 25 65 0F 25 35 4C 8A A4 22 [10:40:35]CheckFolder [10:40:35]dirname=/storage/ofd_packets [10:40:35]CheckFolder done [10:40:35]ProducePacketName [10:40:35]name=ofd_packets/00191708 [10:40:35]NVStorageSaveData ofd_packets/00191708 [10:40:35]File name is /storage/ofd_packets/00191708 [10:40:35]Write 301 bytes [10:40:35]NVStorageSaveData done [10:40:35]OFDSenderStorePacket done [10:40:35]KKMCreateOFDPacket done [10:40:35]NVStorageSaveData kkm_last_timestamp [10:40:35]File name is /storage/kkm_last_timestamp [10:40:35]Write 4 bytes [10:40:35]NVStorageSaveData done [10:40:35]OFD Sender: Processing packet 191708 [packets to send 75, broken 74] [10:40:35]ProducePacketName [10:40:35]name=ofd_packets/00191708 [10:40:35]OFD Sender: To server: pG, [10:40:35]CommunicateWithHost lk.salyk.kg:30040 [10:40:35]ConnectInit lk.salyk.kg [10:40:35]ExternCall_PrintAddStr [10:40:35]wPrintStart [10:40:35]Write to MH i2c: 01 00 00 50 F1 41 [10:40:35]Write i2c OK [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: 01 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: 01 07 00 [10:40:35]MH_I2C_Read... [10:40:35]Read from MH i2c: 01 07 00 50 F1 00 00 00 00 00 FF 0F 56 [10:40:35]RasterBufferAndPrint [10:40:35]line Счет N : (1)31009 [10:40:35]line ИНН: 02508201610067 [10:40:35]line Контрольно-Кассовый Чек [10:40:35]line ПРОДАЖА [10:40:35]line ТРК (МРК, ГНК) : 21 [10:40:35]line Товар: 2710124130 [10:40:35]line Аи-92-К-5 [10:40:35]line 22.430 * 66.90 [10:40:35]line = 1500.57 [10:40:35]line НДС 12% НСП 1% [10:40:35]line > о реализуемом товаре [10:40:35]line ОКРУГЛЕНИЕ: -0.57 [10:40:35]line ИТОГО: 1500.00 [10:40:35]line Внесено: 1500.00 [10:40:35]line СДАЧА: 0.00 [10:40:35]line НСП 1% : 13.28 [10:40:35]line НДС 12% : 159.35 [10:40:35]line Наличными: 1500.00 [10:40:35]line Безнал.: 0.00 [10:40:35]line Место: АЗС № 170 "Партнер Нефть" [10:40:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:40:35]line СНО: Общий режим [10:40:35]line Чек 71 26.10.2024 10:40 [10:40:35]line Смена: 541 ФФД: 1.0 [10:40:35]line ЗНМ: 0300000110 [10:40:35]line РНМ: 0000000000091776 [10:40:35]line Версия ККМ: 001 [10:40:35]line ФМ: 0000000000871754 [10:40:35]line ФД: 191708 [10:40:35]line ФПД: 29878261752101 [10:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104047&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191708&fm=29878261752101&tin=02508201610067®Number=0000000000091776&sum=150000 [10:40:35]written 0, free lines is 4095 [10:40:35]Connected sock=11 [10:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 58 42 07 01 EF A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 2F C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EC 02 00 35 04 06 00 1B 2C 93 2D A1 25 65 0F 25 35 4C 8A A4 22 [10:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 66 47 00 4B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC EC 02 00 F4 03 04 00 FB 6B 1C 67 B6 04 01 00 00 8C FE 52 07 6B 17 83 9F [10:40:35]CommunicateWithHost err = 0 [10:40:35]CheckOFDResponse [10:40:35]1017 (14) - 77093643461234 [10:40:35]1041 (16) - 0000000000871754 [10:40:35]1040 (4) - 191708 [10:40:35]1012 (4) - 26.10.2024 04:11 [10:40:35]1206 (1) - 0 [10:40:35]OFD Sender: Remove packet 191708 [10:40:35]ProducePacketName [10:40:35]name=ofd_packets/00191708 [10:40:35]NVStorageDeleteData [10:40:36]Write to MH i2c: 01 00 00 7B F1 6C [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: 01 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: 01 07 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: 01 07 00 7B F1 00 00 00 00 00 D8 0C 57 [10:40:36]RasterBufferAndPrint [10:40:36]line [10:40:36]line [10:40:36]line [10:40:36]line [10:40:36]line [10:40:36]written 0, free lines is 3298 [10:40:36]MH_Cut [10:40:36]Write to MH i2c: D1 01 00 82 F1 01 45 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: D1 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: D1 01 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: D1 01 00 82 F1 00 44 [10:40:36]Write to MH i2c: 01 00 00 83 F1 74 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]OFD Sender: No OFD packet to send [10:40:36]*** Cut start [10:40:36]*** Partial cut [10:40:36]*** CUTSNS_PIN = 1 [10:40:36]*** CUTSNS_PIN = 0 [10:40:37]*** Brake cut motor [10:40:37]Read from MH i2c: 01 [10:40:37]MH_I2C_Read... [10:40:37]*** Stop cut motor [10:40:37]*** Cut end [10:40:37]Read from MH i2c: 01 07 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: 01 07 00 83 F1 00 00 00 00 00 FF 0F 89 [10:40:37]process_action close_receipt done [10:40:37]requested_data is exist [10:40:37]produce_requested_data [10:40:37]requested_item fm.sn is exist - process it [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 11 00 00 [10:40:37]Write to MH i2c: E2 08 00 84 F1 80 11 00 00 00 00 00 00 EF [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 17 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 17 00 84 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [10:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:40:37]wFMCommunicate OK [10:40:37]requested_item fd.num is exist - process it [10:40:37]SAM_PROTO_GetFieldsCounters [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 13 00 00 [10:40:37]Write to MH i2c: E2 08 00 85 F1 80 13 00 00 00 00 00 00 F2 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 62 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 62 00 85 F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:37]wFMCommunicate OK [10:40:37]SAM_PROTO_GetFieldsCounters done [10:40:37]requested_item shift.num is exist - process it [10:40:37]requested_item shift.opened is exist - process it [10:40:37]req_shift_opened [10:40:37]FM_GetShiftState [10:40:37]SAM_PROTO_GetShiftState [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 13 01 00 [10:40:37]Write to MH i2c: E2 08 00 86 F1 80 13 01 00 00 00 00 00 F4 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0E 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0E 00 86 F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6D [10:40:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:40:37]wFMCommunicate OK [10:40:37]SAM_PROTO_GetShiftState done [10:40:37]FM_GetShiftState done [10:40:37]req_shift_opened done [10:40:37]requested_item shift.open_date is exist - process it [10:40:37]req_shift_open_date [10:40:37]req_shift_open_date done [10:40:37]produce_requested_data done [10:40:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191708,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:40:37]process_action_free close_receipt [10:40:37]json_value_free [10:40:37]json_value_free done [10:40:37]process_json_proto returns [10:40:37]Send response to host [10:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191708,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:40:37]free response buf [10:40:37]execute_script done [10:40:37]execute_script returns [10:40:37]free content buf [10:40:37]Sock 8.Close socket [10:40:37]Sock 8.Thread stoped [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:19]accept exits with 9 [10:42:19]New connection [10:42:19]New thread 3066961252 created [10:42:19]Thread 3066817892 joined [10:42:19]Waiting for new connection... [10:42:19] Sock 9.Parse request [10:42:19]Sock 9.Check first char [10:42:19]Sock 9.First char is OK [10:42:19]request: POST /json_proto HTTP/1.0 [10:42:19]Method: POST [10:42:19]URL: /json_proto [10:42:19]Method is POST - this is cgi request [10:42:19]url: /json_proto [10:42:19]query_string will be loaded in cgi processing [10:42:19]execute_cgi json_proto POST (null) [10:42:19]execute_cgi path=json_proto method=POST [10:42:19]POST find Content-Length [10:42:19]Host: 172.17.63.131:8080 [10:42:19]Content-Length: 681 [10:42:19]Content-Type: application/json [10:42:19] [10:42:19]POST finish read [10:42:19]Found Content-Length = 681 [10:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:19]execute_script... [10:42: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)31011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:19]POST & json_proto [10:42:19]process_json_proto [10:42:19]json parsed OK: [10:42:19]protocol is kg_v1.0 [10:42:19]action value=close_receipt [10:42:19]process_action close_receipt [10:42:19]cmd_close_receipt [10:42:19]MH_GetDate [10:42:19]Write to MH i2c: F0 00 00 87 F1 67 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 09 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: F0 09 00 87 F1 00 99 C7 1C 67 22 05 6E 64 4C [10:42:19]GetLastDocTimeStamp 1729939247 [10:42:19]current date 1729939353 [10:42:19]FM_GetShiftState [10:42:19]SAM_PROTO_GetShiftState [10:42:19]wFMCommunicate request_size=4 [10:42:19]MH_SAM_APDU [10:42:19]CAPDU: 80 13 01 00 [10:42:19]Write to MH i2c: E2 08 00 88 F1 80 13 01 00 00 00 00 00 F6 [10:42:19]Write i2c OK [10:42:19]MH_I2C_Read... [10:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:19]Read from MH i2c: E2 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 [10:42:19]MH_I2C_Read... [10:42:19]Read from MH i2c: E2 0E 00 88 F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6F [10:42:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:42:19]wFMCommunicate OK [10:42:19]SAM_PROTO_GetShiftState done [10:42:19]FM_GetShiftState done [10:42:19]opened in 1729902770 [10:42:19]opened+sec_in_day 1729989170 [10:42:19]quantity*price = 100015 [10:42:19]sum+1 = 100017 [10:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 72 26.10.2024 10:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191709 ФПД: 254937950348922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104234&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191709&fm=254937950348922&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:21]StoreToDocumentArchive [10:42:21]shift 541 fd 191709 [10:42:21]save to /storage/0541/doc_00191709 [10:42:21]save last doc name /storage/0541/doc_00191709 to /storage/kkm_last_doc_name [10:42:21]save OK [10:42:21]Clear old archive folders... [10:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:21]tlvbuf is 01789AC0 [10:42:21]SAM_PROTO_ClearQueue [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 09 00 00 [10:42:21]Write to MH i2c: E2 08 00 95 F1 80 09 00 00 00 00 00 00 F8 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 95 F1 00 90 00 FA [10:42:21]RAPDU: 90 00 [10:42:21]wFMCommunicate OK [10:42:21]SAM_PROTO_ClearQueue done [10:42:21]KKMCreateOFDPacket [10:42:21]OFDProtocolAddRootSTLVToBuf [10:42:21]FM_MakeSignedData [10:42:21]FM_MakeSignedData [10:42:21]SAM_PROTO_SignData [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 0D 01 02 [10:42:21]Write to MH i2c: E2 08 00 96 F1 80 0D 01 02 00 00 00 00 00 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 96 F1 00 90 00 FB [10:42:21]RAPDU: 90 00 [10:42:21]wFMCommunicate OK [10:42:21]wFMCommunicate request_size=255 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EC 02 00 35 04 06 00 E7 [10:42:21]Write to MH i2c: E2 02 01 97 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EC 02 00 35 04 06 00 E7 00 00 8B [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 97 F1 00 90 00 FC [10:42:21]RAPDU: 90 00 [10:42:21]wFMCommunicate OK [10:42:21]wFMCommunicate request_size=10 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 0D 02 02 05 DD 5D F8 66 7A [10:42:21]Write to MH i2c: E2 0D 00 98 F1 80 0D 02 02 05 00 DD 5D F8 66 7A 00 00 1F [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 03 00 98 F1 00 90 00 FD [10:42:21]RAPDU: 90 00 [10:42:21]wFMCommunicate OK [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 0D 03 02 [10:42:21]Write to MH i2c: E2 08 00 99 F1 80 0D 03 02 00 00 00 00 05 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 0B 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 0B 00 99 F1 00 C1 DC 7F 4A F4 B5 BB E9 90 00 B9 [10:42:21]RAPDU: C1 DC 7F 4A F4 B5 BB E9 90 00 [10:42:21]wFMCommunicate OK [10:42:21]SAM_PROTO_SignData done [10:42:21]FM_MakeSignedData done [10:42:21]CreateOFDProtocolMessage [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 11 00 00 [10:42:21]Write to MH i2c: E2 08 00 9A F1 80 11 00 00 00 00 00 00 05 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]OFD Sender: No OFD packet to send [10:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:21]Read from MH i2c: E2 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 17 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: E2 17 00 9A F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [10:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:21]wFMCommunicate OK [10:42:21]CreateOFDProtocolMessage done [10:42:21]OFDSenderStorePacket 191709 [10:42:21]StoreOFDPacket docnum=191709 [10:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F4 55 07 01 0F 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EC 02 00 35 04 06 00 E7 DD 5D F8 66 7A C1 DC 7F 4A F4 B5 BB E9 [10:42:21]CheckFolder [10:42:21]dirname=/storage/ofd_packets [10:42:21]CheckFolder done [10:42:21]ProducePacketName [10:42:21]name=ofd_packets/00191709 [10:42:21]NVStorageSaveData ofd_packets/00191709 [10:42:21]File name is /storage/ofd_packets/00191709 [10:42:21]Write 301 bytes [10:42:21]NVStorageSaveData done [10:42:21]OFDSenderStorePacket done [10:42:21]KKMCreateOFDPacket done [10:42:21]NVStorageSaveData kkm_last_timestamp [10:42:21]File name is /storage/kkm_last_timestamp [10:42:21]Write 4 bytes [10:42:21]NVStorageSaveData done [10:42:21]ExternCall_PrintAddStr [10:42:21]wPrintStart [10:42:21]Write to MH i2c: 01 00 00 9B F1 8C [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 [10:42:21]MH_I2C_Read... [10:42:21]Read from MH i2c: 01 07 00 9B F1 00 00 00 00 00 FF 0F A1 [10:42:21]RasterBufferAndPrint [10:42:21]line Счет N : (1)31011 [10:42:21]line ИНН: 02508201610067 [10:42:21]line Контрольно-Кассовый Чек [10:42:21]line ПРОДАЖА [10:42:21]line ТРК (МРК, ГНК) : 21 [10:42:21]line Товар: 2710124130 [10:42:21]line Аи-92-К-5 [10:42:21]line 14.950 * 66.90 [10:42:21]line = 1000.16 [10:42:21]line НДС 12% НСП 1% [10:42:21]line > о реализуемом товаре [10:42:21]line ОКРУГЛЕНИЕ: -0.16 [10:42:21]line ИТОГО: 1000.00 [10:42:21]line Внесено: 1000.00 [10:42:21]line СДАЧА: 0.00 [10:42:21]line НСП 1% : 8.85 [10:42:21]line НДС 12% : 106.21 [10:42:21]line Наличными: 1000.00 [10:42:21]line Безнал.: 0.00 [10:42:21]line Место: АЗС № 170 "Партнер Нефть" [10:42:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:42:21]line СНО: Общий режим [10:42:21]line Чек 72 26.10.2024 10:42 [10:42:21]line Смена: 541 ФФД: 1.0 [10:42:21]line ЗНМ: 0300000110 [10:42:21]line РНМ: 0000000000091776 [10:42:21]line Версия ККМ: 001 [10:42:21]line ФМ: 0000000000871754 [10:42:21]line ФД: 191709 [10:42:21]line ФПД: 254937950348922 [10:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104234&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191709&fm=254937950348922&tin=02508201610067®Number=0000000000091776&sum=100000 [10:42:21]OFD Sender: Processing packet 191709 [packets to send 75, broken 74] [10:42:21]ProducePacketName [10:42:21]name=ofd_packets/00191709 [10:42:21]OFD Sender: To server: pG, [10:42:21]CommunicateWithHost lk.salyk.kg:30040 [10:42:21]ConnectInit lk.salyk.kg [10:42:21]written 0, free lines is 4095 [10:42:22]Connected sock=11 [10: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 31 37 35 34 0F 01 00 00 F4 55 07 01 0F 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 9A C7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EC 02 00 35 04 06 00 E7 DD 5D F8 66 7A C1 DC 7F 4A F4 B5 BB E9 [10:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 A2 47 00 BD 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD EC 02 00 F4 03 04 00 65 6C 1C 67 B6 04 01 00 00 CB 6A 60 B0 FA D4 81 D7 [10:42:22]CommunicateWithHost err = 0 [10:42:22]CheckOFDResponse [10:42:22]1017 (14) - 77093643461234 [10:42:22]1041 (16) - 0000000000871754 [10:42:22]1040 (4) - 191709 [10:42:22]1012 (4) - 26.10.2024 04:13 [10:42:22]1206 (1) - 0 [10:42:22]OFD Sender: Remove packet 191709 [10:42:22]ProducePacketName [10:42:22]name=ofd_packets/00191709 [10:42:22]NVStorageDeleteData [10:42:22]Write to MH i2c: 01 00 00 C6 F1 B7 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 C6 F1 00 00 00 00 00 C2 0C 8C [10:42:22]RasterBufferAndPrint [10:42:22]line [10:42:22]line [10:42:22]line [10:42:22]line [10:42:22]line [10:42:22]written 0, free lines is 3271 [10:42:22]MH_Cut [10:42:22]Write to MH i2c: D1 01 00 CD F1 01 90 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: D1 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: D1 01 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: D1 01 00 CD F1 00 8F [10:42:22]Write to MH i2c: 01 00 00 CE F1 BF [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]OFD Sender: No OFD packet to send [10:42:23]*** Cut start [10:42:23]*** Partial cut [10:42:23]*** CUTSNS_PIN = 1 [10:42:23]*** CUTSNS_PIN = 0 [10:42:23]*** Brake cut motor [10:42:23]Read from MH i2c: 01 [10:42:23]MH_I2C_Read... [10:42:23]*** Stop cut motor [10:42:23]*** Cut end [10:42:23]Read from MH i2c: 01 07 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 CE F1 00 00 00 00 00 FF 0F D4 [10:42:23]process_action close_receipt done [10:42:23]requested_data is exist [10:42:23]produce_requested_data [10:42:23]requested_item fm.sn is exist - process it [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 11 00 00 [10:42:23]Write to MH i2c: E2 08 00 CF F1 80 11 00 00 00 00 00 00 3A [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:23]Read from MH i2c: E2 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 17 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: E2 17 00 CF F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [10:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:42:23]wFMCommunicate OK [10:42:23]requested_item fd.num is exist - process it [10:42:23]SAM_PROTO_GetFieldsCounters [10:42:23]wFMCommunicate request_size=4 [10:42:23]MH_SAM_APDU [10:42:23]CAPDU: 80 13 00 00 [10:42:23]Write to MH i2c: E2 08 00 D0 F1 80 13 00 00 00 00 00 00 3D [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 D0 F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [10:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetFieldsCounters done [10:42:24]requested_item shift.num is exist - process it [10:42:24]requested_item shift.opened is exist - process it [10:42:24]req_shift_opened [10:42:24]FM_GetShiftState [10:42:24]SAM_PROTO_GetShiftState [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 01 00 [10:42:24]Write to MH i2c: E2 08 00 D1 F1 80 13 01 00 00 00 00 00 3F [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 0E 00 D1 F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B8 [10:42:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetShiftState done [10:42:24]FM_GetShiftState done [10:42:24]req_shift_opened done [10:42:24]requested_item shift.open_date is exist - process it [10:42:24]req_shift_open_date [10:42:24]req_shift_open_date done [10:42:24]produce_requested_data done [10:42:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191709,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:42:24]process_action_free close_receipt [10:42:24]json_value_free [10:42:24]json_value_free done [10:42:24]process_json_proto returns [10:42:24]Send response to host [10:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191709,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:42:24]free response buf [10:42:24]execute_script done [10:42:24]execute_script returns [10:42:24]free content buf [10:42:24]Sock 9.Close socket [10:42:24]Sock 9.Thread stoped [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:49]accept exits with 8 [10:46:49]New connection [10:46:49]New thread 3066817892 created [10:46:49]Thread 3066961252 joined [10:46:49]Waiting for new connection... [10:46:49] Sock 8.Parse request [10:46:49]Sock 8.Check first char [10:46:49]Sock 8.First char is OK [10:46:49]request: POST /json_proto HTTP/1.0 [10:46:49]Method: POST [10:46:49]URL: /json_proto [10:46:49]Method is POST - this is cgi request [10:46:49]url: /json_proto [10:46:49]query_string will be loaded in cgi processing [10:46:49]execute_cgi json_proto POST (null) [10:46:49]execute_cgi path=json_proto method=POST [10:46:49]POST find Content-Length [10:46:49]Host: 172.17.63.131:8080 [10:46:49]Content-Length: 677 [10:46:49]Content-Type: application/json [10:46:49] [10:46:49]POST finish read [10:46:49]Found Content-Length = 677 [10:46:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:49]execute_script... [10:46:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:49]POST & json_proto [10:46:49]process_json_proto [10:46:49]json parsed OK: [10:46:49]protocol is kg_v1.0 [10:46:49]action value=close_receipt [10:46:49]process_action close_receipt [10:46:49]cmd_close_receipt [10:46:49]MH_GetDate [10:46:49]Write to MH i2c: F0 00 00 D2 F1 B2 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: F0 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: F0 09 00 [10:46:49]MH_I2C_Read... [10:46:49]Read from MH i2c: F0 09 00 D2 F1 00 A8 C8 1C 67 22 05 6E 64 A7 [10:46:49]GetLastDocTimeStamp 1729939354 [10:46:49]current date 1729939624 [10:46:49]FM_GetShiftState [10:46:49]SAM_PROTO_GetShiftState [10:46:49]wFMCommunicate request_size=4 [10:46:49]MH_SAM_APDU [10:46:49]CAPDU: 80 13 01 00 [10:46:49]Write to MH i2c: E2 08 00 D3 F1 80 13 01 00 00 00 00 00 41 [10:46:49]Write i2c OK [10:46:49]MH_I2C_Read... [10:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0E 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0E 00 D3 F1 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BA [10:46:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_GetShiftState done [10:46:50]FM_GetShiftState done [10:46:50]opened in 1729902770 [10:46:50]opened+sec_in_day 1729989170 [10:46:50]quantity*price = 70044 [10:46:50]sum+1 = 70045 [10:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 73 26.10.2024 10:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191710 ФПД: 276971312723754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191710&fm=276971312723754&tin=02508201610067®Number=0000000000091776&sum=70000 [10:46:51]StoreToDocumentArchive [10:46:51]shift 541 fd 191710 [10:46:51]save to /storage/0541/doc_00191710 [10:46:51]save last doc name /storage/0541/doc_00191710 to /storage/kkm_last_doc_name [10:46:51]save OK [10:46:51]Clear old archive folders... [10:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:51]tlvbuf is 01A764A0 [10:46:51]SAM_PROTO_ClearQueue [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 09 00 00 [10:46:51]Write to MH i2c: E2 08 00 E0 F1 80 09 00 00 00 00 00 00 43 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 E0 F1 00 90 00 45 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_ClearQueue done [10:46:51]KKMCreateOFDPacket [10:46:51]OFDProtocolAddRootSTLVToBuf [10:46:51]FM_MakeSignedData [10:46:51]FM_MakeSignedData [10:46:51]SAM_PROTO_SignData [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 0D 01 02 [10:46:51]Write to MH i2c: E2 08 00 E1 F1 80 0D 01 02 00 00 00 00 4B [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 E1 F1 00 90 00 46 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]wFMCommunicate request_size=255 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A8 C8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EC 02 00 35 04 06 00 FB [10:46:51]Write to MH i2c: E2 02 01 E2 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A8 C8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EC 02 00 35 04 06 00 FB 00 00 11 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 E2 F1 00 90 00 47 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]wFMCommunicate request_size=10 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 0D 02 02 05 E7 68 B5 37 2A [10:46:51]Write to MH i2c: E2 0D 00 E3 F1 80 0D 02 02 05 00 E7 68 B5 37 2A 00 00 BD [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 E3 F1 00 90 00 48 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 0D 03 02 [10:46:51]Write to MH i2c: E2 08 00 E4 F1 80 0D 03 02 00 00 00 00 50 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0B 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 0B 00 E4 F1 00 EB 74 F0 31 6E 23 50 45 90 00 F7 [10:46:51]RAPDU: EB 74 F0 31 6E 23 50 45 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_SignData done [10:46:51]FM_MakeSignedData done [10:46:51]CreateOFDProtocolMessage [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 11 00 00 [10:46:51]Write to MH i2c: E2 08 00 E5 F1 80 11 00 00 00 00 00 00 50 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 17 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 17 00 E5 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [10:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:51]wFMCommunicate OK [10:46:51]CreateOFDProtocolMessage done [10:46:51]OFDSenderStorePacket 191710 [10:46:51]StoreOFDPacket docnum=191710 [10:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 25 07 01 EE 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A8 C8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EC 02 00 35 04 06 00 FB E7 68 B5 37 2A EB 74 F0 31 6E 23 50 45 [10:46:51]CheckFolder [10:46:51]dirname=/storage/ofd_packets [10:46:51]CheckFolder done [10:46:51]ProducePacketName [10:46:51]name=ofd_packets/00191710 [10:46:51]NVStorageSaveData ofd_packets/00191710 [10:46:51]File name is /storage/ofd_packets/00191710 [10:46:51]Write 301 bytes [10:46:51]NVStorageSaveData done [10:46:51]OFDSenderStorePacket done [10:46:51]KKMCreateOFDPacket done [10:46:51]NVStorageSaveData kkm_last_timestamp [10:46:51]File name is /storage/kkm_last_timestamp [10:46:51]Write 4 bytes [10:46:51]NVStorageSaveData done [10:46:51]ExternCall_PrintAddStr [10:46:51]wPrintStart [10:46:51]Write to MH i2c: 01 00 00 E6 F1 D7 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 07 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: 01 07 00 E6 F1 00 00 00 00 00 FF 0F EC [10:46:51]RasterBufferAndPrint [10:46:51]line Счет N : (1)31012 [10:46:51]line ИНН: 02508201610067 [10:46:51]line Контрольно-Кассовый Чек [10:46:51]line ПРОДАЖА [10:46:51]line ТРК (МРК, ГНК) : 12 [10:46:51]line Товар: 2710124130 [10:46:51]line Аи-92-К-5 [10:46:51]line 10.470 * 66.90 [10:46:51]line = 700.44 [10:46:51]line НДС 12% НСП 1% [10:46:51]line > о реализуемом товаре [10:46:51]line ОКРУГЛЕНИЕ: -0.44 [10:46:51]line ИТОГО: 700.00 [10:46:51]line Внесено: 700.00 [10:46:51]line СДАЧА: 0.00 [10:46:51]line НСП 1% : 6.20 [10:46:51]line НДС 12% : 74.38 [10:46:51]line Наличными: 700.00 [10:46:51]line Безнал.: 0.00 [10:46:51]line Место: АЗС № 170 "Партнер Нефть" [10:46:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:46:51]line СНО: Общий режим [10:46:51]line Чек 73 26.10.2024 10:47 [10:46:51]line Смена: 541 ФФД: 1.0 [10:46:51]line ЗНМ: 0300000110 [10:46:51]line РНМ: 0000000000091776 [10:46:51]line Версия ККМ: 001 [10:46:51]line ФМ: 0000000000871754 [10:46:51]line ФД: 191710 [10:46:51]line ФПД: 276971312723754 [10:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T104704&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191710&fm=276971312723754&tin=02508201610067®Number=0000000000091776&sum=70000 [10:46:52]OFD Sender: Processing packet 191710 [packets to send 75, broken 74] [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00191710 [10:46:52]OFD Sender: To server: pG, [10:46:52]CommunicateWithHost lk.salyk.kg:30040 [10:46:52]ConnectInit lk.salyk.kg [10:46:52]written 0, free lines is 4095 [10:46:52]Connected sock=10 [10:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 25 07 01 EE 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A8 C8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EC 02 00 35 04 06 00 FB E7 68 B5 37 2A EB 74 F0 31 6E 23 50 45 [10:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A2 60 47 00 9C 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE EC 02 00 F4 03 04 00 73 6D 1C 67 B6 04 01 00 00 B6 14 5F 1D 9B 5F 92 9A [10:46:52]CommunicateWithHost err = 0 [10:46:52]CheckOFDResponse [10:46:52]1017 (14) - 77093643461234 [10:46:52]1041 (16) - 0000000000871754 [10:46:52]1040 (4) - 191710 [10:46:52]1012 (4) - 26.10.2024 04:17 [10:46:52]1206 (1) - 0 [10:46:52]OFD Sender: Remove packet 191710 [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00191710 [10:46:52]NVStorageDeleteData [10:46:52]Write to MH i2c: 01 00 00 11 F2 03 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 11 F2 00 00 00 00 00 C0 0C D6 [10:46:52]RasterBufferAndPrint [10:46:52]line [10:46:52]line [10:46:52]line [10:46:52]line [10:46:52]line [10:46:52]written 0, free lines is 3273 [10:46:52]MH_Cut [10:46:52]Write to MH i2c: D1 01 00 18 F2 01 DC [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: D1 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: D1 01 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: D1 01 00 18 F2 00 DB [10:46:52]Write to MH i2c: 01 00 00 19 F2 0B [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]OFD Sender: No OFD packet to send [10:46:53]*** Cut start [10:46:53]*** Partial cut [10:46:53]*** CUTSNS_PIN = 1 [10:46:53]*** CUTSNS_PIN = 0 [10:46:53]*** Brake cut motor [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]*** Stop cut motor [10:46:53]*** Cut end [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 19 F2 00 00 00 00 00 FF 0F 20 [10:46:53]process_action close_receipt done [10:46:53]requested_data is exist [10:46:53]produce_requested_data [10:46:53]requested_item fm.sn is exist - process it [10:46:53]wFMCommunicate request_size=4 [10:46:53]MH_SAM_APDU [10:46:53]CAPDU: 80 11 00 00 [10:46:53]Write to MH i2c: E2 08 00 1A F2 80 11 00 00 00 00 00 00 86 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 1A F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [10:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:46:54]wFMCommunicate OK [10:46:54]requested_item fd.num is exist - process it [10:46:54]SAM_PROTO_GetFieldsCounters [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 00 00 [10:46:54]Write to MH i2c: E2 08 00 1B F2 80 13 00 00 00 00 00 00 89 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 1B F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetFieldsCounters done [10:46:54]requested_item shift.num is exist - process it [10:46:54]requested_item shift.opened is exist - process it [10:46:54]req_shift_opened [10:46:54]FM_GetShiftState [10:46:54]SAM_PROTO_GetShiftState [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 01 00 [10:46:54]Write to MH i2c: E2 08 00 1C F2 80 13 01 00 00 00 00 00 8B [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 1C F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 04 [10:46:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetShiftState done [10:46:54]FM_GetShiftState done [10:46:54]req_shift_opened done [10:46:54]requested_item shift.open_date is exist - process it [10:46:54]req_shift_open_date [10:46:54]req_shift_open_date done [10:46:54]produce_requested_data done [10:46:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191710,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:46:54]process_action_free close_receipt [10:46:54]json_value_free [10:46:54]json_value_free done [10:46:54]process_json_proto returns [10:46:54]Send response to host [10:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191710,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:46:54]free response buf [10:46:54]execute_script done [10:46:54]execute_script returns [10:46:54]free content buf [10:46:54]Sock 8.Close socket [10:46:54]Sock 8.Thread stoped [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:15]accept exits with 9 [10:52:15]New connection [10:52:15]New thread 3066961252 created [10:52:15]Thread 3066817892 joined [10:52:15]Waiting for new connection... [10:52:15] Sock 9.Parse request [10:52:15]Sock 9.Check first char [10:52:15]Sock 9.First char is OK [10:52:15]request: POST /json_proto HTTP/1.0 [10:52:15]Method: POST [10:52:15]URL: /json_proto [10:52:15]Method is POST - this is cgi request [10:52:15]url: /json_proto [10:52:15]query_string will be loaded in cgi processing [10:52:15]execute_cgi json_proto POST (null) [10:52:15]execute_cgi path=json_proto method=POST [10:52:15]POST find Content-Length [10:52:15]Host: 172.17.63.131:8080 [10:52:15]Content-Length: 678 [10:52:15]Content-Type: application/json [10:52:15] [10:52:15]POST finish read [10:52:15]Found Content-Length = 678 [10:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31013", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:15]execute_script... [10:52: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)31013", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:15]POST & json_proto [10:52:15]process_json_proto [10:52:15]json parsed OK: [10:52:15]protocol is kg_v1.0 [10:52:15]action value=close_receipt [10:52:15]process_action close_receipt [10:52:15]cmd_close_receipt [10:52:15]MH_GetDate [10:52:15]Write to MH i2c: F0 00 00 1D F2 FE [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 09 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: F0 09 00 1D F2 00 ED C9 1C 67 22 05 6E 64 39 [10:52:15]GetLastDocTimeStamp 1729939624 [10:52:15]current date 1729939949 [10:52:15]FM_GetShiftState [10:52:15]SAM_PROTO_GetShiftState [10:52:15]wFMCommunicate request_size=4 [10:52:15]MH_SAM_APDU [10:52:15]CAPDU: 80 13 01 00 [10:52:15]Write to MH i2c: E2 08 00 1E F2 80 13 01 00 00 00 00 00 8D [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:15]Read from MH i2c: E2 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: E2 0E 00 1E F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 06 [10:52:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:52:15]wFMCommunicate OK [10:52:15]SAM_PROTO_GetShiftState done [10:52:15]FM_GetShiftState done [10:52:15]opened in 1729902770 [10:52:15]opened+sec_in_day 1729989170 [10:52:15]quantity*price = 100050 [10:52:15]sum+1 = 100052 [10:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 74 26.10.2024 10:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191711 ФПД: 115536009043204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191711&fm=115536009043204&tin=02508201610067®Number=0000000000091776&sum=100000 [10:52:16]StoreToDocumentArchive [10:52:16]shift 541 fd 191711 [10:52:16]save to /storage/0541/doc_00191711 [10:52:16]save last doc name /storage/0541/doc_00191711 to /storage/kkm_last_doc_name [10:52:16]save OK [10:52:16]Clear old archive folders... [10:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:16]tlvbuf is 015C8A30 [10:52:16]SAM_PROTO_ClearQueue [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 09 00 00 [10:52:16]Write to MH i2c: E2 08 00 2B F2 80 09 00 00 00 00 00 00 8F [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 2B F2 00 90 00 91 [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]SAM_PROTO_ClearQueue done [10:52:16]KKMCreateOFDPacket [10:52:16]OFDProtocolAddRootSTLVToBuf [10:52:16]FM_MakeSignedData [10:52:16]FM_MakeSignedData [10:52:16]SAM_PROTO_SignData [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 01 02 [10:52:16]Write to MH i2c: E2 08 00 2C F2 80 0D 01 02 00 00 00 00 97 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 2C F2 00 90 00 92 [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]wFMCommunicate request_size=255 [10:52:16]MH_SAM_APDU [10:52: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 ED C9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EC 02 00 35 04 06 00 69 14 52 C7 [10:52:16]Write to MH i2c: E2 02 01 2D F2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 ED C9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EC 02 00 35 04 06 00 69 14 52 C7 00 00 26 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 2D F2 00 90 00 93 [10:52:16]RAPDU: 90 00 [10:52:16]wFMCommunicate OK [10:52:16]wFMCommunicate request_size=7 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 0D 02 02 02 1D 04 [10:52:16]Write to MH i2c: E2 0A 00 2E F2 80 0D 02 02 02 00 1D 04 00 00 BF [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 03 00 2E F2 00 90 00 94 [10:52:17]RAPDU: 90 00 [10:52:17]wFMCommunicate OK [10:52:17]wFMCommunicate request_size=4 [10:52:17]MH_SAM_APDU [10:52:17]CAPDU: 80 0D 03 02 [10:52:17]Write to MH i2c: E2 08 00 2F F2 80 0D 03 02 00 00 00 00 9C [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:17]Read from MH i2c: E2 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 0B 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 0B 00 2F F2 00 2C 1C C6 AA 99 49 70 02 90 00 A9 [10:52:17]RAPDU: 2C 1C C6 AA 99 49 70 02 90 00 [10:52:17]wFMCommunicate OK [10:52:17]SAM_PROTO_SignData done [10:52:17]FM_MakeSignedData done [10:52:17]CreateOFDProtocolMessage [10:52:17]wFMCommunicate request_size=4 [10:52:17]MH_SAM_APDU [10:52:17]CAPDU: 80 11 00 00 [10:52:17]Write to MH i2c: E2 08 00 30 F2 80 11 00 00 00 00 00 00 9C [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:17]Read from MH i2c: E2 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 17 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 17 00 30 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [10:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:52:17]wFMCommunicate OK [10:52:17]CreateOFDProtocolMessage done [10:52:17]OFDSenderStorePacket 191711 [10:52:17]StoreOFDPacket docnum=191711 [10:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 35 F1 04 01 47 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 ED C9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EC 02 00 35 04 06 00 69 14 52 C7 1D 04 2C 1C C6 AA 99 49 70 02 [10:52:17]CheckFolder [10:52:17]dirname=/storage/ofd_packets [10:52:17]CheckFolder done [10:52:17]ProducePacketName [10:52:17]name=ofd_packets/00191711 [10:52:17]NVStorageSaveData ofd_packets/00191711 [10:52:17]File name is /storage/ofd_packets/00191711 [10:52:17]Write 298 bytes [10:52:17]NVStorageSaveData done [10:52:17]OFDSenderStorePacket done [10:52:17]KKMCreateOFDPacket done [10:52:17]NVStorageSaveData kkm_last_timestamp [10:52:17]File name is /storage/kkm_last_timestamp [10:52:17]Write 4 bytes [10:52:17]NVStorageSaveData done [10:52:17]ExternCall_PrintAddStr [10:52:17]wPrintStart [10:52:17]Write to MH i2c: 01 00 00 31 F2 23 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 31 F2 00 00 00 00 00 FF 0F 38 [10:52:17]RasterBufferAndPrint [10:52:17]line Счет N : (1)31013 [10:52:17]line ИНН: 02508201610067 [10:52:17]line Контрольно-Кассовый Чек [10:52:17]line ПРОДАЖА [10:52:17]line ТРК (МРК, ГНК) : 22 [10:52:17]line Товар: 2710194210 [10:52:17]line ДТ-К-5 [10:52:17]line 13.130 * 76.20 [10:52:17]line = 1000.51 [10:52:17]line НДС 12% НСП 1% [10:52:17]line > о реализуемом товаре [10:52:17]line ОКРУГЛЕНИЕ: -0.51 [10:52:17]line ИТОГО: 1000.00 [10:52:17]line Внесено: 1000.00 [10:52:17]line СДАЧА: 0.00 [10:52:17]line НСП 1% : 8.85 [10:52:17]line НДС 12% : 106.25 [10:52:17]line Наличными: 1000.00 [10:52:17]line Безнал.: 0.00 [10:52:17]line Место: АЗС № 170 "Партнер Нефть" [10:52:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:52:17]line СНО: Общий режим [10:52:17]line Чек 74 26.10.2024 10:52 [10:52:17]line Смена: 541 ФФД: 1.0 [10:52:17]line ЗНМ: 0300000110 [10:52:17]line РНМ: 0000000000091776 [10:52:17]line Версия ККМ: 001 [10:52:17]line ФМ: 0000000000871754 [10:52:17]line ФД: 191711 [10:52:17]line ФПД: 115536009043204 [10:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191711&fm=115536009043204&tin=02508201610067®Number=0000000000091776&sum=100000 [10:52:17]OFD Sender: Processing packet 191711 [packets to send 75, broken 74] [10:52:17]ProducePacketName [10:52:17]name=ofd_packets/00191711 [10:52:17]OFD Sender: To server: pG, [10:52:17]CommunicateWithHost lk.salyk.kg:30040 [10:52:17]ConnectInit lk.salyk.kg [10:52:17]written 0, free lines is 4095 [10:52:17]Connected sock=10 [10:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 35 F1 04 01 47 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 ED C9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EC 02 00 35 04 06 00 69 14 52 C7 1D 04 2C 1C C6 AA 99 49 70 02 [10:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C0 F2 47 00 45 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF EC 02 00 F4 03 04 00 B8 6E 1C 67 B6 04 01 00 00 08 3F B1 AA B6 4A A2 A9 [10:52:17]CommunicateWithHost err = 0 [10:52:17]CheckOFDResponse [10:52:17]1017 (14) - 77093643461234 [10:52:17]1041 (16) - 0000000000871754 [10:52:17]1040 (4) - 191711 [10:52:17]1012 (4) - 26.10.2024 04:23 [10:52:17]1206 (1) - 0 [10:52:17]OFD Sender: Remove packet 191711 [10:52:17]ProducePacketName [10:52:17]name=ofd_packets/00191711 [10:52:17]NVStorageDeleteData [10:52:17]Write to MH i2c: 01 00 00 5C F2 4E [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: 01 07 00 5C F2 00 00 00 00 00 B1 0C 12 [10:52:17]RasterBufferAndPrint [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]line [10:52:17]written 0, free lines is 3255 [10:52:17]MH_Cut [10:52:17]Write to MH i2c: D1 01 00 63 F2 01 27 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 01 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: D1 01 00 63 F2 00 26 [10:52:17]Write to MH i2c: 01 00 00 64 F2 56 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:18]OFD Sender: No OFD packet to send [10:52:18]*** Cut start [10:52:18]*** Partial cut [10:52:18]*** CUTSNS_PIN = 1 [10:52:18]*** CUTSNS_PIN = 0 [10:52:19]*** Brake cut motor [10:52:19]Read from MH i2c: 01 [10:52:19]MH_I2C_Read... [10:52:19]*** Stop cut motor [10:52:19]*** Cut end [10:52:19]Read from MH i2c: 01 07 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 64 F2 00 00 00 00 00 FF 0F 6B [10:52:19]process_action close_receipt done [10:52:19]requested_data is exist [10:52:19]produce_requested_data [10:52:19]requested_item fm.sn is exist - process it [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 11 00 00 [10:52:19]Write to MH i2c: E2 08 00 65 F2 80 11 00 00 00 00 00 00 D1 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 65 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [10:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:52:19]wFMCommunicate OK [10:52:19]requested_item fd.num is exist - process it [10:52:19]SAM_PROTO_GetFieldsCounters [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 13 00 00 [10:52:19]Write to MH i2c: E2 08 00 66 F2 80 13 00 00 00 00 00 00 D4 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 62 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 62 00 66 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [10:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_GetFieldsCounters done [10:52:19]requested_item shift.num is exist - process it [10:52:19]requested_item shift.opened is exist - process it [10:52:19]req_shift_opened [10:52:19]FM_GetShiftState [10:52:19]SAM_PROTO_GetShiftState [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 13 01 00 [10:52:19]Write to MH i2c: E2 08 00 67 F2 80 13 01 00 00 00 00 00 D6 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0E 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0E 00 67 F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4F [10:52:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_GetShiftState done [10:52:19]FM_GetShiftState done [10:52:19]req_shift_opened done [10:52:19]requested_item shift.open_date is exist - process it [10:52:19]req_shift_open_date [10:52:19]req_shift_open_date done [10:52:19]produce_requested_data done [10:52:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191711,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:52:19]process_action_free close_receipt [10:52:19]json_value_free [10:52:19]json_value_free done [10:52:19]process_json_proto returns [10:52:19]Send response to host [10:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191711,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:52:19]free response buf [10:52:19]execute_script done [10:52:19]execute_script returns [10:52:19]free content buf [10:52:19]Sock 9.Close socket [10:52:19]Sock 9.Thread stoped [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:52:59]accept exits with 8 [10:52:59]New connection [10:52:59]New thread 3066817892 created [10:52:59]Thread 3066961252 joined [10:52:59]Waiting for new connection... [10:52:59] Sock 8.Parse request [10:52:59]Sock 8.Check first char [10:52:59]Sock 8.First char is OK [10:52:59]request: POST /json_proto HTTP/1.0 [10:52:59]Method: POST [10:52:59]URL: /json_proto [10:52:59]Method is POST - this is cgi request [10:52:59]url: /json_proto [10:52:59]query_string will be loaded in cgi processing [10:52:59]execute_cgi json_proto POST (null) [10:52:59]execute_cgi path=json_proto method=POST [10:52:59]POST find Content-Length [10:52:59]Host: 172.17.63.131:8080 [10:52:59]Content-Length: 676 [10:52:59]Content-Type: application/json [10:52:59] [10:52:59]POST finish read [10:52:59]Found Content-Length = 676 [10:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:59]execute_script... [10:52: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)31014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:59]POST & json_proto [10:52:59]process_json_proto [10:52:59]json parsed OK: [10:52:59]protocol is kg_v1.0 [10:52:59]action value=close_receipt [10:52:59]process_action close_receipt [10:52:59]cmd_close_receipt [10:52:59]MH_GetDate [10:52:59]Write to MH i2c: F0 00 00 68 F2 49 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: F0 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: F0 09 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: F0 09 00 68 F2 00 19 CA 1C 67 22 05 6E 64 B1 [10:52:59]GetLastDocTimeStamp 1729939949 [10:52:59]current date 1729939993 [10:52:59]FM_GetShiftState [10:52:59]SAM_PROTO_GetShiftState [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 13 01 00 [10:52:59]Write to MH i2c: E2 08 00 69 F2 80 13 01 00 00 00 00 00 D8 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 0E 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 0E 00 69 F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 51 [10:52:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:52:59]wFMCommunicate OK [10:52:59]SAM_PROTO_GetShiftState done [10:52:59]FM_GetShiftState done [10:52:59]opened in 1729902770 [10:52:59]opened+sec_in_day 1729989170 [10:52:59]quantity*price = 30038 [10:52:59]sum+1 = 30039 [10:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 75 26.10.2024 10:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191712 ФПД: 258616367129559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105313&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191712&fm=258616367129559&tin=02508201610067®Number=0000000000091776&sum=30000 [10:53:00]StoreToDocumentArchive [10:53:00]shift 541 fd 191712 [10:53:00]save to /storage/0541/doc_00191712 [10:53:00]save last doc name /storage/0541/doc_00191712 to /storage/kkm_last_doc_name [10:53:00]save OK [10:53:00]Clear old archive folders... [10:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:00]tlvbuf is 019D26A0 [10:53:00]SAM_PROTO_ClearQueue [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 09 00 00 [10:53:00]Write to MH i2c: E2 08 00 76 F2 80 09 00 00 00 00 00 00 DA [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 03 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 03 00 76 F2 00 90 00 DC [10:53:00]RAPDU: 90 00 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_ClearQueue done [10:53:00]KKMCreateOFDPacket [10:53:00]OFDProtocolAddRootSTLVToBuf [10:53:00]FM_MakeSignedData [10:53:00]FM_MakeSignedData [10:53:00]SAM_PROTO_SignData [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 0D 01 02 [10:53:00]Write to MH i2c: E2 08 00 77 F2 80 0D 01 02 00 00 00 00 E2 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 77 F2 00 90 00 DD [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=255 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 19 CA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EC 02 00 35 04 06 00 EB [10:53:01]Write to MH i2c: E2 02 01 78 F2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 19 CA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EC 02 00 35 04 06 00 EB 00 00 F3 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 78 F2 00 90 00 DE [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=10 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 02 02 05 35 D0 B2 23 D7 [10:53:01]Write to MH i2c: E2 0D 00 79 F2 80 0D 02 02 05 00 35 D0 B2 23 D7 00 00 A0 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 03 00 79 F2 00 90 00 DF [10:53:01]RAPDU: 90 00 [10:53:01]wFMCommunicate OK [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 0D 03 02 [10:53:01]Write to MH i2c: E2 08 00 7A F2 80 0D 03 02 00 00 00 00 E7 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0B 00 7A F2 00 C6 35 10 8C 26 FF C7 85 90 00 F0 [10:53:01]RAPDU: C6 35 10 8C 26 FF C7 85 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_SignData done [10:53:01]FM_MakeSignedData done [10:53:01]CreateOFDProtocolMessage [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 11 00 00 [10:53:01]Write to MH i2c: E2 08 00 7B F2 80 11 00 00 00 00 00 00 E7 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 17 00 7B F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [10:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:01]wFMCommunicate OK [10:53:01]CreateOFDProtocolMessage done [10:53:01]OFDSenderStorePacket 191712 [10:53:01]StoreOFDPacket docnum=191712 [10:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B AF 07 01 1F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 19 CA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EC 02 00 35 04 06 00 EB 35 D0 B2 23 D7 C6 35 10 8C 26 FF C7 85 [10:53:01]CheckFolder [10:53:01]dirname=/storage/ofd_packets [10:53:01]CheckFolder done [10:53:01]ProducePacketName [10:53:01]name=ofd_packets/00191712 [10:53:01]NVStorageSaveData ofd_packets/00191712 [10:53:01]File name is /storage/ofd_packets/00191712 [10:53:01]Write 301 bytes [10:53:01]NVStorageSaveData done [10:53:01]OFDSenderStorePacket done [10:53:01]KKMCreateOFDPacket done [10:53:01]NVStorageSaveData kkm_last_timestamp [10:53:01]File name is /storage/kkm_last_timestamp [10:53:01]Write 4 bytes [10:53:01]NVStorageSaveData done [10:53:01]ExternCall_PrintAddStr [10:53:01]wPrintStart [10:53:01]Write to MH i2c: 01 00 00 7C F2 6E [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 7C F2 00 00 00 00 00 FF 0F 83 [10:53:01]RasterBufferAndPrint [10:53:01]line Счет N : (1)31014 [10:53:01]line ИНН: 02508201610067 [10:53:01]line Контрольно-Кассовый Чек [10:53:01]line ПРОДАЖА [10:53:01]line ТРК (МРК, ГНК) : 12 [10:53:01]line Товар: 2710124130 [10:53:01]line Аи-92-К-5 [10:53:01]line 4.490 * 66.90 [10:53:01]line = 300.38 [10:53:01]line НДС 12% НСП 1% [10:53:01]line > о реализуемом товаре [10:53:01]line ОКРУГЛЕНИЕ: -0.38 [10:53:01]line ИТОГО: 300.00 [10:53:01]line Внесено: 300.00 [10:53:01]line СДАЧА: 0.00 [10:53:01]line НСП 1% : 2.66 [10:53:01]line НДС 12% : 31.90 [10:53:01]line Наличными: 300.00 [10:53:01]line Безнал.: 0.00 [10:53:01]line Место: АЗС № 170 "Партнер Нефть" [10:53:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:53:01]line СНО: Общий режим [10:53:01]line Чек 75 26.10.2024 10:53 [10:53:01]line Смена: 541 ФФД: 1.0 [10:53:01]line ЗНМ: 0300000110 [10:53:01]line РНМ: 0000000000091776 [10:53:01]line Версия ККМ: 001 [10:53:01]line ФМ: 0000000000871754 [10:53:01]line ФД: 191712 [10:53:01]line ФПД: 258616367129559 [10:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105313&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191712&fm=258616367129559&tin=02508201610067®Number=0000000000091776&sum=30000 [10:53:01]OFD Sender: Processing packet 191712 [packets to send 75, broken 74] [10:53:01]ProducePacketName [10:53:01]name=ofd_packets/00191712 [10:53:01]OFD Sender: To server: pG, [10:53:01]CommunicateWithHost lk.salyk.kg:30040 [10:53:01]ConnectInit lk.salyk.kg [10:53:01]written 0, free lines is 4095 [10:53:01]Connected sock=10 [10:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B AF 07 01 1F 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 19 CA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EC 02 00 35 04 06 00 EB 35 D0 B2 23 D7 C6 35 10 8C 26 FF C7 85 [10:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A 6F 47 00 02 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 EC 02 00 F4 03 04 00 E5 6E 1C 67 B6 04 01 00 00 E4 59 D7 9D F9 43 6E DD [10:53:02]CommunicateWithHost err = 0 [10:53:02]CheckOFDResponse [10:53:02]1017 (14) - 77093643461234 [10:53:02]1041 (16) - 0000000000871754 [10:53:02]1040 (4) - 191712 [10:53:02]1012 (4) - 26.10.2024 04:24 [10:53:02]1206 (1) - 0 [10:53:02]OFD Sender: Remove packet 191712 [10:53:02]ProducePacketName [10:53:02]name=ofd_packets/00191712 [10:53:02]NVStorageDeleteData [10:53:02]Write to MH i2c: 01 00 00 A7 F2 99 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 A7 F2 00 00 00 00 00 B9 0C 65 [10:53:02]RasterBufferAndPrint [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]line [10:53:02]written 0, free lines is 3264 [10:53:02]MH_Cut [10:53:02]Write to MH i2c: D1 01 00 AE F2 01 72 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: D1 01 00 AE F2 00 71 [10:53:02]Write to MH i2c: 01 00 00 AF F2 A1 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]OFD Sender: No OFD packet to send [10:53:03]*** Cut start [10:53:03]*** Partial cut [10:53:03]*** CUTSNS_PIN = 1 [10:53:03]*** CUTSNS_PIN = 0 [10:53:03]*** Brake cut motor [10:53:03]Read from MH i2c: 01 [10:53:03]MH_I2C_Read... [10:53:03]*** Stop cut motor [10:53:03]*** Cut end [10:53:03]Read from MH i2c: 01 07 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: 01 07 00 AF F2 00 00 00 00 00 FF 0F B6 [10:53:03]process_action close_receipt done [10:53:03]requested_data is exist [10:53:03]produce_requested_data [10:53:03]requested_item fm.sn is exist - process it [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 11 00 00 [10:53:03]Write to MH i2c: E2 08 00 B0 F2 80 11 00 00 00 00 00 00 1C [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 B0 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [10:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:53:03]wFMCommunicate OK [10:53:03]requested_item fd.num is exist - process it [10:53:03]SAM_PROTO_GetFieldsCounters [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 13 00 00 [10:53:03]Write to MH i2c: E2 08 00 B1 F2 80 13 00 00 00 00 00 00 1F [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 62 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 62 00 B1 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_GetFieldsCounters done [10:53:03]requested_item shift.num is exist - process it [10:53:03]requested_item shift.opened is exist - process it [10:53:03]req_shift_opened [10:53:03]FM_GetShiftState [10:53:03]SAM_PROTO_GetShiftState [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 13 01 00 [10:53:03]Write to MH i2c: E2 08 00 B2 F2 80 13 01 00 00 00 00 00 21 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0E 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0E 00 B2 F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9A [10:53:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_GetShiftState done [10:53:03]FM_GetShiftState done [10:53:03]req_shift_opened done [10:53:03]requested_item shift.open_date is exist - process it [10:53:03]req_shift_open_date [10:53:03]req_shift_open_date done [10:53:03]produce_requested_data done [10:53:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191712,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:53:03]process_action_free close_receipt [10:53:03]json_value_free [10:53:03]json_value_free done [10:53:03]process_json_proto returns [10:53:03]Send response to host [10:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191712,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:53:03]free response buf [10:53:03]execute_script done [10:53:03]execute_script returns [10:53:03]free content buf [10:53:03]Sock 8.Close socket [10:53:03]Sock 8.Thread stoped [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:47]OFD Sender: No OFD packet to send [10:56:52]OFD Sender: No OFD packet to send [10:56:57]OFD Sender: No OFD packet to send [10:57:02]OFD Sender: No OFD packet to send [10:57:07]OFD Sender: No OFD packet to send [10:57:12]OFD Sender: No OFD packet to send [10:57:13]accept exits with 9 [10:57:13]New connection [10:57:13]New thread 3066961252 created [10:57:13]Thread 3066817892 joined [10:57:13]Waiting for new connection... [10:57:13] Sock 9.Parse request [10:57:13]Sock 9.Check first char [10:57:13]Sock 9.First char is OK [10:57:13]request: POST /json_proto HTTP/1.0 [10:57:13]Method: POST [10:57:13]URL: /json_proto [10:57:13]Method is POST - this is cgi request [10:57:13]url: /json_proto [10:57:13]query_string will be loaded in cgi processing [10:57:13]execute_cgi json_proto POST (null) [10:57:13]execute_cgi path=json_proto method=POST [10:57:13]POST find Content-Length [10:57:13]Host: 172.17.63.131:8080 [10:57:13]Content-Length: 678 [10:57:13]Content-Type: application/json [10:57:13] [10:57:13]POST finish read [10:57:13]Found Content-Length = 678 [10:57:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:13]execute_script... [10:57: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)31015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:13]POST & json_proto [10:57:13]process_json_proto [10:57:13]json parsed OK: [10:57:13]protocol is kg_v1.0 [10:57:13]action value=close_receipt [10:57:13]process_action close_receipt [10:57:13]cmd_close_receipt [10:57:13]MH_GetDate [10:57:13]Write to MH i2c: F0 00 00 B3 F2 94 [10:57:13]Write i2c OK [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 09 00 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: F0 09 00 B3 F2 00 17 CB 1C 67 22 05 6E 64 FB [10:57:13]GetLastDocTimeStamp 1729939993 [10:57:13]current date 1729940247 [10:57:13]FM_GetShiftState [10:57:13]SAM_PROTO_GetShiftState [10:57:13]wFMCommunicate request_size=4 [10:57:13]MH_SAM_APDU [10:57:13]CAPDU: 80 13 01 00 [10:57:13]Write to MH i2c: E2 08 00 B4 F2 80 13 01 00 00 00 00 00 23 [10:57:13]Write i2c OK [10:57:13]MH_I2C_Read... [10:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:13]Read from MH i2c: E2 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 B4 F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9C [10:57:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:57:13]wFMCommunicate OK [10:57:13]SAM_PROTO_GetShiftState done [10:57:13]FM_GetShiftState done [10:57:13]opened in 1729902770 [10:57:13]opened+sec_in_day 1729989170 [10:57:13]quantity*price = 100050 [10:57:13]sum+1 = 100052 [10:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 76 26.10.2024 10:57 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191713 ФПД: 188236139767446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191713&fm=188236139767446&tin=02508201610067®Number=0000000000091776&sum=100000 [10:57:14]StoreToDocumentArchive [10:57:14]shift 541 fd 191713 [10:57:14]save to /storage/0541/doc_00191713 [10:57:14]save last doc name /storage/0541/doc_00191713 to /storage/kkm_last_doc_name [10:57:14]save OK [10:57:14]Clear old archive folders... [10:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:14]tlvbuf is 01789E00 [10:57:14]SAM_PROTO_ClearQueue [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 09 00 00 [10:57:14]Write to MH i2c: E2 08 00 C1 F2 80 09 00 00 00 00 00 00 25 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 C1 F2 00 90 00 27 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_ClearQueue done [10:57:14]KKMCreateOFDPacket [10:57:14]OFDProtocolAddRootSTLVToBuf [10:57:14]FM_MakeSignedData [10:57:14]FM_MakeSignedData [10:57:14]SAM_PROTO_SignData [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 01 02 [10:57:14]Write to MH i2c: E2 08 00 C2 F2 80 0D 01 02 00 00 00 00 2D [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 C2 F2 00 90 00 28 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]wFMCommunicate request_size=255 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 17 CB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EC 02 00 35 04 06 00 AB 33 24 3E [10:57:14]Write to MH i2c: E2 02 01 C3 F2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 17 CB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EC 02 00 35 04 06 00 AB 33 24 3E 00 00 96 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 C3 F2 00 90 00 29 [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=7 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 02 02 02 A6 96 [10:57:15]Write to MH i2c: E2 0A 00 C4 F2 80 0D 02 02 02 00 A6 96 00 00 70 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 03 00 C4 F2 00 90 00 2A [10:57:15]RAPDU: 90 00 [10:57:15]wFMCommunicate OK [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 0D 03 02 [10:57:15]Write to MH i2c: E2 08 00 C5 F2 80 0D 03 02 00 00 00 00 32 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 0B 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 0B 00 C5 F2 00 AC 1C D2 3F 54 AA 42 1C 90 00 68 [10:57:15]RAPDU: AC 1C D2 3F 54 AA 42 1C 90 00 [10:57:15]wFMCommunicate OK [10:57:15]SAM_PROTO_SignData done [10:57:15]FM_MakeSignedData done [10:57:15]CreateOFDProtocolMessage [10:57:15]wFMCommunicate request_size=4 [10:57:15]MH_SAM_APDU [10:57:15]CAPDU: 80 11 00 00 [10:57:15]Write to MH i2c: E2 08 00 C6 F2 80 11 00 00 00 00 00 00 32 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:15]Read from MH i2c: E2 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 17 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: E2 17 00 C6 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [10:57:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:15]wFMCommunicate OK [10:57:15]CreateOFDProtocolMessage done [10:57:15]OFDSenderStorePacket 191713 [10:57:15]StoreOFDPacket docnum=191713 [10:57:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 00 4C 04 01 56 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 17 CB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EC 02 00 35 04 06 00 AB 33 24 3E A6 96 AC 1C D2 3F 54 AA 42 1C [10:57:15]CheckFolder [10:57:15]dirname=/storage/ofd_packets [10:57:15]CheckFolder done [10:57:15]ProducePacketName [10:57:15]name=ofd_packets/00191713 [10:57:15]NVStorageSaveData ofd_packets/00191713 [10:57:15]File name is /storage/ofd_packets/00191713 [10:57:15]Write 298 bytes [10:57:15]NVStorageSaveData done [10:57:15]OFDSenderStorePacket done [10:57:15]KKMCreateOFDPacket done [10:57:15]NVStorageSaveData kkm_last_timestamp [10:57:15]File name is /storage/kkm_last_timestamp [10:57:15]Write 4 bytes [10:57:15]NVStorageSaveData done [10:57:15]ExternCall_PrintAddStr [10:57:15]wPrintStart [10:57:15]Write to MH i2c: 01 00 00 C7 F2 B9 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 C7 F2 00 00 00 00 00 FF 0F CE [10:57:15]RasterBufferAndPrint [10:57:15]line Счет N : (1)31015 [10:57:15]line ИНН: 02508201610067 [10:57:15]line Контрольно-Кассовый Чек [10:57:15]line ПРОДАЖА [10:57:15]line ТРК (МРК, ГНК) : 11 [10:57:15]line Товар: 2710194210 [10:57:15]line ДТ-К-5 [10:57:15]line 13.130 * 76.20 [10:57:15]line = 1000.51 [10:57:15]line НДС 12% НСП 1% [10:57:15]line > о реализуемом товаре [10:57:15]line ОКРУГЛЕНИЕ: -0.51 [10:57:15]line ИТОГО: 1000.00 [10:57:15]line Внесено: 1000.00 [10:57:15]line СДАЧА: 0.00 [10:57:15]line НСП 1% : 8.85 [10:57:15]line НДС 12% : 106.25 [10:57:15]line Наличными: 1000.00 [10:57:15]line Безнал.: 0.00 [10:57:15]line Место: АЗС № 170 "Партнер Нефть" [10:57:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [10:57:15]line СНО: Общий режим [10:57:15]line Чек 76 26.10.2024 10:57 [10:57:15]line Смена: 541 ФФД: 1.0 [10:57:15]line ЗНМ: 0300000110 [10:57:15]line РНМ: 0000000000091776 [10:57:15]line Версия ККМ: 001 [10:57:15]line ФМ: 0000000000871754 [10:57:15]line ФД: 191713 [10:57:15]line ФПД: 188236139767446 [10:57:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T105727&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191713&fm=188236139767446&tin=02508201610067®Number=0000000000091776&sum=100000 [10:57:15]OFD Sender: Processing packet 191713 [packets to send 75, broken 74] [10:57:15]ProducePacketName [10:57:15]name=ofd_packets/00191713 [10:57:15]OFD Sender: To server: pG, [10:57:15]CommunicateWithHost lk.salyk.kg:30040 [10:57:15]ConnectInit lk.salyk.kg [10:57:15]written 0, free lines is 4095 [10:57:15]Connected sock=10 [10:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 00 4C 04 01 56 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 17 CB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EC 02 00 35 04 06 00 AB 33 24 3E A6 96 AC 1C D2 3F 54 AA 42 1C [10:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 BD 47 00 A4 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 EC 02 00 F4 03 04 00 E3 6F 1C 67 B6 04 01 00 00 8C DA 41 BF EF 49 2E B9 [10:57:15]CommunicateWithHost err = 0 [10:57:15]CheckOFDResponse [10:57:15]1017 (14) - 77093643461234 [10:57:15]1041 (16) - 0000000000871754 [10:57:15]1040 (4) - 191713 [10:57:15]1012 (4) - 26.10.2024 04:28 [10:57:15]1206 (1) - 0 [10:57:15]OFD Sender: Remove packet 191713 [10:57:15]ProducePacketName [10:57:15]name=ofd_packets/00191713 [10:57:15]NVStorageDeleteData [10:57:16]Write to MH i2c: 01 00 00 F2 F2 E4 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 F2 F2 00 00 00 00 00 A8 0C 9F [10:57:16]RasterBufferAndPrint [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]line [10:57:16]written 0, free lines is 3248 [10:57:16]MH_Cut [10:57:16]Write to MH i2c: D1 01 00 F9 F2 01 BD [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: D1 01 00 F9 F2 00 BC [10:57:16]Write to MH i2c: 01 00 00 FA F2 EC [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]OFD Sender: No OFD packet to send [10:57:16]*** Cut start [10:57:16]*** Partial cut [10:57:16]*** CUTSNS_PIN = 1 [10:57:16]*** CUTSNS_PIN = 0 [10:57:17]*** Brake cut motor [10:57:17]Read from MH i2c: 01 [10:57:17]MH_I2C_Read... [10:57:17]*** Stop cut motor [10:57:17]*** Cut end [10:57:17]Read from MH i2c: 01 07 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: 01 07 00 FA F2 00 00 00 00 00 FF 0F 01 [10:57:17]process_action close_receipt done [10:57:17]requested_data is exist [10:57:17]produce_requested_data [10:57:17]requested_item fm.sn is exist - process it [10:57:17]wFMCommunicate request_size=4 [10:57:17]MH_SAM_APDU [10:57:17]CAPDU: 80 11 00 00 [10:57:17]Write to MH i2c: E2 08 00 FB F2 80 11 00 00 00 00 00 00 67 [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:17]Read from MH i2c: E2 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 17 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 17 00 FB F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [10:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [10:57:17]wFMCommunicate OK [10:57:17]requested_item fd.num is exist - process it [10:57:17]SAM_PROTO_GetFieldsCounters [10:57:17]wFMCommunicate request_size=4 [10:57:17]MH_SAM_APDU [10:57:17]CAPDU: 80 13 00 00 [10:57:17]Write to MH i2c: E2 08 00 FC F2 80 13 00 00 00 00 00 00 6A [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:17]Read from MH i2c: E2 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 62 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 62 00 FC F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [10:57:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:17]wFMCommunicate OK [10:57:17]SAM_PROTO_GetFieldsCounters done [10:57:17]requested_item shift.num is exist - process it [10:57:17]requested_item shift.opened is exist - process it [10:57:17]req_shift_opened [10:57:17]FM_GetShiftState [10:57:17]SAM_PROTO_GetShiftState [10:57:17]wFMCommunicate request_size=4 [10:57:17]MH_SAM_APDU [10:57:17]CAPDU: 80 13 01 00 [10:57:17]Write to MH i2c: E2 08 00 FD F2 80 13 01 00 00 00 00 00 6C [10:57:17]Write i2c OK [10:57:17]MH_I2C_Read... [10:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:17]Read from MH i2c: E2 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 0E 00 [10:57:17]MH_I2C_Read... [10:57:17]Read from MH i2c: E2 0E 00 FD F2 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E5 [10:57:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [10:57:17]wFMCommunicate OK [10:57:17]SAM_PROTO_GetShiftState done [10:57:17]FM_GetShiftState done [10:57:17]req_shift_opened done [10:57:17]requested_item shift.open_date is exist - process it [10:57:17]req_shift_open_date [10:57:17]req_shift_open_date done [10:57:17]produce_requested_data done [10:57:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191713,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [10:57:17]process_action_free close_receipt [10:57:17]json_value_free [10:57:17]json_value_free done [10:57:17]process_json_proto returns [10:57:17]Send response to host [10:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191713,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [10:57:17]free response buf [10:57:17]execute_script done [10:57:17]execute_script returns [10:57:17]free content buf [10:57:17]Sock 9.Close socket [10:57:17]Sock 9.Thread stoped [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:12:10]ConnectInit Can't connect to host [11:12:11]OFD Sender: Processing packet 191714 [packets to send 77, broken 74] [11:12:11]ProducePacketName [11:12:11]name=ofd_packets/00191714 [11:12:11]OFD Sender: To server: pG, [11:12:11]CommunicateWithHost lk.salyk.kg:30040 [11:12:11]ConnectInit lk.salyk.kg [11:12:11]Connected sock=9 [11:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 21 07 01 E1 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 4F CC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EC 02 00 35 04 06 00 BB 66 3A 1F 3D 81 ED 48 52 A7 55 A2 CA AA [11:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7C 2D 47 00 BD 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 EC 02 00 F4 03 04 00 62 73 1C 67 B6 04 01 00 00 79 EF 99 A3 32 4A 09 F5 [11:12:11]CommunicateWithHost err = 0 [11:12:11]CheckOFDResponse [11:12:11]1017 (14) - 77093643461234 [11:12:11]1041 (16) - 0000000000871754 [11:12:11]1040 (4) - 191714 [11:12:11]1012 (4) - 26.10.2024 04:43 [11:12:11]1206 (1) - 0 [11:12:11]OFD Sender: Remove packet 191714 [11:12:11]ProducePacketName [11:12:11]name=ofd_packets/00191714 [11:12:11]NVStorageDeleteData [11:12:11]OFD Sender: Processing packet 191715 [packets to send 76, broken 74] [11:12:11]ProducePacketName [11:12:11]name=ofd_packets/00191715 [11:12:11]OFD Sender: To server: pG, [11:12:11]CommunicateWithHost lk.salyk.kg:30040 [11:12:11]ConnectInit lk.salyk.kg [11:12:12]Connected sock=9 [11:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 48 68 07 01 99 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FE CC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EC 02 00 35 04 06 00 96 13 AB 66 E2 DF A3 AC 25 90 0B 31 79 5B [11:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 0D 47 00 DC B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 EC 02 00 F4 03 04 00 63 73 1C 67 B6 04 01 00 00 E0 93 CC DF 8F AD 28 EC [11:12:12]CommunicateWithHost err = 0 [11:12:12]CheckOFDResponse [11:12:12]1017 (14) - 77093643461234 [11:12:12]1041 (16) - 0000000000871754 [11:12:12]1040 (4) - 191715 [11:12:12]1012 (4) - 26.10.2024 04:43 [11:12:12]1206 (1) - 0 [11:12:12]OFD Sender: Remove packet 191715 [11:12:12]ProducePacketName [11:12:12]name=ofd_packets/00191715 [11:12:12]NVStorageDeleteData [11:12:12]OFD Sender: Processing packet 191716 [packets to send 75, broken 74] [11:12:12]ProducePacketName [11:12:12]name=ofd_packets/00191716 [11:12:12]OFD Sender: To server: pG, [11:12:12]CommunicateWithHost lk.salyk.kg:30040 [11:12:12]ConnectInit lk.salyk.kg [11:12:12]Connected sock=9 [11:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 63 E5 04 01 F1 1B 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 4F 00 00 00 F4 03 04 00 29 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EC 02 00 35 04 06 00 1B 5E 59 54 27 D6 EB 58 AD F3 C9 6D F5 2A [11:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 E8 47 00 22 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 EC 02 00 F4 03 04 00 64 73 1C 67 B6 04 01 00 00 0A 92 DE 83 24 C2 EF 17 [11:12:13]CommunicateWithHost err = 0 [11:12:13]CheckOFDResponse [11:12:13]1017 (14) - 77093643461234 [11:12:13]1041 (16) - 0000000000871754 [11:12:13]1040 (4) - 191716 [11:12:13]1012 (4) - 26.10.2024 04:43 [11:12:13]1206 (1) - 0 [11:12:13]OFD Sender: Remove packet 191716 [11:12:13]ProducePacketName [11:12:13]name=ofd_packets/00191716 [11:12:13]NVStorageDeleteData [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:56]accept exits with 8 [11:12:56]New connection [11:12:56]New thread 3066961252 created [11:12:56]Thread 3066817892 joined [11:12:56]Waiting for new connection... [11:12:56] Sock 8.Parse request [11:12:56]Sock 8.Check first char [11:12:56]Sock 8.First char is OK [11:12:56]request: POST /json_proto HTTP/1.0 [11:12:56]Method: POST [11:12:56]URL: /json_proto [11:12:56]Method is POST - this is cgi request [11:12:56]url: /json_proto [11:12:56]query_string will be loaded in cgi processing [11:12:56]execute_cgi json_proto POST (null) [11:12:56]execute_cgi path=json_proto method=POST [11:12:56]POST find Content-Length [11:12:56]Host: 172.17.63.131:8080 [11:12:56]Content-Length: 681 [11:12:56]Content-Type: application/json [11:12:56] [11:12:56]POST finish read [11:12:56]Found Content-Length = 681 [11:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:56]execute_script... [11:12: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)31019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:56]POST & json_proto [11:12:56]process_json_proto [11:12:56]json parsed OK: [11:12:56]protocol is kg_v1.0 [11:12:56]action value=close_receipt [11:12:56]process_action close_receipt [11:12:56]cmd_close_receipt [11:12:56]MH_GetDate [11:12:56]Write to MH i2c: F0 00 00 E4 F3 C6 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 09 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: F0 09 00 E4 F3 00 C6 CE 1C 67 22 05 6E 64 DF [11:12:56]GetLastDocTimeStamp 1729941033 [11:12:56]current date 1729941190 [11:12:56]FM_GetShiftState [11:12:56]SAM_PROTO_GetShiftState [11:12:56]wFMCommunicate request_size=4 [11:12:56]MH_SAM_APDU [11:12:56]CAPDU: 80 13 01 00 [11:12:56]Write to MH i2c: E2 08 00 E5 F3 80 13 01 00 00 00 00 00 55 [11:12:56]Write i2c OK [11:12:56]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 E5 F3 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CE [11:12:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_GetShiftState done [11:12:56]FM_GetShiftState done [11:12:56]opened in 1729902770 [11:12:56]opened+sec_in_day 1729989170 [11:12:56]quantity*price = 100015 [11:12:56]sum+1 = 100017 [11:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 80 26.10.2024 11:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191717 ФПД: 103832829427403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191717&fm=103832829427403&tin=02508201610067®Number=0000000000091776&sum=100000 [11:12:57]StoreToDocumentArchive [11:12:57]shift 541 fd 191717 [11:12:57]save to /storage/0541/doc_00191717 [11:12:57]save last doc name /storage/0541/doc_00191717 to /storage/kkm_last_doc_name [11:12:57]save OK [11:12:57]Clear old archive folders... [11:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:57]tlvbuf is 018313F0 [11:12:57]SAM_PROTO_ClearQueue [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 09 00 00 [11:12:57]Write to MH i2c: E2 08 00 F2 F3 80 09 00 00 00 00 00 00 57 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 F2 F3 00 90 00 59 [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]SAM_PROTO_ClearQueue done [11:12:57]KKMCreateOFDPacket [11:12:57]OFDProtocolAddRootSTLVToBuf [11:12:57]FM_MakeSignedData [11:12:57]FM_MakeSignedData [11:12:57]SAM_PROTO_SignData [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 01 02 [11:12:57]Write to MH i2c: E2 08 00 F3 F3 80 0D 01 02 00 00 00 00 5F [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 F3 F3 00 90 00 5A [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=255 [11:12:57]MH_SAM_APDU [11:12: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C6 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EC 02 00 35 04 06 00 5E [11:12:57]Write to MH i2c: E2 02 01 F4 F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C6 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EC 02 00 35 04 06 00 5E 00 00 A4 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 F4 F3 00 90 00 5B [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=10 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 02 02 05 6F 76 E9 FE CB [11:12:57]Write to MH i2c: E2 0D 00 F5 F3 80 0D 02 02 05 00 6F 76 E9 FE CB 00 00 03 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 F5 F3 00 90 00 5C [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 03 02 [11:12:57]Write to MH i2c: E2 08 00 F6 F3 80 0D 03 02 00 00 00 00 64 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 0B 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 0B 00 F6 F3 00 E4 74 A7 86 00 F0 D3 E0 90 00 8D [11:12:57]RAPDU: E4 74 A7 86 00 F0 D3 E0 90 00 [11:12:57]wFMCommunicate OK [11:12:57]SAM_PROTO_SignData done [11:12:57]FM_MakeSignedData done [11:12:57]CreateOFDProtocolMessage [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 11 00 00 [11:12:57]Write to MH i2c: E2 08 00 F7 F3 80 11 00 00 00 00 00 00 64 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 17 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 17 00 F7 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [11:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:12:57]wFMCommunicate OK [11:12:57]CreateOFDProtocolMessage done [11:12:57]OFDSenderStorePacket 191717 [11:12:57]StoreOFDPacket docnum=191717 [11:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 1B 07 01 40 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C6 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EC 02 00 35 04 06 00 5E 6F 76 E9 FE CB E4 74 A7 86 00 F0 D3 E0 [11:12:57]CheckFolder [11:12:57]dirname=/storage/ofd_packets [11:12:57]CheckFolder done [11:12:57]ProducePacketName [11:12:57]name=ofd_packets/00191717 [11:12:57]NVStorageSaveData ofd_packets/00191717 [11:12:57]File name is /storage/ofd_packets/00191717 [11:12:57]Write 301 bytes [11:12:57]NVStorageSaveData done [11:12:57]OFDSenderStorePacket done [11:12:57]KKMCreateOFDPacket done [11:12:57]NVStorageSaveData kkm_last_timestamp [11:12:57]File name is /storage/kkm_last_timestamp [11:12:57]Write 4 bytes [11:12:57]NVStorageSaveData done [11:12:57]ExternCall_PrintAddStr [11:12:57]wPrintStart [11:12:57]Write to MH i2c: 01 00 00 F8 F3 EB [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 F8 F3 00 00 00 00 00 FF 0F 00 [11:12:57]RasterBufferAndPrint [11:12:57]line Счет N : (1)31019 [11:12:57]line ИНН: 02508201610067 [11:12:57]line Контрольно-Кассовый Чек [11:12:57]line ПРОДАЖА [11:12:57]line ТРК (МРК, ГНК) : 12 [11:12:57]line Товар: 2710124130 [11:12:57]line Аи-92-К-5 [11:12:57]line 14.950 * 66.90 [11:12:57]line = 1000.16 [11:12:57]line НДС 12% НСП 1% [11:12:57]line > о реализуемом товаре [11:12:57]line ОКРУГЛЕНИЕ: -0.16 [11:12:57]line ИТОГО: 1000.00 [11:12:57]line Внесено: 1000.00 [11:12:57]line СДАЧА: 0.00 [11:12:57]line НСП 1% : 8.85 [11:12:57]line НДС 12% : 106.21 [11:12:57]line Наличными: 1000.00 [11:12:57]line Безнал.: 0.00 [11:12:57]line Место: АЗС № 170 "Партнер Нефть" [11:12:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:12:57]line СНО: Общий режим [11:12:57]line Чек 80 26.10.2024 11:13 [11:12:57]line Смена: 541 ФФД: 1.0 [11:12:57]line ЗНМ: 0300000110 [11:12:57]line РНМ: 0000000000091776 [11:12:57]line Версия ККМ: 001 [11:12:57]line ФМ: 0000000000871754 [11:12:57]line ФД: 191717 [11:12:57]line ФПД: 103832829427403 [11:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111310&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191717&fm=103832829427403&tin=02508201610067®Number=0000000000091776&sum=100000 [11:12:58]OFD Sender: Processing packet 191717 [packets to send 75, broken 74] [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00191717 [11:12:58]OFD Sender: To server: pG, [11:12:58]CommunicateWithHost lk.salyk.kg:30040 [11:12:58]ConnectInit lk.salyk.kg [11:12:58]written 0, free lines is 4095 [11:12:58]Connected sock=10 [11:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF 1B 07 01 40 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 C6 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EC 02 00 35 04 06 00 5E 6F 76 E9 FE CB E4 74 A7 86 00 F0 D3 E0 [11:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D 0F 47 00 E3 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 EC 02 00 F4 03 04 00 91 73 1C 67 B6 04 01 00 00 23 E8 6B C4 1A B2 C7 C1 [11:12:58]CommunicateWithHost err = 0 [11:12:58]CheckOFDResponse [11:12:58]1017 (14) - 77093643461234 [11:12:58]1041 (16) - 0000000000871754 [11:12:58]1040 (4) - 191717 [11:12:58]1012 (4) - 26.10.2024 04:44 [11:12:58]1206 (1) - 0 [11:12:58]OFD Sender: Remove packet 191717 [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00191717 [11:12:58]NVStorageDeleteData [11:12:58]Write to MH i2c: 01 00 00 23 F4 17 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 23 F4 00 00 00 00 00 A9 0C D3 [11:12:58]RasterBufferAndPrint [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]written 0, free lines is 3247 [11:12:58]MH_Cut [11:12:58]Write to MH i2c: D1 01 00 2A F4 01 F0 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 2A F4 00 EF [11:12:58]Write to MH i2c: 01 00 00 2B F4 1F [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:59]OFD Sender: No OFD packet to send [11:12:59]*** Cut start [11:12:59]*** Partial cut [11:12:59]*** CUTSNS_PIN = 1 [11:12:59]*** CUTSNS_PIN = 0 [11:12:59]*** Brake cut motor [11:13:00]Read from MH i2c: 01 [11:13:00]MH_I2C_Read... [11:13:00]*** Stop cut motor [11:13:00]*** Cut end [11:13:00]Read from MH i2c: 01 07 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 2B F4 00 00 00 00 00 FF 0F 34 [11:13:00]process_action close_receipt done [11:13:00]requested_data is exist [11:13:00]produce_requested_data [11:13:00]requested_item fm.sn is exist - process it [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 11 00 00 [11:13:00]Write to MH i2c: E2 08 00 2C F4 80 11 00 00 00 00 00 00 9A [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 17 00 2C F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [11:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:00]wFMCommunicate OK [11:13:00]requested_item fd.num is exist - process it [11:13:00]SAM_PROTO_GetFieldsCounters [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 13 00 00 [11:13:00]Write to MH i2c: E2 08 00 2D F4 80 13 00 00 00 00 00 00 9D [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 62 00 2D F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [11:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetFieldsCounters done [11:13:00]requested_item shift.num is exist - process it [11:13:00]requested_item shift.opened is exist - process it [11:13:00]req_shift_opened [11:13:00]FM_GetShiftState [11:13:00]SAM_PROTO_GetShiftState [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 13 01 00 [11:13:00]Write to MH i2c: E2 08 00 2E F4 80 13 01 00 00 00 00 00 9F [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 0E 00 2E F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 18 [11:13:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_GetShiftState done [11:13:00]FM_GetShiftState done [11:13:00]req_shift_opened done [11:13:00]requested_item shift.open_date is exist - process it [11:13:00]req_shift_open_date [11:13:00]req_shift_open_date done [11:13:00]produce_requested_data done [11:13:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191717,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:13:00]process_action_free close_receipt [11:13:00]json_value_free [11:13:00]json_value_free done [11:13:00]process_json_proto returns [11:13:00]Send response to host [11:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191717,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:13:00]free response buf [11:13:00]execute_script done [11:13:00]execute_script returns [11:13:00]free content buf [11:13:00]Sock 8.Close socket [11:13:00]Sock 8.Thread stoped [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:47]accept exits with 9 [11:13:47]New connection [11:13:47]New thread 3066817892 created [11:13:47]Thread 3066961252 joined [11:13:47]Waiting for new connection... [11:13:47] Sock 9.Parse request [11:13:47]Sock 9.Check first char [11:13:47]Sock 9.First char is OK [11:13:47]request: POST /json_proto HTTP/1.0 [11:13:47]Method: POST [11:13:47]URL: /json_proto [11:13:47]Method is POST - this is cgi request [11:13:47]url: /json_proto [11:13:47]query_string will be loaded in cgi processing [11:13:47]execute_cgi json_proto POST (null) [11:13:47]execute_cgi path=json_proto method=POST [11:13:47]POST find Content-Length [11:13:47]Host: 172.17.63.131:8080 [11:13:47]Content-Length: 676 [11:13:47]Content-Type: application/json [11:13:47] [11:13:47]POST finish read [11:13:47]Found Content-Length = 676 [11:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:47]execute_script... [11:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:47]POST & json_proto [11:13:47]process_json_proto [11:13:47]json parsed OK: [11:13:47]protocol is kg_v1.0 [11:13:47]action value=close_receipt [11:13:47]process_action close_receipt [11:13:47]cmd_close_receipt [11:13:47]MH_GetDate [11:13:47]Write to MH i2c: F0 00 00 2F F4 12 [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 09 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 09 00 2F F4 00 F9 CE 1C 67 22 05 6E 64 5E [11:13:47]GetLastDocTimeStamp 1729941190 [11:13:47]current date 1729941241 [11:13:47]FM_GetShiftState [11:13:47]SAM_PROTO_GetShiftState [11:13:47]wFMCommunicate request_size=4 [11:13:47]MH_SAM_APDU [11:13:47]CAPDU: 80 13 01 00 [11:13:47]Write to MH i2c: E2 08 00 30 F4 80 13 01 00 00 00 00 00 A1 [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:47]Read from MH i2c: E2 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 30 F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1A [11:13:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:13:47]wFMCommunicate OK [11:13:47]SAM_PROTO_GetShiftState done [11:13:47]FM_GetShiftState done [11:13:47]opened in 1729902770 [11:13:47]opened+sec_in_day 1729989170 [11:13:47]quantity*price = 40006 [11:13:47]sum+1 = 40007 [11:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 81 26.10.2024 11:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191718 ФПД: 152853478179164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191718&fm=152853478179164&tin=02508201610067®Number=0000000000091776&sum=40000 [11:13:48]StoreToDocumentArchive [11:13:48]shift 541 fd 191718 [11:13:48]save to /storage/0541/doc_00191718 [11:13:48]save last doc name /storage/0541/doc_00191718 to /storage/kkm_last_doc_name [11:13:48]save OK [11:13:48]Clear old archive folders... [11:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:48]tlvbuf is 019D4C50 [11:13:48]SAM_PROTO_ClearQueue [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 09 00 00 [11:13:48]Write to MH i2c: E2 08 00 3D F4 80 09 00 00 00 00 00 00 A3 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 3D F4 00 90 00 A5 [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]SAM_PROTO_ClearQueue done [11:13:48]KKMCreateOFDPacket [11:13:48]OFDProtocolAddRootSTLVToBuf [11:13:48]FM_MakeSignedData [11:13:48]FM_MakeSignedData [11:13:48]SAM_PROTO_SignData [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 0D 01 02 [11:13:48]Write to MH i2c: E2 08 00 3E F4 80 0D 01 02 00 00 00 00 AB [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 3E F4 00 90 00 A6 [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]wFMCommunicate request_size=255 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F9 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EC 02 00 35 04 06 00 8B [11:13:48]Write to MH i2c: E2 02 01 3F F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F9 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EC 02 00 35 04 06 00 8B 00 00 27 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 3F F4 00 90 00 A7 [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]wFMCommunicate request_size=10 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 0D 02 02 05 04 F9 45 01 5C [11:13:48]Write to MH i2c: E2 0D 00 40 F4 80 0D 02 02 05 00 04 F9 45 01 5C 00 00 57 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 40 F4 00 90 00 A8 [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 0D 03 02 [11:13:48]Write to MH i2c: E2 08 00 41 F4 80 0D 03 02 00 00 00 00 B0 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 0B 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 0B 00 41 F4 00 B7 B8 0A BF 83 D5 7F B9 90 00 79 [11:13:48]RAPDU: B7 B8 0A BF 83 D5 7F B9 90 00 [11:13:48]wFMCommunicate OK [11:13:48]SAM_PROTO_SignData done [11:13:48]FM_MakeSignedData done [11:13:48]CreateOFDProtocolMessage [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 11 00 00 [11:13:48]Write to MH i2c: E2 08 00 42 F4 80 11 00 00 00 00 00 00 B0 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 17 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 17 00 42 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [11:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:48]wFMCommunicate OK [11:13:48]CreateOFDProtocolMessage done [11:13:48]OFDSenderStorePacket 191718 [11:13:48]StoreOFDPacket docnum=191718 [11:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 94 07 01 C8 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F9 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EC 02 00 35 04 06 00 8B 04 F9 45 01 5C B7 B8 0A BF 83 D5 7F B9 [11:13:48]CheckFolder [11:13:48]dirname=/storage/ofd_packets [11:13:48]CheckFolder done [11:13:48]ProducePacketName [11:13:48]name=ofd_packets/00191718 [11:13:48]NVStorageSaveData ofd_packets/00191718 [11:13:48]File name is /storage/ofd_packets/00191718 [11:13:48]Write 301 bytes [11:13:48]NVStorageSaveData done [11:13:48]OFDSenderStorePacket done [11:13:48]KKMCreateOFDPacket done [11:13:48]NVStorageSaveData kkm_last_timestamp [11:13:48]File name is /storage/kkm_last_timestamp [11:13:48]Write 4 bytes [11:13:48]NVStorageSaveData done [11:13:48]ExternCall_PrintAddStr [11:13:48]wPrintStart [11:13:48]Write to MH i2c: 01 00 00 43 F4 37 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: 01 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: 01 07 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: 01 07 00 43 F4 00 00 00 00 00 FF 0F 4C [11:13:48]RasterBufferAndPrint [11:13:48]line Счет N : (1)31020 [11:13:48]line ИНН: 02508201610067 [11:13:48]line Контрольно-Кассовый Чек [11:13:48]line ПРОДАЖА [11:13:48]line ТРК (МРК, ГНК) : 12 [11:13:48]line Товар: 2710124130 [11:13:48]line Аи-92-К-5 [11:13:48]line 5.980 * 66.90 [11:13:48]line = 400.06 [11:13:48]line НДС 12% НСП 1% [11:13:48]line > о реализуемом товаре [11:13:48]line ОКРУГЛЕНИЕ: -0.06 [11:13:48]line ИТОГО: 400.00 [11:13:48]line Внесено: 400.00 [11:13:48]line СДАЧА: 0.00 [11:13:48]line НСП 1% : 3.54 [11:13:48]line НДС 12% : 42.48 [11:13:48]line Наличными: 400.00 [11:13:48]line Безнал.: 0.00 [11:13:48]line Место: АЗС № 170 "Партнер Нефть" [11:13:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:13:48]line СНО: Общий режим [11:13:48]line Чек 81 26.10.2024 11:14 [11:13:48]line Смена: 541 ФФД: 1.0 [11:13:48]line ЗНМ: 0300000110 [11:13:48]line РНМ: 0000000000091776 [11:13:48]line Версия ККМ: 001 [11:13:48]line ФМ: 0000000000871754 [11:13:48]line ФД: 191718 [11:13:48]line ФПД: 152853478179164 [11:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111401&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191718&fm=152853478179164&tin=02508201610067®Number=0000000000091776&sum=40000 [11:13:49]OFD Sender: Processing packet 191718 [packets to send 75, broken 74] [11:13:49]ProducePacketName [11:13:49]name=ofd_packets/00191718 [11:13:49]OFD Sender: To server: pG, [11:13:49]CommunicateWithHost lk.salyk.kg:30040 [11:13:49]ConnectInit lk.salyk.kg [11:13:49]written 0, free lines is 4095 [11:13:49]Connected sock=10 [11:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7D 94 07 01 C8 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F9 CE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EC 02 00 35 04 06 00 8B 04 F9 45 01 5C B7 B8 0A BF 83 D5 7F B9 [11:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB DE 47 00 97 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 EC 02 00 F4 03 04 00 C4 73 1C 67 B6 04 01 00 00 21 07 49 73 6D F0 23 AD [11:13:49]CommunicateWithHost err = 0 [11:13:49]CheckOFDResponse [11:13:49]1017 (14) - 77093643461234 [11:13:49]1041 (16) - 0000000000871754 [11:13:49]1040 (4) - 191718 [11:13:49]1012 (4) - 26.10.2024 04:44 [11:13:49]1206 (1) - 0 [11:13:49]OFD Sender: Remove packet 191718 [11:13:49]ProducePacketName [11:13:49]name=ofd_packets/00191718 [11:13:49]NVStorageDeleteData [11:13:49]Write to MH i2c: 01 00 00 6E F4 62 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 07 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 07 00 6E F4 00 00 00 00 00 A5 0C 1A [11:13:49]RasterBufferAndPrint [11:13:49]line [11:13:49]line [11:13:49]line [11:13:49]line [11:13:49]line [11:13:49]written 0, free lines is 3242 [11:13:49]MH_Cut [11:13:49]Write to MH i2c: D1 01 00 75 F4 01 3B [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: D1 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: D1 01 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: D1 01 00 75 F4 00 3A [11:13:49]Write to MH i2c: 01 00 00 76 F4 6A [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:50]OFD Sender: No OFD packet to send [11:13:50]*** Cut start [11:13:50]*** Partial cut [11:13:50]*** CUTSNS_PIN = 1 [11:13:50]*** CUTSNS_PIN = 0 [11:13:50]*** Brake cut motor [11:13:51]Read from MH i2c: 01 [11:13:51]MH_I2C_Read... [11:13:51]*** Stop cut motor [11:13:51]*** Cut end [11:13:51]Read from MH i2c: 01 07 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 76 F4 00 00 00 00 00 FF 0F 7F [11:13:51]process_action close_receipt done [11:13:51]requested_data is exist [11:13:51]produce_requested_data [11:13:51]requested_item fm.sn is exist - process it [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 11 00 00 [11:13:51]Write to MH i2c: E2 08 00 77 F4 80 11 00 00 00 00 00 00 E5 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 17 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 17 00 77 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 38 [11:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:13:51]wFMCommunicate OK [11:13:51]requested_item fd.num is exist - process it [11:13:51]SAM_PROTO_GetFieldsCounters [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 13 00 00 [11:13:51]Write to MH i2c: E2 08 00 78 F4 80 13 00 00 00 00 00 00 E8 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 62 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 62 00 78 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:13:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_GetFieldsCounters done [11:13:51]requested_item shift.num is exist - process it [11:13:51]requested_item shift.opened is exist - process it [11:13:51]req_shift_opened [11:13:51]FM_GetShiftState [11:13:51]SAM_PROTO_GetShiftState [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 13 01 00 [11:13:51]Write to MH i2c: E2 08 00 79 F4 80 13 01 00 00 00 00 00 EA [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0E 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0E 00 79 F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 63 [11:13:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_GetShiftState done [11:13:51]FM_GetShiftState done [11:13:51]req_shift_opened done [11:13:51]requested_item shift.open_date is exist - process it [11:13:51]req_shift_open_date [11:13:51]req_shift_open_date done [11:13:51]produce_requested_data done [11:13:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191718,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:13:51]process_action_free close_receipt [11:13:51]json_value_free [11:13:51]json_value_free done [11:13:51]process_json_proto returns [11:13:51]Send response to host [11:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191718,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:13:51]free response buf [11:13:51]execute_script done [11:13:51]execute_script returns [11:13:51]free content buf [11:13:51]Sock 9.Close socket [11:13:51]Sock 9.Thread stoped [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:19]accept exits with 8 [11:19:19]New connection [11:19:19]New thread 3066961252 created [11:19:19]Thread 3066817892 joined [11:19:19]Waiting for new connection... [11:19:19] Sock 8.Parse request [11:19:19]Sock 8.Check first char [11:19:19]Sock 8.First char is OK [11:19:19]request: POST /json_proto HTTP/1.0 [11:19:19]Method: POST [11:19:19]URL: /json_proto [11:19:19]Method is POST - this is cgi request [11:19:19]url: /json_proto [11:19:19]query_string will be loaded in cgi processing [11:19:19]execute_cgi json_proto POST (null) [11:19:19]execute_cgi path=json_proto method=POST [11:19:19]POST find Content-Length [11:19:19]Host: 172.17.63.131:8080 [11:19:19]Content-Length: 676 [11:19:19]Content-Type: application/json [11:19:19] [11:19:19]POST finish read [11:19:19]Found Content-Length = 676 [11:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:19]execute_script... [11:19: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)31021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:19]POST & json_proto [11:19:19]process_json_proto [11:19:19]json parsed OK: [11:19:19]protocol is kg_v1.0 [11:19:19]action value=close_receipt [11:19:19]process_action close_receipt [11:19:19]cmd_close_receipt [11:19:19]MH_GetDate [11:19:19]Write to MH i2c: F0 00 00 7A F4 5D [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 09 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: F0 09 00 7A F4 00 45 D0 1C 67 22 05 6E 64 F7 [11:19:19]GetLastDocTimeStamp 1729941241 [11:19:19]current date 1729941573 [11:19:19]FM_GetShiftState [11:19:19]SAM_PROTO_GetShiftState [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 01 00 [11:19:19]Write to MH i2c: E2 08 00 7B F4 80 13 01 00 00 00 00 00 EC [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 0E 00 7B F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 65 [11:19:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:19:19]wFMCommunicate OK [11:19:19]SAM_PROTO_GetShiftState done [11:19:19]FM_GetShiftState done [11:19:19]opened in 1729902770 [11:19:19]opened+sec_in_day 1729989170 [11:19:19]quantity*price = 50041 [11:19:19]sum+1 = 50042 [11:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 82 26.10.2024 11:19 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191719 ФПД: 9577473818848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111933&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191719&fm=9577473818848&tin=02508201610067®Number=0000000000091776&sum=50000 [11:19:20]StoreToDocumentArchive [11:19:20]shift 541 fd 191719 [11:19:20]save to /storage/0541/doc_00191719 [11:19:20]save last doc name /storage/0541/doc_00191719 to /storage/kkm_last_doc_name [11:19:20]save OK [11:19:20]Clear old archive folders... [11:19:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:20]tlvbuf is 01AA4F20 [11:19:20]SAM_PROTO_ClearQueue [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 09 00 00 [11:19:20]Write to MH i2c: E2 08 00 88 F4 80 09 00 00 00 00 00 00 EE [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 88 F4 00 90 00 F0 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_ClearQueue done [11:19:20]KKMCreateOFDPacket [11:19:20]OFDProtocolAddRootSTLVToBuf [11:19:20]FM_MakeSignedData [11:19:20]FM_MakeSignedData [11:19:20]SAM_PROTO_SignData [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 0D 01 02 [11:19:20]Write to MH i2c: E2 08 00 89 F4 80 0D 01 02 00 00 00 00 F6 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 89 F4 00 90 00 F1 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]wFMCommunicate request_size=255 [11:19:20]MH_SAM_APDU [11:19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 D0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EC 02 00 35 04 06 00 08 [11:19:20]Write to MH i2c: E2 02 01 8A F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 D0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EC 02 00 35 04 06 00 08 00 00 70 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]OFD Sender: No OFD packet to send [11:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 8A F4 00 90 00 F2 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]wFMCommunicate request_size=10 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 0D 02 02 05 B5 ED EC C0 E0 [11:19:20]Write to MH i2c: E2 0D 00 8B F4 80 0D 02 02 05 00 B5 ED EC C0 E0 00 00 31 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 03 00 8B F4 00 90 00 F3 [11:19:20]RAPDU: 90 00 [11:19:20]wFMCommunicate OK [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 0D 03 02 [11:19:20]Write to MH i2c: E2 08 00 8C F4 80 0D 03 02 00 00 00 00 FB [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0B 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0B 00 8C F4 00 FF 8D D1 9F 97 00 48 73 90 00 4A [11:19:20]RAPDU: FF 8D D1 9F 97 00 48 73 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_SignData done [11:19:20]FM_MakeSignedData done [11:19:20]CreateOFDProtocolMessage [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 11 00 00 [11:19:20]Write to MH i2c: E2 08 00 8D F4 80 11 00 00 00 00 00 00 FB [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 17 00 8D F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [11:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:19:20]wFMCommunicate OK [11:19:20]CreateOFDProtocolMessage done [11:19:20]OFDSenderStorePacket 191719 [11:19:20]StoreOFDPacket docnum=191719 [11:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 30 07 01 C5 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 D0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EC 02 00 35 04 06 00 08 B5 ED EC C0 E0 FF 8D D1 9F 97 00 48 73 [11:19:20]CheckFolder [11:19:20]dirname=/storage/ofd_packets [11:19:20]CheckFolder done [11:19:20]ProducePacketName [11:19:20]name=ofd_packets/00191719 [11:19:20]NVStorageSaveData ofd_packets/00191719 [11:19:20]File name is /storage/ofd_packets/00191719 [11:19:20]Write 301 bytes [11:19:20]NVStorageSaveData done [11:19:20]OFDSenderStorePacket done [11:19:20]KKMCreateOFDPacket done [11:19:20]NVStorageSaveData kkm_last_timestamp [11:19:20]File name is /storage/kkm_last_timestamp [11:19:20]Write 4 bytes [11:19:20]NVStorageSaveData done [11:19:20]ExternCall_PrintAddStr [11:19:20]wPrintStart [11:19:20]Write to MH i2c: 01 00 00 8E F4 82 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: 01 07 00 8E F4 00 00 00 00 00 FF 0F 97 [11:19:20]RasterBufferAndPrint [11:19:20]line Счет N : (1)31021 [11:19:20]line ИНН: 02508201610067 [11:19:20]line Контрольно-Кассовый Чек [11:19:20]line ПРОДАЖА [11:19:20]line ТРК (МРК, ГНК) : 21 [11:19:20]line Товар: 2710124130 [11:19:20]line Аи-92-К-5 [11:19:20]line 7.480 * 66.90 [11:19:20]line = 500.41 [11:19:20]line НДС 12% НСП 1% [11:19:20]line > о реализуемом товаре [11:19:20]line ОКРУГЛЕНИЕ: -0.41 [11:19:20]line ИТОГО: 500.00 [11:19:20]line Внесено: 500.00 [11:19:20]line СДАЧА: 0.00 [11:19:20]line НСП 1% : 4.43 [11:19:20]line НДС 12% : 53.14 [11:19:20]line Наличными: 500.00 [11:19:20]line Безнал.: 0.00 [11:19:20]line Место: АЗС № 170 "Партнер Нефть" [11:19:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:19:20]line СНО: Общий режим [11:19:20]line Чек 82 26.10.2024 11:19 [11:19:20]line Смена: 541 ФФД: 1.0 [11:19:20]line ЗНМ: 0300000110 [11:19:20]line РНМ: 0000000000091776 [11:19:20]line Версия ККМ: 001 [11:19:20]line ФМ: 0000000000871754 [11:19:20]line ФД: 191719 [11:19:20]line ФПД: 9577473818848 [11:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T111933&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191719&fm=9577473818848&tin=02508201610067®Number=0000000000091776&sum=50000 [11:19:21]OFD Sender: Processing packet 191719 [packets to send 75, broken 74] [11:19:21]ProducePacketName [11:19:21]name=ofd_packets/00191719 [11:19:21]OFD Sender: To server: pG, [11:19:21]CommunicateWithHost lk.salyk.kg:30040 [11:19:21]ConnectInit lk.salyk.kg [11:19:21]written 0, free lines is 4095 [11:19:21]Connected sock=10 [11:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8F 30 07 01 C5 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 45 D0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EC 02 00 35 04 06 00 08 B5 ED EC C0 E0 FF 8D D1 9F 97 00 48 73 [11:19:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A2 3C 47 00 10 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 EC 02 00 F4 03 04 00 10 75 1C 67 B6 04 01 00 00 A1 EE 4F 21 79 B1 4E 2B [11:19:21]CommunicateWithHost err = 0 [11:19:21]CheckOFDResponse [11:19:21]1017 (14) - 77093643461234 [11:19:21]1041 (16) - 0000000000871754 [11:19:21]1040 (4) - 191719 [11:19:21]1012 (4) - 26.10.2024 04:50 [11:19:21]1206 (1) - 0 [11:19:21]OFD Sender: Remove packet 191719 [11:19:21]ProducePacketName [11:19:21]name=ofd_packets/00191719 [11:19:21]NVStorageDeleteData [11:19:21]Write to MH i2c: 01 00 00 B9 F4 AD [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 07 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: 01 07 00 B9 F4 00 00 00 00 00 B8 0C 78 [11:19:21]RasterBufferAndPrint [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]line [11:19:21]written 0, free lines is 3263 [11:19:21]MH_Cut [11:19:21]Write to MH i2c: D1 01 00 C0 F4 01 86 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: D1 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: D1 01 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: D1 01 00 C0 F4 00 85 [11:19:21]Write to MH i2c: 01 00 00 C1 F4 B5 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]OFD Sender: No OFD packet to send [11:19:22]*** Cut start [11:19:22]*** Partial cut [11:19:22]*** CUTSNS_PIN = 1 [11:19:22]*** CUTSNS_PIN = 0 [11:19:22]*** Brake cut motor [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]*** Stop cut motor [11:19:22]*** Cut end [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 C1 F4 00 00 00 00 00 FF 0F CA [11:19:22]process_action close_receipt done [11:19:22]requested_data is exist [11:19:22]produce_requested_data [11:19:22]requested_item fm.sn is exist - process it [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 11 00 00 [11:19:22]Write to MH i2c: E2 08 00 C2 F4 80 11 00 00 00 00 00 00 30 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 17 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 17 00 C2 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [11:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:19:23]wFMCommunicate OK [11:19:23]requested_item fd.num is exist - process it [11:19:23]SAM_PROTO_GetFieldsCounters [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 13 00 00 [11:19:23]Write to MH i2c: E2 08 00 C3 F4 80 13 00 00 00 00 00 00 33 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 62 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 62 00 C3 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:19:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:23]wFMCommunicate OK [11:19:23]SAM_PROTO_GetFieldsCounters done [11:19:23]requested_item shift.num is exist - process it [11:19:23]requested_item shift.opened is exist - process it [11:19:23]req_shift_opened [11:19:23]FM_GetShiftState [11:19:23]SAM_PROTO_GetShiftState [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 13 01 00 [11:19:23]Write to MH i2c: E2 08 00 C4 F4 80 13 01 00 00 00 00 00 35 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 0E 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 0E 00 C4 F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AE [11:19:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:19:23]wFMCommunicate OK [11:19:23]SAM_PROTO_GetShiftState done [11:19:23]FM_GetShiftState done [11:19:23]req_shift_opened done [11:19:23]requested_item shift.open_date is exist - process it [11:19:23]req_shift_open_date [11:19:23]req_shift_open_date done [11:19:23]produce_requested_data done [11:19:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191719,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:19:23]process_action_free close_receipt [11:19:23]json_value_free [11:19:23]json_value_free done [11:19:23]process_json_proto returns [11:19:23]Send response to host [11:19:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191719,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:19:23]free response buf [11:19:23]execute_script done [11:19:23]execute_script returns [11:19:23]free content buf [11:19:23]Sock 8.Close socket [11:19:23]Sock 8.Thread stoped [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]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:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:51]accept exits with 9 [11:28:51]New connection [11:28:51]New thread 3066817892 created [11:28:51]Thread 3066961252 joined [11:28:51]Waiting for new connection... [11:28:51] Sock 9.Parse request [11:28:51]Sock 9.Check first char [11:28:51]Sock 9.First char is OK [11:28:51]request: POST /json_proto HTTP/1.0 [11:28:51]Method: POST [11:28:51]URL: /json_proto [11:28:51]Method is POST - this is cgi request [11:28:51]url: /json_proto [11:28:51]query_string will be loaded in cgi processing [11:28:51]execute_cgi json_proto POST (null) [11:28:51]execute_cgi path=json_proto method=POST [11:28:51]POST find Content-Length [11:28:51]Host: 172.17.63.131:8080 [11:28:51]Content-Length: 676 [11:28:51]Content-Type: application/json [11:28:51] [11:28:51]POST finish read [11:28:51]Found Content-Length = 676 [11:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:51]execute_script... [11:28: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)31022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:51]POST & json_proto [11:28:51]process_json_proto [11:28:51]json parsed OK: [11:28:51]protocol is kg_v1.0 [11:28:51]action value=close_receipt [11:28:51]process_action close_receipt [11:28:51]cmd_close_receipt [11:28:51]MH_GetDate [11:28:51]Write to MH i2c: F0 00 00 C5 F4 A8 [11:28:51]Write i2c OK [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: F0 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: F0 09 00 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: F0 09 00 C5 F4 00 81 D2 1C 67 22 05 6E 64 80 [11:28:51]GetLastDocTimeStamp 1729941573 [11:28:51]current date 1729942145 [11:28:51]FM_GetShiftState [11:28:51]SAM_PROTO_GetShiftState [11:28:51]wFMCommunicate request_size=4 [11:28:51]MH_SAM_APDU [11:28:51]CAPDU: 80 13 01 00 [11:28:51]Write to MH i2c: E2 08 00 C6 F4 80 13 01 00 00 00 00 00 37 [11:28:51]Write i2c OK [11:28:51]MH_I2C_Read... [11:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:51]Read from MH i2c: E2 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 0E 00 [11:28:51]MH_I2C_Read... [11:28:51]Read from MH i2c: E2 0E 00 C6 F4 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B0 [11:28:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:28:51]wFMCommunicate OK [11:28:51]SAM_PROTO_GetShiftState done [11:28:51]FM_GetShiftState done [11:28:51]opened in 1729902770 [11:28:51]opened+sec_in_day 1729989170 [11:28:51]quantity*price = 40006 [11:28:51]sum+1 = 40007 [11:28:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 83 26.10.2024 11:29 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191720 ФПД: 241213981328705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191720&fm=241213981328705&tin=02508201610067®Number=0000000000091776&sum=40000 [11:28:52]StoreToDocumentArchive [11:28:52]shift 541 fd 191720 [11:28:52]save to /storage/0541/doc_00191720 [11:28:52]save last doc name /storage/0541/doc_00191720 to /storage/kkm_last_doc_name [11:28:52]save OK [11:28:52]Clear old archive folders... [11:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:52]tlvbuf is 01708FB0 [11:28:52]SAM_PROTO_ClearQueue [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 09 00 00 [11:28:52]Write to MH i2c: E2 08 00 D3 F4 80 09 00 00 00 00 00 00 39 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 D3 F4 00 90 00 3B [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_ClearQueue done [11:28:52]KKMCreateOFDPacket [11:28:52]OFDProtocolAddRootSTLVToBuf [11:28:52]FM_MakeSignedData [11:28:52]FM_MakeSignedData [11:28:52]SAM_PROTO_SignData [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 01 02 [11:28:52]Write to MH i2c: E2 08 00 D4 F4 80 0D 01 02 00 00 00 00 41 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 D4 F4 00 90 00 3C [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]wFMCommunicate request_size=255 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EC 02 00 35 04 06 00 DB [11:28:52]Write to MH i2c: E2 02 01 D5 F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EC 02 00 35 04 06 00 DB 00 00 9D [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]OFD Sender: No OFD packet to send [11:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 D5 F4 00 90 00 3D [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]wFMCommunicate request_size=10 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 02 02 05 62 01 AC 05 41 [11:28:52]Write to MH i2c: E2 0D 00 D6 F4 80 0D 02 02 05 00 62 01 AC 05 41 00 00 A3 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 03 00 D6 F4 00 90 00 3E [11:28:52]RAPDU: 90 00 [11:28:52]wFMCommunicate OK [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 0D 03 02 [11:28:52]Write to MH i2c: E2 08 00 D7 F4 80 0D 03 02 00 00 00 00 46 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0B 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 0B 00 D7 F4 00 FB 1C 0D 23 43 6C 5D 16 90 00 B0 [11:28:52]RAPDU: FB 1C 0D 23 43 6C 5D 16 90 00 [11:28:52]wFMCommunicate OK [11:28:52]SAM_PROTO_SignData done [11:28:52]FM_MakeSignedData done [11:28:52]CreateOFDProtocolMessage [11:28:52]wFMCommunicate request_size=4 [11:28:52]MH_SAM_APDU [11:28:52]CAPDU: 80 11 00 00 [11:28:52]Write to MH i2c: E2 08 00 D8 F4 80 11 00 00 00 00 00 00 46 [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:52]Read from MH i2c: E2 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: E2 17 00 D8 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [11:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:52]wFMCommunicate OK [11:28:52]CreateOFDProtocolMessage done [11:28:52]OFDSenderStorePacket 191720 [11:28:52]StoreOFDPacket docnum=191720 [11:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AF 91 07 01 4C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EC 02 00 35 04 06 00 DB 62 01 AC 05 41 FB 1C 0D 23 43 6C 5D 16 [11:28:52]CheckFolder [11:28:52]dirname=/storage/ofd_packets [11:28:52]CheckFolder done [11:28:52]ProducePacketName [11:28:52]name=ofd_packets/00191720 [11:28:52]NVStorageSaveData ofd_packets/00191720 [11:28:52]File name is /storage/ofd_packets/00191720 [11:28:52]Write 301 bytes [11:28:52]NVStorageSaveData done [11:28:52]OFDSenderStorePacket done [11:28:52]KKMCreateOFDPacket done [11:28:52]NVStorageSaveData kkm_last_timestamp [11:28:52]File name is /storage/kkm_last_timestamp [11:28:52]Write 4 bytes [11:28:52]NVStorageSaveData done [11:28:52]ExternCall_PrintAddStr [11:28:52]wPrintStart [11:28:52]Write to MH i2c: 01 00 00 D9 F4 CD [11:28:52]Write i2c OK [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 [11:28:52]MH_I2C_Read... [11:28:52]Read from MH i2c: 01 07 00 D9 F4 00 00 00 00 00 FF 0F E2 [11:28:52]RasterBufferAndPrint [11:28:52]line Счет N : (1)31022 [11:28:52]line ИНН: 02508201610067 [11:28:52]line Контрольно-Кассовый Чек [11:28:52]line ПРОДАЖА [11:28:52]line ТРК (МРК, ГНК) : 12 [11:28:52]line Товар: 2710124130 [11:28:52]line Аи-92-К-5 [11:28:52]line 5.980 * 66.90 [11:28:52]line = 400.06 [11:28:52]line НДС 12% НСП 1% [11:28:52]line > о реализуемом товаре [11:28:52]line ОКРУГЛЕНИЕ: -0.06 [11:28:52]line ИТОГО: 400.00 [11:28:52]line Внесено: 400.00 [11:28:52]line СДАЧА: 0.00 [11:28:52]line НСП 1% : 3.54 [11:28:52]line НДС 12% : 42.48 [11:28:52]line Наличными: 400.00 [11:28:52]line Безнал.: 0.00 [11:28:52]line Место: АЗС № 170 "Партнер Нефть" [11:28:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:28:52]line СНО: Общий режим [11:28:52]line Чек 83 26.10.2024 11:29 [11:28:52]line Смена: 541 ФФД: 1.0 [11:28:52]line ЗНМ: 0300000110 [11:28:52]line РНМ: 0000000000091776 [11:28:52]line Версия ККМ: 001 [11:28:52]line ФМ: 0000000000871754 [11:28:52]line ФД: 191720 [11:28:52]line ФПД: 241213981328705 [11:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T112905&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191720&fm=241213981328705&tin=02508201610067®Number=0000000000091776&sum=40000 [11:28:52]written 0, free lines is 4095 [11:28:52]OFD Sender: Processing packet 191720 [packets to send 75, broken 74] [11:28:52]ProducePacketName [11:28:52]name=ofd_packets/00191720 [11:28:52]OFD Sender: To server: pG, [11:28:52]CommunicateWithHost lk.salyk.kg:30040 [11:28:52]ConnectInit lk.salyk.kg [11:28:52]Connected sock=11 [11:28:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AF 91 07 01 4C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 81 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EC 02 00 35 04 06 00 DB 62 01 AC 05 41 FB 1C 0D 23 43 6C 5D 16 [11:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 49 47 00 8C 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 EC 02 00 F4 03 04 00 4C 77 1C 67 B6 04 01 00 00 9B B7 54 48 91 A2 1C 9D [11:28:53]CommunicateWithHost err = 0 [11:28:53]CheckOFDResponse [11:28:53]1017 (14) - 77093643461234 [11:28:53]1041 (16) - 0000000000871754 [11:28:53]1040 (4) - 191720 [11:28:53]1012 (4) - 26.10.2024 04:59 [11:28:53]1206 (1) - 0 [11:28:53]OFD Sender: Remove packet 191720 [11:28:53]ProducePacketName [11:28:53]name=ofd_packets/00191720 [11:28:53]NVStorageDeleteData [11:28:53]Write to MH i2c: 01 00 00 04 F5 F9 [11:28:53]Write i2c OK [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: 01 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: 01 07 00 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: 01 07 00 04 F5 00 00 00 00 00 B3 0C BF [11:28:53]RasterBufferAndPrint [11:28:53]line [11:28:53]line [11:28:53]line [11:28:53]line [11:28:53]line [11:28:53]written 0, free lines is 3258 [11:28:53]MH_Cut [11:28:53]Write to MH i2c: D1 01 00 0B F5 01 D2 [11:28:53]Write i2c OK [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: D1 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: D1 01 00 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: D1 01 00 0B F5 00 D1 [11:28:53]Write to MH i2c: 01 00 00 0C F5 01 [11:28:53]Write i2c OK [11:28:53]MH_I2C_Read... [11:28:53]OFD Sender: No OFD packet to send [11:28:54]*** Cut start [11:28:54]*** Partial cut [11:28:54]*** CUTSNS_PIN = 1 [11:28:54]*** CUTSNS_PIN = 0 [11:28:54]*** Brake cut motor [11:28:54]Read from MH i2c: 01 [11:28:54]MH_I2C_Read... [11:28:54]*** Stop cut motor [11:28:54]*** Cut end [11:28:54]Read from MH i2c: 01 07 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: 01 07 00 0C F5 00 00 00 00 00 FF 0F 16 [11:28:54]process_action close_receipt done [11:28:54]requested_data is exist [11:28:54]produce_requested_data [11:28:54]requested_item fm.sn is exist - process it [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 11 00 00 [11:28:54]Write to MH i2c: E2 08 00 0D F5 80 11 00 00 00 00 00 00 7C [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 17 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 17 00 0D F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [11:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:28:54]wFMCommunicate OK [11:28:54]requested_item fd.num is exist - process it [11:28:54]SAM_PROTO_GetFieldsCounters [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 13 00 00 [11:28:54]Write to MH i2c: E2 08 00 0E F5 80 13 00 00 00 00 00 00 7F [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 62 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 62 00 0E F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:28:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:54]wFMCommunicate OK [11:28:54]SAM_PROTO_GetFieldsCounters done [11:28:54]requested_item shift.num is exist - process it [11:28:54]requested_item shift.opened is exist - process it [11:28:54]req_shift_opened [11:28:54]FM_GetShiftState [11:28:54]SAM_PROTO_GetShiftState [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 13 01 00 [11:28:54]Write to MH i2c: E2 08 00 0F F5 80 13 01 00 00 00 00 00 81 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 0E 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 0E 00 0F F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FA [11:28:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:28:54]wFMCommunicate OK [11:28:54]SAM_PROTO_GetShiftState done [11:28:54]FM_GetShiftState done [11:28:54]req_shift_opened done [11:28:54]requested_item shift.open_date is exist - process it [11:28:54]req_shift_open_date [11:28:54]req_shift_open_date done [11:28:54]produce_requested_data done [11:28:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191720,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:28:54]process_action_free close_receipt [11:28:54]json_value_free [11:28:54]json_value_free done [11:28:54]process_json_proto returns [11:28:54]Send response to host [11:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191720,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:28:54]free response buf [11:28:54]execute_script done [11:28:54]execute_script returns [11:28:54]free content buf [11:28:54]Sock 9.Close socket [11:28:54]Sock 9.Thread stoped [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:32]accept exits with 8 [11:30:32]New connection [11:30:32]New thread 3066961252 created [11:30:32]Thread 3066817892 joined [11:30:32]Waiting for new connection... [11:30:32] Sock 8.Parse request [11:30:32]Sock 8.Check first char [11:30:32]Sock 8.First char is OK [11:30:32]request: POST /json_proto HTTP/1.0 [11:30:32]Method: POST [11:30:32]URL: /json_proto [11:30:32]Method is POST - this is cgi request [11:30:32]url: /json_proto [11:30:32]query_string will be loaded in cgi processing [11:30:32]execute_cgi json_proto POST (null) [11:30:32]execute_cgi path=json_proto method=POST [11:30:32]POST find Content-Length [11:30:32]Host: 172.17.63.131:8080 [11:30:32]Content-Length: 676 [11:30:32]Content-Type: application/json [11:30:32] [11:30:32]POST finish read [11:30:32]Found Content-Length = 676 [11:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:32]execute_script... [11:30: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)31023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:32]POST & json_proto [11:30:32]process_json_proto [11:30:32]json parsed OK: [11:30:32]protocol is kg_v1.0 [11:30:32]action value=close_receipt [11:30:32]process_action close_receipt [11:30:32]cmd_close_receipt [11:30:32]MH_GetDate [11:30:32]Write to MH i2c: F0 00 00 10 F5 F4 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 09 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: F0 09 00 10 F5 00 E6 D2 1C 67 22 05 6E 64 31 [11:30:32]GetLastDocTimeStamp 1729942145 [11:30:32]current date 1729942246 [11:30:32]FM_GetShiftState [11:30:32]SAM_PROTO_GetShiftState [11:30:32]wFMCommunicate request_size=4 [11:30:32]MH_SAM_APDU [11:30:32]CAPDU: 80 13 01 00 [11:30:32]Write to MH i2c: E2 08 00 11 F5 80 13 01 00 00 00 00 00 83 [11:30:32]Write i2c OK [11:30:32]MH_I2C_Read... [11:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:32]Read from MH i2c: E2 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 [11:30:32]MH_I2C_Read... [11:30:32]Read from MH i2c: E2 0E 00 11 F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FC [11:30:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:30:32]wFMCommunicate OK [11:30:32]SAM_PROTO_GetShiftState done [11:30:32]FM_GetShiftState done [11:30:32]opened in 1729902770 [11:30:32]opened+sec_in_day 1729989170 [11:30:32]quantity*price = 20003 [11:30:32]sum+1 = 20004 [11:30:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 84 26.10.2024 11:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191721 ФПД: 246183007018906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191721&fm=246183007018906&tin=02508201610067®Number=0000000000091776&sum=20000 [11:30:33]StoreToDocumentArchive [11:30:33]shift 541 fd 191721 [11:30:33]save to /storage/0541/doc_00191721 [11:30:33]save last doc name /storage/0541/doc_00191721 to /storage/kkm_last_doc_name [11:30:33]save OK [11:30:33]Clear old archive folders... [11:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:33]tlvbuf is 019D4B10 [11:30:33]SAM_PROTO_ClearQueue [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 09 00 00 [11:30:33]Write to MH i2c: E2 08 00 1E F5 80 09 00 00 00 00 00 00 85 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 1E F5 00 90 00 87 [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_ClearQueue done [11:30:33]KKMCreateOFDPacket [11:30:33]OFDProtocolAddRootSTLVToBuf [11:30:33]FM_MakeSignedData [11:30:33]FM_MakeSignedData [11:30:33]SAM_PROTO_SignData [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 0D 01 02 [11:30:33]Write to MH i2c: E2 08 00 1F F5 80 0D 01 02 00 00 00 00 8D [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 1F F5 00 90 00 88 [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]wFMCommunicate request_size=255 [11:30:33]MH_SAM_APDU [11:30: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EC 02 00 35 04 06 00 DF [11:30:33]Write to MH i2c: E2 02 01 20 F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EC 02 00 35 04 06 00 DF 00 00 47 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:33]OFD Sender: No OFD packet to send [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 20 F5 00 90 00 89 [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]wFMCommunicate request_size=10 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 0D 02 02 05 E6 F2 AE DF 9A [11:30:33]Write to MH i2c: E2 0D 00 21 F5 80 0D 02 02 05 00 E6 F2 AE DF 9A 00 00 99 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 03 00 21 F5 00 90 00 8A [11:30:33]RAPDU: 90 00 [11:30:33]wFMCommunicate OK [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 0D 03 02 [11:30:33]Write to MH i2c: E2 08 00 22 F5 80 0D 03 02 00 00 00 00 92 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0B 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0B 00 22 F5 00 D8 15 59 CD 63 6D 30 DA 90 00 80 [11:30:33]RAPDU: D8 15 59 CD 63 6D 30 DA 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_SignData done [11:30:33]FM_MakeSignedData done [11:30:33]CreateOFDProtocolMessage [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 11 00 00 [11:30:33]Write to MH i2c: E2 08 00 23 F5 80 11 00 00 00 00 00 00 92 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 17 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 17 00 23 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [11:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:30:33]wFMCommunicate OK [11:30:33]CreateOFDProtocolMessage done [11:30:33]OFDSenderStorePacket 191721 [11:30:33]StoreOFDPacket docnum=191721 [11:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F A5 07 01 FC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EC 02 00 35 04 06 00 DF E6 F2 AE DF 9A D8 15 59 CD 63 6D 30 DA [11:30:33]CheckFolder [11:30:33]dirname=/storage/ofd_packets [11:30:33]CheckFolder done [11:30:33]ProducePacketName [11:30:33]name=ofd_packets/00191721 [11:30:33]NVStorageSaveData ofd_packets/00191721 [11:30:33]File name is /storage/ofd_packets/00191721 [11:30:33]Write 301 bytes [11:30:33]NVStorageSaveData done [11:30:33]OFDSenderStorePacket done [11:30:33]KKMCreateOFDPacket done [11:30:33]NVStorageSaveData kkm_last_timestamp [11:30:33]File name is /storage/kkm_last_timestamp [11:30:33]Write 4 bytes [11:30:33]NVStorageSaveData done [11:30:33]ExternCall_PrintAddStr [11:30:33]wPrintStart [11:30:33]Write to MH i2c: 01 00 00 24 F5 19 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: 01 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: 01 07 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: 01 07 00 24 F5 00 00 00 00 00 FF 0F 2E [11:30:33]RasterBufferAndPrint [11:30:33]line Счет N : (1)31023 [11:30:33]line ИНН: 02508201610067 [11:30:33]line Контрольно-Кассовый Чек [11:30:33]line ПРОДАЖА [11:30:33]line ТРК (МРК, ГНК) : 12 [11:30:33]line Товар: 2710124130 [11:30:33]line Аи-92-К-5 [11:30:33]line 2.990 * 66.90 [11:30:33]line = 200.03 [11:30:33]line НДС 12% НСП 1% [11:30:33]line > о реализуемом товаре [11:30:33]line ОКРУГЛЕНИЕ: -0.03 [11:30:33]line ИТОГО: 200.00 [11:30:33]line Внесено: 200.00 [11:30:33]line СДАЧА: 0.00 [11:30:33]line НСП 1% : 1.77 [11:30:33]line НДС 12% : 21.24 [11:30:33]line Наличными: 200.00 [11:30:33]line Безнал.: 0.00 [11:30:33]line Место: АЗС № 170 "Партнер Нефть" [11:30:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:30:33]line СНО: Общий режим [11:30:33]line Чек 84 26.10.2024 11:30 [11:30:33]line Смена: 541 ФФД: 1.0 [11:30:33]line ЗНМ: 0300000110 [11:30:33]line РНМ: 0000000000091776 [11:30:33]line Версия ККМ: 001 [11:30:33]line ФМ: 0000000000871754 [11:30:33]line ФД: 191721 [11:30:33]line ФПД: 246183007018906 [11:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191721&fm=246183007018906&tin=02508201610067®Number=0000000000091776&sum=20000 [11:30:34]OFD Sender: Processing packet 191721 [packets to send 75, broken 74] [11:30:34]ProducePacketName [11:30:34]name=ofd_packets/00191721 [11:30:34]OFD Sender: To server: pG, [11:30:34]CommunicateWithHost lk.salyk.kg:30040 [11:30:34]ConnectInit lk.salyk.kg [11:30:34]written 0, free lines is 4095 [11:30:34]Connected sock=10 [11:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7F A5 07 01 FC 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 E6 D2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EC 02 00 35 04 06 00 DF E6 F2 AE DF 9A D8 15 59 CD 63 6D 30 DA [11:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7B 98 47 00 E5 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 EC 02 00 F4 03 04 00 B1 77 1C 67 B6 04 01 00 00 33 E1 25 11 1C 45 E0 7B [11:30:34]CommunicateWithHost err = 0 [11:30:34]CheckOFDResponse [11:30:34]1017 (14) - 77093643461234 [11:30:34]1041 (16) - 0000000000871754 [11:30:34]1040 (4) - 191721 [11:30:34]1012 (4) - 26.10.2024 05:01 [11:30:34]1206 (1) - 0 [11:30:34]OFD Sender: Remove packet 191721 [11:30:34]ProducePacketName [11:30:34]name=ofd_packets/00191721 [11:30:34]NVStorageDeleteData [11:30:34]Write to MH i2c: 01 00 00 4F F5 44 [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 07 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: 01 07 00 4F F5 00 00 00 00 00 AB 0C 02 [11:30:34]RasterBufferAndPrint [11:30:34]line [11:30:34]line [11:30:34]line [11:30:34]line [11:30:34]line [11:30:34]written 0, free lines is 3250 [11:30:34]MH_Cut [11:30:34]Write to MH i2c: D1 01 00 56 F5 01 1D [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: D1 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: D1 01 00 [11:30:34]MH_I2C_Read... [11:30:34]Read from MH i2c: D1 01 00 56 F5 00 1C [11:30:34]Write to MH i2c: 01 00 00 57 F5 4C [11:30:34]Write i2c OK [11:30:34]MH_I2C_Read... [11:30:35]OFD Sender: No OFD packet to send [11:30:35]*** Cut start [11:30:35]*** Partial cut [11:30:35]*** CUTSNS_PIN = 1 [11:30:35]*** CUTSNS_PIN = 0 [11:30:35]*** Brake cut motor [11:30:36]Read from MH i2c: 01 [11:30:36]MH_I2C_Read... [11:30:36]*** Stop cut motor [11:30:36]*** Cut end [11:30:36]Read from MH i2c: 01 07 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 57 F5 00 00 00 00 00 FF 0F 61 [11:30:36]process_action close_receipt done [11:30:36]requested_data is exist [11:30:36]produce_requested_data [11:30:36]requested_item fm.sn is exist - process it [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 11 00 00 [11:30:36]Write to MH i2c: E2 08 00 58 F5 80 11 00 00 00 00 00 00 C7 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 17 00 58 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [11:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:30:36]wFMCommunicate OK [11:30:36]requested_item fd.num is exist - process it [11:30:36]SAM_PROTO_GetFieldsCounters [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 13 00 00 [11:30:36]Write to MH i2c: E2 08 00 59 F5 80 13 00 00 00 00 00 00 CA [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 62 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 62 00 59 F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:30:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_GetFieldsCounters done [11:30:36]requested_item shift.num is exist - process it [11:30:36]requested_item shift.opened is exist - process it [11:30:36]req_shift_opened [11:30:36]FM_GetShiftState [11:30:36]SAM_PROTO_GetShiftState [11:30:36]wFMCommunicate request_size=4 [11:30:36]MH_SAM_APDU [11:30:36]CAPDU: 80 13 01 00 [11:30:36]Write to MH i2c: E2 08 00 5A F5 80 13 01 00 00 00 00 00 CC [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:36]Read from MH i2c: E2 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0E 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: E2 0E 00 5A F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 45 [11:30:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:30:36]wFMCommunicate OK [11:30:36]SAM_PROTO_GetShiftState done [11:30:36]FM_GetShiftState done [11:30:36]req_shift_opened done [11:30:36]requested_item shift.open_date is exist - process it [11:30:36]req_shift_open_date [11:30:36]req_shift_open_date done [11:30:36]produce_requested_data done [11:30:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191721,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:30:36]process_action_free close_receipt [11:30:36]json_value_free [11:30:36]json_value_free done [11:30:36]process_json_proto returns [11:30:36]Send response to host [11:30:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191721,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:30:36]free response buf [11:30:36]execute_script done [11:30:36]execute_script returns [11:30:36]free content buf [11:30:36]Sock 8.Close socket [11:30:36]Sock 8.Thread stoped [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:10]accept exits with 9 [11:32:10]New connection [11:32:10]New thread 3066817892 created [11:32:10]Thread 3066961252 joined [11:32:10]Waiting for new connection... [11:32:10] Sock 9.Parse request [11:32:10]Sock 9.Check first char [11:32:10]Sock 9.First char is OK [11:32:10]request: POST /json_proto HTTP/1.0 [11:32:10]Method: POST [11:32:10]URL: /json_proto [11:32:10]Method is POST - this is cgi request [11:32:10]url: /json_proto [11:32:10]query_string will be loaded in cgi processing [11:32:10]execute_cgi json_proto POST (null) [11:32:10]execute_cgi path=json_proto method=POST [11:32:10]POST find Content-Length [11:32:10]Host: 172.17.63.131:8080 [11:32:10]Content-Length: 676 [11:32:10]Content-Type: application/json [11:32:10] [11:32:10]POST finish read [11:32:10]Found Content-Length = 676 [11:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:10]execute_script... [11:32: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)31025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:10]POST & json_proto [11:32:10]process_json_proto [11:32:10]json parsed OK: [11:32:10]protocol is kg_v1.0 [11:32:10]action value=close_receipt [11:32:10]process_action close_receipt [11:32:10]cmd_close_receipt [11:32:10]MH_GetDate [11:32:10]Write to MH i2c: F0 00 00 5B F5 3F [11:32:10]Write i2c OK [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: F0 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: F0 09 00 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: F0 09 00 5B F5 00 49 D3 1C 67 22 05 6E 64 E0 [11:32:10]GetLastDocTimeStamp 1729942246 [11:32:10]current date 1729942345 [11:32:10]FM_GetShiftState [11:32:10]SAM_PROTO_GetShiftState [11:32:10]wFMCommunicate request_size=4 [11:32:10]MH_SAM_APDU [11:32:10]CAPDU: 80 13 01 00 [11:32:10]Write to MH i2c: E2 08 00 5C F5 80 13 01 00 00 00 00 00 CE [11:32:10]Write i2c OK [11:32:10]MH_I2C_Read... [11:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:11]Read from MH i2c: E2 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 0E 00 [11:32:11]MH_I2C_Read... [11:32:11]Read from MH i2c: E2 0E 00 5C F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 47 [11:32:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:32:11]wFMCommunicate OK [11:32:11]SAM_PROTO_GetShiftState done [11:32:11]FM_GetShiftState done [11:32:11]opened in 1729902770 [11:32:11]opened+sec_in_day 1729989170 [11:32:11]quantity*price = 30038 [11:32:11]sum+1 = 30039 [11:32:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 85 26.10.2024 11:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191722 ФПД: 191671737640251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191722&fm=191671737640251&tin=02508201610067®Number=0000000000091776&sum=30000 [11:32:12]StoreToDocumentArchive [11:32:12]shift 541 fd 191722 [11:32:12]save to /storage/0541/doc_00191722 [11:32:12]save last doc name /storage/0541/doc_00191722 to /storage/kkm_last_doc_name [11:32:12]save OK [11:32:12]Clear old archive folders... [11:32:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:12]tlvbuf is 017F1960 [11:32:12]SAM_PROTO_ClearQueue [11:32:12]wFMCommunicate request_size=4 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 09 00 00 [11:32:12]Write to MH i2c: E2 08 00 69 F5 80 09 00 00 00 00 00 00 D0 [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 69 F5 00 90 00 D2 [11:32:12]RAPDU: 90 00 [11:32:12]wFMCommunicate OK [11:32:12]SAM_PROTO_ClearQueue done [11:32:12]KKMCreateOFDPacket [11:32:12]OFDProtocolAddRootSTLVToBuf [11:32:12]FM_MakeSignedData [11:32:12]FM_MakeSignedData [11:32:12]SAM_PROTO_SignData [11:32:12]wFMCommunicate request_size=4 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 0D 01 02 [11:32:12]Write to MH i2c: E2 08 00 6A F5 80 0D 01 02 00 00 00 00 D8 [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 6A F5 00 90 00 D3 [11:32:12]RAPDU: 90 00 [11:32:12]wFMCommunicate OK [11:32:12]wFMCommunicate request_size=255 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EC 02 00 35 04 06 00 AE [11:32:12]Write to MH i2c: E2 02 01 6B F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EC 02 00 35 04 06 00 AE 00 00 F9 [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 6B F5 00 90 00 D4 [11:32:12]RAPDU: 90 00 [11:32:12]wFMCommunicate OK [11:32:12]wFMCommunicate request_size=10 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 0D 02 02 05 53 0D D5 E5 3B [11:32:12]Write to MH i2c: E2 0D 00 6C F5 80 0D 02 02 05 00 53 0D D5 E5 3B 00 00 3A [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 03 00 6C F5 00 90 00 D5 [11:32:12]RAPDU: 90 00 [11:32:12]wFMCommunicate OK [11:32:12]wFMCommunicate request_size=4 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 0D 03 02 [11:32:12]Write to MH i2c: E2 08 00 6D F5 80 0D 03 02 00 00 00 00 DD [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 0B 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 0B 00 6D F5 00 06 B6 3A 28 03 B9 12 49 90 00 13 [11:32:12]RAPDU: 06 B6 3A 28 03 B9 12 49 90 00 [11:32:12]wFMCommunicate OK [11:32:12]SAM_PROTO_SignData done [11:32:12]FM_MakeSignedData done [11:32:12]CreateOFDProtocolMessage [11:32:12]wFMCommunicate request_size=4 [11:32:12]MH_SAM_APDU [11:32:12]CAPDU: 80 11 00 00 [11:32:12]Write to MH i2c: E2 08 00 6E F5 80 11 00 00 00 00 00 00 DD [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:12]Read from MH i2c: E2 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 17 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: E2 17 00 6E F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [11:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:12]wFMCommunicate OK [11:32:12]CreateOFDProtocolMessage done [11:32:12]OFDSenderStorePacket 191722 [11:32:12]StoreOFDPacket docnum=191722 [11:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 C9 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EC 02 00 35 04 06 00 AE 53 0D D5 E5 3B 06 B6 3A 28 03 B9 12 49 [11:32:12]CheckFolder [11:32:12]dirname=/storage/ofd_packets [11:32:12]CheckFolder done [11:32:12]ProducePacketName [11:32:12]name=ofd_packets/00191722 [11:32:12]NVStorageSaveData ofd_packets/00191722 [11:32:12]File name is /storage/ofd_packets/00191722 [11:32:12]Write 301 bytes [11:32:12]NVStorageSaveData done [11:32:12]OFDSenderStorePacket done [11:32:12]KKMCreateOFDPacket done [11:32:12]NVStorageSaveData kkm_last_timestamp [11:32:12]File name is /storage/kkm_last_timestamp [11:32:12]Write 4 bytes [11:32:12]NVStorageSaveData done [11:32:12]ExternCall_PrintAddStr [11:32:12]wPrintStart [11:32:12]Write to MH i2c: 01 00 00 6F F5 64 [11:32:12]Write i2c OK [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: 01 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: 01 07 00 [11:32:12]MH_I2C_Read... [11:32:12]Read from MH i2c: 01 07 00 6F F5 00 00 00 00 00 FF 0F 79 [11:32:12]RasterBufferAndPrint [11:32:12]line Счет N : (1)31025 [11:32:12]line ИНН: 02508201610067 [11:32:12]line Контрольно-Кассовый Чек [11:32:12]line ПРОДАЖА [11:32:12]line ТРК (МРК, ГНК) : 21 [11:32:12]line Товар: 2710124130 [11:32:12]line Аи-92-К-5 [11:32:12]line 4.490 * 66.90 [11:32:12]line = 300.38 [11:32:12]line НДС 12% НСП 1% [11:32:12]line > о реализуемом товаре [11:32:12]line ОКРУГЛЕНИЕ: -0.38 [11:32:12]line ИТОГО: 300.00 [11:32:12]line Внесено: 300.00 [11:32:12]line СДАЧА: 0.00 [11:32:12]line НСП 1% : 2.66 [11:32:12]line НДС 12% : 31.90 [11:32:12]line Наличными: 300.00 [11:32:12]line Безнал.: 0.00 [11:32:12]line Место: АЗС № 170 "Партнер Нефть" [11:32:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:32:12]line СНО: Общий режим [11:32:12]line Чек 85 26.10.2024 11:32 [11:32:12]line Смена: 541 ФФД: 1.0 [11:32:12]line ЗНМ: 0300000110 [11:32:12]line РНМ: 0000000000091776 [11:32:12]line Версия ККМ: 001 [11:32:12]line ФМ: 0000000000871754 [11:32:12]line ФД: 191722 [11:32:12]line ФПД: 191671737640251 [11:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113225&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191722&fm=191671737640251&tin=02508201610067®Number=0000000000091776&sum=30000 [11:32:12]written 0, free lines is 4095 [11:32:12]OFD Sender: Processing packet 191722 [packets to send 75, broken 74] [11:32:12]ProducePacketName [11:32:12]name=ofd_packets/00191722 [11:32:12]OFD Sender: To server: pG, [11:32:12]CommunicateWithHost lk.salyk.kg:30040 [11:32:12]ConnectInit lk.salyk.kg [11:32:12]Connected sock=10 [11:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 83 C9 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 49 D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EC 02 00 35 04 06 00 AE 53 0D D5 E5 3B 06 B6 3A 28 03 B9 12 49 [11:32:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 23 47 00 73 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA EC 02 00 F4 03 04 00 14 78 1C 67 B6 04 01 00 00 4B 3A 7E E3 1F 16 ED 60 [11:32:13]CommunicateWithHost err = 0 [11:32:13]CheckOFDResponse [11:32:13]1017 (14) - 77093643461234 [11:32:13]1041 (16) - 0000000000871754 [11:32:13]1040 (4) - 191722 [11:32:13]1012 (4) - 26.10.2024 05:03 [11:32:13]1206 (1) - 0 [11:32:13]OFD Sender: Remove packet 191722 [11:32:13]ProducePacketName [11:32:13]name=ofd_packets/00191722 [11:32:13]NVStorageDeleteData [11:32:13]Write to MH i2c: 01 00 00 9A F5 8F [11:32:13]Write i2c OK [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: 01 [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: 01 07 00 [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: 01 07 00 9A F5 00 00 00 00 00 AF 0C 51 [11:32:13]RasterBufferAndPrint [11:32:13]line [11:32:13]line [11:32:13]line [11:32:13]line [11:32:13]line [11:32:13]written 0, free lines is 3255 [11:32:13]MH_Cut [11:32:13]Write to MH i2c: D1 01 00 A1 F5 01 68 [11:32:13]Write i2c OK [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: D1 [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: D1 01 00 [11:32:13]MH_I2C_Read... [11:32:13]Read from MH i2c: D1 01 00 A1 F5 00 67 [11:32:13]Write to MH i2c: 01 00 00 A2 F5 97 [11:32:13]Write i2c OK [11:32:13]MH_I2C_Read... [11:32:13]OFD Sender: No OFD packet to send [11:32:13]*** Cut start [11:32:13]*** Partial cut [11:32:13]*** CUTSNS_PIN = 1 [11:32:13]*** CUTSNS_PIN = 0 [11:32:14]*** Brake cut motor [11:32:14]Read from MH i2c: 01 [11:32:14]MH_I2C_Read... [11:32:14]*** Stop cut motor [11:32:14]*** Cut end [11:32:14]Read from MH i2c: 01 07 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: 01 07 00 A2 F5 00 00 00 00 00 FF 0F AC [11:32:14]process_action close_receipt done [11:32:14]requested_data is exist [11:32:14]produce_requested_data [11:32:14]requested_item fm.sn is exist - process it [11:32:14]wFMCommunicate request_size=4 [11:32:14]MH_SAM_APDU [11:32:14]CAPDU: 80 11 00 00 [11:32:14]Write to MH i2c: E2 08 00 A3 F5 80 11 00 00 00 00 00 00 12 [11:32:14]Write i2c OK [11:32:14]MH_I2C_Read... [11:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:14]Read from MH i2c: E2 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 17 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 17 00 A3 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [11:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:14]wFMCommunicate OK [11:32:14]requested_item fd.num is exist - process it [11:32:14]SAM_PROTO_GetFieldsCounters [11:32:14]wFMCommunicate request_size=4 [11:32:14]MH_SAM_APDU [11:32:14]CAPDU: 80 13 00 00 [11:32:14]Write to MH i2c: E2 08 00 A4 F5 80 13 00 00 00 00 00 00 15 [11:32:14]Write i2c OK [11:32:14]MH_I2C_Read... [11:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:14]Read from MH i2c: E2 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 62 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 62 00 A4 F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [11:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:14]wFMCommunicate OK [11:32:14]SAM_PROTO_GetFieldsCounters done [11:32:14]requested_item shift.num is exist - process it [11:32:14]requested_item shift.opened is exist - process it [11:32:14]req_shift_opened [11:32:14]FM_GetShiftState [11:32:14]SAM_PROTO_GetShiftState [11:32:14]wFMCommunicate request_size=4 [11:32:14]MH_SAM_APDU [11:32:14]CAPDU: 80 13 01 00 [11:32:14]Write to MH i2c: E2 08 00 A5 F5 80 13 01 00 00 00 00 00 17 [11:32:14]Write i2c OK [11:32:14]MH_I2C_Read... [11:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:14]Read from MH i2c: E2 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 0E 00 [11:32:14]MH_I2C_Read... [11:32:14]Read from MH i2c: E2 0E 00 A5 F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 90 [11:32:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:32:14]wFMCommunicate OK [11:32:14]SAM_PROTO_GetShiftState done [11:32:14]FM_GetShiftState done [11:32:14]req_shift_opened done [11:32:14]requested_item shift.open_date is exist - process it [11:32:14]req_shift_open_date [11:32:14]req_shift_open_date done [11:32:14]produce_requested_data done [11:32:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191722,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:32:14]process_action_free close_receipt [11:32:14]json_value_free [11:32:14]json_value_free done [11:32:14]process_json_proto returns [11:32:14]Send response to host [11:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191722,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:32:14]free response buf [11:32:14]execute_script done [11:32:14]execute_script returns [11:32:14]free content buf [11:32:14]Sock 9.Close socket [11:32:14]Sock 9.Thread stoped [11:32:15]accept exits with 8 [11:32:15]New connection [11:32:15]New thread 3066961252 created [11:32:15]Thread 3066817892 joined [11:32:15]Waiting for new connection... [11:32:15] Sock 8.Parse request [11:32:15]Sock 8.Check first char [11:32:15]Sock 8.First char is OK [11:32:15]request: POST /json_proto HTTP/1.0 [11:32:15]Method: POST [11:32:15]URL: /json_proto [11:32:15]Method is POST - this is cgi request [11:32:15]url: /json_proto [11:32:15]query_string will be loaded in cgi processing [11:32:15]execute_cgi json_proto POST (null) [11:32:15]execute_cgi path=json_proto method=POST [11:32:15]POST find Content-Length [11:32:15]Host: 172.17.63.131:8080 [11:32:15]Content-Length: 681 [11:32:15]Content-Type: application/json [11:32:15] [11:32:15]POST finish read [11:32:15]Found Content-Length = 681 [11:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:15]execute_script... [11:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:15]POST & json_proto [11:32:15]process_json_proto [11:32:15]json parsed OK: [11:32:15]protocol is kg_v1.0 [11:32:15]action value=close_receipt [11:32:15]process_action close_receipt [11:32:15]cmd_close_receipt [11:32:15]MH_GetDate [11:32:15]Write to MH i2c: F0 00 00 A6 F5 8A [11:32:15]Write i2c OK [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 09 00 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: F0 09 00 A6 F5 00 4D D3 1C 67 22 05 6E 64 2F [11:32:15]GetLastDocTimeStamp 1729942345 [11:32:15]current date 1729942349 [11:32:15]FM_GetShiftState [11:32:15]SAM_PROTO_GetShiftState [11:32:15]wFMCommunicate request_size=4 [11:32:15]MH_SAM_APDU [11:32:15]CAPDU: 80 13 01 00 [11:32:15]Write to MH i2c: E2 08 00 A7 F5 80 13 01 00 00 00 00 00 19 [11:32:15]Write i2c OK [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: E2 [11:32:15]MH_I2C_Read... [11:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:15]Read from MH i2c: E2 0E 00 [11:32:15]MH_I2C_Read... [11:32:15]Read from MH i2c: E2 0E 00 A7 F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 92 [11:32:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:32:15]wFMCommunicate OK [11:32:15]SAM_PROTO_GetShiftState done [11:32:15]FM_GetShiftState done [11:32:15]opened in 1729902770 [11:32:15]opened+sec_in_day 1729989170 [11:32:15]quantity*price = 100015 [11:32:15]sum+1 = 100017 [11:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 86 26.10.2024 11:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191723 ФПД: 218695389136070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191723&fm=218695389136070&tin=02508201610067®Number=0000000000091776&sum=100000 [11:32:16]StoreToDocumentArchive [11:32:16]shift 541 fd 191723 [11:32:16]save to /storage/0541/doc_00191723 [11:32:16]save last doc name /storage/0541/doc_00191723 to /storage/kkm_last_doc_name [11:32:16]save OK [11:32:16]Clear old archive folders... [11:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:16]tlvbuf is 01A76490 [11:32:16]SAM_PROTO_ClearQueue [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 09 00 00 [11:32:16]Write to MH i2c: E2 08 00 B4 F5 80 09 00 00 00 00 00 00 1B [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 B4 F5 00 90 00 1D [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]SAM_PROTO_ClearQueue done [11:32:16]KKMCreateOFDPacket [11:32:16]OFDProtocolAddRootSTLVToBuf [11:32:16]FM_MakeSignedData [11:32:16]FM_MakeSignedData [11:32:16]SAM_PROTO_SignData [11:32:16]wFMCommunicate request_size=4 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 01 02 [11:32:16]Write to MH i2c: E2 08 00 B5 F5 80 0D 01 02 00 00 00 00 23 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:16]Read from MH i2c: E2 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 [11:32:16]MH_I2C_Read... [11:32:16]Read from MH i2c: E2 03 00 B5 F5 00 90 00 1E [11:32:16]RAPDU: 90 00 [11:32:16]wFMCommunicate OK [11:32:16]wFMCommunicate request_size=255 [11:32:16]MH_SAM_APDU [11:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EC 02 00 35 04 06 00 C6 [11:32:16]Write to MH i2c: E2 02 01 B6 F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EC 02 00 35 04 06 00 C6 00 00 68 [11:32:16]Write i2c OK [11:32:16]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 B6 F5 00 90 00 1F [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=10 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 02 02 05 E6 FC FB C4 C6 [11:32:17]Write to MH i2c: E2 0D 00 B7 F5 80 0D 02 02 05 00 E6 FC FB C4 C6 00 00 97 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 03 00 B7 F5 00 90 00 20 [11:32:17]RAPDU: 90 00 [11:32:17]wFMCommunicate OK [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 0D 03 02 [11:32:17]Write to MH i2c: E2 08 00 B8 F5 80 0D 03 02 00 00 00 00 28 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 0B 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 0B 00 B8 F5 00 A4 06 F8 29 0C 92 36 9B 90 00 63 [11:32:17]RAPDU: A4 06 F8 29 0C 92 36 9B 90 00 [11:32:17]wFMCommunicate OK [11:32:17]SAM_PROTO_SignData done [11:32:17]FM_MakeSignedData done [11:32:17]CreateOFDProtocolMessage [11:32:17]wFMCommunicate request_size=4 [11:32:17]MH_SAM_APDU [11:32:17]CAPDU: 80 11 00 00 [11:32:17]Write to MH i2c: E2 08 00 B9 F5 80 11 00 00 00 00 00 00 28 [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:17]Read from MH i2c: E2 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 17 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: E2 17 00 B9 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [11:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:17]wFMCommunicate OK [11:32:17]CreateOFDProtocolMessage done [11:32:17]OFDSenderStorePacket 191723 [11:32:17]StoreOFDPacket docnum=191723 [11:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 3B 07 01 2D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EC 02 00 35 04 06 00 C6 E6 FC FB C4 C6 A4 06 F8 29 0C 92 36 9B [11:32:17]CheckFolder [11:32:17]dirname=/storage/ofd_packets [11:32:17]CheckFolder done [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00191723 [11:32:17]NVStorageSaveData ofd_packets/00191723 [11:32:17]File name is /storage/ofd_packets/00191723 [11:32:17]Write 301 bytes [11:32:17]NVStorageSaveData done [11:32:17]OFDSenderStorePacket done [11:32:17]KKMCreateOFDPacket done [11:32:17]NVStorageSaveData kkm_last_timestamp [11:32:17]File name is /storage/kkm_last_timestamp [11:32:17]Write 4 bytes [11:32:17]NVStorageSaveData done [11:32:17]ExternCall_PrintAddStr [11:32:17]wPrintStart [11:32:17]Write to MH i2c: 01 00 00 BA F5 AF [11:32:17]Write i2c OK [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 [11:32:17]MH_I2C_Read... [11:32:17]Read from MH i2c: 01 07 00 BA F5 00 00 00 00 00 FF 0F C4 [11:32:17]RasterBufferAndPrint [11:32:17]line Счет N : (1)31024 [11:32:17]line ИНН: 02508201610067 [11:32:17]line Контрольно-Кассовый Чек [11:32:17]line ПРОДАЖА [11:32:17]line ТРК (МРК, ГНК) : 12 [11:32:17]line Товар: 2710124130 [11:32:17]line Аи-92-К-5 [11:32:17]line 14.950 * 66.90 [11:32:17]line = 1000.16 [11:32:17]line НДС 12% НСП 1% [11:32:17]line > о реализуемом товаре [11:32:17]line ОКРУГЛЕНИЕ: -0.16 [11:32:17]line ИТОГО: 1000.00 [11:32:17]line Внесено: 1000.00 [11:32:17]line СДАЧА: 0.00 [11:32:17]line НСП 1% : 8.85 [11:32:17]line НДС 12% : 106.21 [11:32:17]line Наличными: 1000.00 [11:32:17]line Безнал.: 0.00 [11:32:17]line Место: АЗС № 170 "Партнер Нефть" [11:32:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:32:17]line СНО: Общий режим [11:32:17]line Чек 86 26.10.2024 11:32 [11:32:17]line Смена: 541 ФФД: 1.0 [11:32:17]line ЗНМ: 0300000110 [11:32:17]line РНМ: 0000000000091776 [11:32:17]line Версия ККМ: 001 [11:32:17]line ФМ: 0000000000871754 [11:32:17]line ФД: 191723 [11:32:17]line ФПД: 218695389136070 [11:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191723&fm=218695389136070&tin=02508201610067®Number=0000000000091776&sum=100000 [11:32:17]OFD Sender: Processing packet 191723 [packets to send 75, broken 74] [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00191723 [11:32:17]OFD Sender: To server: pG, [11:32:17]CommunicateWithHost lk.salyk.kg:30040 [11:32:17]ConnectInit lk.salyk.kg [11:32:17]written 0, free lines is 4095 [11:32:17]Connected sock=10 [11:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 3B 07 01 2D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 4D D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EC 02 00 35 04 06 00 C6 E6 FC FB C4 C6 A4 06 F8 29 0C 92 36 9B [11:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 F3 47 00 03 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB EC 02 00 F4 03 04 00 19 78 1C 67 B6 04 01 00 00 8D 44 9B 4D 6F 21 28 96 [11:32:17]CommunicateWithHost err = 0 [11:32:17]CheckOFDResponse [11:32:17]1017 (14) - 77093643461234 [11:32:17]1041 (16) - 0000000000871754 [11:32:17]1040 (4) - 191723 [11:32:17]1012 (4) - 26.10.2024 05:03 [11:32:17]1206 (1) - 0 [11:32:17]OFD Sender: Remove packet 191723 [11:32:17]ProducePacketName [11:32:17]name=ofd_packets/00191723 [11:32:17]NVStorageDeleteData [11:32:18]Write to MH i2c: 01 00 00 E5 F5 DA [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: 01 07 00 E5 F5 00 00 00 00 00 D7 0C C4 [11:32:18]RasterBufferAndPrint [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]line [11:32:18]written 0, free lines is 3302 [11:32:18]MH_Cut [11:32:18]Write to MH i2c: D1 01 00 EC F5 01 B3 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 [11:32:18]MH_I2C_Read... [11:32:18]Read from MH i2c: D1 01 00 EC F5 00 B2 [11:32:18]Write to MH i2c: 01 00 00 ED F5 E2 [11:32:18]Write i2c OK [11:32:18]MH_I2C_Read... [11:32:18]OFD Sender: No OFD packet to send [11:32:18]*** Cut start [11:32:18]*** Partial cut [11:32:18]*** CUTSNS_PIN = 1 [11:32:18]*** CUTSNS_PIN = 0 [11:32:19]*** Brake cut motor [11:32:19]Read from MH i2c: 01 [11:32:19]MH_I2C_Read... [11:32:19]*** Stop cut motor [11:32:19]*** Cut end [11:32:19]Read from MH i2c: 01 07 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: 01 07 00 ED F5 00 00 00 00 00 FF 0F F7 [11:32:19]process_action close_receipt done [11:32:19]requested_data is exist [11:32:19]produce_requested_data [11:32:19]requested_item fm.sn is exist - process it [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 11 00 00 [11:32:19]Write to MH i2c: E2 08 00 EE F5 80 11 00 00 00 00 00 00 5D [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 17 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 17 00 EE F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [11:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:32:19]wFMCommunicate OK [11:32:19]requested_item fd.num is exist - process it [11:32:19]SAM_PROTO_GetFieldsCounters [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 00 00 [11:32:19]Write to MH i2c: E2 08 00 EF F5 80 13 00 00 00 00 00 00 60 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 62 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 62 00 EF F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:19]wFMCommunicate OK [11:32:19]SAM_PROTO_GetFieldsCounters done [11:32:19]requested_item shift.num is exist - process it [11:32:19]requested_item shift.opened is exist - process it [11:32:19]req_shift_opened [11:32:19]FM_GetShiftState [11:32:19]SAM_PROTO_GetShiftState [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 01 00 [11:32:19]Write to MH i2c: E2 08 00 F0 F5 80 13 01 00 00 00 00 00 62 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:19]Read from MH i2c: E2 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: E2 0E 00 F0 F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DB [11:32:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:32:19]wFMCommunicate OK [11:32:19]SAM_PROTO_GetShiftState done [11:32:19]FM_GetShiftState done [11:32:19]req_shift_opened done [11:32:19]requested_item shift.open_date is exist - process it [11:32:19]req_shift_open_date [11:32:19]req_shift_open_date done [11:32:19]produce_requested_data done [11:32:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191723,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:32:19]process_action_free close_receipt [11:32:19]json_value_free [11:32:19]json_value_free done [11:32:19]process_json_proto returns [11:32:19]Send response to host [11:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191723,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:32:19]free response buf [11:32:19]execute_script done [11:32:19]execute_script returns [11:32:19]free content buf [11:32:19]Sock 8.Close socket [11:32:19]Sock 8.Thread stoped [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:24]accept exits with 9 [11:34:24]New connection [11:34:24]New thread 3066817892 created [11:34:24]Thread 3066961252 joined [11:34:24]Waiting for new connection... [11:34:24] Sock 9.Parse request [11:34:24]Sock 9.Check first char [11:34:24]Sock 9.First char is OK [11:34:24]request: POST /json_proto HTTP/1.0 [11:34:24]Method: POST [11:34:24]URL: /json_proto [11:34:24]Method is POST - this is cgi request [11:34:24]url: /json_proto [11:34:24]query_string will be loaded in cgi processing [11:34:24]execute_cgi json_proto POST (null) [11:34:24]execute_cgi path=json_proto method=POST [11:34:24]POST find Content-Length [11:34:24]Host: 172.17.63.131:8080 [11:34:24]Content-Length: 673 [11:34:24]Content-Type: application/json [11:34:24] [11:34:24]POST finish read [11:34:24]Found Content-Length = 673 [11:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31026", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:24]execute_script... [11:34: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)31026", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:24]POST & json_proto [11:34:24]process_json_proto [11:34:24]json parsed OK: [11:34:24]protocol is kg_v1.0 [11:34:24]action value=close_receipt [11:34:24]process_action close_receipt [11:34:24]cmd_close_receipt [11:34:24]MH_GetDate [11:34:24]Write to MH i2c: F0 00 00 F1 F5 D5 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: F0 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: F0 09 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: F0 09 00 F1 F5 00 CE D3 1C 67 22 05 6E 64 FB [11:34:24]GetLastDocTimeStamp 1729942349 [11:34:24]current date 1729942478 [11:34:24]FM_GetShiftState [11:34:24]SAM_PROTO_GetShiftState [11:34:24]wFMCommunicate request_size=4 [11:34:24]MH_SAM_APDU [11:34:24]CAPDU: 80 13 01 00 [11:34:24]Write to MH i2c: E2 08 00 F2 F5 80 13 01 00 00 00 00 00 64 [11:34:24]Write i2c OK [11:34:24]MH_I2C_Read... [11:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:24]Read from MH i2c: E2 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: E2 0E 00 [11:34:24]MH_I2C_Read... [11:34:24]Read from MH i2c: E2 0E 00 F2 F5 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DD [11:34:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:34:24]wFMCommunicate OK [11:34:24]SAM_PROTO_GetShiftState done [11:34:24]FM_GetShiftState done [11:34:24]opened in 1729902770 [11:34:24]opened+sec_in_day 1729989170 [11:34:24]quantity*price = 50063 [11:34:24]sum+1 = 50064 [11:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 87 26.10.2024 11:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191724 ФПД: 253775459502675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191724&fm=253775459502675&tin=02508201610067®Number=0000000000091776&sum=50000 [11:34:25]StoreToDocumentArchive [11:34:25]shift 541 fd 191724 [11:34:25]save to /storage/0541/doc_00191724 [11:34:25]save last doc name /storage/0541/doc_00191724 to /storage/kkm_last_doc_name [11:34:25]save OK [11:34:25]Clear old archive folders... [11:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:25]tlvbuf is 019D2880 [11:34:25]SAM_PROTO_ClearQueue [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 09 00 00 [11:34:25]Write to MH i2c: E2 08 00 FF F5 80 09 00 00 00 00 00 00 66 [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 03 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 03 00 FF F5 00 90 00 68 [11:34:25]RAPDU: 90 00 [11:34:25]wFMCommunicate OK [11:34:25]SAM_PROTO_ClearQueue done [11:34:25]KKMCreateOFDPacket [11:34:25]OFDProtocolAddRootSTLVToBuf [11:34:25]FM_MakeSignedData [11:34:25]FM_MakeSignedData [11:34:25]SAM_PROTO_SignData [11:34:25]wFMCommunicate request_size=4 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 0D 01 02 [11:34:25]Write to MH i2c: E2 08 00 00 F6 80 0D 01 02 00 00 00 00 6F [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:25]Read from MH i2c: E2 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 03 00 [11:34:25]MH_I2C_Read... [11:34:25]Read from MH i2c: E2 03 00 00 F6 00 90 00 6A [11:34:25]RAPDU: 90 00 [11:34:25]wFMCommunicate OK [11:34:25]wFMCommunicate request_size=255 [11:34:25]MH_SAM_APDU [11:34:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CE D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EC 02 00 35 04 06 00 E6 CE B4 1D [11:34:25]Write to MH i2c: E2 02 01 01 F6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CE D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EC 02 00 35 04 06 00 E6 CE B4 1D 00 00 7A [11:34:25]Write i2c OK [11:34:25]MH_I2C_Read... [11:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:26]Read from MH i2c: E2 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 03 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 03 00 01 F6 00 90 00 6B [11:34:26]RAPDU: 90 00 [11:34:26]wFMCommunicate OK [11:34:26]wFMCommunicate request_size=7 [11:34:26]MH_SAM_APDU [11:34:26]CAPDU: 80 0D 02 02 02 CA 53 [11:34:26]Write to MH i2c: E2 0A 00 02 F6 80 0D 02 02 02 00 CA 53 00 00 93 [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:26]Read from MH i2c: E2 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 03 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 03 00 02 F6 00 90 00 6C [11:34:26]RAPDU: 90 00 [11:34:26]wFMCommunicate OK [11:34:26]wFMCommunicate request_size=4 [11:34:26]MH_SAM_APDU [11:34:26]CAPDU: 80 0D 03 02 [11:34:26]Write to MH i2c: E2 08 00 03 F6 80 0D 03 02 00 00 00 00 74 [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:26]Read from MH i2c: E2 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 0B 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 0B 00 03 F6 00 C0 7B 4C A5 AE 4A BE B6 90 00 0D [11:34:26]RAPDU: C0 7B 4C A5 AE 4A BE B6 90 00 [11:34:26]wFMCommunicate OK [11:34:26]SAM_PROTO_SignData done [11:34:26]FM_MakeSignedData done [11:34:26]CreateOFDProtocolMessage [11:34:26]wFMCommunicate request_size=4 [11:34:26]MH_SAM_APDU [11:34:26]CAPDU: 80 11 00 00 [11:34:26]Write to MH i2c: E2 08 00 04 F6 80 11 00 00 00 00 00 00 74 [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:26]Read from MH i2c: E2 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 17 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: E2 17 00 04 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [11:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:34:26]wFMCommunicate OK [11:34:26]CreateOFDProtocolMessage done [11:34:26]OFDSenderStorePacket 191724 [11:34:26]StoreOFDPacket docnum=191724 [11:34:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 A1 04 01 60 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CE D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EC 02 00 35 04 06 00 E6 CE B4 1D CA 53 C0 7B 4C A5 AE 4A BE B6 [11:34:26]CheckFolder [11:34:26]dirname=/storage/ofd_packets [11:34:26]CheckFolder done [11:34:26]ProducePacketName [11:34:26]name=ofd_packets/00191724 [11:34:26]NVStorageSaveData ofd_packets/00191724 [11:34:26]File name is /storage/ofd_packets/00191724 [11:34:26]Write 298 bytes [11:34:26]NVStorageSaveData done [11:34:26]OFDSenderStorePacket done [11:34:26]KKMCreateOFDPacket done [11:34:26]NVStorageSaveData kkm_last_timestamp [11:34:26]File name is /storage/kkm_last_timestamp [11:34:26]Write 4 bytes [11:34:26]NVStorageSaveData done [11:34:26]ExternCall_PrintAddStr [11:34:26]wPrintStart [11:34:26]Write to MH i2c: 01 00 00 05 F6 FB [11:34:26]Write i2c OK [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: 01 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: 01 07 00 [11:34:26]MH_I2C_Read... [11:34:26]Read from MH i2c: 01 07 00 05 F6 00 00 00 00 00 FF 0F 10 [11:34:26]RasterBufferAndPrint [11:34:26]line Счет N : (1)31026 [11:34:26]line ИНН: 02508201610067 [11:34:26]line Контрольно-Кассовый Чек [11:34:26]line ПРОДАЖА [11:34:26]line ТРК (МРК, ГНК) : 22 [11:34:26]line Товар: 2710194210 [11:34:26]line ДТ-К-5 [11:34:26]line 6.570 * 76.20 [11:34:26]line = 500.63 [11:34:26]line НДС 12% НСП 1% [11:34:26]line > о реализуемом товаре [11:34:26]line ОКРУГЛЕНИЕ: -0.63 [11:34:26]line ИТОГО: 500.00 [11:34:26]line Внесено: 500.00 [11:34:26]line СДАЧА: 0.00 [11:34:26]line НСП 1% : 4.43 [11:34:26]line НДС 12% : 53.16 [11:34:26]line Наличными: 500.00 [11:34:26]line Безнал.: 0.00 [11:34:26]line Место: АЗС № 170 "Партнер Нефть" [11:34:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:34:26]line СНО: Общий режим [11:34:26]line Чек 87 26.10.2024 11:34 [11:34:26]line Смена: 541 ФФД: 1.0 [11:34:26]line ЗНМ: 0300000110 [11:34:26]line РНМ: 0000000000091776 [11:34:26]line Версия ККМ: 001 [11:34:26]line ФМ: 0000000000871754 [11:34:26]line ФД: 191724 [11:34:26]line ФПД: 253775459502675 [11:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191724&fm=253775459502675&tin=02508201610067®Number=0000000000091776&sum=50000 [11:34:26]OFD Sender: Processing packet 191724 [packets to send 75, broken 74] [11:34:26]ProducePacketName [11:34:26]name=ofd_packets/00191724 [11:34:26]OFD Sender: To server: pG, [11:34:26]CommunicateWithHost lk.salyk.kg:30040 [11:34:26]ConnectInit lk.salyk.kg [11:34:26]written 0, free lines is 4095 [11:34:26]Connected sock=10 [11:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 65 A1 04 01 60 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 CE D3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EC 02 00 35 04 06 00 E6 CE B4 1D CA 53 C0 7B 4C A5 AE 4A BE B6 [11:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 AB 47 00 5F 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EC EC 02 00 F4 03 04 00 9A 78 1C 67 B6 04 01 00 00 09 E4 97 4F EE 4B 72 DC [11:34:26]CommunicateWithHost err = 0 [11:34:26]CheckOFDResponse [11:34:26]1017 (14) - 77093643461234 [11:34:26]1041 (16) - 0000000000871754 [11:34:26]1040 (4) - 191724 [11:34:26]1012 (4) - 26.10.2024 05:05 [11:34:26]1206 (1) - 0 [11:34:26]OFD Sender: Remove packet 191724 [11:34:26]ProducePacketName [11:34:26]name=ofd_packets/00191724 [11:34:26]NVStorageDeleteData [11:34:26]Write to MH i2c: 01 00 00 30 F6 26 [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: 01 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: 01 07 00 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: 01 07 00 30 F6 00 00 00 00 00 B4 0C ED [11:34:27]RasterBufferAndPrint [11:34:27]line [11:34:27]line [11:34:27]line [11:34:27]line [11:34:27]line [11:34:27]written 0, free lines is 3258 [11:34:27]MH_Cut [11:34:27]Write to MH i2c: D1 01 00 37 F6 01 FF [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: D1 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: D1 01 00 [11:34:27]MH_I2C_Read... [11:34:27]Read from MH i2c: D1 01 00 37 F6 00 FE [11:34:27]Write to MH i2c: 01 00 00 38 F6 2E [11:34:27]Write i2c OK [11:34:27]MH_I2C_Read... [11:34:27]OFD Sender: No OFD packet to send [11:34:27]*** Cut start [11:34:27]*** Partial cut [11:34:27]*** CUTSNS_PIN = 1 [11:34:27]*** CUTSNS_PIN = 0 [11:34:28]*** Brake cut motor [11:34:28]Read from MH i2c: 01 [11:34:28]MH_I2C_Read... [11:34:28]*** Stop cut motor [11:34:28]*** Cut end [11:34:28]Read from MH i2c: 01 07 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: 01 07 00 38 F6 00 00 00 00 00 FF 0F 43 [11:34:28]process_action close_receipt done [11:34:28]requested_data is exist [11:34:28]produce_requested_data [11:34:28]requested_item fm.sn is exist - process it [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 11 00 00 [11:34:28]Write to MH i2c: E2 08 00 39 F6 80 11 00 00 00 00 00 00 A9 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 17 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 17 00 39 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [11:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:34:28]wFMCommunicate OK [11:34:28]requested_item fd.num is exist - process it [11:34:28]SAM_PROTO_GetFieldsCounters [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 13 00 00 [11:34:28]Write to MH i2c: E2 08 00 3A F6 80 13 00 00 00 00 00 00 AC [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 62 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 62 00 3A F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [11:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:28]wFMCommunicate OK [11:34:28]SAM_PROTO_GetFieldsCounters done [11:34:28]requested_item shift.num is exist - process it [11:34:28]requested_item shift.opened is exist - process it [11:34:28]req_shift_opened [11:34:28]FM_GetShiftState [11:34:28]SAM_PROTO_GetShiftState [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 13 01 00 [11:34:28]Write to MH i2c: E2 08 00 3B F6 80 13 01 00 00 00 00 00 AE [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0E 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0E 00 3B F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 27 [11:34:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:34:28]wFMCommunicate OK [11:34:28]SAM_PROTO_GetShiftState done [11:34:28]FM_GetShiftState done [11:34:28]req_shift_opened done [11:34:28]requested_item shift.open_date is exist - process it [11:34:28]req_shift_open_date [11:34:28]req_shift_open_date done [11:34:28]produce_requested_data done [11:34:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191724,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:34:28]process_action_free close_receipt [11:34:28]json_value_free [11:34:28]json_value_free done [11:34:28]process_json_proto returns [11:34:28]Send response to host [11:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191724,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:34:28]free response buf [11:34:28]execute_script done [11:34:28]execute_script returns [11:34:28]free content buf [11:34:28]Sock 9.Close socket [11:34:28]Sock 9.Thread stoped [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:27]accept exits with 8 [11:36:27]New connection [11:36:27]New thread 3066961252 created [11:36:27]Thread 3066817892 joined [11:36:27]Waiting for new connection... [11:36:27] Sock 8.Parse request [11:36:27]Sock 8.Check first char [11:36:27]Sock 8.First char is OK [11:36:27]request: POST /json_proto HTTP/1.0 [11:36:27]Method: POST [11:36:27]URL: /json_proto [11:36:27]Method is POST - this is cgi request [11:36:27]url: /json_proto [11:36:27]query_string will be loaded in cgi processing [11:36:27]execute_cgi json_proto POST (null) [11:36:27]execute_cgi path=json_proto method=POST [11:36:27]POST find Content-Length [11:36:27]Host: 172.17.63.131:8080 [11:36:27]Content-Length: 681 [11:36:27]Content-Type: application/json [11:36:27] [11:36:27]POST finish read [11:36:27]Found Content-Length = 681 [11:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:27]execute_script... [11:36: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)31027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:27]POST & json_proto [11:36:27]process_json_proto [11:36:27]json parsed OK: [11:36:27]protocol is kg_v1.0 [11:36:27]action value=close_receipt [11:36:27]process_action close_receipt [11:36:27]cmd_close_receipt [11:36:27]MH_GetDate [11:36:27]Write to MH i2c: F0 00 00 3C F6 21 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 09 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: F0 09 00 3C F6 00 49 D4 1C 67 22 05 6E 64 C3 [11:36:27]GetLastDocTimeStamp 1729942478 [11:36:27]current date 1729942601 [11:36:27]FM_GetShiftState [11:36:27]SAM_PROTO_GetShiftState [11:36:27]wFMCommunicate request_size=4 [11:36:27]MH_SAM_APDU [11:36:27]CAPDU: 80 13 01 00 [11:36:27]Write to MH i2c: E2 08 00 3D F6 80 13 01 00 00 00 00 00 B0 [11:36:27]Write i2c OK [11:36:27]MH_I2C_Read... [11:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:27]Read from MH i2c: E2 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0E 00 [11:36:27]MH_I2C_Read... [11:36:27]Read from MH i2c: E2 0E 00 3D F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 29 [11:36:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:36:27]wFMCommunicate OK [11:36:27]SAM_PROTO_GetShiftState done [11:36:27]FM_GetShiftState done [11:36:27]opened in 1729902770 [11:36:27]opened+sec_in_day 1729989170 [11:36:27]quantity*price = 100015 [11:36:27]sum+1 = 100017 [11:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 88 26.10.2024 11:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191725 ФПД: 263152747712325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191725&fm=263152747712325&tin=02508201610067®Number=0000000000091776&sum=100000 [11:36:28]StoreToDocumentArchive [11:36:28]shift 541 fd 191725 [11:36:28]save to /storage/0541/doc_00191725 [11:36:28]save last doc name /storage/0541/doc_00191725 to /storage/kkm_last_doc_name [11:36:28]save OK [11:36:28]Clear old archive folders... [11:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:28]tlvbuf is 016255F0 [11:36:28]SAM_PROTO_ClearQueue [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 09 00 00 [11:36:28]Write to MH i2c: E2 08 00 4A F6 80 09 00 00 00 00 00 00 B2 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 4A F6 00 90 00 B4 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]SAM_PROTO_ClearQueue done [11:36:28]KKMCreateOFDPacket [11:36:28]OFDProtocolAddRootSTLVToBuf [11:36:28]FM_MakeSignedData [11:36:28]FM_MakeSignedData [11:36:28]SAM_PROTO_SignData [11:36:28]wFMCommunicate request_size=4 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 01 02 [11:36:28]Write to MH i2c: E2 08 00 4B F6 80 0D 01 02 00 00 00 00 BA [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:28]Read from MH i2c: E2 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 [11:36:28]MH_I2C_Read... [11:36:28]Read from MH i2c: E2 03 00 4B F6 00 90 00 B5 [11:36:28]RAPDU: 90 00 [11:36:28]wFMCommunicate OK [11:36:28]wFMCommunicate request_size=255 [11:36:28]MH_SAM_APDU [11:36:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EC 02 00 35 04 06 00 EF [11:36:28]Write to MH i2c: E2 02 01 4C F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EC 02 00 35 04 06 00 EF 00 00 29 [11:36:28]Write i2c OK [11:36:28]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 4C F6 00 90 00 B6 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=10 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 02 02 05 56 06 0C 8F 45 [11:36:29]Write to MH i2c: E2 0D 00 4D F6 80 0D 02 02 05 00 56 06 0C 8F 45 00 00 03 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 03 00 4D F6 00 90 00 B7 [11:36:29]RAPDU: 90 00 [11:36:29]wFMCommunicate OK [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 0D 03 02 [11:36:29]Write to MH i2c: E2 08 00 4E F6 80 0D 03 02 00 00 00 00 BF [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 0B 00 4E F6 00 5F 12 A8 72 A0 4E CE FB 90 00 02 [11:36:29]RAPDU: 5F 12 A8 72 A0 4E CE FB 90 00 [11:36:29]wFMCommunicate OK [11:36:29]SAM_PROTO_SignData done [11:36:29]FM_MakeSignedData done [11:36:29]CreateOFDProtocolMessage [11:36:29]wFMCommunicate request_size=4 [11:36:29]MH_SAM_APDU [11:36:29]CAPDU: 80 11 00 00 [11:36:29]Write to MH i2c: E2 08 00 4F F6 80 11 00 00 00 00 00 00 BF [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:29]Read from MH i2c: E2 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: E2 17 00 4F F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [11:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:36:29]wFMCommunicate OK [11:36:29]CreateOFDProtocolMessage done [11:36:29]OFDSenderStorePacket 191725 [11:36:29]StoreOFDPacket docnum=191725 [11:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 60 07 01 32 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EC 02 00 35 04 06 00 EF 56 06 0C 8F 45 5F 12 A8 72 A0 4E CE FB [11:36:29]CheckFolder [11:36:29]dirname=/storage/ofd_packets [11:36:29]CheckFolder done [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00191725 [11:36:29]NVStorageSaveData ofd_packets/00191725 [11:36:29]File name is /storage/ofd_packets/00191725 [11:36:29]Write 301 bytes [11:36:29]NVStorageSaveData done [11:36:29]OFDSenderStorePacket done [11:36:29]KKMCreateOFDPacket done [11:36:29]NVStorageSaveData kkm_last_timestamp [11:36:29]File name is /storage/kkm_last_timestamp [11:36:29]Write 4 bytes [11:36:29]NVStorageSaveData done [11:36:29]ExternCall_PrintAddStr [11:36:29]wPrintStart [11:36:29]Write to MH i2c: 01 00 00 50 F6 46 [11:36:29]Write i2c OK [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 [11:36:29]MH_I2C_Read... [11:36:29]Read from MH i2c: 01 07 00 50 F6 00 00 00 00 00 FF 0F 5B [11:36:29]RasterBufferAndPrint [11:36:29]line Счет N : (1)31027 [11:36:29]line ИНН: 02508201610067 [11:36:29]line Контрольно-Кассовый Чек [11:36:29]line ПРОДАЖА [11:36:29]line ТРК (МРК, ГНК) : 21 [11:36:29]line Товар: 2710124130 [11:36:29]line Аи-92-К-5 [11:36:29]line 14.950 * 66.90 [11:36:29]line = 1000.16 [11:36:29]line НДС 12% НСП 1% [11:36:29]line > о реализуемом товаре [11:36:29]line ОКРУГЛЕНИЕ: -0.16 [11:36:29]line ИТОГО: 1000.00 [11:36:29]line Внесено: 1000.00 [11:36:29]line СДАЧА: 0.00 [11:36:29]line НСП 1% : 8.85 [11:36:29]line НДС 12% : 106.21 [11:36:29]line Наличными: 1000.00 [11:36:29]line Безнал.: 0.00 [11:36:29]line Место: АЗС № 170 "Партнер Нефть" [11:36:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:36:29]line СНО: Общий режим [11:36:29]line Чек 88 26.10.2024 11:36 [11:36:29]line Смена: 541 ФФД: 1.0 [11:36:29]line ЗНМ: 0300000110 [11:36:29]line РНМ: 0000000000091776 [11:36:29]line Версия ККМ: 001 [11:36:29]line ФМ: 0000000000871754 [11:36:29]line ФД: 191725 [11:36:29]line ФПД: 263152747712325 [11:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191725&fm=263152747712325&tin=02508201610067®Number=0000000000091776&sum=100000 [11:36:29]OFD Sender: Processing packet 191725 [packets to send 75, broken 74] [11:36:29]ProducePacketName [11:36:29]name=ofd_packets/00191725 [11:36:29]OFD Sender: To server: pG, [11:36:29]CommunicateWithHost lk.salyk.kg:30040 [11:36:29]ConnectInit lk.salyk.kg [11:36:29]written 0, free lines is 4095 [11:36:29]Connected sock=10 [11:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 60 07 01 32 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 49 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EC 02 00 35 04 06 00 EF 56 06 0C 8F 45 5F 12 A8 72 A0 4E CE FB [11:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 84 45 47 00 6F DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 ED EC 02 00 F4 03 04 00 15 79 1C 67 B6 04 01 00 00 32 85 8D DB 7E FF 53 DF [11:36:30]CommunicateWithHost err = 0 [11:36:30]CheckOFDResponse [11:36:30]1017 (14) - 77093643461234 [11:36:30]1041 (16) - 0000000000871754 [11:36:30]1040 (4) - 191725 [11:36:30]1012 (4) - 26.10.2024 05:07 [11:36:30]1206 (1) - 0 [11:36:30]OFD Sender: Remove packet 191725 [11:36:30]ProducePacketName [11:36:30]name=ofd_packets/00191725 [11:36:30]NVStorageDeleteData [11:36:30]Write to MH i2c: 01 00 00 7B F6 71 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: 01 07 00 7B F6 00 00 00 00 00 B8 0C 3C [11:36:30]RasterBufferAndPrint [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]line [11:36:30]written 0, free lines is 3262 [11:36:30]MH_Cut [11:36:30]Write to MH i2c: D1 01 00 82 F6 01 4A [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 [11:36:30]MH_I2C_Read... [11:36:30]Read from MH i2c: D1 01 00 82 F6 00 49 [11:36:30]Write to MH i2c: 01 00 00 83 F6 79 [11:36:30]Write i2c OK [11:36:30]MH_I2C_Read... [11:36:30]OFD Sender: No OFD packet to send [11:36:30]*** Cut start [11:36:30]*** Partial cut [11:36:30]*** CUTSNS_PIN = 1 [11:36:30]*** CUTSNS_PIN = 0 [11:36:31]*** Brake cut motor [11:36:31]Read from MH i2c: 01 [11:36:31]MH_I2C_Read... [11:36:31]*** Stop cut motor [11:36:31]*** Cut end [11:36:31]Read from MH i2c: 01 07 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: 01 07 00 83 F6 00 00 00 00 00 FF 0F 8E [11:36:31]process_action close_receipt done [11:36:31]requested_data is exist [11:36:31]produce_requested_data [11:36:31]requested_item fm.sn is exist - process it [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 11 00 00 [11:36:31]Write to MH i2c: E2 08 00 84 F6 80 11 00 00 00 00 00 00 F4 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 17 00 84 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [11:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:36:31]wFMCommunicate OK [11:36:31]requested_item fd.num is exist - process it [11:36:31]SAM_PROTO_GetFieldsCounters [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 13 00 00 [11:36:31]Write to MH i2c: E2 08 00 85 F6 80 13 00 00 00 00 00 00 F7 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 62 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 62 00 85 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [11:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 ED EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_GetFieldsCounters done [11:36:31]requested_item shift.num is exist - process it [11:36:31]requested_item shift.opened is exist - process it [11:36:31]req_shift_opened [11:36:31]FM_GetShiftState [11:36:31]SAM_PROTO_GetShiftState [11:36:31]wFMCommunicate request_size=4 [11:36:31]MH_SAM_APDU [11:36:31]CAPDU: 80 13 01 00 [11:36:31]Write to MH i2c: E2 08 00 86 F6 80 13 01 00 00 00 00 00 F9 [11:36:31]Write i2c OK [11:36:31]MH_I2C_Read... [11:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:31]Read from MH i2c: E2 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0E 00 [11:36:31]MH_I2C_Read... [11:36:31]Read from MH i2c: E2 0E 00 86 F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 72 [11:36:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:36:31]wFMCommunicate OK [11:36:31]SAM_PROTO_GetShiftState done [11:36:31]FM_GetShiftState done [11:36:31]req_shift_opened done [11:36:31]requested_item shift.open_date is exist - process it [11:36:31]req_shift_open_date [11:36:31]req_shift_open_date done [11:36:31]produce_requested_data done [11:36:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191725,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:36:31]process_action_free close_receipt [11:36:31]json_value_free [11:36:31]json_value_free done [11:36:31]process_json_proto returns [11:36:31]Send response to host [11:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191725,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:36:31]free response buf [11:36:31]execute_script done [11:36:31]execute_script returns [11:36:31]free content buf [11:36:31]Sock 8.Close socket [11:36:31]Sock 8.Thread stoped [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:27]accept exits with 9 [11:37:27]New connection [11:37:27]New thread 3066817892 created [11:37:27]Thread 3066961252 joined [11:37:27]Waiting for new connection... [11:37:27] Sock 9.Parse request [11:37:27]Sock 9.Check first char [11:37:27]Sock 9.First char is OK [11:37:27]request: POST /json_proto HTTP/1.0 [11:37:27]Method: POST [11:37:27]URL: /json_proto [11:37:27]Method is POST - this is cgi request [11:37:27]url: /json_proto [11:37:27]query_string will be loaded in cgi processing [11:37:27]execute_cgi json_proto POST (null) [11:37:27]execute_cgi path=json_proto method=POST [11:37:27]POST find Content-Length [11:37:27]Host: 172.17.63.131:8080 [11:37:27]Content-Length: 677 [11:37:27]Content-Type: application/json [11:37:27] [11:37:27]POST finish read [11:37:27]Found Content-Length = 677 [11:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:27]execute_script... [11:37: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)31028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:27]POST & json_proto [11:37:27]process_json_proto [11:37:27]json parsed OK: [11:37:27]protocol is kg_v1.0 [11:37:27]action value=close_receipt [11:37:27]process_action close_receipt [11:37:27]cmd_close_receipt [11:37:27]MH_GetDate [11:37:27]Write to MH i2c: F0 00 00 87 F6 6C [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: F0 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: F0 09 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: F0 09 00 87 F6 00 85 D4 1C 67 22 05 6E 64 4A [11:37:27]GetLastDocTimeStamp 1729942601 [11:37:27]current date 1729942661 [11:37:27]FM_GetShiftState [11:37:27]SAM_PROTO_GetShiftState [11:37:27]wFMCommunicate request_size=4 [11:37:27]MH_SAM_APDU [11:37:27]CAPDU: 80 13 01 00 [11:37:27]Write to MH i2c: E2 08 00 88 F6 80 13 01 00 00 00 00 00 FB [11:37:27]Write i2c OK [11:37:27]MH_I2C_Read... [11:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:27]Read from MH i2c: E2 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 0E 00 [11:37:27]MH_I2C_Read... [11:37:27]Read from MH i2c: E2 0E 00 88 F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 74 [11:37:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:37:27]wFMCommunicate OK [11:37:27]SAM_PROTO_GetShiftState done [11:37:27]FM_GetShiftState done [11:37:27]opened in 1729902770 [11:37:27]opened+sec_in_day 1729989170 [11:37:27]quantity*price = 80012 [11:37:27]sum+1 = 80013 [11:37:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 89 26.10.2024 11:37 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191726 ФПД: 28128263266997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113741&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191726&fm=28128263266997&tin=02508201610067®Number=0000000000091776&sum=80000 [11:37:28]StoreToDocumentArchive [11:37:28]shift 541 fd 191726 [11:37:28]save to /storage/0541/doc_00191726 [11:37:28]save last doc name /storage/0541/doc_00191726 to /storage/kkm_last_doc_name [11:37:28]save OK [11:37:28]Clear old archive folders... [11:37:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:28]tlvbuf is 0178A3A0 [11:37:28]SAM_PROTO_ClearQueue [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 09 00 00 [11:37:28]Write to MH i2c: E2 08 00 95 F6 80 09 00 00 00 00 00 00 FD [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 95 F6 00 90 00 FF [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]SAM_PROTO_ClearQueue done [11:37:28]KKMCreateOFDPacket [11:37:28]OFDProtocolAddRootSTLVToBuf [11:37:28]FM_MakeSignedData [11:37:28]FM_MakeSignedData [11:37:28]SAM_PROTO_SignData [11:37:28]wFMCommunicate request_size=4 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 01 02 [11:37:28]Write to MH i2c: E2 08 00 96 F6 80 0D 01 02 00 00 00 00 05 [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:28]Read from MH i2c: E2 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 [11:37:28]MH_I2C_Read... [11:37:28]Read from MH i2c: E2 03 00 96 F6 00 90 00 00 [11:37:28]RAPDU: 90 00 [11:37:28]wFMCommunicate OK [11:37:28]wFMCommunicate request_size=255 [11:37:28]MH_SAM_APDU [11:37:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 85 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EC 02 00 35 04 06 00 19 [11:37:28]Write to MH i2c: E2 02 01 97 F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 85 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EC 02 00 35 04 06 00 19 00 00 CE [11:37:28]Write i2c OK [11:37:28]MH_I2C_Read... [11:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 03 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 03 00 97 F6 00 90 00 01 [11:37:29]RAPDU: 90 00 [11:37:29]wFMCommunicate OK [11:37:29]wFMCommunicate request_size=10 [11:37:29]MH_SAM_APDU [11:37:29]CAPDU: 80 0D 02 02 05 95 1F 23 E2 B5 [11:37:29]Write to MH i2c: E2 0D 00 98 F6 80 0D 02 02 05 00 95 1F 23 E2 B5 00 00 80 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 03 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 03 00 98 F6 00 90 00 02 [11:37:29]RAPDU: 90 00 [11:37:29]wFMCommunicate OK [11:37:29]wFMCommunicate request_size=4 [11:37:29]MH_SAM_APDU [11:37:29]CAPDU: 80 0D 03 02 [11:37:29]Write to MH i2c: E2 08 00 99 F6 80 0D 03 02 00 00 00 00 0A [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 0B 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 0B 00 99 F6 00 11 0C CA 2D EF 02 FD 37 90 00 44 [11:37:29]RAPDU: 11 0C CA 2D EF 02 FD 37 90 00 [11:37:29]wFMCommunicate OK [11:37:29]SAM_PROTO_SignData done [11:37:29]FM_MakeSignedData done [11:37:29]CreateOFDProtocolMessage [11:37:29]wFMCommunicate request_size=4 [11:37:29]MH_SAM_APDU [11:37:29]CAPDU: 80 11 00 00 [11:37:29]Write to MH i2c: E2 08 00 9A F6 80 11 00 00 00 00 00 00 0A [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:29]Read from MH i2c: E2 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 17 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: E2 17 00 9A F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [11:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:37:29]wFMCommunicate OK [11:37:29]CreateOFDProtocolMessage done [11:37:29]OFDSenderStorePacket 191726 [11:37:29]StoreOFDPacket docnum=191726 [11:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E BA 07 01 C6 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 85 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EC 02 00 35 04 06 00 19 95 1F 23 E2 B5 11 0C CA 2D EF 02 FD 37 [11:37:29]CheckFolder [11:37:29]dirname=/storage/ofd_packets [11:37:29]CheckFolder done [11:37:29]ProducePacketName [11:37:29]name=ofd_packets/00191726 [11:37:29]NVStorageSaveData ofd_packets/00191726 [11:37:29]File name is /storage/ofd_packets/00191726 [11:37:29]Write 301 bytes [11:37:29]NVStorageSaveData done [11:37:29]OFDSenderStorePacket done [11:37:29]KKMCreateOFDPacket done [11:37:29]NVStorageSaveData kkm_last_timestamp [11:37:29]File name is /storage/kkm_last_timestamp [11:37:29]Write 4 bytes [11:37:29]NVStorageSaveData done [11:37:29]ExternCall_PrintAddStr [11:37:29]wPrintStart [11:37:29]Write to MH i2c: 01 00 00 9B F6 91 [11:37:29]Write i2c OK [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 [11:37:29]MH_I2C_Read... [11:37:29]Read from MH i2c: 01 07 00 9B F6 00 00 00 00 00 FF 0F A6 [11:37:29]RasterBufferAndPrint [11:37:29]line Счет N : (1)31028 [11:37:29]line ИНН: 02508201610067 [11:37:29]line Контрольно-Кассовый Чек [11:37:29]line ПРОДАЖА [11:37:29]line ТРК (МРК, ГНК) : 12 [11:37:29]line Товар: 2710124130 [11:37:29]line Аи-92-К-5 [11:37:29]line 11.960 * 66.90 [11:37:29]line = 800.12 [11:37:29]line НДС 12% НСП 1% [11:37:29]line > о реализуемом товаре [11:37:29]line ОКРУГЛЕНИЕ: -0.12 [11:37:29]line ИТОГО: 800.00 [11:37:29]line Внесено: 800.00 [11:37:29]line СДАЧА: 0.00 [11:37:29]line НСП 1% : 7.08 [11:37:29]line НДС 12% : 84.97 [11:37:29]line Наличными: 800.00 [11:37:29]line Безнал.: 0.00 [11:37:29]line Место: АЗС № 170 "Партнер Нефть" [11:37:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:37:29]line СНО: Общий режим [11:37:29]line Чек 89 26.10.2024 11:37 [11:37:29]line Смена: 541 ФФД: 1.0 [11:37:29]line ЗНМ: 0300000110 [11:37:29]line РНМ: 0000000000091776 [11:37:29]line Версия ККМ: 001 [11:37:29]line ФМ: 0000000000871754 [11:37:29]line ФД: 191726 [11:37:29]line ФПД: 28128263266997 [11:37:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T113741&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191726&fm=28128263266997&tin=02508201610067®Number=0000000000091776&sum=80000 [11:37:29]OFD Sender: Processing packet 191726 [packets to send 75, broken 74] [11:37:29]ProducePacketName [11:37:29]name=ofd_packets/00191726 [11:37:29]OFD Sender: To server: pG, [11:37:29]CommunicateWithHost lk.salyk.kg:30040 [11:37:29]ConnectInit lk.salyk.kg [11:37:29]written 0, free lines is 4095 [11:37:29]Connected sock=10 [11:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8E BA 07 01 C6 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 85 D4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EC 02 00 35 04 06 00 19 95 1F 23 E2 B5 11 0C CA 2D EF 02 FD 37 [11:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB 61 47 00 20 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EE EC 02 00 F4 03 04 00 51 79 1C 67 B6 04 01 00 00 67 29 67 54 FB C1 32 A8 [11:37:30]CommunicateWithHost err = 0 [11:37:30]CheckOFDResponse [11:37:30]1017 (14) - 77093643461234 [11:37:30]1041 (16) - 0000000000871754 [11:37:30]1040 (4) - 191726 [11:37:30]1012 (4) - 26.10.2024 05:08 [11:37:30]1206 (1) - 0 [11:37:30]OFD Sender: Remove packet 191726 [11:37:30]ProducePacketName [11:37:30]name=ofd_packets/00191726 [11:37:30]NVStorageDeleteData [11:37:30]Write to MH i2c: 01 00 00 C6 F6 BC [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: 01 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: 01 07 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: 01 07 00 C6 F6 00 00 00 00 00 AF 0C 7E [11:37:30]RasterBufferAndPrint [11:37:30]line [11:37:30]line [11:37:30]line [11:37:30]line [11:37:30]line [11:37:30]written 0, free lines is 3253 [11:37:30]MH_Cut [11:37:30]Write to MH i2c: D1 01 00 CD F6 01 95 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: D1 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: D1 01 00 [11:37:30]MH_I2C_Read... [11:37:30]Read from MH i2c: D1 01 00 CD F6 00 94 [11:37:30]Write to MH i2c: 01 00 00 CE F6 C4 [11:37:30]Write i2c OK [11:37:30]MH_I2C_Read... [11:37:30]OFD Sender: No OFD packet to send [11:37:30]*** Cut start [11:37:30]*** Partial cut [11:37:30]*** CUTSNS_PIN = 1 [11:37:31]*** CUTSNS_PIN = 0 [11:37:31]*** Brake cut motor [11:37:31]Read from MH i2c: 01 [11:37:31]MH_I2C_Read... [11:37:31]*** Stop cut motor [11:37:31]*** Cut end [11:37:31]Read from MH i2c: 01 07 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: 01 07 00 CE F6 00 00 00 00 00 FF 0F D9 [11:37:31]process_action close_receipt done [11:37:31]requested_data is exist [11:37:31]produce_requested_data [11:37:31]requested_item fm.sn is exist - process it [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 11 00 00 [11:37:31]Write to MH i2c: E2 08 00 CF F6 80 11 00 00 00 00 00 00 3F [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 17 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 17 00 CF F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [11:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:37:31]wFMCommunicate OK [11:37:31]requested_item fd.num is exist - process it [11:37:31]SAM_PROTO_GetFieldsCounters [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 13 00 00 [11:37:31]Write to MH i2c: E2 08 00 D0 F6 80 13 00 00 00 00 00 00 42 [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 62 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 62 00 D0 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [11:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:31]wFMCommunicate OK [11:37:31]SAM_PROTO_GetFieldsCounters done [11:37:31]requested_item shift.num is exist - process it [11:37:31]requested_item shift.opened is exist - process it [11:37:31]req_shift_opened [11:37:31]FM_GetShiftState [11:37:31]SAM_PROTO_GetShiftState [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 13 01 00 [11:37:31]Write to MH i2c: E2 08 00 D1 F6 80 13 01 00 00 00 00 00 44 [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 D1 F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BD [11:37:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:37:31]wFMCommunicate OK [11:37:31]SAM_PROTO_GetShiftState done [11:37:31]FM_GetShiftState done [11:37:31]req_shift_opened done [11:37:31]requested_item shift.open_date is exist - process it [11:37:31]req_shift_open_date [11:37:31]req_shift_open_date done [11:37:31]produce_requested_data done [11:37:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191726,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:37:31]process_action_free close_receipt [11:37:31]json_value_free [11:37:31]json_value_free done [11:37:31]process_json_proto returns [11:37:31]Send response to host [11:37:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191726,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:37:31]free response buf [11:37:31]execute_script done [11:37:31]execute_script returns [11:37:31]free content buf [11:37:31]Sock 9.Close socket [11:37:31]Sock 9.Thread stoped [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:21]ConnectInit Can't connect to host [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: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]accept exits with 8 [11:43:50]New connection [11:43:50]New thread 3066961252 created [11:43:50]Thread 3066817892 joined [11:43:50]Waiting for new connection... [11:43:50] Sock 8.Parse request [11:43:50]Sock 8.Check first char [11:43:50]Sock 8.First char is OK [11:43:50]request: POST /json_proto HTTP/1.0 [11:43:50]Method: POST [11:43:50]URL: /json_proto [11:43:50]Method is POST - this is cgi request [11:43:50]url: /json_proto [11:43:50]query_string will be loaded in cgi processing [11:43:50]execute_cgi json_proto POST (null) [11:43:50]execute_cgi path=json_proto method=POST [11:43:50]POST find Content-Length [11:43:50]Host: 172.17.63.131:8080 [11:43:50]Content-Length: 676 [11:43:50]Content-Type: application/json [11:43:50] [11:43:50]POST finish read [11:43:50]Found Content-Length = 676 [11:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:50]execute_script... [11:43: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)31029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:50]POST & json_proto [11:43:50]process_json_proto [11:43:50]json parsed OK: [11:43:50]protocol is kg_v1.0 [11:43:50]action value=close_receipt [11:43:50]process_action close_receipt [11:43:50]cmd_close_receipt [11:43:50]MH_GetDate [11:43:50]Write to MH i2c: F0 00 00 D2 F6 B7 [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: F0 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: F0 09 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: F0 09 00 D2 F6 00 05 D6 1C 67 22 05 6E 64 17 [11:43:50]GetLastDocTimeStamp 1729942661 [11:43:50]current date 1729943045 [11:43:50]FM_GetShiftState [11:43:50]SAM_PROTO_GetShiftState [11:43:50]wFMCommunicate request_size=4 [11:43:50]MH_SAM_APDU [11:43:50]CAPDU: 80 13 01 00 [11:43:50]Write to MH i2c: E2 08 00 D3 F6 80 13 01 00 00 00 00 00 46 [11:43:50]Write i2c OK [11:43:50]MH_I2C_Read... [11:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:50]Read from MH i2c: E2 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 0E 00 [11:43:50]MH_I2C_Read... [11:43:50]Read from MH i2c: E2 0E 00 D3 F6 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BF [11:43:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:43:50]wFMCommunicate OK [11:43:50]SAM_PROTO_GetShiftState done [11:43:50]FM_GetShiftState done [11:43:50]opened in 1729902770 [11:43:50]opened+sec_in_day 1729989170 [11:43:50]quantity*price = 50041 [11:43:50]sum+1 = 50042 [11:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 90 26.10.2024 11:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191727 ФПД: 28643774450500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191727&fm=28643774450500&tin=02508201610067®Number=0000000000091776&sum=50000 [11:43:52]StoreToDocumentArchive [11:43:52]shift 541 fd 191727 [11:43:52]save to /storage/0541/doc_00191727 [11:43:52]save last doc name /storage/0541/doc_00191727 to /storage/kkm_last_doc_name [11:43:52]save OK [11:43:52]Clear old archive folders... [11:43:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:43:52]tlvbuf is 01960DC0 [11:43:52]SAM_PROTO_ClearQueue [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 09 00 00 [11:43:52]Write to MH i2c: E2 08 00 E0 F6 80 09 00 00 00 00 00 00 48 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 E0 F6 00 90 00 4A [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]SAM_PROTO_ClearQueue done [11:43:52]KKMCreateOFDPacket [11:43:52]OFDProtocolAddRootSTLVToBuf [11:43:52]FM_MakeSignedData [11:43:52]FM_MakeSignedData [11:43:52]SAM_PROTO_SignData [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 01 02 [11:43:52]Write to MH i2c: E2 08 00 E1 F6 80 0D 01 02 00 00 00 00 50 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 E1 F6 00 90 00 4B [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=255 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 05 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EC 02 00 35 04 06 00 1A [11:43:52]Write to MH i2c: E2 02 01 E2 F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 05 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EC 02 00 35 04 06 00 1A 00 00 B2 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 E2 F6 00 90 00 4C [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=10 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 02 02 05 0D 26 00 4B 44 [11:43:52]Write to MH i2c: E2 0D 00 E3 F6 80 0D 02 02 05 00 0D 26 00 4B 44 00 00 1F [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 03 00 E3 F6 00 90 00 4D [11:43:52]RAPDU: 90 00 [11:43:52]wFMCommunicate OK [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 0D 03 02 [11:43:52]Write to MH i2c: E2 08 00 E4 F6 80 0D 03 02 00 00 00 00 55 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0B 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 0B 00 E4 F6 00 8E 3E F6 6E 02 EB 87 F7 90 00 F1 [11:43:52]RAPDU: 8E 3E F6 6E 02 EB 87 F7 90 00 [11:43:52]wFMCommunicate OK [11:43:52]SAM_PROTO_SignData done [11:43:52]FM_MakeSignedData done [11:43:52]CreateOFDProtocolMessage [11:43:52]wFMCommunicate request_size=4 [11:43:52]MH_SAM_APDU [11:43:52]CAPDU: 80 11 00 00 [11:43:52]Write to MH i2c: E2 08 00 E5 F6 80 11 00 00 00 00 00 00 55 [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:52]Read from MH i2c: E2 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 17 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: E2 17 00 E5 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [11:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:43:52]wFMCommunicate OK [11:43:52]CreateOFDProtocolMessage done [11:43:52]OFDSenderStorePacket 191727 [11:43:52]StoreOFDPacket docnum=191727 [11:43:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 37 07 01 73 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 05 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EC 02 00 35 04 06 00 1A 0D 26 00 4B 44 8E 3E F6 6E 02 EB 87 F7 [11:43:52]CheckFolder [11:43:52]dirname=/storage/ofd_packets [11:43:52]CheckFolder done [11:43:52]ProducePacketName [11:43:52]name=ofd_packets/00191727 [11:43:52]NVStorageSaveData ofd_packets/00191727 [11:43:52]File name is /storage/ofd_packets/00191727 [11:43:52]Write 301 bytes [11:43:52]NVStorageSaveData done [11:43:52]OFDSenderStorePacket done [11:43:52]KKMCreateOFDPacket done [11:43:52]NVStorageSaveData kkm_last_timestamp [11:43:52]File name is /storage/kkm_last_timestamp [11:43:52]Write 4 bytes [11:43:52]NVStorageSaveData done [11:43:52]ExternCall_PrintAddStr [11:43:52]wPrintStart [11:43:52]Write to MH i2c: 01 00 00 E6 F6 DC [11:43:52]Write i2c OK [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: 01 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: 01 07 00 [11:43:52]MH_I2C_Read... [11:43:52]Read from MH i2c: 01 07 00 E6 F6 00 00 00 00 00 FF 0F F1 [11:43:52]RasterBufferAndPrint [11:43:52]line Счет N : (1)31029 [11:43:52]line ИНН: 02508201610067 [11:43:52]line Контрольно-Кассовый Чек [11:43:52]line ПРОДАЖА [11:43:52]line ТРК (МРК, ГНК) : 21 [11:43:52]line Товар: 2710124130 [11:43:52]line Аи-92-К-5 [11:43:52]line 7.480 * 66.90 [11:43:52]line = 500.41 [11:43:52]line НДС 12% НСП 1% [11:43:52]line > о реализуемом товаре [11:43:52]line ОКРУГЛЕНИЕ: -0.41 [11:43:52]line ИТОГО: 500.00 [11:43:52]line Внесено: 500.00 [11:43:52]line СДАЧА: 0.00 [11:43:52]line НСП 1% : 4.43 [11:43:52]line НДС 12% : 53.14 [11:43:52]line Наличными: 500.00 [11:43:52]line Безнал.: 0.00 [11:43:52]line Место: АЗС № 170 "Партнер Нефть" [11:43:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:43:52]line СНО: Общий режим [11:43:52]line Чек 90 26.10.2024 11:44 [11:43:52]line Смена: 541 ФФД: 1.0 [11:43:52]line ЗНМ: 0300000110 [11:43:52]line РНМ: 0000000000091776 [11:43:52]line Версия ККМ: 001 [11:43:52]line ФМ: 0000000000871754 [11:43:52]line ФД: 191727 [11:43:52]line ФПД: 28643774450500 [11:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114405&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191727&fm=28643774450500&tin=02508201610067®Number=0000000000091776&sum=50000 [11:43:52]OFD Sender: Processing packet 191727 [packets to send 75, broken 74] [11:43:52]ProducePacketName [11:43:52]name=ofd_packets/00191727 [11:43:52]OFD Sender: To server: pG, [11:43:52]CommunicateWithHost lk.salyk.kg:30040 [11:43:52]ConnectInit lk.salyk.kg [11:43:52]written 0, free lines is 4095 [11:43:53]Connected sock=10 [11:43:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 37 07 01 73 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 05 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EC 02 00 35 04 06 00 1A 0D 26 00 4B 44 8E 3E F6 6E 02 EB 87 F7 [11:43:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 40 1E 47 00 8F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EF EC 02 00 F4 03 04 00 D0 7A 1C 67 B6 04 01 00 00 CD 1F 57 CE 79 21 67 EE [11:43:53]CommunicateWithHost err = 0 [11:43:53]CheckOFDResponse [11:43:53]1017 (14) - 77093643461234 [11:43:53]1041 (16) - 0000000000871754 [11:43:53]1040 (4) - 191727 [11:43:53]1012 (4) - 26.10.2024 05:14 [11:43:53]1206 (1) - 0 [11:43:53]OFD Sender: Remove packet 191727 [11:43:53]ProducePacketName [11:43:53]name=ofd_packets/00191727 [11:43:53]NVStorageDeleteData [11:43:53]Write to MH i2c: 01 00 00 11 F7 08 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: 01 07 00 11 F7 00 00 00 00 00 AF 0C CA [11:43:53]RasterBufferAndPrint [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]line [11:43:53]written 0, free lines is 3253 [11:43:53]MH_Cut [11:43:53]Write to MH i2c: D1 01 00 18 F7 01 E1 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 01 00 [11:43:53]MH_I2C_Read... [11:43:53]Read from MH i2c: D1 01 00 18 F7 00 E0 [11:43:53]Write to MH i2c: 01 00 00 19 F7 10 [11:43:53]Write i2c OK [11:43:53]MH_I2C_Read... [11:43:53]OFD Sender: No OFD packet to send [11:43:54]*** Cut start [11:43:54]*** Partial cut [11:43:54]*** CUTSNS_PIN = 1 [11:43:54]*** CUTSNS_PIN = 0 [11:43:54]*** Brake cut motor [11:43:54]Read from MH i2c: 01 [11:43:54]MH_I2C_Read... [11:43:54]*** Stop cut motor [11:43:54]*** Cut end [11:43:54]Read from MH i2c: 01 07 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: 01 07 00 19 F7 00 00 00 00 00 FF 0F 25 [11:43:54]process_action close_receipt done [11:43:54]requested_data is exist [11:43:54]produce_requested_data [11:43:54]requested_item fm.sn is exist - process it [11:43:54]wFMCommunicate request_size=4 [11:43:54]MH_SAM_APDU [11:43:54]CAPDU: 80 11 00 00 [11:43:54]Write to MH i2c: E2 08 00 1A F7 80 11 00 00 00 00 00 00 8B [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:54]Read from MH i2c: E2 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 17 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 17 00 1A F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DE [11:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:43:54]wFMCommunicate OK [11:43:54]requested_item fd.num is exist - process it [11:43:54]SAM_PROTO_GetFieldsCounters [11:43:54]wFMCommunicate request_size=4 [11:43:54]MH_SAM_APDU [11:43:54]CAPDU: 80 13 00 00 [11:43:54]Write to MH i2c: E2 08 00 1B F7 80 13 00 00 00 00 00 00 8E [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:54]Read from MH i2c: E2 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 62 00 [11:43:54]MH_I2C_Read... [11:43:54]Read from MH i2c: E2 62 00 1B F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:54]wFMCommunicate OK [11:43:54]SAM_PROTO_GetFieldsCounters done [11:43:54]requested_item shift.num is exist - process it [11:43:54]requested_item shift.opened is exist - process it [11:43:54]req_shift_opened [11:43:54]FM_GetShiftState [11:43:54]SAM_PROTO_GetShiftState [11:43:54]wFMCommunicate request_size=4 [11:43:54]MH_SAM_APDU [11:43:54]CAPDU: 80 13 01 00 [11:43:54]Write to MH i2c: E2 08 00 1C F7 80 13 01 00 00 00 00 00 90 [11:43:54]Write i2c OK [11:43:54]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 [11:43:55]MH_I2C_Read... [11:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:55]Read from MH i2c: E2 0E 00 [11:43:55]MH_I2C_Read... [11:43:55]Read from MH i2c: E2 0E 00 1C F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 09 [11:43:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:43:55]wFMCommunicate OK [11:43:55]SAM_PROTO_GetShiftState done [11:43:55]FM_GetShiftState done [11:43:55]req_shift_opened done [11:43:55]requested_item shift.open_date is exist - process it [11:43:55]req_shift_open_date [11:43:55]req_shift_open_date done [11:43:55]produce_requested_data done [11:43:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191727,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:43:55]process_action_free close_receipt [11:43:55]json_value_free [11:43:55]json_value_free done [11:43:55]process_json_proto returns [11:43:55]Send response to host [11:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191727,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:43:55]free response buf [11:43:55]execute_script done [11:43:55]execute_script returns [11:43:55]free content buf [11:43:55]Sock 8.Close socket [11:43:55]Sock 8.Thread stoped [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:27]accept exits with 9 [11:46:27]New connection [11:46:27]New thread 3066817892 created [11:46:27]Thread 3066961252 joined [11:46:27]Waiting for new connection... [11:46:27] Sock 9.Parse request [11:46:27]Sock 9.Check first char [11:46:27]Sock 9.First char is OK [11:46:27]request: POST /json_proto HTTP/1.0 [11:46:27]Method: POST [11:46:27]URL: /json_proto [11:46:27]Method is POST - this is cgi request [11:46:27]url: /json_proto [11:46:27]query_string will be loaded in cgi processing [11:46:27]execute_cgi json_proto POST (null) [11:46:27]execute_cgi path=json_proto method=POST [11:46:27]POST find Content-Length [11:46:27]Host: 172.17.63.131:8080 [11:46:27]Content-Length: 681 [11:46:27]Content-Type: application/json [11:46:27] [11:46:27]POST finish read [11:46:27]Found Content-Length = 681 [11:46:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:27]execute_script... [11:46: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)31030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:27]POST & json_proto [11:46:27]process_json_proto [11:46:27]json parsed OK: [11:46:27]protocol is kg_v1.0 [11:46:27]action value=close_receipt [11:46:27]process_action close_receipt [11:46:27]cmd_close_receipt [11:46:27]MH_GetDate [11:46:27]Write to MH i2c: F0 00 00 1D F7 03 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 09 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: F0 09 00 1D F7 00 A2 D6 1C 67 22 05 6E 64 00 [11:46:27]GetLastDocTimeStamp 1729943045 [11:46:27]current date 1729943202 [11:46:27]FM_GetShiftState [11:46:27]SAM_PROTO_GetShiftState [11:46:27]wFMCommunicate request_size=4 [11:46:27]MH_SAM_APDU [11:46:27]CAPDU: 80 13 01 00 [11:46:27]Write to MH i2c: E2 08 00 1E F7 80 13 01 00 00 00 00 00 92 [11:46:27]Write i2c OK [11:46:27]MH_I2C_Read... [11:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:27]Read from MH i2c: E2 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 [11:46:27]MH_I2C_Read... [11:46:27]Read from MH i2c: E2 0E 00 1E F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0B [11:46:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:46:27]wFMCommunicate OK [11:46:27]SAM_PROTO_GetShiftState done [11:46:27]FM_GetShiftState done [11:46:27]opened in 1729902770 [11:46:27]opened+sec_in_day 1729989170 [11:46:27]quantity*price = 120018 [11:46:27]sum+1 = 120020 [11:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 91 26.10.2024 11:46 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191728 ФПД: 205938456657831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191728&fm=205938456657831&tin=02508201610067®Number=0000000000091776&sum=120000 [11:46:29]StoreToDocumentArchive [11:46:29]shift 541 fd 191728 [11:46:29]save to /storage/0541/doc_00191728 [11:46:29]save last doc name /storage/0541/doc_00191728 to /storage/kkm_last_doc_name [11:46:29]save OK [11:46:29]Clear old archive folders... [11:46:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:29]tlvbuf is 016B04B0 [11:46:29]SAM_PROTO_ClearQueue [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 09 00 00 [11:46:29]Write to MH i2c: E2 08 00 2B F7 80 09 00 00 00 00 00 00 94 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 2B F7 00 90 00 96 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]SAM_PROTO_ClearQueue done [11:46:29]KKMCreateOFDPacket [11:46:29]OFDProtocolAddRootSTLVToBuf [11:46:29]FM_MakeSignedData [11:46:29]FM_MakeSignedData [11:46:29]SAM_PROTO_SignData [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 01 02 [11:46:29]Write to MH i2c: E2 08 00 2C F7 80 0D 01 02 00 00 00 00 9C [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 2C F7 00 90 00 97 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=255 [11:46:29]MH_SAM_APDU [11:46: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A2 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EC 02 00 35 04 06 00 BB [11:46:29]Write to MH i2c: E2 02 01 2D F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A2 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EC 02 00 35 04 06 00 BB 00 00 45 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 2D F7 00 90 00 98 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=10 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 02 02 05 4C C8 8D FF A7 [11:46:29]Write to MH i2c: E2 0D 00 2E F7 80 0D 02 02 05 00 4C C8 8D FF A7 00 00 F0 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 03 00 2E F7 00 90 00 99 [11:46:29]RAPDU: 90 00 [11:46:29]wFMCommunicate OK [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 0D 03 02 [11:46:29]Write to MH i2c: E2 08 00 2F F7 80 0D 03 02 00 00 00 00 A1 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 0B 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 0B 00 2F F7 00 AA 34 B1 C7 60 16 33 82 90 00 23 [11:46:29]RAPDU: AA 34 B1 C7 60 16 33 82 90 00 [11:46:29]wFMCommunicate OK [11:46:29]SAM_PROTO_SignData done [11:46:29]FM_MakeSignedData done [11:46:29]CreateOFDProtocolMessage [11:46:29]wFMCommunicate request_size=4 [11:46:29]MH_SAM_APDU [11:46:29]CAPDU: 80 11 00 00 [11:46:29]Write to MH i2c: E2 08 00 30 F7 80 11 00 00 00 00 00 00 A1 [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:29]Read from MH i2c: E2 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 17 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: E2 17 00 30 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [11:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:46:29]wFMCommunicate OK [11:46:29]CreateOFDProtocolMessage done [11:46:29]OFDSenderStorePacket 191728 [11:46:29]StoreOFDPacket docnum=191728 [11:46:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 95 07 01 65 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A2 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EC 02 00 35 04 06 00 BB 4C C8 8D FF A7 AA 34 B1 C7 60 16 33 82 [11:46:29]CheckFolder [11:46:29]dirname=/storage/ofd_packets [11:46:29]CheckFolder done [11:46:29]ProducePacketName [11:46:29]name=ofd_packets/00191728 [11:46:29]NVStorageSaveData ofd_packets/00191728 [11:46:29]File name is /storage/ofd_packets/00191728 [11:46:29]Write 301 bytes [11:46:29]NVStorageSaveData done [11:46:29]OFDSenderStorePacket done [11:46:29]KKMCreateOFDPacket done [11:46:29]NVStorageSaveData kkm_last_timestamp [11:46:29]File name is /storage/kkm_last_timestamp [11:46:29]Write 4 bytes [11:46:29]NVStorageSaveData done [11:46:29]ExternCall_PrintAddStr [11:46:29]wPrintStart [11:46:29]Write to MH i2c: 01 00 00 31 F7 28 [11:46:29]OFD Sender: Processing packet 191728 [packets to send 75, broken 74] [11:46:29]ProducePacketName [11:46:29]name=ofd_packets/00191728 [11:46:29]OFD Sender: To server: pG, [11:46:29]CommunicateWithHost lk.salyk.kg:30040 [11:46:29]ConnectInit lk.salyk.kg [11:46:29]Write i2c OK [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 [11:46:29]MH_I2C_Read... [11:46:29]Read from MH i2c: 01 07 00 31 F7 00 00 00 00 00 FF 0F 3D [11:46:29]RasterBufferAndPrint [11:46:29]line Счет N : (1)31030 [11:46:29]line ИНН: 02508201610067 [11:46:29]line Контрольно-Кассовый Чек [11:46:29]line ПРОДАЖА [11:46:29]line ТРК (МРК, ГНК) : 21 [11:46:29]line Товар: 2710124130 [11:46:29]line Аи-92-К-5 [11:46:29]line 17.940 * 66.90 [11:46:29]line = 1200.19 [11:46:29]line НДС 12% НСП 1% [11:46:29]line > о реализуемом товаре [11:46:29]line ОКРУГЛЕНИЕ: -0.19 [11:46:29]line ИТОГО: 1200.00 [11:46:29]line Внесено: 1200.00 [11:46:29]line СДАЧА: 0.00 [11:46:29]line НСП 1% : 10.62 [11:46:29]line НДС 12% : 127.45 [11:46:29]line Наличными: 1200.00 [11:46:29]line Безнал.: 0.00 [11:46:29]line Место: АЗС № 170 "Партнер Нефть" [11:46:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:46:29]line СНО: Общий режим [11:46:29]line Чек 91 26.10.2024 11:46 [11:46:29]line Смена: 541 ФФД: 1.0 [11:46:29]line ЗНМ: 0300000110 [11:46:29]line РНМ: 0000000000091776 [11:46:29]line Версия ККМ: 001 [11:46:29]line ФМ: 0000000000871754 [11:46:29]line ФД: 191728 [11:46:29]line ФПД: 205938456657831 [11:46:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114642&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191728&fm=205938456657831&tin=02508201610067®Number=0000000000091776&sum=120000 [11:46:30]Connected sock=10 [11:46:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 89 95 07 01 65 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A2 D6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EC 02 00 35 04 06 00 BB 4C C8 8D FF A7 AA 34 B1 C7 60 16 33 82 [11:46:30]written 0, free lines is 4095 [11:46:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D FB 47 00 7A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F0 EC 02 00 F4 03 04 00 6D 7B 1C 67 B6 04 01 00 00 CA DB F5 A4 B8 F2 4F 23 [11:46:30]CommunicateWithHost err = 0 [11:46:30]CheckOFDResponse [11:46:30]1017 (14) - 77093643461234 [11:46:30]1041 (16) - 0000000000871754 [11:46:30]1040 (4) - 191728 [11:46:30]1012 (4) - 26.10.2024 05:17 [11:46:30]1206 (1) - 0 [11:46:30]OFD Sender: Remove packet 191728 [11:46:30]ProducePacketName [11:46:30]name=ofd_packets/00191728 [11:46:30]NVStorageDeleteData [11:46:30]Write to MH i2c: 01 00 00 5C F7 53 [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 07 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: 01 07 00 5C F7 00 00 00 00 00 B9 0C 1F [11:46:30]RasterBufferAndPrint [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]line [11:46:30]written 0, free lines is 3263 [11:46:30]MH_Cut [11:46:30]Write to MH i2c: D1 01 00 63 F7 01 2C [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: D1 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: D1 01 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: D1 01 00 63 F7 00 2B [11:46:30]Write to MH i2c: 01 00 00 64 F7 5B [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]OFD Sender: No OFD packet to send [11:46:31]*** Cut start [11:46:31]*** Partial cut [11:46:31]*** CUTSNS_PIN = 1 [11:46:31]*** CUTSNS_PIN = 0 [11:46:31]*** Brake cut motor [11:46:31]Read from MH i2c: 01 [11:46:31]MH_I2C_Read... [11:46:31]*** Stop cut motor [11:46:31]*** Cut end [11:46:31]Read from MH i2c: 01 07 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: 01 07 00 64 F7 00 00 00 00 00 FF 0F 70 [11:46:31]process_action close_receipt done [11:46:31]requested_data is exist [11:46:31]produce_requested_data [11:46:31]requested_item fm.sn is exist - process it [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 11 00 00 [11:46:31]Write to MH i2c: E2 08 00 65 F7 80 11 00 00 00 00 00 00 D6 [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 65 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [11:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:46:32]wFMCommunicate OK [11:46:32]requested_item fd.num is exist - process it [11:46:32]SAM_PROTO_GetFieldsCounters [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 00 00 [11:46:32]Write to MH i2c: E2 08 00 66 F7 80 13 00 00 00 00 00 00 D9 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 66 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [11:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F0 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetFieldsCounters done [11:46:32]requested_item shift.num is exist - process it [11:46:32]requested_item shift.opened is exist - process it [11:46:32]req_shift_opened [11:46:32]FM_GetShiftState [11:46:32]SAM_PROTO_GetShiftState [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 01 00 [11:46:32]Write to MH i2c: E2 08 00 67 F7 80 13 01 00 00 00 00 00 DB [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 67 F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 54 [11:46:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetShiftState done [11:46:32]FM_GetShiftState done [11:46:32]req_shift_opened done [11:46:32]requested_item shift.open_date is exist - process it [11:46:32]req_shift_open_date [11:46:32]req_shift_open_date done [11:46:32]produce_requested_data done [11:46:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191728,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:46:32]process_action_free close_receipt [11:46:32]json_value_free [11:46:32]json_value_free done [11:46:32]process_json_proto returns [11:46:32]Send response to host [11:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191728,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:46:32]free response buf [11:46:32]execute_script done [11:46:32]execute_script returns [11:46:32]free content buf [11:46:32]Sock 9.Close socket [11:46:32]Sock 9.Thread stoped [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:24]accept exits with 8 [11:48:24]New connection [11:48:24]New thread 3066961252 created [11:48:24]Thread 3066817892 joined [11:48:24]Waiting for new connection... [11:48:24] Sock 8.Parse request [11:48:24]Sock 8.Check first char [11:48:24]Sock 8.First char is OK [11:48:24]request: POST /json_proto HTTP/1.0 [11:48:24]Method: POST [11:48:24]URL: /json_proto [11:48:24]Method is POST - this is cgi request [11:48:24]url: /json_proto [11:48:24]query_string will be loaded in cgi processing [11:48:24]execute_cgi json_proto POST (null) [11:48:24]execute_cgi path=json_proto method=POST [11:48:24]POST find Content-Length [11:48:24]Host: 172.17.63.131:8080 [11:48:24]Content-Length: 676 [11:48:24]Content-Type: application/json [11:48:24] [11:48:24]POST finish read [11:48:24]Found Content-Length = 676 [11:48:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]execute_script... [11:48: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)31031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:24]POST & json_proto [11:48:24]process_json_proto [11:48:24]json parsed OK: [11:48:24]protocol is kg_v1.0 [11:48:24]action value=close_receipt [11:48:24]process_action close_receipt [11:48:24]cmd_close_receipt [11:48:24]MH_GetDate [11:48:24]Write to MH i2c: F0 00 00 68 F7 4E [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: F0 09 00 68 F7 00 16 D7 1C 67 22 05 6E 64 C0 [11:48:24]GetLastDocTimeStamp 1729943202 [11:48:24]current date 1729943318 [11:48:24]FM_GetShiftState [11:48:24]SAM_PROTO_GetShiftState [11:48:24]wFMCommunicate request_size=4 [11:48:24]MH_SAM_APDU [11:48:24]CAPDU: 80 13 01 00 [11:48:24]Write to MH i2c: E2 08 00 69 F7 80 13 01 00 00 00 00 00 DD [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:24]Read from MH i2c: E2 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 [11:48:24]MH_I2C_Read... [11:48:24]Read from MH i2c: E2 0E 00 69 F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 56 [11:48:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:48:24]wFMCommunicate OK [11:48:24]SAM_PROTO_GetShiftState done [11:48:24]FM_GetShiftState done [11:48:24]opened in 1729902770 [11:48:24]opened+sec_in_day 1729989170 [11:48:24]quantity*price = 20003 [11:48:24]sum+1 = 20004 [11:48:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 92 26.10.2024 11:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191729 ФПД: 115984544898660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191729&fm=115984544898660&tin=02508201610067®Number=0000000000091776&sum=20000 [11:48:25]StoreToDocumentArchive [11:48:25]shift 541 fd 191729 [11:48:25]save to /storage/0541/doc_00191729 [11:48:25]save last doc name /storage/0541/doc_00191729 to /storage/kkm_last_doc_name [11:48:25]save OK [11:48:25]Clear old archive folders... [11:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:25]tlvbuf is 015D8C10 [11:48:25]SAM_PROTO_ClearQueue [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 09 00 00 [11:48:25]Write to MH i2c: E2 08 00 76 F7 80 09 00 00 00 00 00 00 DF [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 76 F7 00 90 00 E1 [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]SAM_PROTO_ClearQueue done [11:48:25]KKMCreateOFDPacket [11:48:25]OFDProtocolAddRootSTLVToBuf [11:48:25]FM_MakeSignedData [11:48:25]FM_MakeSignedData [11:48:25]SAM_PROTO_SignData [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 0D 01 02 [11:48:25]Write to MH i2c: E2 08 00 77 F7 80 0D 01 02 00 00 00 00 E7 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 77 F7 00 90 00 E2 [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=255 [11:48:25]MH_SAM_APDU [11:48: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 16 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EC 02 00 35 04 06 00 69 [11:48:25]Write to MH i2c: E2 02 01 78 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 16 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EC 02 00 35 04 06 00 69 00 00 70 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 78 F7 00 90 00 E3 [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=10 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 0D 02 02 05 7C C1 99 1E 64 [11:48:25]Write to MH i2c: E2 0D 00 79 F7 80 0D 02 02 05 00 7C C1 99 1E 64 00 00 4C [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]OFD Sender: No OFD packet to send [11:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 03 00 79 F7 00 90 00 E4 [11:48:25]RAPDU: 90 00 [11:48:25]wFMCommunicate OK [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 0D 03 02 [11:48:25]Write to MH i2c: E2 08 00 7A F7 80 0D 03 02 00 00 00 00 EC [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0B 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0B 00 7A F7 00 EB DD 25 67 A2 35 58 61 90 00 D1 [11:48:25]RAPDU: EB DD 25 67 A2 35 58 61 90 00 [11:48:25]wFMCommunicate OK [11:48:25]SAM_PROTO_SignData done [11:48:25]FM_MakeSignedData done [11:48:25]CreateOFDProtocolMessage [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 11 00 00 [11:48:25]Write to MH i2c: E2 08 00 7B F7 80 11 00 00 00 00 00 00 EC [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 7B F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [11:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:48:25]wFMCommunicate OK [11:48:25]CreateOFDProtocolMessage done [11:48:25]OFDSenderStorePacket 191729 [11:48:25]StoreOFDPacket docnum=191729 [11:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C B8 07 01 23 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 16 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EC 02 00 35 04 06 00 69 7C C1 99 1E 64 EB DD 25 67 A2 35 58 61 [11:48:25]CheckFolder [11:48:25]dirname=/storage/ofd_packets [11:48:25]CheckFolder done [11:48:25]ProducePacketName [11:48:25]name=ofd_packets/00191729 [11:48:25]NVStorageSaveData ofd_packets/00191729 [11:48:25]File name is /storage/ofd_packets/00191729 [11:48:25]Write 301 bytes [11:48:25]NVStorageSaveData done [11:48:25]OFDSenderStorePacket done [11:48:25]KKMCreateOFDPacket done [11:48:25]NVStorageSaveData kkm_last_timestamp [11:48:25]File name is /storage/kkm_last_timestamp [11:48:25]Write 4 bytes [11:48:25]NVStorageSaveData done [11:48:25]ExternCall_PrintAddStr [11:48:25]wPrintStart [11:48:25]Write to MH i2c: 01 00 00 7C F7 73 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 07 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 07 00 7C F7 00 00 00 00 00 FF 0F 88 [11:48:25]RasterBufferAndPrint [11:48:25]line Счет N : (1)31031 [11:48:25]line ИНН: 02508201610067 [11:48:25]line Контрольно-Кассовый Чек [11:48:25]line ПРОДАЖА [11:48:25]line ТРК (МРК, ГНК) : 21 [11:48:25]line Товар: 2710124130 [11:48:25]line Аи-92-К-5 [11:48:25]line 2.990 * 66.90 [11:48:25]line = 200.03 [11:48:25]line НДС 12% НСП 1% [11:48:25]line > о реализуемом товаре [11:48:25]line ОКРУГЛЕНИЕ: -0.03 [11:48:25]line ИТОГО: 200.00 [11:48:25]line Внесено: 200.00 [11:48:25]line СДАЧА: 0.00 [11:48:25]line НСП 1% : 1.77 [11:48:25]line НДС 12% : 21.24 [11:48:25]line Наличными: 200.00 [11:48:25]line Безнал.: 0.00 [11:48:25]line Место: АЗС № 170 "Партнер Нефть" [11:48:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:48:25]line СНО: Общий режим [11:48:25]line Чек 92 26.10.2024 11:48 [11:48:25]line Смена: 541 ФФД: 1.0 [11:48:25]line ЗНМ: 0300000110 [11:48:25]line РНМ: 0000000000091776 [11:48:25]line Версия ККМ: 001 [11:48:25]line ФМ: 0000000000871754 [11:48:25]line ФД: 191729 [11:48:25]line ФПД: 115984544898660 [11:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T114838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191729&fm=115984544898660&tin=02508201610067®Number=0000000000091776&sum=20000 [11:48:26]OFD Sender: Processing packet 191729 [packets to send 75, broken 74] [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00191729 [11:48:26]OFD Sender: To server: pG, [11:48:26]CommunicateWithHost lk.salyk.kg:30040 [11:48:26]ConnectInit lk.salyk.kg [11:48:26]written 0, free lines is 4095 [11:48:26]Connected sock=10 [11:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C B8 07 01 23 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 16 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EC 02 00 35 04 06 00 69 7C C1 99 1E 64 EB DD 25 67 A2 35 58 61 [11:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 80 E8 47 00 86 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F1 EC 02 00 F4 03 04 00 E1 7B 1C 67 B6 04 01 00 00 79 7D 72 62 E2 E8 74 93 [11:48:26]CommunicateWithHost err = 0 [11:48:26]CheckOFDResponse [11:48:26]1017 (14) - 77093643461234 [11:48:26]1041 (16) - 0000000000871754 [11:48:26]1040 (4) - 191729 [11:48:26]1012 (4) - 26.10.2024 05:19 [11:48:26]1206 (1) - 0 [11:48:26]OFD Sender: Remove packet 191729 [11:48:26]ProducePacketName [11:48:26]name=ofd_packets/00191729 [11:48:26]NVStorageDeleteData [11:48:26]Write to MH i2c: 01 00 00 A7 F7 9E [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: 01 07 00 A7 F7 00 00 00 00 00 B2 0C 63 [11:48:26]RasterBufferAndPrint [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]line [11:48:26]written 0, free lines is 3257 [11:48:26]MH_Cut [11:48:26]Write to MH i2c: D1 01 00 AE F7 01 77 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 01 00 [11:48:26]MH_I2C_Read... [11:48:26]Read from MH i2c: D1 01 00 AE F7 00 76 [11:48:26]Write to MH i2c: 01 00 00 AF F7 A6 [11:48:26]Write i2c OK [11:48:26]MH_I2C_Read... [11:48:27]OFD Sender: No OFD packet to send [11:48:27]*** Cut start [11:48:27]*** Partial cut [11:48:27]*** CUTSNS_PIN = 1 [11:48:27]*** CUTSNS_PIN = 0 [11:48:27]*** Brake cut motor [11:48:28]Read from MH i2c: 01 [11:48:28]MH_I2C_Read... [11:48:28]*** Stop cut motor [11:48:28]*** Cut end [11:48:28]Read from MH i2c: 01 07 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: 01 07 00 AF F7 00 00 00 00 00 FF 0F BB [11:48:28]process_action close_receipt done [11:48:28]requested_data is exist [11:48:28]produce_requested_data [11:48:28]requested_item fm.sn is exist - process it [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 11 00 00 [11:48:28]Write to MH i2c: E2 08 00 B0 F7 80 11 00 00 00 00 00 00 21 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 17 00 B0 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [11:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:48:28]wFMCommunicate OK [11:48:28]requested_item fd.num is exist - process it [11:48:28]SAM_PROTO_GetFieldsCounters [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 13 00 00 [11:48:28]Write to MH i2c: E2 08 00 B1 F7 80 13 00 00 00 00 00 00 24 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 62 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 62 00 B1 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [11:48:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F1 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_GetFieldsCounters done [11:48:28]requested_item shift.num is exist - process it [11:48:28]requested_item shift.opened is exist - process it [11:48:28]req_shift_opened [11:48:28]FM_GetShiftState [11:48:28]SAM_PROTO_GetShiftState [11:48:28]wFMCommunicate request_size=4 [11:48:28]MH_SAM_APDU [11:48:28]CAPDU: 80 13 01 00 [11:48:28]Write to MH i2c: E2 08 00 B2 F7 80 13 01 00 00 00 00 00 26 [11:48:28]Write i2c OK [11:48:28]MH_I2C_Read... [11:48:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:28]Read from MH i2c: E2 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0E 00 [11:48:28]MH_I2C_Read... [11:48:28]Read from MH i2c: E2 0E 00 B2 F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9F [11:48:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:48:28]wFMCommunicate OK [11:48:28]SAM_PROTO_GetShiftState done [11:48:28]FM_GetShiftState done [11:48:28]req_shift_opened done [11:48:28]requested_item shift.open_date is exist - process it [11:48:28]req_shift_open_date [11:48:28]req_shift_open_date done [11:48:28]produce_requested_data done [11:48:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191729,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:48:28]process_action_free close_receipt [11:48:28]json_value_free [11:48:28]json_value_free done [11:48:28]process_json_proto returns [11:48:28]Send response to host [11:48:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191729,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:48:28]free response buf [11:48:28]execute_script done [11:48:28]execute_script returns [11:48:28]free content buf [11:48:28]Sock 8.Close socket [11:48:28]Sock 8.Thread stoped [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:44]accept exits with 9 [11:50:44]New connection [11:50:44]New thread 3066817892 created [11:50:44]Thread 3066961252 joined [11:50:44]Waiting for new connection... [11:50:44] Sock 9.Parse request [11:50:44]Sock 9.Check first char [11:50:44]Sock 9.First char is OK [11:50:44]request: POST /json_proto HTTP/1.0 [11:50:44]Method: POST [11:50:44]URL: /json_proto [11:50:44]Method is POST - this is cgi request [11:50:44]url: /json_proto [11:50:44]query_string will be loaded in cgi processing [11:50:44]execute_cgi json_proto POST (null) [11:50:44]execute_cgi path=json_proto method=POST [11:50:44]POST find Content-Length [11:50:44]Host: 172.17.63.131:8080 [11:50:44]Content-Length: 676 [11:50:44]Content-Type: application/json [11:50:44] [11:50:44]POST finish read [11:50:44]Found Content-Length = 676 [11:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:44]execute_script... [11:50:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:44]POST & json_proto [11:50:44]process_json_proto [11:50:44]json parsed OK: [11:50:44]protocol is kg_v1.0 [11:50:44]action value=close_receipt [11:50:44]process_action close_receipt [11:50:44]cmd_close_receipt [11:50:44]MH_GetDate [11:50:44]Write to MH i2c: F0 00 00 B3 F7 99 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: F0 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: F0 09 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: F0 09 00 B3 F7 00 A2 D7 1C 67 22 05 6E 64 97 [11:50:44]GetLastDocTimeStamp 1729943318 [11:50:44]current date 1729943458 [11:50:44]FM_GetShiftState [11:50:44]SAM_PROTO_GetShiftState [11:50:44]wFMCommunicate request_size=4 [11:50:44]MH_SAM_APDU [11:50:44]CAPDU: 80 13 01 00 [11:50:44]Write to MH i2c: E2 08 00 B4 F7 80 13 01 00 00 00 00 00 28 [11:50:44]Write i2c OK [11:50:44]MH_I2C_Read... [11:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:44]Read from MH i2c: E2 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 [11:50:44]MH_I2C_Read... [11:50:44]Read from MH i2c: E2 0E 00 B4 F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A1 [11:50:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:50:44]wFMCommunicate OK [11:50:44]SAM_PROTO_GetShiftState done [11:50:44]FM_GetShiftState done [11:50:44]opened in 1729902770 [11:50:44]opened+sec_in_day 1729989170 [11:50:44]quantity*price = 50041 [11:50:44]sum+1 = 50042 [11:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 93 26.10.2024 11:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191730 ФПД: 60406392046751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191730&fm=60406392046751&tin=02508201610067®Number=0000000000091776&sum=50000 [11:50:45]StoreToDocumentArchive [11:50:45]shift 541 fd 191730 [11:50:45]save to /storage/0541/doc_00191730 [11:50:45]save last doc name /storage/0541/doc_00191730 to /storage/kkm_last_doc_name [11:50:45]save OK [11:50:45]Clear old archive folders... [11:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:45]tlvbuf is 01960CB0 [11:50:45]SAM_PROTO_ClearQueue [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 09 00 00 [11:50:45]Write to MH i2c: E2 08 00 C1 F7 80 09 00 00 00 00 00 00 2A [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 C1 F7 00 90 00 2C [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_ClearQueue done [11:50:45]KKMCreateOFDPacket [11:50:45]OFDProtocolAddRootSTLVToBuf [11:50:45]FM_MakeSignedData [11:50:45]FM_MakeSignedData [11:50:45]SAM_PROTO_SignData [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 01 02 [11:50:45]Write to MH i2c: E2 08 00 C2 F7 80 0D 01 02 00 00 00 00 32 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 C2 F7 00 90 00 2D [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=255 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A2 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EC 02 00 35 04 06 00 36 [11:50:45]Write to MH i2c: E2 02 01 C3 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A2 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EC 02 00 35 04 06 00 36 00 00 54 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 C3 F7 00 90 00 2E [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=10 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 02 02 05 F0 75 8A 44 9F [11:50:45]Write to MH i2c: E2 0D 00 C4 F7 80 0D 02 02 05 00 F0 75 8A 44 9F 00 00 11 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 03 00 C4 F7 00 90 00 2F [11:50:45]RAPDU: 90 00 [11:50:45]wFMCommunicate OK [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 0D 03 02 [11:50:45]Write to MH i2c: E2 08 00 C5 F7 80 0D 03 02 00 00 00 00 37 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 0B 00 C5 F7 00 FF 8D 21 4A D2 59 65 F2 90 00 B1 [11:50:45]RAPDU: FF 8D 21 4A D2 59 65 F2 90 00 [11:50:45]wFMCommunicate OK [11:50:45]SAM_PROTO_SignData done [11:50:45]FM_MakeSignedData done [11:50:45]CreateOFDProtocolMessage [11:50:45]wFMCommunicate request_size=4 [11:50:45]MH_SAM_APDU [11:50:45]CAPDU: 80 11 00 00 [11:50:45]Write to MH i2c: E2 08 00 C6 F7 80 11 00 00 00 00 00 00 37 [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:45]Read from MH i2c: E2 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: E2 17 00 C6 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [11:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:50:45]wFMCommunicate OK [11:50:45]CreateOFDProtocolMessage done [11:50:45]OFDSenderStorePacket 191730 [11:50:45]StoreOFDPacket docnum=191730 [11:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 23 07 01 58 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A2 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EC 02 00 35 04 06 00 36 F0 75 8A 44 9F FF 8D 21 4A D2 59 65 F2 [11:50:45]CheckFolder [11:50:45]dirname=/storage/ofd_packets [11:50:45]CheckFolder done [11:50:45]ProducePacketName [11:50:45]name=ofd_packets/00191730 [11:50:45]NVStorageSaveData ofd_packets/00191730 [11:50:45]File name is /storage/ofd_packets/00191730 [11:50:45]Write 301 bytes [11:50:45]NVStorageSaveData done [11:50:45]OFDSenderStorePacket done [11:50:45]KKMCreateOFDPacket done [11:50:45]NVStorageSaveData kkm_last_timestamp [11:50:45]File name is /storage/kkm_last_timestamp [11:50:45]Write 4 bytes [11:50:45]NVStorageSaveData done [11:50:45]ExternCall_PrintAddStr [11:50:45]wPrintStart [11:50:45]Write to MH i2c: 01 00 00 C7 F7 BE [11:50:45]Write i2c OK [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 [11:50:45]MH_I2C_Read... [11:50:45]Read from MH i2c: 01 07 00 C7 F7 00 00 00 00 00 FF 0F D3 [11:50:45]RasterBufferAndPrint [11:50:45]line Счет N : (1)31032 [11:50:45]line ИНН: 02508201610067 [11:50:45]line Контрольно-Кассовый Чек [11:50:45]line ПРОДАЖА [11:50:45]line ТРК (МРК, ГНК) : 21 [11:50:45]line Товар: 2710124130 [11:50:45]line Аи-92-К-5 [11:50:45]line 7.480 * 66.90 [11:50:45]line = 500.41 [11:50:45]line НДС 12% НСП 1% [11:50:45]line > о реализуемом товаре [11:50:45]line ОКРУГЛЕНИЕ: -0.41 [11:50:45]line ИТОГО: 500.00 [11:50:45]line Внесено: 500.00 [11:50:45]line СДАЧА: 0.00 [11:50:45]line НСП 1% : 4.43 [11:50:45]line НДС 12% : 53.14 [11:50:45]line Наличными: 500.00 [11:50:45]line Безнал.: 0.00 [11:50:45]line Место: АЗС № 170 "Партнер Нефть" [11:50:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:50:45]line СНО: Общий режим [11:50:45]line Чек 93 26.10.2024 11:50 [11:50:45]line Смена: 541 ФФД: 1.0 [11:50:45]line ЗНМ: 0300000110 [11:50:45]line РНМ: 0000000000091776 [11:50:45]line Версия ККМ: 001 [11:50:45]line ФМ: 0000000000871754 [11:50:45]line ФД: 191730 [11:50:45]line ФПД: 60406392046751 [11:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115058&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191730&fm=60406392046751&tin=02508201610067®Number=0000000000091776&sum=50000 [11:50:46]OFD Sender: Processing packet 191730 [packets to send 75, broken 74] [11:50:46]ProducePacketName [11:50:46]name=ofd_packets/00191730 [11:50:46]OFD Sender: To server: pG, [11:50:46]CommunicateWithHost lk.salyk.kg:30040 [11:50:46]ConnectInit lk.salyk.kg [11:50:46]written 0, free lines is 4095 [11:50:46]Connected sock=10 [11:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 23 07 01 58 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 A2 D7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EC 02 00 35 04 06 00 36 F0 75 8A 44 9F FF 8D 21 4A D2 59 65 F2 [11:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 F0 47 00 55 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F2 EC 02 00 F4 03 04 00 6D 7C 1C 67 B6 04 01 00 00 82 BB 18 E0 33 BE 69 9E [11:50:46]CommunicateWithHost err = 0 [11:50:46]CheckOFDResponse [11:50:46]1017 (14) - 77093643461234 [11:50:46]1041 (16) - 0000000000871754 [11:50:46]1040 (4) - 191730 [11:50:46]1012 (4) - 26.10.2024 05:21 [11:50:46]1206 (1) - 0 [11:50:46]OFD Sender: Remove packet 191730 [11:50:46]ProducePacketName [11:50:46]name=ofd_packets/00191730 [11:50:46]NVStorageDeleteData [11:50:46]Write to MH i2c: 01 00 00 F2 F7 E9 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: 01 07 00 F2 F7 00 00 00 00 00 A5 0C A1 [11:50:46]RasterBufferAndPrint [11:50:46]line [11:50:46]line [11:50:46]line [11:50:46]line [11:50:46]line [11:50:46]written 0, free lines is 3242 [11:50:46]MH_Cut [11:50:46]Write to MH i2c: D1 01 00 F9 F7 01 C2 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: D1 01 00 F9 F7 00 C1 [11:50:46]Write to MH i2c: 01 00 00 FA F7 F1 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]OFD Sender: No OFD packet to send [11:50:47]*** Cut start [11:50:47]*** Partial cut [11:50:47]*** CUTSNS_PIN = 1 [11:50:47]*** CUTSNS_PIN = 0 [11:50:47]*** Brake cut motor [11:50:48]Read from MH i2c: 01 [11:50:48]MH_I2C_Read... [11:50:48]*** Stop cut motor [11:50:48]*** Cut end [11:50:48]Read from MH i2c: 01 07 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: 01 07 00 FA F7 00 00 00 00 00 FF 0F 06 [11:50:48]process_action close_receipt done [11:50:48]requested_data is exist [11:50:48]produce_requested_data [11:50:48]requested_item fm.sn is exist - process it [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 11 00 00 [11:50:48]Write to MH i2c: E2 08 00 FB F7 80 11 00 00 00 00 00 00 6C [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 17 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 17 00 FB F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [11:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:50:48]wFMCommunicate OK [11:50:48]requested_item fd.num is exist - process it [11:50:48]SAM_PROTO_GetFieldsCounters [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 00 00 [11:50:48]Write to MH i2c: E2 08 00 FC F7 80 13 00 00 00 00 00 00 6F [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 62 00 FC F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [11:50:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F2 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetFieldsCounters done [11:50:48]requested_item shift.num is exist - process it [11:50:48]requested_item shift.opened is exist - process it [11:50:48]req_shift_opened [11:50:48]FM_GetShiftState [11:50:48]SAM_PROTO_GetShiftState [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 01 00 [11:50:48]Write to MH i2c: E2 08 00 FD F7 80 13 01 00 00 00 00 00 71 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 0E 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 0E 00 FD F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EA [11:50:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetShiftState done [11:50:48]FM_GetShiftState done [11:50:48]req_shift_opened done [11:50:48]requested_item shift.open_date is exist - process it [11:50:48]req_shift_open_date [11:50:48]req_shift_open_date done [11:50:48]produce_requested_data done [11:50:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191730,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:50:48]process_action_free close_receipt [11:50:48]json_value_free [11:50:48]json_value_free done [11:50:48]process_json_proto returns [11:50:48]Send response to host [11:50:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191730,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:50:48]free response buf [11:50:48]execute_script done [11:50:48]execute_script returns [11:50:48]free content buf [11:50:48]Sock 9.Close socket [11:50:48]Sock 9.Thread stoped [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:21]accept exits with 8 [11:56:21]New connection [11:56:21]New thread 3066961252 created [11:56:21]Thread 3066817892 joined [11:56:21]Waiting for new connection... [11:56:21] Sock 8.Parse request [11:56:21]Sock 8.Check first char [11:56:21]Sock 8.First char is OK [11:56:21]request: POST /json_proto HTTP/1.0 [11:56:21]Method: POST [11:56:21]URL: /json_proto [11:56:21]Method is POST - this is cgi request [11:56:21]url: /json_proto [11:56:21]query_string will be loaded in cgi processing [11:56:21]execute_cgi json_proto POST (null) [11:56:21]execute_cgi path=json_proto method=POST [11:56:21]POST find Content-Length [11:56:21]Host: 172.17.63.131:8080 [11:56:21]Content-Length: 678 [11:56:21]Content-Type: application/json [11:56:21] [11:56:21]POST finish read [11:56:21]Found Content-Length = 678 [11:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31033", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:21]execute_script... [11: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)31033", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:21]POST & json_proto [11:56:21]process_json_proto [11:56:21]json parsed OK: [11:56:21]protocol is kg_v1.0 [11:56:21]action value=close_receipt [11:56:21]process_action close_receipt [11:56:21]cmd_close_receipt [11:56:21]MH_GetDate [11:56:21]Write to MH i2c: F0 00 00 FE F7 E4 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: F0 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: F0 09 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: F0 09 00 FE F7 00 F3 D8 1C 67 22 05 6E 64 34 [11:56:21]GetLastDocTimeStamp 1729943458 [11:56:21]current date 1729943795 [11:56:21]FM_GetShiftState [11:56:21]SAM_PROTO_GetShiftState [11:56:21]wFMCommunicate request_size=4 [11:56:21]MH_SAM_APDU [11:56:21]CAPDU: 80 13 01 00 [11:56:21]Write to MH i2c: E2 08 00 FF F7 80 13 01 00 00 00 00 00 73 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:21]Read from MH i2c: E2 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 0E 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 0E 00 FF F7 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EC [11:56:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:56:21]wFMCommunicate OK [11:56:21]SAM_PROTO_GetShiftState done [11:56:21]FM_GetShiftState done [11:56:21]opened in 1729902770 [11:56:21]opened+sec_in_day 1729989170 [11:56:21]quantity*price = 200025 [11:56:21]sum+1 = 200026 [11:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 94 26.10.2024 11:56 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191731 ФПД: 120349764272949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191731&fm=120349764272949&tin=02508201610067®Number=0000000000091776&sum=200000 [11:56:22]StoreToDocumentArchive [11:56:22]shift 541 fd 191731 [11:56:22]save to /storage/0541/doc_00191731 [11:56:22]save last doc name /storage/0541/doc_00191731 to /storage/kkm_last_doc_name [11:56:22]save OK [11:56:22]Clear old archive folders... [11:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:56:22]tlvbuf is 019D5060 [11:56:22]SAM_PROTO_ClearQueue [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 09 00 00 [11:56:22]Write to MH i2c: E2 08 00 0C F8 80 09 00 00 00 00 00 00 76 [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 03 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 03 00 0C F8 00 90 00 78 [11:56:22]RAPDU: 90 00 [11:56:22]wFMCommunicate OK [11:56:22]SAM_PROTO_ClearQueue done [11:56:22]KKMCreateOFDPacket [11:56:22]OFDProtocolAddRootSTLVToBuf [11:56:22]FM_MakeSignedData [11:56:22]FM_MakeSignedData [11:56:22]SAM_PROTO_SignData [11:56:22]wFMCommunicate request_size=4 [11:56:22]MH_SAM_APDU [11:56:22]CAPDU: 80 0D 01 02 [11:56:22]Write to MH i2c: E2 08 00 0D F8 80 0D 01 02 00 00 00 00 7E [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:22]Read from MH i2c: E2 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 03 00 [11:56:22]MH_I2C_Read... [11:56:22]Read from MH i2c: E2 03 00 0D F8 00 90 00 79 [11:56:22]RAPDU: 90 00 [11:56:22]wFMCommunicate OK [11:56:22]wFMCommunicate request_size=255 [11:56:22]MH_SAM_APDU [11:56: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 D8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EC 02 00 35 04 06 00 6D 75 1C F2 [11:56:22]Write to MH i2c: E2 02 01 0E F8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 D8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EC 02 00 35 04 06 00 6D 75 1C F2 00 00 92 [11:56:22]Write i2c OK [11:56:22]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 0E F8 00 90 00 7A [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]wFMCommunicate request_size=7 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 02 02 02 C3 35 [11:56:23]Write to MH i2c: E2 0A 00 0F F8 80 0D 02 02 02 00 C3 35 00 00 7D [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 03 00 0F F8 00 90 00 7B [11:56:23]RAPDU: 90 00 [11:56:23]wFMCommunicate OK [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 0D 03 02 [11:56:23]Write to MH i2c: E2 08 00 10 F8 80 0D 03 02 00 00 00 00 83 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0B 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0B 00 10 F8 00 37 C5 96 F5 0F AD 21 B4 90 00 9C [11:56:23]RAPDU: 37 C5 96 F5 0F AD 21 B4 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_SignData done [11:56:23]FM_MakeSignedData done [11:56:23]CreateOFDProtocolMessage [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 11 00 00 [11:56:23]Write to MH i2c: E2 08 00 11 F8 80 11 00 00 00 00 00 00 83 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 11 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [11:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:56:23]wFMCommunicate OK [11:56:23]CreateOFDProtocolMessage done [11:56:23]OFDSenderStorePacket 191731 [11:56:23]StoreOFDPacket docnum=191731 [11:56:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 10 1D 04 01 B5 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 D8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EC 02 00 35 04 06 00 6D 75 1C F2 C3 35 37 C5 96 F5 0F AD 21 B4 [11:56:23]CheckFolder [11:56:23]dirname=/storage/ofd_packets [11:56:23]CheckFolder done [11:56:23]ProducePacketName [11:56:23]name=ofd_packets/00191731 [11:56:23]NVStorageSaveData ofd_packets/00191731 [11:56:23]File name is /storage/ofd_packets/00191731 [11:56:23]Write 298 bytes [11:56:23]NVStorageSaveData done [11:56:23]OFDSenderStorePacket done [11:56:23]KKMCreateOFDPacket done [11:56:23]NVStorageSaveData kkm_last_timestamp [11:56:23]File name is /storage/kkm_last_timestamp [11:56:23]Write 4 bytes [11:56:23]NVStorageSaveData done [11:56:23]ExternCall_PrintAddStr [11:56:23]wPrintStart [11:56:23]Write to MH i2c: 01 00 00 12 F8 0A [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 12 F8 00 00 00 00 00 FF 0F 1F [11:56:23]RasterBufferAndPrint [11:56:23]line Счет N : (1)31033 [11:56:23]line ИНН: 02508201610067 [11:56:23]line Контрольно-Кассовый Чек [11:56:23]line ПРОДАЖА [11:56:23]line ТРК (МРК, ГНК) : 22 [11:56:23]line Товар: 2710194210 [11:56:23]line ДТ-К-5 [11:56:23]line 26.250 * 76.20 [11:56:23]line = 2000.25 [11:56:23]line НДС 12% НСП 1% [11:56:23]line > о реализуемом товаре [11:56:23]line ОКРУГЛЕНИЕ: -0.25 [11:56:23]line ИТОГО: 2000.00 [11:56:23]line Внесено: 2000.00 [11:56:23]line СДАЧА: 0.00 [11:56:23]line НСП 1% : 17.70 [11:56:23]line НДС 12% : 212.42 [11:56:23]line Наличными: 2000.00 [11:56:23]line Безнал.: 0.00 [11:56:23]line Место: АЗС № 170 "Партнер Нефть" [11:56:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:56:23]line СНО: Общий режим [11:56:23]line Чек 94 26.10.2024 11:56 [11:56:23]line Смена: 541 ФФД: 1.0 [11:56:23]line ЗНМ: 0300000110 [11:56:23]line РНМ: 0000000000091776 [11:56:23]line Версия ККМ: 001 [11:56:23]line ФМ: 0000000000871754 [11:56:23]line ФД: 191731 [11:56:23]line ФПД: 120349764272949 [11:56:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115635&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191731&fm=120349764272949&tin=02508201610067®Number=0000000000091776&sum=200000 [11:56:23]OFD Sender: Processing packet 191731 [packets to send 75, broken 74] [11:56:23]ProducePacketName [11:56:23]name=ofd_packets/00191731 [11:56:23]OFD Sender: To server: pG, [11:56:23]CommunicateWithHost lk.salyk.kg:30040 [11:56:23]ConnectInit lk.salyk.kg [11:56:23]written 0, free lines is 4095 [11:56:23]Connected sock=10 [11:56:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 10 1D 04 01 B5 96 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F3 D8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EC 02 00 35 04 06 00 6D 75 1C F2 C3 35 37 C5 96 F5 0F AD 21 B4 [11:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 3E 47 00 49 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F3 EC 02 00 F4 03 04 00 BF 7D 1C 67 B6 04 01 00 00 B7 45 1B 4F 7A 6E 9E 9D [11:56:23]CommunicateWithHost err = 0 [11:56:23]CheckOFDResponse [11:56:23]1017 (14) - 77093643461234 [11:56:23]1041 (16) - 0000000000871754 [11:56:23]1040 (4) - 191731 [11:56:23]1012 (4) - 26.10.2024 05:27 [11:56:23]1206 (1) - 0 [11:56:23]OFD Sender: Remove packet 191731 [11:56:23]ProducePacketName [11:56:23]name=ofd_packets/00191731 [11:56:23]NVStorageDeleteData [11:56:24]Write to MH i2c: 01 00 00 3D F8 35 [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 07 00 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: 01 07 00 3D F8 00 00 00 00 00 B8 0C 00 [11:56:24]RasterBufferAndPrint [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]line [11:56:24]written 0, free lines is 3264 [11:56:24]MH_Cut [11:56:24]Write to MH i2c: D1 01 00 44 F8 01 0E [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 01 00 [11:56:24]MH_I2C_Read... [11:56:24]Read from MH i2c: D1 01 00 44 F8 00 0D [11:56:24]Write to MH i2c: 01 00 00 45 F8 3D [11:56:24]Write i2c OK [11:56:24]MH_I2C_Read... [11:56:24]OFD Sender: No OFD packet to send [11:56:24]*** Cut start [11:56:24]*** Partial cut [11:56:24]*** CUTSNS_PIN = 1 [11:56:24]*** CUTSNS_PIN = 0 [11:56:25]*** Brake cut motor [11:56:25]Read from MH i2c: 01 [11:56:25]MH_I2C_Read... [11:56:25]*** Stop cut motor [11:56:25]*** Cut end [11:56:25]Read from MH i2c: 01 07 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: 01 07 00 45 F8 00 00 00 00 00 FF 0F 52 [11:56:25]process_action close_receipt done [11:56:25]requested_data is exist [11:56:25]produce_requested_data [11:56:25]requested_item fm.sn is exist - process it [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 11 00 00 [11:56:25]Write to MH i2c: E2 08 00 46 F8 80 11 00 00 00 00 00 00 B8 [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 [11:56:25]MH_I2C_Read... [11:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:25]Read from MH i2c: E2 17 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 17 00 46 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0B [11:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:56:25]wFMCommunicate OK [11:56:25]requested_item fd.num is exist - process it [11:56:25]SAM_PROTO_GetFieldsCounters [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 13 00 00 [11:56:25]Write to MH i2c: E2 08 00 47 F8 80 13 00 00 00 00 00 00 BB [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:25]Read from MH i2c: E2 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 62 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 62 00 47 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [11:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F3 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:25]wFMCommunicate OK [11:56:25]SAM_PROTO_GetFieldsCounters done [11:56:25]requested_item shift.num is exist - process it [11:56:25]requested_item shift.opened is exist - process it [11:56:25]req_shift_opened [11:56:25]FM_GetShiftState [11:56:25]SAM_PROTO_GetShiftState [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 13 01 00 [11:56:25]Write to MH i2c: E2 08 00 48 F8 80 13 01 00 00 00 00 00 BD [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:25]Read from MH i2c: E2 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 0E 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 0E 00 48 F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 36 [11:56:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:56:25]wFMCommunicate OK [11:56:25]SAM_PROTO_GetShiftState done [11:56:25]FM_GetShiftState done [11:56:25]req_shift_opened done [11:56:25]requested_item shift.open_date is exist - process it [11:56:25]req_shift_open_date [11:56:25]req_shift_open_date done [11:56:25]produce_requested_data done [11:56:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191731,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:56:25]process_action_free close_receipt [11:56:25]json_value_free [11:56:25]json_value_free done [11:56:25]process_json_proto returns [11:56:25]Send response to host [11:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191731,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:56:25]free response buf [11:56:25]execute_script done [11:56:25]execute_script returns [11:56:25]free content buf [11:56:25]Sock 8.Close socket [11:56:25]Sock 8.Thread stoped [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:02]accept exits with 9 [11:58:02]New connection [11:58:02]New thread 3066817892 created [11:58:02]Thread 3066961252 joined [11:58:02]Waiting for new connection... [11:58:02] Sock 9.Parse request [11:58:02]Sock 9.Check first char [11:58:02]Sock 9.First char is OK [11:58:02]request: POST /json_proto HTTP/1.0 [11:58:02]Method: POST [11:58:02]URL: /json_proto [11:58:02]Method is POST - this is cgi request [11:58:02]url: /json_proto [11:58:02]query_string will be loaded in cgi processing [11:58:02]execute_cgi json_proto POST (null) [11:58:02]execute_cgi path=json_proto method=POST [11:58:02]POST find Content-Length [11:58:02]Host: 172.17.63.131:8080 [11:58:02]Content-Length: 678 [11:58:02]Content-Type: application/json [11:58:02] [11:58:02]POST finish read [11:58:02]Found Content-Length = 678 [11:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]execute_script... [11:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:02]POST & json_proto [11:58:02]process_json_proto [11:58:02]json parsed OK: [11:58:02]protocol is kg_v1.0 [11:58:02]action value=close_receipt [11:58:02]process_action close_receipt [11:58:02]cmd_close_receipt [11:58:02]MH_GetDate [11:58:02]Write to MH i2c: F0 00 00 49 F8 30 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: F0 09 00 49 F8 00 58 D9 1C 67 22 05 6E 64 E6 [11:58:02]GetLastDocTimeStamp 1729943795 [11:58:02]current date 1729943896 [11:58:02]FM_GetShiftState [11:58:02]SAM_PROTO_GetShiftState [11:58:02]wFMCommunicate request_size=4 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 13 01 00 [11:58:02]Write to MH i2c: E2 08 00 4A F8 80 13 01 00 00 00 00 00 BF [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0E 00 4A F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 38 [11:58:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:58:02]wFMCommunicate OK [11:58:02]SAM_PROTO_GetShiftState done [11:58:02]FM_GetShiftState done [11:58:02]opened in 1729902770 [11:58:02]opened+sec_in_day 1729989170 [11:58:02]quantity*price = 100050 [11:58:02]sum+1 = 100052 [11:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 95 26.10.2024 11:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191732 ФПД: 99228342110011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115816&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191732&fm=99228342110011&tin=02508201610067®Number=0000000000091776&sum=100000 [11:58:03]StoreToDocumentArchive [11:58:03]shift 541 fd 191732 [11:58:03]save to /storage/0541/doc_00191732 [11:58:03]save last doc name /storage/0541/doc_00191732 to /storage/kkm_last_doc_name [11:58:03]save OK [11:58:03]Clear old archive folders... [11:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:03]tlvbuf is 01831490 [11:58:03]SAM_PROTO_ClearQueue [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 09 00 00 [11:58:03]Write to MH i2c: E2 08 00 57 F8 80 09 00 00 00 00 00 00 C1 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 57 F8 00 90 00 C3 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]SAM_PROTO_ClearQueue done [11:58:03]KKMCreateOFDPacket [11:58:03]OFDProtocolAddRootSTLVToBuf [11:58:03]FM_MakeSignedData [11:58:03]FM_MakeSignedData [11:58:03]SAM_PROTO_SignData [11:58:03]wFMCommunicate request_size=4 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 01 02 [11:58:03]Write to MH i2c: E2 08 00 58 F8 80 0D 01 02 00 00 00 00 C9 [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:03]Read from MH i2c: E2 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 [11:58:03]MH_I2C_Read... [11:58:03]Read from MH i2c: E2 03 00 58 F8 00 90 00 C4 [11:58:03]RAPDU: 90 00 [11:58:03]wFMCommunicate OK [11:58:03]wFMCommunicate request_size=255 [11:58:03]MH_SAM_APDU [11:58:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 58 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EC 02 00 35 04 06 00 5A 3F 66 15 [11:58:03]Write to MH i2c: E2 02 01 59 F8 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 58 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EC 02 00 35 04 06 00 5A 3F 66 15 00 00 7B [11:58:03]Write i2c OK [11:58:03]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 59 F8 00 90 00 C5 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=7 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 02 02 02 47 3B [11:58:04]Write to MH i2c: E2 0A 00 5A F8 80 0D 02 02 02 00 47 3B 00 00 52 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 03 00 5A F8 00 90 00 C6 [11:58:04]RAPDU: 90 00 [11:58:04]wFMCommunicate OK [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 0D 03 02 [11:58:04]Write to MH i2c: E2 08 00 5B F8 80 0D 03 02 00 00 00 00 CE [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0B 00 5B F8 00 AD F5 0B 9B 4C 76 37 F1 90 00 01 [11:58:04]RAPDU: AD F5 0B 9B 4C 76 37 F1 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_SignData done [11:58:04]FM_MakeSignedData done [11:58:04]CreateOFDProtocolMessage [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 11 00 00 [11:58:04]Write to MH i2c: E2 08 00 5C F8 80 11 00 00 00 00 00 00 CE [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 5C F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [11:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:58:04]wFMCommunicate OK [11:58:04]CreateOFDProtocolMessage done [11:58:04]OFDSenderStorePacket 191732 [11:58:04]StoreOFDPacket docnum=191732 [11:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 FE 04 01 5A 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 58 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EC 02 00 35 04 06 00 5A 3F 66 15 47 3B AD F5 0B 9B 4C 76 37 F1 [11:58:04]CheckFolder [11:58:04]dirname=/storage/ofd_packets [11:58:04]CheckFolder done [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00191732 [11:58:04]NVStorageSaveData ofd_packets/00191732 [11:58:04]File name is /storage/ofd_packets/00191732 [11:58:04]Write 298 bytes [11:58:04]NVStorageSaveData done [11:58:04]OFDSenderStorePacket done [11:58:04]KKMCreateOFDPacket done [11:58:04]NVStorageSaveData kkm_last_timestamp [11:58:04]File name is /storage/kkm_last_timestamp [11:58:04]Write 4 bytes [11:58:04]NVStorageSaveData done [11:58:04]ExternCall_PrintAddStr [11:58:04]wPrintStart [11:58:04]Write to MH i2c: 01 00 00 5D F8 55 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 5D F8 00 00 00 00 00 FF 0F 6A [11:58:04]RasterBufferAndPrint [11:58:04]line Счет N : (1)31035 [11:58:04]line ИНН: 02508201610067 [11:58:04]line Контрольно-Кассовый Чек [11:58:04]line ПРОДАЖА [11:58:04]line ТРК (МРК, ГНК) : 11 [11:58:04]line Товар: 2710194210 [11:58:04]line ДТ-К-5 [11:58:04]line 13.130 * 76.20 [11:58:04]line = 1000.51 [11:58:04]line НДС 12% НСП 1% [11:58:04]line > о реализуемом товаре [11:58:04]line ОКРУГЛЕНИЕ: -0.51 [11:58:04]line ИТОГО: 1000.00 [11:58:04]line Внесено: 1000.00 [11:58:04]line СДАЧА: 0.00 [11:58:04]line НСП 1% : 8.85 [11:58:04]line НДС 12% : 106.25 [11:58:04]line Наличными: 1000.00 [11:58:04]line Безнал.: 0.00 [11:58:04]line Место: АЗС № 170 "Партнер Нефть" [11:58:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:58:04]line СНО: Общий режим [11:58:04]line Чек 95 26.10.2024 11:58 [11:58:04]line Смена: 541 ФФД: 1.0 [11:58:04]line ЗНМ: 0300000110 [11:58:04]line РНМ: 0000000000091776 [11:58:04]line Версия ККМ: 001 [11:58:04]line ФМ: 0000000000871754 [11:58:04]line ФД: 191732 [11:58:04]line ФПД: 99228342110011 [11:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115816&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191732&fm=99228342110011&tin=02508201610067®Number=0000000000091776&sum=100000 [11:58:04]OFD Sender: Processing packet 191732 [packets to send 75, broken 74] [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00191732 [11:58:04]OFD Sender: To server: pG, [11:58:04]CommunicateWithHost lk.salyk.kg:30040 [11:58:04]ConnectInit lk.salyk.kg [11:58:04]written 0, free lines is 4095 [11:58:04]Connected sock=10 [11:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 77 FE 04 01 5A 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 58 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EC 02 00 35 04 06 00 5A 3F 66 15 47 3B AD F5 0B 9B 4C 76 37 F1 [11:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A F9 47 00 CD 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F4 EC 02 00 F4 03 04 00 24 7E 1C 67 B6 04 01 00 00 1E 29 EC C2 52 60 5B AE [11:58:04]CommunicateWithHost err = 0 [11:58:04]CheckOFDResponse [11:58:04]1017 (14) - 77093643461234 [11:58:04]1041 (16) - 0000000000871754 [11:58:04]1040 (4) - 191732 [11:58:04]1012 (4) - 26.10.2024 05:29 [11:58:04]1206 (1) - 0 [11:58:04]OFD Sender: Remove packet 191732 [11:58:04]ProducePacketName [11:58:04]name=ofd_packets/00191732 [11:58:04]NVStorageDeleteData [11:58:05]Write to MH i2c: 01 00 00 88 F8 80 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: 01 07 00 88 F8 00 00 00 00 00 B8 0C 4B [11:58:05]RasterBufferAndPrint [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]line [11:58:05]written 0, free lines is 3263 [11:58:05]MH_Cut [11:58:05]Write to MH i2c: D1 01 00 8F F8 01 59 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 [11:58:05]MH_I2C_Read... [11:58:05]Read from MH i2c: D1 01 00 8F F8 00 58 [11:58:05]Write to MH i2c: 01 00 00 90 F8 88 [11:58:05]Write i2c OK [11:58:05]MH_I2C_Read... [11:58:05]OFD Sender: No OFD packet to send [11:58:05]*** Cut start [11:58:05]*** Partial cut [11:58:05]*** CUTSNS_PIN = 1 [11:58:05]*** CUTSNS_PIN = 0 [11:58:06]*** Brake cut motor [11:58:06]Read from MH i2c: 01 [11:58:06]MH_I2C_Read... [11:58:06]*** Stop cut motor [11:58:06]*** Cut end [11:58:06]Read from MH i2c: 01 07 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: 01 07 00 90 F8 00 00 00 00 00 FF 0F 9D [11:58:06]process_action close_receipt done [11:58:06]requested_data is exist [11:58:06]produce_requested_data [11:58:06]requested_item fm.sn is exist - process it [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 11 00 00 [11:58:06]Write to MH i2c: E2 08 00 91 F8 80 11 00 00 00 00 00 00 03 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:06]Read from MH i2c: E2 17 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 17 00 91 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 56 [11:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:58:06]wFMCommunicate OK [11:58:06]requested_item fd.num is exist - process it [11:58:06]SAM_PROTO_GetFieldsCounters [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 00 00 [11:58:06]Write to MH i2c: E2 08 00 92 F8 80 13 00 00 00 00 00 00 06 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:06]Read from MH i2c: E2 62 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 62 00 92 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F4 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetFieldsCounters done [11:58:06]requested_item shift.num is exist - process it [11:58:06]requested_item shift.opened is exist - process it [11:58:06]req_shift_opened [11:58:06]FM_GetShiftState [11:58:06]SAM_PROTO_GetShiftState [11:58:06]wFMCommunicate request_size=4 [11:58:06]MH_SAM_APDU [11:58:06]CAPDU: 80 13 01 00 [11:58:06]Write to MH i2c: E2 08 00 93 F8 80 13 01 00 00 00 00 00 08 [11:58:06]Write i2c OK [11:58:06]MH_I2C_Read... [11:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:06]Read from MH i2c: E2 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 [11:58:06]MH_I2C_Read... [11:58:06]Read from MH i2c: E2 0E 00 93 F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 81 [11:58:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:58:06]wFMCommunicate OK [11:58:06]SAM_PROTO_GetShiftState done [11:58:06]FM_GetShiftState done [11:58:06]req_shift_opened done [11:58:06]requested_item shift.open_date is exist - process it [11:58:06]req_shift_open_date [11:58:06]req_shift_open_date done [11:58:06]produce_requested_data done [11:58:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191732,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:58:06]process_action_free close_receipt [11:58:06]json_value_free [11:58:06]json_value_free done [11:58:06]process_json_proto returns [11:58:06]Send response to host [11:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191732,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:58:06]free response buf [11:58:06]execute_script done [11:58:06]execute_script returns [11:58:06]free content buf [11:58:06]Sock 9.Close socket [11:58:06]Sock 9.Thread stoped [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:12]accept exits with 8 [11:59:12]New connection [11:59:12]New thread 3066961252 created [11:59:12]Thread 3066817892 joined [11:59:12]Waiting for new connection... [11:59:12] Sock 8.Parse request [11:59:12]Sock 8.Check first char [11:59:12]Sock 8.First char is OK [11:59:12]request: POST /json_proto HTTP/1.0 [11:59:12]Method: POST [11:59:12]URL: /json_proto [11:59:12]Method is POST - this is cgi request [11:59:12]url: /json_proto [11:59:12]query_string will be loaded in cgi processing [11:59:12]execute_cgi json_proto POST (null) [11:59:12]execute_cgi path=json_proto method=POST [11:59:12]POST find Content-Length [11:59:12]Host: 172.17.63.131:8080 [11:59:12]Content-Length: 676 [11:59:12]Content-Type: application/json [11:59:12] [11:59:12]POST finish read [11:59:12]Found Content-Length = 676 [11:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:12]execute_script... [11:59: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)31036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:12]POST & json_proto [11:59:12]process_json_proto [11:59:12]json parsed OK: [11:59:12]protocol is kg_v1.0 [11:59:12]action value=close_receipt [11:59:12]process_action close_receipt [11:59:12]cmd_close_receipt [11:59:12]MH_GetDate [11:59:12]Write to MH i2c: F0 00 00 94 F8 7B [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: F0 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: F0 09 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: F0 09 00 94 F8 00 9E D9 1C 67 22 05 6E 64 77 [11:59:12]GetLastDocTimeStamp 1729943896 [11:59:12]current date 1729943966 [11:59:12]FM_GetShiftState [11:59:12]SAM_PROTO_GetShiftState [11:59:12]wFMCommunicate request_size=4 [11:59:12]MH_SAM_APDU [11:59:12]CAPDU: 80 13 01 00 [11:59:12]Write to MH i2c: E2 08 00 95 F8 80 13 01 00 00 00 00 00 0A [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:12]Read from MH i2c: E2 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: E2 0E 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: E2 0E 00 95 F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 83 [11:59:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:59:12]wFMCommunicate OK [11:59:12]SAM_PROTO_GetShiftState done [11:59:12]FM_GetShiftState done [11:59:12]opened in 1729902770 [11:59:12]opened+sec_in_day 1729989170 [11:59:12]quantity*price = 30038 [11:59:12]sum+1 = 30039 [11:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 96 26.10.2024 11:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191733 ФПД: 169581366103703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191733&fm=169581366103703&tin=02508201610067®Number=0000000000091776&sum=30000 [11:59:13]StoreToDocumentArchive [11:59:13]shift 541 fd 191733 [11:59:13]save to /storage/0541/doc_00191733 [11:59:13]save last doc name /storage/0541/doc_00191733 to /storage/kkm_last_doc_name [11:59:13]save OK [11:59:13]Clear old archive folders... [11:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:13]tlvbuf is 016EB780 [11:59:13]SAM_PROTO_ClearQueue [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 09 00 00 [11:59:13]Write to MH i2c: E2 08 00 A2 F8 80 09 00 00 00 00 00 00 0C [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 A2 F8 00 90 00 0E [11:59:13]RAPDU: 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_ClearQueue done [11:59:13]KKMCreateOFDPacket [11:59:13]OFDProtocolAddRootSTLVToBuf [11:59:13]FM_MakeSignedData [11:59:13]FM_MakeSignedData [11:59:13]SAM_PROTO_SignData [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 0D 01 02 [11:59:13]Write to MH i2c: E2 08 00 A3 F8 80 0D 01 02 00 00 00 00 14 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 A3 F8 00 90 00 0F [11:59:13]RAPDU: 90 00 [11:59:13]wFMCommunicate OK [11:59:13]wFMCommunicate request_size=255 [11:59:13]MH_SAM_APDU [11:59: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EC 02 00 35 04 06 00 9A [11:59:13]Write to MH i2c: E2 02 01 A4 F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EC 02 00 35 04 06 00 9A 00 00 92 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 A4 F8 00 90 00 10 [11:59:13]RAPDU: 90 00 [11:59:13]wFMCommunicate OK [11:59:13]wFMCommunicate request_size=10 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 0D 02 02 05 3B BD 16 4E 97 [11:59:13]Write to MH i2c: E2 0D 00 A5 F8 80 0D 02 02 05 00 3B BD 16 4E 97 00 00 14 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 03 00 A5 F8 00 90 00 11 [11:59:13]RAPDU: 90 00 [11:59:13]wFMCommunicate OK [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 0D 03 02 [11:59:13]Write to MH i2c: E2 08 00 A6 F8 80 0D 03 02 00 00 00 00 19 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0B 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0B 00 A6 F8 00 F7 CD B8 12 4E 03 9B CF 90 00 63 [11:59:13]RAPDU: F7 CD B8 12 4E 03 9B CF 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_SignData done [11:59:13]FM_MakeSignedData done [11:59:13]CreateOFDProtocolMessage [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 11 00 00 [11:59:13]Write to MH i2c: E2 08 00 A7 F8 80 11 00 00 00 00 00 00 19 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 A7 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [11:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:13]wFMCommunicate OK [11:59:13]CreateOFDProtocolMessage done [11:59:13]OFDSenderStorePacket 191733 [11:59:13]StoreOFDPacket docnum=191733 [11:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 80 07 01 A1 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EC 02 00 35 04 06 00 9A 3B BD 16 4E 97 F7 CD B8 12 4E 03 9B CF [11:59:13]CheckFolder [11:59:13]dirname=/storage/ofd_packets [11:59:13]CheckFolder done [11:59:13]ProducePacketName [11:59:13]name=ofd_packets/00191733 [11:59:13]NVStorageSaveData ofd_packets/00191733 [11:59:13]File name is /storage/ofd_packets/00191733 [11:59:13]Write 301 bytes [11:59:13]NVStorageSaveData done [11:59:13]OFDSenderStorePacket done [11:59:13]KKMCreateOFDPacket done [11:59:13]NVStorageSaveData kkm_last_timestamp [11:59:13]File name is /storage/kkm_last_timestamp [11:59:13]Write 4 bytes [11:59:13]NVStorageSaveData done [11:59:13]ExternCall_PrintAddStr [11:59:13]wPrintStart [11:59:13]Write to MH i2c: 01 00 00 A8 F8 A0 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 A8 F8 00 00 00 00 00 FF 0F B5 [11:59:13]RasterBufferAndPrint [11:59:13]line Счет N : (1)31036 [11:59:13]line ИНН: 02508201610067 [11:59:13]line Контрольно-Кассовый Чек [11:59:13]line ПРОДАЖА [11:59:13]line ТРК (МРК, ГНК) : 12 [11:59:13]line Товар: 2710124130 [11:59:13]line Аи-92-К-5 [11:59:13]line 4.490 * 66.90 [11:59:13]line = 300.38 [11:59:13]line НДС 12% НСП 1% [11:59:13]line > о реализуемом товаре [11:59:13]line ОКРУГЛЕНИЕ: -0.38 [11:59:13]line ИТОГО: 300.00 [11:59:13]line Внесено: 300.00 [11:59:13]line СДАЧА: 0.00 [11:59:13]line НСП 1% : 2.66 [11:59:13]line НДС 12% : 31.90 [11:59:13]line Наличными: 300.00 [11:59:13]line Безнал.: 0.00 [11:59:13]line Место: АЗС № 170 "Партнер Нефть" [11:59:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [11:59:13]line СНО: Общий режим [11:59:13]line Чек 96 26.10.2024 11:59 [11:59:13]line Смена: 541 ФФД: 1.0 [11:59:13]line ЗНМ: 0300000110 [11:59:13]line РНМ: 0000000000091776 [11:59:13]line Версия ККМ: 001 [11:59:13]line ФМ: 0000000000871754 [11:59:13]line ФД: 191733 [11:59:13]line ФПД: 169581366103703 [11:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T115926&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191733&fm=169581366103703&tin=02508201610067®Number=0000000000091776&sum=30000 [11:59:14]OFD Sender: Processing packet 191733 [packets to send 75, broken 74] [11:59:14]ProducePacketName [11:59:14]name=ofd_packets/00191733 [11:59:14]OFD Sender: To server: pG, [11:59:14]CommunicateWithHost lk.salyk.kg:30040 [11:59:14]ConnectInit lk.salyk.kg [11:59:14]written 0, free lines is 4095 [11:59:14]Connected sock=11 [11:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 80 07 01 A1 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 9E D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F5 EC 02 00 35 04 06 00 9A 3B BD 16 4E 97 F7 CD B8 12 4E 03 9B CF [11:59:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 16 96 47 00 16 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 31 37 35 34 10 04 04 00 F5 EC 02 00 F4 03 04 00 69 7E 1C 67 B6 04 01 00 00 E6 75 16 F1 C9 A0 76 FE [11:59:14]CommunicateWithHost err = 0 [11:59:14]CheckOFDResponse [11:59:14]1017 (14) - 77093643461234 [11:59:14]1041 (16) - 0000000000871754 [11:59:14]1040 (4) - 191733 [11:59:14]1012 (4) - 26.10.2024 05:30 [11:59:14]1206 (1) - 0 [11:59:14]OFD Sender: Remove packet 191733 [11:59:14]ProducePacketName [11:59:14]name=ofd_packets/00191733 [11:59:14]NVStorageDeleteData [11:59:14]Write to MH i2c: 01 00 00 D3 F8 CB [11:59:14]Write i2c OK [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: 01 [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: 01 07 00 [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: 01 07 00 D3 F8 00 00 00 00 00 CC 0C AA [11:59:14]RasterBufferAndPrint [11:59:14]line [11:59:14]line [11:59:14]line [11:59:14]line [11:59:14]line [11:59:14]written 0, free lines is 3282 [11:59:14]MH_Cut [11:59:14]Write to MH i2c: D1 01 00 DA F8 01 A4 [11:59:14]Write i2c OK [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: D1 [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: D1 01 00 [11:59:14]MH_I2C_Read... [11:59:14]Read from MH i2c: D1 01 00 DA F8 00 A3 [11:59:14]Write to MH i2c: 01 00 00 DB F8 D3 [11:59:14]Write i2c OK [11:59:14]MH_I2C_Read... [11:59:15]OFD Sender: No OFD packet to send [11:59:15]*** Cut start [11:59:15]*** Partial cut [11:59:15]*** CUTSNS_PIN = 1 [11:59:15]*** CUTSNS_PIN = 0 [11:59:15]*** Brake cut motor [11:59:16]Read from MH i2c: 01 [11:59:16]MH_I2C_Read... [11:59:16]*** Stop cut motor [11:59:16]*** Cut end [11:59:16]Read from MH i2c: 01 07 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: 01 07 00 DB F8 00 00 00 00 00 FF 0F E8 [11:59:16]process_action close_receipt done [11:59:16]requested_data is exist [11:59:16]produce_requested_data [11:59:16]requested_item fm.sn is exist - process it [11:59:16]wFMCommunicate request_size=4 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 11 00 00 [11:59:16]Write to MH i2c: E2 08 00 DC F8 80 11 00 00 00 00 00 00 4E [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 17 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 17 00 DC F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [11:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [11:59:16]wFMCommunicate OK [11:59:16]requested_item fd.num is exist - process it [11:59:16]SAM_PROTO_GetFieldsCounters [11:59:16]wFMCommunicate request_size=4 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 13 00 00 [11:59:16]Write to MH i2c: E2 08 00 DD F8 80 13 00 00 00 00 00 00 51 [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 62 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 62 00 DD F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [11:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F5 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:16]wFMCommunicate OK [11:59:16]SAM_PROTO_GetFieldsCounters done [11:59:16]requested_item shift.num is exist - process it [11:59:16]requested_item shift.opened is exist - process it [11:59:16]req_shift_opened [11:59:16]FM_GetShiftState [11:59:16]SAM_PROTO_GetShiftState [11:59:16]wFMCommunicate request_size=4 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 13 01 00 [11:59:16]Write to MH i2c: E2 08 00 DE F8 80 13 01 00 00 00 00 00 53 [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 0E 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 0E 00 DE F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CC [11:59:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:59:16]wFMCommunicate OK [11:59:16]SAM_PROTO_GetShiftState done [11:59:16]FM_GetShiftState done [11:59:16]req_shift_opened done [11:59:16]requested_item shift.open_date is exist - process it [11:59:16]req_shift_open_date [11:59:16]req_shift_open_date done [11:59:16]produce_requested_data done [11:59:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191733,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [11:59:16]process_action_free close_receipt [11:59:16]json_value_free [11:59:16]json_value_free done [11:59:16]process_json_proto returns [11:59:16]Send response to host [11:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191733,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [11:59:16]free response buf [11:59:16]execute_script done [11:59:16]execute_script returns [11:59:16]free content buf [11:59:16]Sock 8.Close socket [11:59:16]Sock 8.Thread stoped [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [11:59:59]accept exits with 9 [11:59:59]New connection [11:59:59]New thread 3066817892 created [11:59:59]Thread 3066961252 joined [11:59:59]Waiting for new connection... [11:59:59] Sock 9.Parse request [11:59:59]Sock 9.Check first char [11:59:59]Sock 9.First char is OK [11:59:59]request: POST /json_proto HTTP/1.0 [11:59:59]Method: POST [11:59:59]URL: /json_proto [11:59:59]Method is POST - this is cgi request [11:59:59]url: /json_proto [11:59:59]query_string will be loaded in cgi processing [11:59:59]execute_cgi json_proto POST (null) [11:59:59]execute_cgi path=json_proto method=POST [11:59:59]POST find Content-Length [11:59:59]Host: 172.17.63.131:8080 [11:59:59]Content-Length: 681 [11:59:59]Content-Type: application/json [11:59:59] [11:59:59]POST finish read [11:59:59]Found Content-Length = 681 [11:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.790, "sum" : 1190.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1190.00, "total" : 1190.00, "payments": [ { "type": 0, "sum" : 1190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:59]execute_script... [11:59: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)31037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.790, "sum" : 1190.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1190.00, "total" : 1190.00, "payments": [ { "type": 0, "sum" : 1190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:59]POST & json_proto [11:59:59]process_json_proto [11:59:59]json parsed OK: [11:59:59]protocol is kg_v1.0 [11:59:59]action value=close_receipt [11:59:59]process_action close_receipt [11:59:59]cmd_close_receipt [11:59:59]MH_GetDate [11:59:59]Write to MH i2c: F0 00 00 DF F8 C6 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 09 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 09 00 DF F8 00 CD D9 1C 67 22 05 6E 64 F1 [11:59:59]GetLastDocTimeStamp 1729943966 [11:59:59]current date 1729944013 [11:59:59]FM_GetShiftState [11:59:59]SAM_PROTO_GetShiftState [11:59:59]wFMCommunicate request_size=4 [11:59:59]MH_SAM_APDU [11:59:59]CAPDU: 80 13 01 00 [11:59:59]Write to MH i2c: E2 08 00 E0 F8 80 13 01 00 00 00 00 00 55 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:59]Read from MH i2c: E2 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: E2 0E 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: E2 0E 00 E0 F8 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CE [11:59:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [11:59:59]wFMCommunicate OK [11:59:59]SAM_PROTO_GetShiftState done [11:59:59]FM_GetShiftState done [11:59:59]opened in 1729902770 [11:59:59]opened+sec_in_day 1729989170 [11:59:59]quantity*price = 119015 [11:59:59]sum+1 = 119016 [11:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1190.00 Внесено: 1190.00 СДАЧА: 0.00 НСП 1% : 10.53 НДС 12% : 126.39 Наличными: 1190.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 97 26.10.2024 12:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191734 ФПД: 63971887292819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191734&fm=63971887292819&tin=02508201610067®Number=0000000000091776&sum=119000 [12:00:00]StoreToDocumentArchive [12:00:00]shift 541 fd 191734 [12:00:00]save to /storage/0541/doc_00191734 [12:00:00]save last doc name /storage/0541/doc_00191734 to /storage/kkm_last_doc_name [12:00:00]save OK [12:00:00]Clear old archive folders... [12:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:00]tlvbuf is 01B3AF50 [12:00:00]SAM_PROTO_ClearQueue [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 09 00 00 [12:00:00]Write to MH i2c: E2 08 00 ED F8 80 09 00 00 00 00 00 00 57 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 ED F8 00 90 00 59 [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_ClearQueue done [12:00:00]KKMCreateOFDPacket [12:00:00]OFDProtocolAddRootSTLVToBuf [12:00:00]FM_MakeSignedData [12:00:00]FM_MakeSignedData [12:00:00]SAM_PROTO_SignData [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 01 02 [12:00:00]Write to MH i2c: E2 08 00 EE F8 80 0D 01 02 00 00 00 00 5F [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 EE F8 00 90 00 5A [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=255 [12:00:00]MH_SAM_APDU [12:00: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 7E 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EC 02 00 35 04 06 00 3A [12:00:00]Write to MH i2c: E2 02 01 EF F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EC 02 00 35 04 06 00 3A 00 00 EF [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 EF F8 00 90 00 5B [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=10 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 02 02 05 2E 9D 9E 21 93 [12:00:00]Write to MH i2c: E2 0D 00 F0 F8 80 0D 02 02 05 00 2E 9D 9E 21 93 00 00 89 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 F0 F8 00 90 00 5C [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 03 02 [12:00:00]Write to MH i2c: E2 08 00 F1 F8 80 0D 03 02 00 00 00 00 64 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0B 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0B 00 F1 F8 00 FD 1E 1C AC 70 78 8A EC 90 00 A6 [12:00:00]RAPDU: FD 1E 1C AC 70 78 8A EC 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_SignData done [12:00:00]FM_MakeSignedData done [12:00:00]CreateOFDProtocolMessage [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 11 00 00 [12:00:00]Write to MH i2c: E2 08 00 F2 F8 80 11 00 00 00 00 00 00 64 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:01]Read from MH i2c: E2 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: E2 17 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: E2 17 00 F2 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [12:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:01]wFMCommunicate OK [12:00:01]CreateOFDProtocolMessage done [12:00:01]OFDSenderStorePacket 191734 [12:00:01]StoreOFDPacket docnum=191734 [12:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C8 50 07 01 92 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EC 02 00 35 04 06 00 3A 2E 9D 9E 21 93 FD 1E 1C AC 70 78 8A EC [12:00:01]CheckFolder [12:00:01]dirname=/storage/ofd_packets [12:00:01]CheckFolder done [12:00:01]ProducePacketName [12:00:01]name=ofd_packets/00191734 [12:00:01]NVStorageSaveData ofd_packets/00191734 [12:00:01]File name is /storage/ofd_packets/00191734 [12:00:01]Write 301 bytes [12:00:01]NVStorageSaveData done [12:00:01]OFDSenderStorePacket done [12:00:01]KKMCreateOFDPacket done [12:00:01]NVStorageSaveData kkm_last_timestamp [12:00:01]File name is /storage/kkm_last_timestamp [12:00:01]Write 4 bytes [12:00:01]NVStorageSaveData done [12:00:01]ExternCall_PrintAddStr [12:00:01]wPrintStart [12:00:01]Write to MH i2c: 01 00 00 F3 F8 EB [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 F3 F8 00 00 00 00 00 FF 0F 00 [12:00:01]RasterBufferAndPrint [12:00:01]line Счет N : (1)31037 [12:00:01]line ИНН: 02508201610067 [12:00:01]line Контрольно-Кассовый Чек [12:00:01]line ПРОДАЖА [12:00:01]line ТРК (МРК, ГНК) : 21 [12:00:01]line Товар: 2710124130 [12:00:01]line Аи-92-К-5 [12:00:01]line 17.790 * 66.90 [12:00:01]line = 1190.15 [12:00:01]line НДС 12% НСП 1% [12:00:01]line > о реализуемом товаре [12:00:01]line ОКРУГЛЕНИЕ: -0.15 [12:00:01]line ИТОГО: 1190.00 [12:00:01]line Внесено: 1190.00 [12:00:01]line СДАЧА: 0.00 [12:00:01]line НСП 1% : 10.53 [12:00:01]line НДС 12% : 126.39 [12:00:01]line Наличными: 1190.00 [12:00:01]line Безнал.: 0.00 [12:00:01]line Место: АЗС № 170 "Партнер Нефть" [12:00:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:00:01]line СНО: Общий режим [12:00:01]line Чек 97 26.10.2024 12:00 [12:00:01]line Смена: 541 ФФД: 1.0 [12:00:01]line ЗНМ: 0300000110 [12:00:01]line РНМ: 0000000000091776 [12:00:01]line Версия ККМ: 001 [12:00:01]line ФМ: 0000000000871754 [12:00:01]line ФД: 191734 [12:00:01]line ФПД: 63971887292819 [12:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191734&fm=63971887292819&tin=02508201610067®Number=0000000000091776&sum=119000 [12:00:01]OFD Sender: Processing packet 191734 [packets to send 75, broken 74] [12:00:01]ProducePacketName [12:00:01]name=ofd_packets/00191734 [12:00:01]OFD Sender: To server: pG, [12:00:01]CommunicateWithHost lk.salyk.kg:30040 [12:00:01]ConnectInit lk.salyk.kg [12:00:01]written 0, free lines is 4095 [12:00:01]Connected sock=10 [12:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C8 50 07 01 92 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E7 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 31 00 00 00 00 07 04 06 00 D8 D0 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 CD D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EC 02 00 35 04 06 00 3A 2E 9D 9E 21 93 FD 1E 1C AC 70 78 8A EC [12:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 47 47 00 E8 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F6 EC 02 00 F4 03 04 00 99 7E 1C 67 B6 04 01 00 00 AA 30 AB DB 42 62 CC 30 [12:00:01]CommunicateWithHost err = 0 [12:00:01]CheckOFDResponse [12:00:01]1017 (14) - 77093643461234 [12:00:01]1041 (16) - 0000000000871754 [12:00:01]1040 (4) - 191734 [12:00:01]1012 (4) - 26.10.2024 05:31 [12:00:01]1206 (1) - 0 [12:00:01]OFD Sender: Remove packet 191734 [12:00:01]ProducePacketName [12:00:01]name=ofd_packets/00191734 [12:00:01]NVStorageDeleteData [12:00:01]Write to MH i2c: 01 00 00 1E F9 17 [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 1E F9 00 00 00 00 00 C2 0C EC [12:00:01]RasterBufferAndPrint [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]written 0, free lines is 3271 [12:00:01]MH_Cut [12:00:01]Write to MH i2c: D1 01 00 25 F9 01 F0 [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 01 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 01 00 25 F9 00 EF [12:00:01]Write to MH i2c: 01 00 00 26 F9 1F [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:02]OFD Sender: No OFD packet to send [12:00:02]*** Cut start [12:00:02]*** Partial cut [12:00:02]*** CUTSNS_PIN = 1 [12:00:02]*** CUTSNS_PIN = 0 [12:00:02]*** Brake cut motor [12:00:03]Read from MH i2c: 01 [12:00:03]MH_I2C_Read... [12:00:03]*** Stop cut motor [12:00:03]*** Cut end [12:00:03]Read from MH i2c: 01 07 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: 01 07 00 26 F9 00 00 00 00 00 FF 0F 34 [12:00:03]process_action close_receipt done [12:00:03]requested_data is exist [12:00:03]produce_requested_data [12:00:03]requested_item fm.sn is exist - process it [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 11 00 00 [12:00:03]Write to MH i2c: E2 08 00 27 F9 80 11 00 00 00 00 00 00 9A [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 17 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 17 00 27 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [12:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:03]wFMCommunicate OK [12:00:03]requested_item fd.num is exist - process it [12:00:03]SAM_PROTO_GetFieldsCounters [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 13 00 00 [12:00:03]Write to MH i2c: E2 08 00 28 F9 80 13 00 00 00 00 00 00 9D [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 62 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 62 00 28 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F6 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_GetFieldsCounters done [12:00:03]requested_item shift.num is exist - process it [12:00:03]requested_item shift.opened is exist - process it [12:00:03]req_shift_opened [12:00:03]FM_GetShiftState [12:00:03]SAM_PROTO_GetShiftState [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 13 01 00 [12:00:03]Write to MH i2c: E2 08 00 29 F9 80 13 01 00 00 00 00 00 9F [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0E 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0E 00 29 F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 18 [12:00:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_GetShiftState done [12:00:03]FM_GetShiftState done [12:00:03]req_shift_opened done [12:00:03]requested_item shift.open_date is exist - process it [12:00:03]req_shift_open_date [12:00:03]req_shift_open_date done [12:00:03]produce_requested_data done [12:00:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191734,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:00:03]process_action_free close_receipt [12:00:03]json_value_free [12:00:03]json_value_free done [12:00:03]process_json_proto returns [12:00:03]Send response to host [12:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191734,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:00:03]free response buf [12:00:03]execute_script done [12:00:03]execute_script returns [12:00:03]free content buf [12:00:03]Sock 9.Close socket [12:00:03]Sock 9.Thread stoped [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:26]accept exits with 8 [12:00:26]New connection [12:00:26]New thread 3066961252 created [12:00:26]Thread 3066817892 joined [12:00:26]Waiting for new connection... [12:00:26] Sock 8.Parse request [12:00:26]Sock 8.Check first char [12:00:26]Sock 8.First char is OK [12:00:26]request: POST /json_proto HTTP/1.0 [12:00:26]Method: POST [12:00:26]URL: /json_proto [12:00:26]Method is POST - this is cgi request [12:00:26]url: /json_proto [12:00:26]query_string will be loaded in cgi processing [12:00:26]execute_cgi json_proto POST (null) [12:00:26]execute_cgi path=json_proto method=POST [12:00:26]POST find Content-Length [12:00:26]Host: 172.17.63.131:8080 [12:00:26]Content-Length: 676 [12:00:26]Content-Type: application/json [12:00:26] [12:00:26]POST finish read [12:00:26]Found Content-Length = 676 [12:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]execute_script... [12:00: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)31038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:26]POST & json_proto [12:00:26]process_json_proto [12:00:26]json parsed OK: [12:00:26]protocol is kg_v1.0 [12:00:26]action value=close_receipt [12:00:26]process_action close_receipt [12:00:26]cmd_close_receipt [12:00:26]MH_GetDate [12:00:26]Write to MH i2c: F0 00 00 2A F9 12 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: F0 09 00 2A F9 00 E8 D9 1C 67 22 05 6E 64 58 [12:00:26]GetLastDocTimeStamp 1729944013 [12:00:26]current date 1729944040 [12:00:26]FM_GetShiftState [12:00:26]SAM_PROTO_GetShiftState [12:00:26]wFMCommunicate request_size=4 [12:00:26]MH_SAM_APDU [12:00:26]CAPDU: 80 13 01 00 [12:00:26]Write to MH i2c: E2 08 00 2B F9 80 13 01 00 00 00 00 00 A1 [12:00:26]Write i2c OK [12:00:26]MH_I2C_Read... [12:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:26]Read from MH i2c: E2 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0E 00 [12:00:26]MH_I2C_Read... [12:00:26]Read from MH i2c: E2 0E 00 2B F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1A [12:00:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:00:26]wFMCommunicate OK [12:00:26]SAM_PROTO_GetShiftState done [12:00:26]FM_GetShiftState done [12:00:26]opened in 1729902770 [12:00:26]opened+sec_in_day 1729989170 [12:00:26]quantity*price = 30038 [12:00:26]sum+1 = 30039 [12:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 98 26.10.2024 12:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191735 ФПД: 117849936236034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191735&fm=117849936236034&tin=02508201610067®Number=0000000000091776&sum=30000 [12:00:27]StoreToDocumentArchive [12:00:27]shift 541 fd 191735 [12:00:27]save to /storage/0541/doc_00191735 [12:00:27]save last doc name /storage/0541/doc_00191735 to /storage/kkm_last_doc_name [12:00:27]save OK [12:00:27]Clear old archive folders... [12:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:27]tlvbuf is 01601110 [12:00:27]SAM_PROTO_ClearQueue [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 09 00 00 [12:00:27]Write to MH i2c: E2 08 00 38 F9 80 09 00 00 00 00 00 00 A3 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 38 F9 00 90 00 A5 [12:00:27]RAPDU: 90 00 [12:00:27]wFMCommunicate OK [12:00:27]SAM_PROTO_ClearQueue done [12:00:27]KKMCreateOFDPacket [12:00:27]OFDProtocolAddRootSTLVToBuf [12:00:27]FM_MakeSignedData [12:00:27]FM_MakeSignedData [12:00:27]SAM_PROTO_SignData [12:00:27]wFMCommunicate request_size=4 [12:00:27]MH_SAM_APDU [12:00:27]CAPDU: 80 0D 01 02 [12:00:27]Write to MH i2c: E2 08 00 39 F9 80 0D 01 02 00 00 00 00 AB [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:27]Read from MH i2c: E2 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 [12:00:27]MH_I2C_Read... [12:00:27]Read from MH i2c: E2 03 00 39 F9 00 90 00 A6 [12:00:27]RAPDU: 90 00 [12:00:27]wFMCommunicate OK [12:00:27]wFMCommunicate request_size=255 [12:00:27]MH_SAM_APDU [12:00: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EC 02 00 35 04 06 00 6B [12:00:27]Write to MH i2c: E2 02 01 3A F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EC 02 00 35 04 06 00 6B 00 00 49 [12:00:27]Write i2c OK [12:00:27]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 3A F9 00 90 00 A7 [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=10 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 02 02 05 2F 13 96 0E 02 [12:00:28]Write to MH i2c: E2 0D 00 3B F9 80 0D 02 02 05 00 2F 13 96 0E 02 00 00 A0 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 03 00 3B F9 00 90 00 A8 [12:00:28]RAPDU: 90 00 [12:00:28]wFMCommunicate OK [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 0D 03 02 [12:00:28]Write to MH i2c: E2 08 00 3C F9 80 0D 03 02 00 00 00 00 B0 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 0B 00 3C F9 00 12 84 75 2E D5 A7 F2 8B 90 00 E3 [12:00:28]RAPDU: 12 84 75 2E D5 A7 F2 8B 90 00 [12:00:28]wFMCommunicate OK [12:00:28]SAM_PROTO_SignData done [12:00:28]FM_MakeSignedData done [12:00:28]CreateOFDProtocolMessage [12:00:28]wFMCommunicate request_size=4 [12:00:28]MH_SAM_APDU [12:00:28]CAPDU: 80 11 00 00 [12:00:28]Write to MH i2c: E2 08 00 3D F9 80 11 00 00 00 00 00 00 B0 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:28]Read from MH i2c: E2 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: E2 17 00 3D F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [12:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:28]wFMCommunicate OK [12:00:28]CreateOFDProtocolMessage done [12:00:28]OFDSenderStorePacket 191735 [12:00:28]StoreOFDPacket docnum=191735 [12:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 A9 07 01 97 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EC 02 00 35 04 06 00 6B 2F 13 96 0E 02 12 84 75 2E D5 A7 F2 8B [12:00:28]CheckFolder [12:00:28]dirname=/storage/ofd_packets [12:00:28]CheckFolder done [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00191735 [12:00:28]NVStorageSaveData ofd_packets/00191735 [12:00:28]File name is /storage/ofd_packets/00191735 [12:00:28]Write 301 bytes [12:00:28]NVStorageSaveData done [12:00:28]OFDSenderStorePacket done [12:00:28]KKMCreateOFDPacket done [12:00:28]NVStorageSaveData kkm_last_timestamp [12:00:28]File name is /storage/kkm_last_timestamp [12:00:28]Write 4 bytes [12:00:28]NVStorageSaveData done [12:00:28]ExternCall_PrintAddStr [12:00:28]wPrintStart [12:00:28]Write to MH i2c: 01 00 00 3E F9 37 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 3E F9 00 00 00 00 00 FF 0F 4C [12:00:28]RasterBufferAndPrint [12:00:28]line Счет N : (1)31038 [12:00:28]line ИНН: 02508201610067 [12:00:28]line Контрольно-Кассовый Чек [12:00:28]line ПРОДАЖА [12:00:28]line ТРК (МРК, ГНК) : 21 [12:00:28]line Товар: 2710124130 [12:00:28]line Аи-92-К-5 [12:00:28]line 4.490 * 66.90 [12:00:28]line = 300.38 [12:00:28]line НДС 12% НСП 1% [12:00:28]line > о реализуемом товаре [12:00:28]line ОКРУГЛЕНИЕ: -0.38 [12:00:28]line ИТОГО: 300.00 [12:00:28]line Внесено: 300.00 [12:00:28]line СДАЧА: 0.00 [12:00:28]line НСП 1% : 2.66 [12:00:28]line НДС 12% : 31.90 [12:00:28]line Наличными: 300.00 [12:00:28]line Безнал.: 0.00 [12:00:28]line Место: АЗС № 170 "Партнер Нефть" [12:00:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:00:28]line СНО: Общий режим [12:00:28]line Чек 98 26.10.2024 12:00 [12:00:28]line Смена: 541 ФФД: 1.0 [12:00:28]line ЗНМ: 0300000110 [12:00:28]line РНМ: 0000000000091776 [12:00:28]line Версия ККМ: 001 [12:00:28]line ФМ: 0000000000871754 [12:00:28]line ФД: 191735 [12:00:28]line ФПД: 117849936236034 [12:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120041&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191735&fm=117849936236034&tin=02508201610067®Number=0000000000091776&sum=30000 [12:00:28]written 0, free lines is 4095 [12:00:28]OFD Sender: Processing packet 191735 [packets to send 75, broken 74] [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00191735 [12:00:28]OFD Sender: To server: pG, [12:00:28]CommunicateWithHost lk.salyk.kg:30040 [12:00:28]ConnectInit lk.salyk.kg [12:00:28]Connected sock=11 [12:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E0 A9 07 01 97 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 E9 D9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EC 02 00 35 04 06 00 6B 2F 13 96 0E 02 12 84 75 2E D5 A7 F2 8B [12:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 C0 47 00 E8 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F7 EC 02 00 F4 03 04 00 B4 7E 1C 67 B6 04 01 00 00 01 5A 30 81 5A E9 6B 10 [12:00:28]CommunicateWithHost err = 0 [12:00:28]CheckOFDResponse [12:00:28]1017 (14) - 77093643461234 [12:00:28]1041 (16) - 0000000000871754 [12:00:28]1040 (4) - 191735 [12:00:28]1012 (4) - 26.10.2024 05:31 [12:00:28]1206 (1) - 0 [12:00:28]OFD Sender: Remove packet 191735 [12:00:28]ProducePacketName [12:00:28]name=ofd_packets/00191735 [12:00:28]NVStorageDeleteData [12:00:28]Write to MH i2c: 01 00 00 69 F9 62 [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: 01 07 00 69 F9 00 00 00 00 00 C6 0C 3B [12:00:28]RasterBufferAndPrint [12:00:28]line [12:00:28]line [12:00:28]line [12:00:28]line [12:00:28]line [12:00:28]written 0, free lines is 3276 [12:00:28]MH_Cut [12:00:28]Write to MH i2c: D1 01 00 70 F9 01 3B [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: D1 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: D1 01 00 [12:00:28]MH_I2C_Read... [12:00:28]Read from MH i2c: D1 01 00 70 F9 00 3A [12:00:28]Write to MH i2c: 01 00 00 71 F9 6A [12:00:28]Write i2c OK [12:00:28]MH_I2C_Read... [12:00:29]OFD Sender: No OFD packet to send [12:00:29]*** Cut start [12:00:29]*** Partial cut [12:00:29]*** CUTSNS_PIN = 1 [12:00:29]*** CUTSNS_PIN = 0 [12:00:29]*** Brake cut motor [12:00:30]Read from MH i2c: 01 [12:00:30]MH_I2C_Read... [12:00:30]*** Stop cut motor [12:00:30]*** Cut end [12:00:30]Read from MH i2c: 01 07 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: 01 07 00 71 F9 00 00 00 00 00 FF 0F 7F [12:00:30]process_action close_receipt done [12:00:30]requested_data is exist [12:00:30]produce_requested_data [12:00:30]requested_item fm.sn is exist - process it [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 11 00 00 [12:00:30]Write to MH i2c: E2 08 00 72 F9 80 11 00 00 00 00 00 00 E5 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 17 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 17 00 72 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 38 [12:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:00:30]wFMCommunicate OK [12:00:30]requested_item fd.num is exist - process it [12:00:30]SAM_PROTO_GetFieldsCounters [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 13 00 00 [12:00:30]Write to MH i2c: E2 08 00 73 F9 80 13 00 00 00 00 00 00 E8 [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 62 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 62 00 73 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F7 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:30]wFMCommunicate OK [12:00:30]SAM_PROTO_GetFieldsCounters done [12:00:30]requested_item shift.num is exist - process it [12:00:30]requested_item shift.opened is exist - process it [12:00:30]req_shift_opened [12:00:30]FM_GetShiftState [12:00:30]SAM_PROTO_GetShiftState [12:00:30]wFMCommunicate request_size=4 [12:00:30]MH_SAM_APDU [12:00:30]CAPDU: 80 13 01 00 [12:00:30]Write to MH i2c: E2 08 00 74 F9 80 13 01 00 00 00 00 00 EA [12:00:30]Write i2c OK [12:00:30]MH_I2C_Read... [12:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:30]Read from MH i2c: E2 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 0E 00 [12:00:30]MH_I2C_Read... [12:00:30]Read from MH i2c: E2 0E 00 74 F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 63 [12:00:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:00:30]wFMCommunicate OK [12:00:30]SAM_PROTO_GetShiftState done [12:00:30]FM_GetShiftState done [12:00:30]req_shift_opened done [12:00:30]requested_item shift.open_date is exist - process it [12:00:30]req_shift_open_date [12:00:30]req_shift_open_date done [12:00:30]produce_requested_data done [12:00:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191735,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:00:30]process_action_free close_receipt [12:00:30]json_value_free [12:00:30]json_value_free done [12:00:30]process_json_proto returns [12:00:30]Send response to host [12:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191735,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:00:30]free response buf [12:00:30]execute_script done [12:00:30]execute_script returns [12:00:30]free content buf [12:00:30]Sock 8.Close socket [12:00:30]Sock 8.Thread stoped [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:05]accept exits with 9 [12:02:05]New connection [12:02:05]New thread 3066817892 created [12:02:05]Thread 3066961252 joined [12:02:05]Waiting for new connection... [12:02:05] Sock 9.Parse request [12:02:05]Sock 9.Check first char [12:02:05]Sock 9.First char is OK [12:02:05]request: POST /json_proto HTTP/1.0 [12:02:05]Method: POST [12:02:05]URL: /json_proto [12:02:05]Method is POST - this is cgi request [12:02:05]url: /json_proto [12:02:05]query_string will be loaded in cgi processing [12:02:05]execute_cgi json_proto POST (null) [12:02:05]execute_cgi path=json_proto method=POST [12:02:05]POST find Content-Length [12:02:05]Host: 172.17.63.131:8080 [12:02:05]Content-Length: 681 [12:02:05]Content-Type: application/json [12:02:05] [12:02:05]POST finish read [12:02:05]Found Content-Length = 681 [12:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:05]execute_script... [12:02:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:05]POST & json_proto [12:02:05]process_json_proto [12:02:05]json parsed OK: [12:02:05]protocol is kg_v1.0 [12:02:05]action value=close_receipt [12:02:05]process_action close_receipt [12:02:05]cmd_close_receipt [12:02:05]MH_GetDate [12:02:05]Write to MH i2c: F0 00 00 75 F9 5D [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: F0 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: F0 09 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: F0 09 00 75 F9 00 4B DA 1C 67 22 05 6E 64 07 [12:02:05]GetLastDocTimeStamp 1729944041 [12:02:05]current date 1729944139 [12:02:05]FM_GetShiftState [12:02:05]SAM_PROTO_GetShiftState [12:02:05]wFMCommunicate request_size=4 [12:02:05]MH_SAM_APDU [12:02:05]CAPDU: 80 13 01 00 [12:02:05]Write to MH i2c: E2 08 00 76 F9 80 13 01 00 00 00 00 00 EC [12:02:05]Write i2c OK [12:02:05]MH_I2C_Read... [12:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:05]Read from MH i2c: E2 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 0E 00 [12:02:05]MH_I2C_Read... [12:02:05]Read from MH i2c: E2 0E 00 76 F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 65 [12:02:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:02:05]wFMCommunicate OK [12:02:05]SAM_PROTO_GetShiftState done [12:02:05]FM_GetShiftState done [12:02:05]opened in 1729902770 [12:02:05]opened+sec_in_day 1729989170 [12:02:05]quantity*price = 100015 [12:02:05]sum+1 = 100017 [12:02:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 99 26.10.2024 12:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191736 ФПД: 150545358529591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191736&fm=150545358529591&tin=02508201610067®Number=0000000000091776&sum=100000 [12:02:06]StoreToDocumentArchive [12:02:06]shift 541 fd 191736 [12:02:06]save to /storage/0541/doc_00191736 [12:02:06]save last doc name /storage/0541/doc_00191736 to /storage/kkm_last_doc_name [12:02:06]save OK [12:02:06]Clear old archive folders... [12:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:06]tlvbuf is 017F1780 [12:02:06]SAM_PROTO_ClearQueue [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 09 00 00 [12:02:06]Write to MH i2c: E2 08 00 83 F9 80 09 00 00 00 00 00 00 EE [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 83 F9 00 90 00 F0 [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]SAM_PROTO_ClearQueue done [12:02:06]KKMCreateOFDPacket [12:02:06]OFDProtocolAddRootSTLVToBuf [12:02:06]FM_MakeSignedData [12:02:06]FM_MakeSignedData [12:02:06]SAM_PROTO_SignData [12:02:06]wFMCommunicate request_size=4 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 01 02 [12:02:06]Write to MH i2c: E2 08 00 84 F9 80 0D 01 02 00 00 00 00 F6 [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:06]Read from MH i2c: E2 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 [12:02:06]MH_I2C_Read... [12:02:06]Read from MH i2c: E2 03 00 84 F9 00 90 00 F1 [12:02:06]RAPDU: 90 00 [12:02:06]wFMCommunicate OK [12:02:06]wFMCommunicate request_size=255 [12:02:06]MH_SAM_APDU [12:02:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EC 02 00 35 04 06 00 88 [12:02:06]Write to MH i2c: E2 02 01 85 F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EC 02 00 35 04 06 00 88 00 00 1C [12:02:06]Write i2c OK [12:02:06]MH_I2C_Read... [12:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:07]Read from MH i2c: E2 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 03 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 03 00 85 F9 00 90 00 F2 [12:02:07]RAPDU: 90 00 [12:02:07]wFMCommunicate OK [12:02:07]wFMCommunicate request_size=10 [12:02:07]MH_SAM_APDU [12:02:07]CAPDU: 80 0D 02 02 05 EB 92 9E 24 37 [12:02:07]Write to MH i2c: E2 0D 00 86 F9 80 0D 02 02 05 00 EB 92 9E 24 37 00 00 79 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:07]Read from MH i2c: E2 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 03 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 03 00 86 F9 00 90 00 F3 [12:02:07]RAPDU: 90 00 [12:02:07]wFMCommunicate OK [12:02:07]wFMCommunicate request_size=4 [12:02:07]MH_SAM_APDU [12:02:07]CAPDU: 80 0D 03 02 [12:02:07]Write to MH i2c: E2 08 00 87 F9 80 0D 03 02 00 00 00 00 FB [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:07]Read from MH i2c: E2 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 0B 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 0B 00 87 F9 00 5A 93 C7 D9 7A 29 BC 9F 90 00 87 [12:02:07]RAPDU: 5A 93 C7 D9 7A 29 BC 9F 90 00 [12:02:07]wFMCommunicate OK [12:02:07]SAM_PROTO_SignData done [12:02:07]FM_MakeSignedData done [12:02:07]CreateOFDProtocolMessage [12:02:07]wFMCommunicate request_size=4 [12:02:07]MH_SAM_APDU [12:02:07]CAPDU: 80 11 00 00 [12:02:07]Write to MH i2c: E2 08 00 88 F9 80 11 00 00 00 00 00 00 FB [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:07]Read from MH i2c: E2 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 17 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: E2 17 00 88 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [12:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:02:07]wFMCommunicate OK [12:02:07]CreateOFDProtocolMessage done [12:02:07]OFDSenderStorePacket 191736 [12:02:07]StoreOFDPacket docnum=191736 [12:02:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 7F 07 01 09 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EC 02 00 35 04 06 00 88 EB 92 9E 24 37 5A 93 C7 D9 7A 29 BC 9F [12:02:07]CheckFolder [12:02:07]dirname=/storage/ofd_packets [12:02:07]CheckFolder done [12:02:07]ProducePacketName [12:02:07]name=ofd_packets/00191736 [12:02:07]NVStorageSaveData ofd_packets/00191736 [12:02:07]File name is /storage/ofd_packets/00191736 [12:02:07]Write 301 bytes [12:02:07]NVStorageSaveData done [12:02:07]OFDSenderStorePacket done [12:02:07]KKMCreateOFDPacket done [12:02:07]NVStorageSaveData kkm_last_timestamp [12:02:07]File name is /storage/kkm_last_timestamp [12:02:07]Write 4 bytes [12:02:07]NVStorageSaveData done [12:02:07]ExternCall_PrintAddStr [12:02:07]wPrintStart [12:02:07]Write to MH i2c: 01 00 00 89 F9 82 [12:02:07]Write i2c OK [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 07 00 [12:02:07]MH_I2C_Read... [12:02:07]Read from MH i2c: 01 07 00 89 F9 00 00 00 00 00 FF 0F 97 [12:02:07]RasterBufferAndPrint [12:02:07]line Счет N : (1)31039 [12:02:07]line ИНН: 02508201610067 [12:02:07]line Контрольно-Кассовый Чек [12:02:07]line ПРОДАЖА [12:02:07]line ТРК (МРК, ГНК) : 21 [12:02:07]line Товар: 2710124130 [12:02:07]line Аи-92-К-5 [12:02:07]line 14.950 * 66.90 [12:02:07]line = 1000.16 [12:02:07]line НДС 12% НСП 1% [12:02:07]line > о реализуемом товаре [12:02:07]line ОКРУГЛЕНИЕ: -0.16 [12:02:07]line ИТОГО: 1000.00 [12:02:07]line Внесено: 1000.00 [12:02:07]line СДАЧА: 0.00 [12:02:07]line НСП 1% : 8.85 [12:02:07]line НДС 12% : 106.21 [12:02:07]line Наличными: 1000.00 [12:02:07]line Безнал.: 0.00 [12:02:07]line Место: АЗС № 170 "Партнер Нефть" [12:02:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:02:07]line СНО: Общий режим [12:02:07]line Чек 99 26.10.2024 12:02 [12:02:07]line Смена: 541 ФФД: 1.0 [12:02:07]line ЗНМ: 0300000110 [12:02:07]line РНМ: 0000000000091776 [12:02:07]line Версия ККМ: 001 [12:02:07]line ФМ: 0000000000871754 [12:02:07]line ФД: 191736 [12:02:07]line ФПД: 150545358529591 [12:02:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120219&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191736&fm=150545358529591&tin=02508201610067®Number=0000000000091776&sum=100000 [12:02:07]OFD Sender: Processing packet 191736 [packets to send 75, broken 74] [12:02:07]ProducePacketName [12:02:07]name=ofd_packets/00191736 [12:02:07]OFD Sender: To server: pG, [12:02:07]CommunicateWithHost lk.salyk.kg:30040 [12:02:07]ConnectInit lk.salyk.kg [12:02:07]written 0, free lines is 4095 [12:02:07]Connected sock=10 [12:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 7F 07 01 09 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 4B DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EC 02 00 35 04 06 00 88 EB 92 9E 24 37 5A 93 C7 D9 7A 29 BC 9F [12:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AB 63 47 00 53 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F8 EC 02 00 F4 03 04 00 17 7F 1C 67 B6 04 01 00 00 08 71 05 E2 4B FF 82 62 [12:02:07]CommunicateWithHost err = 0 [12:02:07]CheckOFDResponse [12:02:07]1017 (14) - 77093643461234 [12:02:07]1041 (16) - 0000000000871754 [12:02:07]1040 (4) - 191736 [12:02:07]1012 (4) - 26.10.2024 05:33 [12:02:07]1206 (1) - 0 [12:02:07]OFD Sender: Remove packet 191736 [12:02:07]ProducePacketName [12:02:07]name=ofd_packets/00191736 [12:02:07]NVStorageDeleteData [12:02:08]Write to MH i2c: 01 00 00 B4 F9 AD [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: 01 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: 01 07 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: 01 07 00 B4 F9 00 00 00 00 00 C6 0C 86 [12:02:08]RasterBufferAndPrint [12:02:08]line [12:02:08]line [12:02:08]line [12:02:08]line [12:02:08]line [12:02:08]written 0, free lines is 3276 [12:02:08]MH_Cut [12:02:08]Write to MH i2c: D1 01 00 BB F9 01 86 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: D1 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: D1 01 00 [12:02:08]MH_I2C_Read... [12:02:08]Read from MH i2c: D1 01 00 BB F9 00 85 [12:02:08]Write to MH i2c: 01 00 00 BC F9 B5 [12:02:08]Write i2c OK [12:02:08]MH_I2C_Read... [12:02:08]OFD Sender: No OFD packet to send [12:02:08]*** Cut start [12:02:08]*** Partial cut [12:02:08]*** CUTSNS_PIN = 1 [12:02:08]*** CUTSNS_PIN = 0 [12:02:09]*** Brake cut motor [12:02:09]Read from MH i2c: 01 [12:02:09]MH_I2C_Read... [12:02:09]*** Stop cut motor [12:02:09]*** Cut end [12:02:09]Read from MH i2c: 01 07 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: 01 07 00 BC F9 00 00 00 00 00 FF 0F CA [12:02:09]process_action close_receipt done [12:02:09]requested_data is exist [12:02:09]produce_requested_data [12:02:09]requested_item fm.sn is exist - process it [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 11 00 00 [12:02:09]Write to MH i2c: E2 08 00 BD F9 80 11 00 00 00 00 00 00 30 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 17 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 17 00 BD F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [12:02:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:02:09]wFMCommunicate OK [12:02:09]requested_item fd.num is exist - process it [12:02:09]SAM_PROTO_GetFieldsCounters [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 13 00 00 [12:02:09]Write to MH i2c: E2 08 00 BE F9 80 13 00 00 00 00 00 00 33 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 62 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 62 00 BE F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:02:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F8 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:09]wFMCommunicate OK [12:02:09]SAM_PROTO_GetFieldsCounters done [12:02:09]requested_item shift.num is exist - process it [12:02:09]requested_item shift.opened is exist - process it [12:02:09]req_shift_opened [12:02:09]FM_GetShiftState [12:02:09]SAM_PROTO_GetShiftState [12:02:09]wFMCommunicate request_size=4 [12:02:09]MH_SAM_APDU [12:02:09]CAPDU: 80 13 01 00 [12:02:09]Write to MH i2c: E2 08 00 BF F9 80 13 01 00 00 00 00 00 35 [12:02:09]Write i2c OK [12:02:09]MH_I2C_Read... [12:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:09]Read from MH i2c: E2 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 0E 00 [12:02:09]MH_I2C_Read... [12:02:09]Read from MH i2c: E2 0E 00 BF F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AE [12:02:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:02:09]wFMCommunicate OK [12:02:09]SAM_PROTO_GetShiftState done [12:02:09]FM_GetShiftState done [12:02:09]req_shift_opened done [12:02:09]requested_item shift.open_date is exist - process it [12:02:09]req_shift_open_date [12:02:09]req_shift_open_date done [12:02:09]produce_requested_data done [12:02:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191736,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:02:09]process_action_free close_receipt [12:02:09]json_value_free [12:02:09]json_value_free done [12:02:09]process_json_proto returns [12:02:09]Send response to host [12:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191736,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:02:09]free response buf [12:02:09]execute_script done [12:02:09]execute_script returns [12:02:09]free content buf [12:02:09]Sock 9.Close socket [12:02:09]Sock 9.Thread stoped [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:15]accept exits with 8 [12:04:15]New connection [12:04:15]New thread 3066961252 created [12:04:15]Thread 3066817892 joined [12:04:15]Waiting for new connection... [12:04:15] Sock 8.Parse request [12:04:15]Sock 8.Check first char [12:04:15]Sock 8.First char is OK [12:04:15]request: POST /json_proto HTTP/1.0 [12:04:15]Method: POST [12:04:15]URL: /json_proto [12:04:15]Method is POST - this is cgi request [12:04:15]url: /json_proto [12:04:15]query_string will be loaded in cgi processing [12:04:15]execute_cgi json_proto POST (null) [12:04:15]execute_cgi path=json_proto method=POST [12:04:15]POST find Content-Length [12:04:15]Host: 172.17.63.131:8080 [12:04:15]Content-Length: 678 [12:04:15]Content-Type: application/json [12:04:15] [12:04:15]POST finish read [12:04:15]Found Content-Length = 678 [12:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:15]execute_script... [12:04: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)31040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:15]POST & json_proto [12:04:15]process_json_proto [12:04:15]json parsed OK: [12:04:15]protocol is kg_v1.0 [12:04:15]action value=close_receipt [12:04:15]process_action close_receipt [12:04:15]cmd_close_receipt [12:04:15]MH_GetDate [12:04:15]Write to MH i2c: F0 00 00 C0 F9 A8 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 09 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 09 00 C0 F9 00 CD DA 1C 67 22 05 6E 64 D4 [12:04:15]GetLastDocTimeStamp 1729944139 [12:04:15]current date 1729944269 [12:04:15]FM_GetShiftState [12:04:15]SAM_PROTO_GetShiftState [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 13 01 00 [12:04:15]Write to MH i2c: E2 08 00 C1 F9 80 13 01 00 00 00 00 00 37 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0E 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0E 00 C1 F9 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B0 [12:04:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:04:15]wFMCommunicate OK [12:04:15]SAM_PROTO_GetShiftState done [12:04:15]FM_GetShiftState done [12:04:15]opened in 1729902770 [12:04:15]opened+sec_in_day 1729989170 [12:04:15]quantity*price = 100050 [12:04:15]sum+1 = 100052 [12:04:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 100 26.10.2024 12:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191737 ФПД: 91632612059096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120429&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191737&fm=91632612059096&tin=02508201610067®Number=0000000000091776&sum=100000 [12:04:16]StoreToDocumentArchive [12:04:16]shift 541 fd 191737 [12:04:16]save to /storage/0541/doc_00191737 [12:04:16]save last doc name /storage/0541/doc_00191737 to /storage/kkm_last_doc_name [12:04:16]save OK [12:04:16]Clear old archive folders... [12:04:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:16]tlvbuf is 01AA4E70 [12:04:16]SAM_PROTO_ClearQueue [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 09 00 00 [12:04:16]Write to MH i2c: E2 08 00 CE F9 80 09 00 00 00 00 00 00 39 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 CE F9 00 90 00 3B [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]SAM_PROTO_ClearQueue done [12:04:16]KKMCreateOFDPacket [12:04:16]OFDProtocolAddRootSTLVToBuf [12:04:16]FM_MakeSignedData [12:04:16]FM_MakeSignedData [12:04:16]SAM_PROTO_SignData [12:04:16]wFMCommunicate request_size=4 [12:04:16]MH_SAM_APDU [12:04:16]CAPDU: 80 0D 01 02 [12:04:16]Write to MH i2c: E2 08 00 CF F9 80 0D 01 02 00 00 00 00 41 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:16]Read from MH i2c: E2 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 [12:04:16]MH_I2C_Read... [12:04:16]Read from MH i2c: E2 03 00 CF F9 00 90 00 3C [12:04:16]RAPDU: 90 00 [12:04:16]wFMCommunicate OK [12:04:16]wFMCommunicate request_size=255 [12:04:16]MH_SAM_APDU [12:04: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EC 02 00 35 04 06 00 53 56 E1 4A [12:04:16]Write to MH i2c: E2 02 01 D0 F9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EC 02 00 35 04 06 00 53 56 E1 4A 00 00 33 [12:04:16]Write i2c OK [12:04:16]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 D0 F9 00 90 00 3D [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=7 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 02 A7 D8 [12:04:17]Write to MH i2c: E2 0A 00 D1 F9 80 0D 02 02 02 00 A7 D8 00 00 C7 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 D1 F9 00 90 00 3E [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 03 02 [12:04:17]Write to MH i2c: E2 08 00 D2 F9 80 0D 03 02 00 00 00 00 46 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 D2 F9 00 10 B6 C4 17 66 04 19 61 90 00 CC [12:04:17]RAPDU: 10 B6 C4 17 66 04 19 61 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_SignData done [12:04:17]FM_MakeSignedData done [12:04:17]CreateOFDProtocolMessage [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 11 00 00 [12:04:17]Write to MH i2c: E2 08 00 D3 F9 80 11 00 00 00 00 00 00 46 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 D3 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [12:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:04:17]wFMCommunicate OK [12:04:17]CreateOFDProtocolMessage done [12:04:17]OFDSenderStorePacket 191737 [12:04:17]StoreOFDPacket docnum=191737 [12:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 99 EA 04 01 8B 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EC 02 00 35 04 06 00 53 56 E1 4A A7 D8 10 B6 C4 17 66 04 19 61 [12:04:17]CheckFolder [12:04:17]dirname=/storage/ofd_packets [12:04:17]CheckFolder done [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00191737 [12:04:17]NVStorageSaveData ofd_packets/00191737 [12:04:17]File name is /storage/ofd_packets/00191737 [12:04:17]Write 298 bytes [12:04:17]NVStorageSaveData done [12:04:17]OFDSenderStorePacket done [12:04:17]KKMCreateOFDPacket done [12:04:17]NVStorageSaveData kkm_last_timestamp [12:04:17]File name is /storage/kkm_last_timestamp [12:04:17]Write 4 bytes [12:04:17]NVStorageSaveData done [12:04:17]ExternCall_PrintAddStr [12:04:17]wPrintStart [12:04:17]Write to MH i2c: 01 00 00 D4 F9 CD [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 D4 F9 00 00 00 00 00 FF 0F E2 [12:04:17]RasterBufferAndPrint [12:04:17]line Счет N : (1)31040 [12:04:17]line ИНН: 02508201610067 [12:04:17]line Контрольно-Кассовый Чек [12:04:17]line ПРОДАЖА [12:04:17]line ТРК (МРК, ГНК) : 11 [12:04:17]line Товар: 2710194210 [12:04:17]line ДТ-К-5 [12:04:17]line 13.130 * 76.20 [12:04:17]line = 1000.51 [12:04:17]line НДС 12% НСП 1% [12:04:17]line > о реализуемом товаре [12:04:17]line ОКРУГЛЕНИЕ: -0.51 [12:04:17]line ИТОГО: 1000.00 [12:04:17]line Внесено: 1000.00 [12:04:17]line СДАЧА: 0.00 [12:04:17]line НСП 1% : 8.85 [12:04:17]line НДС 12% : 106.25 [12:04:17]line Наличными: 1000.00 [12:04:17]line Безнал.: 0.00 [12:04:17]line Место: АЗС № 170 "Партнер Нефть" [12:04:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:04:17]line СНО: Общий режим [12:04:17]line Чек 100 26.10.2024 12:04 [12:04:17]line Смена: 541 ФФД: 1.0 [12:04:17]line ЗНМ: 0300000110 [12:04:17]line РНМ: 0000000000091776 [12:04:17]line Версия ККМ: 001 [12:04:17]line ФМ: 0000000000871754 [12:04:17]line ФД: 191737 [12:04:17]line ФПД: 91632612059096 [12:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120429&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191737&fm=91632612059096&tin=02508201610067®Number=0000000000091776&sum=100000 [12:04:17]OFD Sender: Processing packet 191737 [packets to send 75, broken 74] [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00191737 [12:04:17]OFD Sender: To server: pG, [12:04:17]CommunicateWithHost lk.salyk.kg:30040 [12:04:17]ConnectInit lk.salyk.kg [12:04:17]written 0, free lines is 4095 [12:04:17]Connected sock=10 [12:04:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 99 EA 04 01 8B 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 CD DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EC 02 00 35 04 06 00 53 56 E1 4A A7 D8 10 B6 C4 17 66 04 19 61 [12:04:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 98 39 47 00 EE D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 F9 EC 02 00 F4 03 04 00 99 7F 1C 67 B6 04 01 00 00 CF 5B EF 5B C7 A2 41 EC [12:04:17]CommunicateWithHost err = 0 [12:04:17]CheckOFDResponse [12:04:17]1017 (14) - 77093643461234 [12:04:17]1041 (16) - 0000000000871754 [12:04:17]1040 (4) - 191737 [12:04:17]1012 (4) - 26.10.2024 05:35 [12:04:17]1206 (1) - 0 [12:04:17]OFD Sender: Remove packet 191737 [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00191737 [12:04:17]NVStorageDeleteData [12:04:17]Write to MH i2c: 01 00 00 FF F9 F8 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 FF F9 00 00 00 00 00 BA 0C C5 [12:04:17]RasterBufferAndPrint [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]line [12:04:17]written 0, free lines is 3264 [12:04:17]MH_Cut [12:04:17]Write to MH i2c: D1 01 00 06 FA 01 D2 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 01 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: D1 01 00 06 FA 00 D1 [12:04:17]Write to MH i2c: 01 00 00 07 FA 01 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:18]OFD Sender: No OFD packet to send [12:04:18]*** Cut start [12:04:18]*** Partial cut [12:04:18]*** CUTSNS_PIN = 1 [12:04:18]*** CUTSNS_PIN = 0 [12:04:19]*** Brake cut motor [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]*** Stop cut motor [12:04:19]*** Cut end [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 07 FA 00 00 00 00 00 FF 0F 16 [12:04:19]process_action close_receipt done [12:04:19]requested_data is exist [12:04:19]produce_requested_data [12:04:19]requested_item fm.sn is exist - process it [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 11 00 00 [12:04:19]Write to MH i2c: E2 08 00 08 FA 80 11 00 00 00 00 00 00 7C [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 08 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CF [12:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:04:19]wFMCommunicate OK [12:04:19]requested_item fd.num is exist - process it [12:04:19]SAM_PROTO_GetFieldsCounters [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 13 00 00 [12:04:19]Write to MH i2c: E2 08 00 09 FA 80 13 00 00 00 00 00 00 7F [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 62 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 62 00 09 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [12:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 F9 EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:19]wFMCommunicate OK [12:04:19]SAM_PROTO_GetFieldsCounters done [12:04:19]requested_item shift.num is exist - process it [12:04:19]requested_item shift.opened is exist - process it [12:04:19]req_shift_opened [12:04:19]FM_GetShiftState [12:04:19]SAM_PROTO_GetShiftState [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 13 01 00 [12:04:19]Write to MH i2c: E2 08 00 0A FA 80 13 01 00 00 00 00 00 81 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 0E 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 0E 00 0A FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FA [12:04:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:04:19]wFMCommunicate OK [12:04:19]SAM_PROTO_GetShiftState done [12:04:19]FM_GetShiftState done [12:04:19]req_shift_opened done [12:04:19]requested_item shift.open_date is exist - process it [12:04:19]req_shift_open_date [12:04:19]req_shift_open_date done [12:04:19]produce_requested_data done [12:04:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191737,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:04:19]process_action_free close_receipt [12:04:19]json_value_free [12:04:19]json_value_free done [12:04:19]process_json_proto returns [12:04:19]Send response to host [12:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191737,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:04:19]free response buf [12:04:19]execute_script done [12:04:19]execute_script returns [12:04:19]free content buf [12:04:19]Sock 8.Close socket [12:04:19]Sock 8.Thread stoped [12:04:19]accept exits with 9 [12:04:19]New connection [12:04:19]New thread 3066817892 created [12:04:19]Thread 3066961252 joined [12:04:19]Waiting for new connection... [12:04:19] Sock 9.Parse request [12:04:19]Sock 9.Check first char [12:04:19]Sock 9.First char is OK [12:04:19]request: POST /json_proto HTTP/1.0 [12:04:19]Method: POST [12:04:19]URL: /json_proto [12:04:19]Method is POST - this is cgi request [12:04:19]url: /json_proto [12:04:19]query_string will be loaded in cgi processing [12:04:19]execute_cgi json_proto POST (null) [12:04:19]execute_cgi path=json_proto method=POST [12:04:19]POST find Content-Length [12:04:19]Host: 172.17.63.131:8080 [12:04:19]Content-Length: 862 [12:04:19]Content-Type: application/json [12:04:19] [12:04:19]POST finish read [12:04:19]Found Content-Length = 862 [12:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31041", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:19]execute_script... [12:04: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)31041", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:19]POST & json_proto [12:04:19]process_json_proto [12:04:19]json parsed OK: [12:04:19]protocol is kg_v1.0 [12:04:19]action value=close_receipt [12:04:19]process_action close_receipt [12:04:19]cmd_close_receipt [12:04:19]MH_GetDate [12:04:19]Write to MH i2c: F0 00 00 0B FA F4 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: F0 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: F0 09 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: F0 09 00 0B FA 00 D2 DA 1C 67 22 05 6E 64 25 [12:04:19]GetLastDocTimeStamp 1729944269 [12:04:19]current date 1729944274 [12:04:19]FM_GetShiftState [12:04:19]SAM_PROTO_GetShiftState [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 13 01 00 [12:04:19]Write to MH i2c: E2 08 00 0C FA 80 13 01 00 00 00 00 00 83 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 0E 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 0E 00 0C FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FC [12:04:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:04:19]wFMCommunicate OK [12:04:19]SAM_PROTO_GetShiftState done [12:04:19]FM_GetShiftState done [12:04:19]opened in 1729902770 [12:04:19]opened+sec_in_day 1729989170 [12:04:19]quantity*price = 100050 [12:04:19]sum+1 = 100052 [12:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 101 26.10.2024 12:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191738 ФПД: 163715453507278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191738&fm=163715453507278&tin=02508201610067®Number=0000000000091776&sum=100051 [12:04:21]StoreToDocumentArchive [12:04:21]shift 541 fd 191738 [12:04:21]save to /storage/0541/doc_00191738 [12:04:21]save last doc name /storage/0541/doc_00191738 to /storage/kkm_last_doc_name [12:04:21]save OK [12:04:21]Clear old archive folders... [12:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:21]tlvbuf is 01854890 [12:04:21]SAM_PROTO_ClearQueue [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 09 00 00 [12:04:21]Write to MH i2c: E2 08 00 19 FA 80 09 00 00 00 00 00 00 85 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 19 FA 00 90 00 87 [12:04:21]RAPDU: 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_ClearQueue done [12:04:21]KKMCreateOFDPacket [12:04:21]OFDProtocolAddRootSTLVToBuf [12:04:21]FM_MakeSignedData [12:04:21]FM_MakeSignedData [12:04:21]SAM_PROTO_SignData [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 0D 01 02 [12:04:21]Write to MH i2c: E2 08 00 1A FA 80 0D 01 02 00 00 00 00 8D [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 1A FA 00 90 00 88 [12:04:21]RAPDU: 90 00 [12:04:21]wFMCommunicate OK [12:04:21]wFMCommunicate request_size=255 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D2 DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EC 02 00 35 04 06 00 94 E5 F9 73 [12:04:21]Write to MH i2c: E2 02 01 1B FA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D2 DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EC 02 00 35 04 06 00 94 E5 F9 73 00 00 FD [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 1B FA 00 90 00 89 [12:04:21]RAPDU: 90 00 [12:04:21]wFMCommunicate OK [12:04:21]wFMCommunicate request_size=7 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 0D 02 02 02 56 CE [12:04:21]Write to MH i2c: E2 0A 00 1C FA 80 0D 02 02 02 00 56 CE 00 00 B8 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 03 00 1C FA 00 90 00 8A [12:04:21]RAPDU: 90 00 [12:04:21]wFMCommunicate OK [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 0D 03 02 [12:04:21]Write to MH i2c: E2 08 00 1D FA 80 0D 03 02 00 00 00 00 92 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0B 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 0B 00 1D FA 00 A2 C3 5F 05 74 D3 D3 A3 90 00 19 [12:04:21]RAPDU: A2 C3 5F 05 74 D3 D3 A3 90 00 [12:04:21]wFMCommunicate OK [12:04:21]SAM_PROTO_SignData done [12:04:21]FM_MakeSignedData done [12:04:21]CreateOFDProtocolMessage [12:04:21]wFMCommunicate request_size=4 [12:04:21]MH_SAM_APDU [12:04:21]CAPDU: 80 11 00 00 [12:04:21]Write to MH i2c: E2 08 00 1E FA 80 11 00 00 00 00 00 00 92 [12:04:21]Write i2c OK [12:04:21]MH_I2C_Read... [12:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:21]Read from MH i2c: E2 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 17 00 [12:04:21]MH_I2C_Read... [12:04:21]Read from MH i2c: E2 17 00 1E FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [12:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:04:21]wFMCommunicate OK [12:04:21]CreateOFDProtocolMessage done [12:04:21]OFDSenderStorePacket 191738 [12:04:21]StoreOFDPacket docnum=191738 [12:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 68 F6 04 01 DD D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D2 DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EC 02 00 35 04 06 00 94 E5 F9 73 56 CE A2 C3 5F 05 74 D3 D3 A3 [12:04:21]CheckFolder [12:04:21]dirname=/storage/ofd_packets [12:04:21]CheckFolder done [12:04:21]ProducePacketName [12:04:21]name=ofd_packets/00191738 [12:04:22]NVStorageSaveData ofd_packets/00191738 [12:04:22]File name is /storage/ofd_packets/00191738 [12:04:22]Write 298 bytes [12:04:22]NVStorageSaveData done [12:04:22]OFDSenderStorePacket done [12:04:22]KKMCreateOFDPacket done [12:04:22]NVStorageSaveData kkm_last_timestamp [12:04:22]File name is /storage/kkm_last_timestamp [12:04:22]Write 4 bytes [12:04:22]NVStorageSaveData done [12:04:22]ExternCall_PrintAddStr [12:04:22]wPrintStart [12:04:22]Write to MH i2c: 01 00 00 1F FA 19 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 07 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 07 00 1F FA 00 00 00 00 00 FF 0F 2E [12:04:22]RasterBufferAndPrint [12:04:22]line Счет N : (1)31041 [12:04:22]line ИНН: 02508201610067 [12:04:22]line Контрольно-Кассовый Чек [12:04:22]line ПРОДАЖА [12:04:22]line ТРК (МРК, ГНК) : 22 [12:04:22]line Товар: 2710194210 [12:04:22]line ДТ-К-5 [12:04:22]line 13.130 * 76.20 [12:04:22]line = 1000.51 [12:04:22]line НДС 12% НСП 1% [12:04:22]line > о реализуемом товаре [12:04:22]line ИТОГО: 1000.51 [12:04:22]line НСП 1% : 8.85 [12:04:22]line НДС 12% : 106.25 [12:04:22]line Наличными: 0.00 [12:04:22]line Безнал.: 1000.51 [12:04:22]line Место: АЗС № 170 "Партнер Нефть" [12:04:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:04:22]line СНО: Общий режим [12:04:22]line Чек 101 26.10.2024 12:04 [12:04:22]line Смена: 541 ФФД: 1.0 [12:04:22]line ЗНМ: 0300000110 [12:04:22]line РНМ: 0000000000091776 [12:04:22]line Версия ККМ: 001 [12:04:22]line Платежная система: Кыргызкоммерцбанк [12:04:22]line ФМ: 0000000000871754 [12:04:22]line ФД: 191738 [12:04:22]line ФПД: 163715453507278 [12:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191738&fm=163715453507278&tin=02508201610067®Number=0000000000091776&sum=100051 [12:04:22]written 0, free lines is 4095 [12:04:22]OFD Sender: Processing packet 191738 [packets to send 75, broken 74] [12:04:22]ProducePacketName [12:04:22]name=ofd_packets/00191738 [12:04:22]OFD Sender: To server: pG, [12:04:22]CommunicateWithHost lk.salyk.kg:30040 [12:04:22]ConnectInit lk.salyk.kg [12:04:22]Connected sock=10 [12:04:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 68 F6 04 01 DD D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 D2 DA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EC 02 00 35 04 06 00 94 E5 F9 73 56 CE A2 C3 5F 05 74 D3 D3 A3 [12:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CE D2 47 00 5B DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FA EC 02 00 F4 03 04 00 9E 7F 1C 67 B6 04 01 00 00 64 5E 7B 78 0D 6A 72 7F [12:04:22]CommunicateWithHost err = 0 [12:04:22]CheckOFDResponse [12:04:22]1017 (14) - 77093643461234 [12:04:22]1041 (16) - 0000000000871754 [12:04:22]1040 (4) - 191738 [12:04:22]1012 (4) - 26.10.2024 05:35 [12:04:22]1206 (1) - 0 [12:04:22]OFD Sender: Remove packet 191738 [12:04:22]ProducePacketName [12:04:22]name=ofd_packets/00191738 [12:04:22]NVStorageDeleteData [12:04:22]Write to MH i2c: 01 00 00 49 FA 43 [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 07 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: 01 07 00 49 FA 00 00 00 00 00 D6 0C 2C [12:04:22]RasterBufferAndPrint [12:04:22]line [12:04:22]line [12:04:22]line [12:04:22]line [12:04:22]line [12:04:22]written 0, free lines is 3297 [12:04:22]MH_Cut [12:04:22]Write to MH i2c: D1 01 00 50 FA 01 1C [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: D1 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: D1 01 00 [12:04:22]MH_I2C_Read... [12:04:22]Read from MH i2c: D1 01 00 50 FA 00 1B [12:04:22]Write to MH i2c: 01 00 00 51 FA 4B [12:04:22]Write i2c OK [12:04:22]MH_I2C_Read... [12:04:23]OFD Sender: No OFD packet to send [12:04:23]*** Cut start [12:04:23]*** Partial cut [12:04:23]*** CUTSNS_PIN = 1 [12:04:23]*** CUTSNS_PIN = 0 [12:04:23]*** Brake cut motor [12:04:24]Read from MH i2c: 01 [12:04:24]MH_I2C_Read... [12:04:24]*** Stop cut motor [12:04:24]*** Cut end [12:04:24]Read from MH i2c: 01 07 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: 01 07 00 51 FA 00 00 00 00 00 FF 0F 60 [12:04:24]process_action close_receipt done [12:04:24]requested_data is exist [12:04:24]produce_requested_data [12:04:24]requested_item fm.sn is exist - process it [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 11 00 00 [12:04:24]Write to MH i2c: E2 08 00 52 FA 80 11 00 00 00 00 00 00 C6 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 17 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 17 00 52 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [12:04:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:04:24]wFMCommunicate OK [12:04:24]requested_item fd.num is exist - process it [12:04:24]SAM_PROTO_GetFieldsCounters [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 13 00 00 [12:04:24]Write to MH i2c: E2 08 00 53 FA 80 13 00 00 00 00 00 00 C9 [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 62 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 62 00 53 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FA EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:24]wFMCommunicate OK [12:04:24]SAM_PROTO_GetFieldsCounters done [12:04:24]requested_item shift.num is exist - process it [12:04:24]requested_item shift.opened is exist - process it [12:04:24]req_shift_opened [12:04:24]FM_GetShiftState [12:04:24]SAM_PROTO_GetShiftState [12:04:24]wFMCommunicate request_size=4 [12:04:24]MH_SAM_APDU [12:04:24]CAPDU: 80 13 01 00 [12:04:24]Write to MH i2c: E2 08 00 54 FA 80 13 01 00 00 00 00 00 CB [12:04:24]Write i2c OK [12:04:24]MH_I2C_Read... [12:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:24]Read from MH i2c: E2 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0E 00 [12:04:24]MH_I2C_Read... [12:04:24]Read from MH i2c: E2 0E 00 54 FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 44 [12:04:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:04:24]wFMCommunicate OK [12:04:24]SAM_PROTO_GetShiftState done [12:04:24]FM_GetShiftState done [12:04:24]req_shift_opened done [12:04:24]requested_item shift.open_date is exist - process it [12:04:24]req_shift_open_date [12:04:24]req_shift_open_date done [12:04:24]produce_requested_data done [12:04:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191738,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:04:24]process_action_free close_receipt [12:04:24]json_value_free [12:04:24]json_value_free done [12:04:24]process_json_proto returns [12:04:24]Send response to host [12:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191738,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:04:24]free response buf [12:04:24]execute_script done [12:04:24]execute_script returns [12:04:24]free content buf [12:04:24]Sock 9.Close socket [12:04:24]Sock 9.Thread stoped [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]accept exits with 8 [12:05:38]New connection [12:05:38]New thread 3066961252 created [12:05:38]Thread 3066817892 joined [12:05:38]Waiting for new connection... [12:05:38] Sock 8.Parse request [12:05:38]Sock 8.Check first char [12:05:38]Sock 8.First char is OK [12:05:38]request: POST /json_proto HTTP/1.0 [12:05:38]Method: POST [12:05:38]URL: /json_proto [12:05:38]Method is POST - this is cgi request [12:05:38]url: /json_proto [12:05:38]query_string will be loaded in cgi processing [12:05:38]execute_cgi json_proto POST (null) [12:05:38]execute_cgi path=json_proto method=POST [12:05:38]POST find Content-Length [12:05:38]Host: 172.17.63.131:8080 [12:05:38]Content-Length: 678 [12:05:38]Content-Type: application/json [12:05:38] [12:05:38]POST finish read [12:05:38]Found Content-Length = 678 [12:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:38]execute_script... [12:05: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)31042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:38]POST & json_proto [12:05:38]process_json_proto [12:05:38]json parsed OK: [12:05:38]protocol is kg_v1.0 [12:05:38]action value=close_receipt [12:05:38]process_action close_receipt [12:05:38]cmd_close_receipt [12:05:38]MH_GetDate [12:05:38]Write to MH i2c: F0 00 00 55 FA 3E [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: F0 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: F0 09 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: F0 09 00 55 FA 00 20 DB 1C 67 22 05 6E 64 BE [12:05:38]GetLastDocTimeStamp 1729944274 [12:05:38]current date 1729944352 [12:05:38]FM_GetShiftState [12:05:38]SAM_PROTO_GetShiftState [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 13 01 00 [12:05:38]Write to MH i2c: E2 08 00 56 FA 80 13 01 00 00 00 00 00 CD [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0E 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0E 00 56 FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 46 [12:05:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_GetShiftState done [12:05:38]FM_GetShiftState done [12:05:38]opened in 1729902770 [12:05:38]opened+sec_in_day 1729989170 [12:05:38]quantity*price = 100050 [12:05:38]sum+1 = 100052 [12:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 102 26.10.2024 12:05 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191739 ФПД: 139181269254654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191739&fm=139181269254654&tin=02508201610067®Number=0000000000091776&sum=100000 [12:05:39]StoreToDocumentArchive [12:05:39]shift 541 fd 191739 [12:05:39]save to /storage/0541/doc_00191739 [12:05:39]save last doc name /storage/0541/doc_00191739 to /storage/kkm_last_doc_name [12:05:39]save OK [12:05:39]Clear old archive folders... [12:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:39]tlvbuf is 01AF3A50 [12:05:39]SAM_PROTO_ClearQueue [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 09 00 00 [12:05:39]Write to MH i2c: E2 08 00 63 FA 80 09 00 00 00 00 00 00 CF [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 63 FA 00 90 00 D1 [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_ClearQueue done [12:05:39]KKMCreateOFDPacket [12:05:39]OFDProtocolAddRootSTLVToBuf [12:05:39]FM_MakeSignedData [12:05:39]FM_MakeSignedData [12:05:39]SAM_PROTO_SignData [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 0D 01 02 [12:05:39]Write to MH i2c: E2 08 00 64 FA 80 0D 01 02 00 00 00 00 D7 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 64 FA 00 90 00 D2 [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]wFMCommunicate request_size=255 [12:05:39]MH_SAM_APDU [12:05: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 20 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EC 02 00 35 04 06 00 7E 95 AA 1D [12:05:39]Write to MH i2c: E2 02 01 65 FA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 20 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EC 02 00 35 04 06 00 7E 95 AA 1D 00 00 27 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 65 FA 00 90 00 D3 [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]wFMCommunicate request_size=7 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 0D 02 02 02 01 FE [12:05:39]Write to MH i2c: E2 0A 00 66 FA 80 0D 02 02 02 00 01 FE 00 00 DD [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 03 00 66 FA 00 90 00 D4 [12:05:39]RAPDU: 90 00 [12:05:39]wFMCommunicate OK [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 0D 03 02 [12:05:39]Write to MH i2c: E2 08 00 67 FA 80 0D 03 02 00 00 00 00 DC [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0B 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0B 00 67 FA 00 98 36 86 99 F9 16 65 87 90 00 C5 [12:05:39]RAPDU: 98 36 86 99 F9 16 65 87 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_SignData done [12:05:39]FM_MakeSignedData done [12:05:39]CreateOFDProtocolMessage [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 11 00 00 [12:05:39]Write to MH i2c: E2 08 00 68 FA 80 11 00 00 00 00 00 00 DC [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 68 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [12:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:39]wFMCommunicate OK [12:05:39]CreateOFDProtocolMessage done [12:05:39]OFDSenderStorePacket 191739 [12:05:39]StoreOFDPacket docnum=191739 [12:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8A 48 04 01 EA B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 20 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EC 02 00 35 04 06 00 7E 95 AA 1D 01 FE 98 36 86 99 F9 16 65 87 [12:05:39]CheckFolder [12:05:39]dirname=/storage/ofd_packets [12:05:39]CheckFolder done [12:05:39]ProducePacketName [12:05:39]name=ofd_packets/00191739 [12:05:39]NVStorageSaveData ofd_packets/00191739 [12:05:39]File name is /storage/ofd_packets/00191739 [12:05:39]Write 298 bytes [12:05:39]NVStorageSaveData done [12:05:39]OFDSenderStorePacket done [12:05:39]KKMCreateOFDPacket done [12:05:39]NVStorageSaveData kkm_last_timestamp [12:05:39]File name is /storage/kkm_last_timestamp [12:05:39]Write 4 bytes [12:05:39]NVStorageSaveData done [12:05:39]ExternCall_PrintAddStr [12:05:39]wPrintStart [12:05:39]Write to MH i2c: 01 00 00 69 FA 63 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 69 FA 00 00 00 00 00 FF 0F 78 [12:05:39]RasterBufferAndPrint [12:05:39]line Счет N : (1)31042 [12:05:39]line ИНН: 02508201610067 [12:05:39]line Контрольно-Кассовый Чек [12:05:39]line ПРОДАЖА [12:05:39]line ТРК (МРК, ГНК) : 11 [12:05:39]line Товар: 2710194210 [12:05:39]line ДТ-К-5 [12:05:39]line 13.130 * 76.20 [12:05:39]line = 1000.51 [12:05:39]line НДС 12% НСП 1% [12:05:39]line > о реализуемом товаре [12:05:39]line ОКРУГЛЕНИЕ: -0.51 [12:05:39]line ИТОГО: 1000.00 [12:05:39]line Внесено: 1000.00 [12:05:39]line СДАЧА: 0.00 [12:05:39]line НСП 1% : 8.85 [12:05:39]line НДС 12% : 106.25 [12:05:39]line Наличными: 1000.00 [12:05:39]line Безнал.: 0.00 [12:05:39]line Место: АЗС № 170 "Партнер Нефть" [12:05:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:05:39]line СНО: Общий режим [12:05:39]line Чек 102 26.10.2024 12:05 [12:05:39]line Смена: 541 ФФД: 1.0 [12:05:39]line ЗНМ: 0300000110 [12:05:39]line РНМ: 0000000000091776 [12:05:39]line Версия ККМ: 001 [12:05:39]line ФМ: 0000000000871754 [12:05:39]line ФД: 191739 [12:05:39]line ФПД: 139181269254654 [12:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191739&fm=139181269254654&tin=02508201610067®Number=0000000000091776&sum=100000 [12:05:40]OFD Sender: Processing packet 191739 [packets to send 75, broken 74] [12:05:40]ProducePacketName [12:05:40]name=ofd_packets/00191739 [12:05:40]OFD Sender: To server: pG, [12:05:40]CommunicateWithHost lk.salyk.kg:30040 [12:05:40]ConnectInit lk.salyk.kg [12:05:40]written 0, free lines is 4095 [12:05:40]Connected sock=10 [12:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8A 48 04 01 EA B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 20 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EC 02 00 35 04 06 00 7E 95 AA 1D 01 FE 98 36 86 99 F9 16 65 87 [12:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E EC 47 00 E4 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FB EC 02 00 F4 03 04 00 EB 7F 1C 67 B6 04 01 00 00 36 B9 BA 2B D5 A2 F3 BF [12:05:40]CommunicateWithHost err = 0 [12:05:40]CheckOFDResponse [12:05:40]1017 (14) - 77093643461234 [12:05:40]1041 (16) - 0000000000871754 [12:05:40]1040 (4) - 191739 [12:05:40]1012 (4) - 26.10.2024 05:36 [12:05:40]1206 (1) - 0 [12:05:40]OFD Sender: Remove packet 191739 [12:05:40]ProducePacketName [12:05:40]name=ofd_packets/00191739 [12:05:40]NVStorageDeleteData [12:05:40]Write to MH i2c: 01 00 00 94 FA 8E [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: 01 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: 01 07 00 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: 01 07 00 94 FA 00 00 00 00 00 C4 0C 65 [12:05:40]RasterBufferAndPrint [12:05:40]line [12:05:40]line [12:05:40]line [12:05:40]line [12:05:40]line [12:05:40]written 0, free lines is 3275 [12:05:40]MH_Cut [12:05:40]Write to MH i2c: D1 01 00 9B FA 01 67 [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: D1 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: D1 01 00 [12:05:40]MH_I2C_Read... [12:05:40]Read from MH i2c: D1 01 00 9B FA 00 66 [12:05:40]Write to MH i2c: 01 00 00 9C FA 96 [12:05:40]Write i2c OK [12:05:40]MH_I2C_Read... [12:05:40]OFD Sender: No OFD packet to send [12:05:41]*** Cut start [12:05:41]*** Partial cut [12:05:41]*** CUTSNS_PIN = 1 [12:05:41]*** CUTSNS_PIN = 0 [12:05:41]*** Brake cut motor [12:05:41]Read from MH i2c: 01 [12:05:41]MH_I2C_Read... [12:05:41]*** Stop cut motor [12:05:41]*** Cut end [12:05:41]Read from MH i2c: 01 07 00 [12:05:41]MH_I2C_Read... [12:05:41]Read from MH i2c: 01 07 00 9C FA 00 00 00 00 00 FF 0F AB [12:05:41]process_action close_receipt done [12:05:41]requested_data is exist [12:05:41]produce_requested_data [12:05:41]requested_item fm.sn is exist - process it [12:05:41]wFMCommunicate request_size=4 [12:05:41]MH_SAM_APDU [12:05:41]CAPDU: 80 11 00 00 [12:05:41]Write to MH i2c: E2 08 00 9D FA 80 11 00 00 00 00 00 00 11 [12:05:41]Write i2c OK [12:05:41]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 17 00 9D FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [12:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:05:42]wFMCommunicate OK [12:05:42]requested_item fd.num is exist - process it [12:05:42]SAM_PROTO_GetFieldsCounters [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 13 00 00 [12:05:42]Write to MH i2c: E2 08 00 9E FA 80 13 00 00 00 00 00 00 14 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 62 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 62 00 9E FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [12:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FB EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:42]wFMCommunicate OK [12:05:42]SAM_PROTO_GetFieldsCounters done [12:05:42]requested_item shift.num is exist - process it [12:05:42]requested_item shift.opened is exist - process it [12:05:42]req_shift_opened [12:05:42]FM_GetShiftState [12:05:42]SAM_PROTO_GetShiftState [12:05:42]wFMCommunicate request_size=4 [12:05:42]MH_SAM_APDU [12:05:42]CAPDU: 80 13 01 00 [12:05:42]Write to MH i2c: E2 08 00 9F FA 80 13 01 00 00 00 00 00 16 [12:05:42]Write i2c OK [12:05:42]MH_I2C_Read... [12:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:42]Read from MH i2c: E2 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 0E 00 [12:05:42]MH_I2C_Read... [12:05:42]Read from MH i2c: E2 0E 00 9F FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8F [12:05:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:05:42]wFMCommunicate OK [12:05:42]SAM_PROTO_GetShiftState done [12:05:42]FM_GetShiftState done [12:05:42]req_shift_opened done [12:05:42]requested_item shift.open_date is exist - process it [12:05:42]req_shift_open_date [12:05:42]req_shift_open_date done [12:05:42]produce_requested_data done [12:05:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191739,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:05:42]process_action_free close_receipt [12:05:42]json_value_free [12:05:42]json_value_free done [12:05:42]process_json_proto returns [12:05:42]Send response to host [12:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191739,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:05:42]free response buf [12:05:42]execute_script done [12:05:42]execute_script returns [12:05:42]free content buf [12:05:42]Sock 8.Close socket [12:05:42]Sock 8.Thread stoped [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:28]accept exits with 9 [12:06:28]New connection [12:06:28]New thread 3066817892 created [12:06:28]Thread 3066961252 joined [12:06:28]Waiting for new connection... [12:06:28] Sock 9.Parse request [12:06:28]Sock 9.Check first char [12:06:28]Sock 9.First char is OK [12:06:28]request: POST /json_proto HTTP/1.0 [12:06:28]Method: POST [12:06:28]URL: /json_proto [12:06:28]Method is POST - this is cgi request [12:06:28]url: /json_proto [12:06:28]query_string will be loaded in cgi processing [12:06:28]execute_cgi json_proto POST (null) [12:06:28]execute_cgi path=json_proto method=POST [12:06:28]POST find Content-Length [12:06:28]Host: 172.17.63.131:8080 [12:06:28]Content-Length: 681 [12:06:28]Content-Type: application/json [12:06:28] [12:06:28]POST finish read [12:06:28]Found Content-Length = 681 [12:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:28]execute_script... [12:06: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)31043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:28]POST & json_proto [12:06:28]process_json_proto [12:06:28]json parsed OK: [12:06:28]protocol is kg_v1.0 [12:06:28]action value=close_receipt [12:06:28]process_action close_receipt [12:06:28]cmd_close_receipt [12:06:28]MH_GetDate [12:06:28]Write to MH i2c: F0 00 00 A0 FA 89 [12:06:28]Write i2c OK [12:06:28]MH_I2C_Read... [12:06:28]Read from MH i2c: F0 [12:06:28]MH_I2C_Read... [12:06:28]Read from MH i2c: F0 09 00 [12:06:28]MH_I2C_Read... [12:06:28]Read from MH i2c: F0 09 00 A0 FA 00 53 DB 1C 67 22 05 6E 64 3C [12:06:28]GetLastDocTimeStamp 1729944352 [12:06:28]current date 1729944403 [12:06:28]FM_GetShiftState [12:06:28]SAM_PROTO_GetShiftState [12:06:28]wFMCommunicate request_size=4 [12:06:28]MH_SAM_APDU [12:06:28]CAPDU: 80 13 01 00 [12:06:28]Write to MH i2c: E2 08 00 A1 FA 80 13 01 00 00 00 00 00 18 [12:06:28]Write i2c OK [12:06:28]MH_I2C_Read... [12:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:28]Read from MH i2c: E2 [12:06:28]MH_I2C_Read... [12:06:28]Read from MH i2c: E2 0E 00 [12:06:28]MH_I2C_Read... [12:06:28]Read from MH i2c: E2 0E 00 A1 FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 91 [12:06:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:06:28]wFMCommunicate OK [12:06:28]SAM_PROTO_GetShiftState done [12:06:28]FM_GetShiftState done [12:06:28]opened in 1729902770 [12:06:28]opened+sec_in_day 1729989170 [12:06:28]quantity*price = 100015 [12:06:28]sum+1 = 100017 [12:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 103 26.10.2024 12:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191740 ФПД: 120414655872753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191740&fm=120414655872753&tin=02508201610067®Number=0000000000091776&sum=100000 [12:06:29]StoreToDocumentArchive [12:06:29]shift 541 fd 191740 [12:06:29]save to /storage/0541/doc_00191740 [12:06:29]save last doc name /storage/0541/doc_00191740 to /storage/kkm_last_doc_name [12:06:29]save OK [12:06:29]Clear old archive folders... [12:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:29]tlvbuf is 0187D5D0 [12:06:29]SAM_PROTO_ClearQueue [12:06:29]wFMCommunicate request_size=4 [12:06:29]MH_SAM_APDU [12:06:29]CAPDU: 80 09 00 00 [12:06:29]Write to MH i2c: E2 08 00 AE FA 80 09 00 00 00 00 00 00 1A [12:06:29]Write i2c OK [12:06:29]MH_I2C_Read... [12:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:29]Read from MH i2c: E2 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 03 00 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 03 00 AE FA 00 90 00 1C [12:06:29]RAPDU: 90 00 [12:06:29]wFMCommunicate OK [12:06:29]SAM_PROTO_ClearQueue done [12:06:29]KKMCreateOFDPacket [12:06:29]OFDProtocolAddRootSTLVToBuf [12:06:29]FM_MakeSignedData [12:06:29]FM_MakeSignedData [12:06:29]SAM_PROTO_SignData [12:06:29]wFMCommunicate request_size=4 [12:06:29]MH_SAM_APDU [12:06:29]CAPDU: 80 0D 01 02 [12:06:29]Write to MH i2c: E2 08 00 AF FA 80 0D 01 02 00 00 00 00 22 [12:06:29]Write i2c OK [12:06:29]MH_I2C_Read... [12:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:29]Read from MH i2c: E2 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 03 00 [12:06:29]MH_I2C_Read... [12:06:29]Read from MH i2c: E2 03 00 AF FA 00 90 00 1D [12:06:29]RAPDU: 90 00 [12:06:29]wFMCommunicate OK [12:06:29]wFMCommunicate request_size=255 [12:06:29]MH_SAM_APDU [12:06: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 53 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EC 02 00 35 04 06 00 6D [12:06:29]Write to MH i2c: E2 02 01 B0 FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 53 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EC 02 00 35 04 06 00 6D 00 00 3E [12:06:29]Write i2c OK [12:06:29]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 B0 FA 00 90 00 1E [12:06:30]RAPDU: 90 00 [12:06:30]wFMCommunicate OK [12:06:30]wFMCommunicate request_size=10 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 0D 02 02 05 84 38 C9 FE F1 [12:06:30]Write to MH i2c: E2 0D 00 B1 FA 80 0D 02 02 05 00 84 38 C9 FE F1 00 00 A3 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 03 00 B1 FA 00 90 00 1F [12:06:30]RAPDU: 90 00 [12:06:30]wFMCommunicate OK [12:06:30]wFMCommunicate request_size=4 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 0D 03 02 [12:06:30]Write to MH i2c: E2 08 00 B2 FA 80 0D 03 02 00 00 00 00 27 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 0B 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 0B 00 B2 FA 00 8D CE EA 12 BA EF 4C B6 90 00 2A [12:06:30]RAPDU: 8D CE EA 12 BA EF 4C B6 90 00 [12:06:30]wFMCommunicate OK [12:06:30]SAM_PROTO_SignData done [12:06:30]FM_MakeSignedData done [12:06:30]CreateOFDProtocolMessage [12:06:30]wFMCommunicate request_size=4 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 11 00 00 [12:06:30]Write to MH i2c: E2 08 00 B3 FA 80 11 00 00 00 00 00 00 27 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 17 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 17 00 B3 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [12:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:30]wFMCommunicate OK [12:06:30]CreateOFDProtocolMessage done [12:06:30]OFDSenderStorePacket 191740 [12:06:30]StoreOFDPacket docnum=191740 [12:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 73 07 01 3D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 53 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EC 02 00 35 04 06 00 6D 84 38 C9 FE F1 8D CE EA 12 BA EF 4C B6 [12:06:30]CheckFolder [12:06:30]dirname=/storage/ofd_packets [12:06:30]CheckFolder done [12:06:30]ProducePacketName [12:06:30]name=ofd_packets/00191740 [12:06:30]NVStorageSaveData ofd_packets/00191740 [12:06:30]File name is /storage/ofd_packets/00191740 [12:06:30]Write 301 bytes [12:06:30]NVStorageSaveData done [12:06:30]OFDSenderStorePacket done [12:06:30]KKMCreateOFDPacket done [12:06:30]NVStorageSaveData kkm_last_timestamp [12:06:30]File name is /storage/kkm_last_timestamp [12:06:30]Write 4 bytes [12:06:30]NVStorageSaveData done [12:06:30]ExternCall_PrintAddStr [12:06:30]wPrintStart [12:06:30]Write to MH i2c: 01 00 00 B4 FA AE [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: 01 07 00 B4 FA 00 00 00 00 00 FF 0F C3 [12:06:30]RasterBufferAndPrint [12:06:30]line Счет N : (1)31043 [12:06:30]line ИНН: 02508201610067 [12:06:30]line Контрольно-Кассовый Чек [12:06:30]line ПРОДАЖА [12:06:30]line ТРК (МРК, ГНК) : 21 [12:06:30]line Товар: 2710124130 [12:06:30]line Аи-92-К-5 [12:06:30]line 14.950 * 66.90 [12:06:30]line = 1000.16 [12:06:30]line НДС 12% НСП 1% [12:06:30]line > о реализуемом товаре [12:06:30]line ОКРУГЛЕНИЕ: -0.16 [12:06:30]line ИТОГО: 1000.00 [12:06:30]line Внесено: 1000.00 [12:06:30]line СДАЧА: 0.00 [12:06:30]line НСП 1% : 8.85 [12:06:30]line НДС 12% : 106.21 [12:06:30]line Наличными: 1000.00 [12:06:30]line Безнал.: 0.00 [12:06:30]line Место: АЗС № 170 "Партнер Нефть" [12:06:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:06:30]line СНО: Общий режим [12:06:30]line Чек 103 26.10.2024 12:06 [12:06:30]line Смена: 541 ФФД: 1.0 [12:06:30]line ЗНМ: 0300000110 [12:06:30]line РНМ: 0000000000091776 [12:06:30]line Версия ККМ: 001 [12:06:30]line ФМ: 0000000000871754 [12:06:30]line ФД: 191740 [12:06:30]line ФПД: 120414655872753 [12:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191740&fm=120414655872753&tin=02508201610067®Number=0000000000091776&sum=100000 [12:06:30]OFD Sender: Processing packet 191740 [packets to send 75, broken 74] [12:06:30]ProducePacketName [12:06:30]name=ofd_packets/00191740 [12:06:30]OFD Sender: To server: pG, [12:06:30]CommunicateWithHost lk.salyk.kg:30040 [12:06:30]ConnectInit lk.salyk.kg [12:06:30]written 0, free lines is 4095 [12:06:30]Connected sock=10 [12:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 73 07 01 3D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 53 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EC 02 00 35 04 06 00 6D 84 38 C9 FE F1 8D CE EA 12 BA EF 4C B6 [12:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 F9 47 00 DD 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FC EC 02 00 F4 03 04 00 1E 80 1C 67 B6 04 01 00 00 E5 E6 79 92 30 EC 8F 30 [12:06:30]CommunicateWithHost err = 0 [12:06:30]CheckOFDResponse [12:06:30]1017 (14) - 77093643461234 [12:06:30]1041 (16) - 0000000000871754 [12:06:30]1040 (4) - 191740 [12:06:30]1012 (4) - 26.10.2024 05:37 [12:06:30]1206 (1) - 0 [12:06:30]OFD Sender: Remove packet 191740 [12:06:30]ProducePacketName [12:06:30]name=ofd_packets/00191740 [12:06:30]NVStorageDeleteData [12:06:31]Write to MH i2c: 01 00 00 DF FA D9 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 DF FA 00 00 00 00 00 B8 0C A4 [12:06:31]RasterBufferAndPrint [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]line [12:06:31]written 0, free lines is 3263 [12:06:31]MH_Cut [12:06:31]Write to MH i2c: D1 01 00 E6 FA 01 B2 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 01 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: D1 01 00 E6 FA 00 B1 [12:06:31]Write to MH i2c: 01 00 00 E7 FA E1 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]OFD Sender: No OFD packet to send [12:06:31]*** Cut start [12:06:31]*** Partial cut [12:06:31]*** CUTSNS_PIN = 1 [12:06:31]*** CUTSNS_PIN = 0 [12:06:32]*** Brake cut motor [12:06:32]Read from MH i2c: 01 [12:06:32]MH_I2C_Read... [12:06:32]*** Stop cut motor [12:06:32]*** Cut end [12:06:32]Read from MH i2c: 01 07 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: 01 07 00 E7 FA 00 00 00 00 00 FF 0F F6 [12:06:32]process_action close_receipt done [12:06:32]requested_data is exist [12:06:32]produce_requested_data [12:06:32]requested_item fm.sn is exist - process it [12:06:32]wFMCommunicate request_size=4 [12:06:32]MH_SAM_APDU [12:06:32]CAPDU: 80 11 00 00 [12:06:32]Write to MH i2c: E2 08 00 E8 FA 80 11 00 00 00 00 00 00 5C [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:32]Read from MH i2c: E2 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 17 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 17 00 E8 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [12:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:06:32]wFMCommunicate OK [12:06:32]requested_item fd.num is exist - process it [12:06:32]SAM_PROTO_GetFieldsCounters [12:06:32]wFMCommunicate request_size=4 [12:06:32]MH_SAM_APDU [12:06:32]CAPDU: 80 13 00 00 [12:06:32]Write to MH i2c: E2 08 00 E9 FA 80 13 00 00 00 00 00 00 5F [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:32]Read from MH i2c: E2 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 62 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 62 00 E9 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FC EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:32]wFMCommunicate OK [12:06:32]SAM_PROTO_GetFieldsCounters done [12:06:32]requested_item shift.num is exist - process it [12:06:32]requested_item shift.opened is exist - process it [12:06:32]req_shift_opened [12:06:32]FM_GetShiftState [12:06:32]SAM_PROTO_GetShiftState [12:06:32]wFMCommunicate request_size=4 [12:06:32]MH_SAM_APDU [12:06:32]CAPDU: 80 13 01 00 [12:06:32]Write to MH i2c: E2 08 00 EA FA 80 13 01 00 00 00 00 00 61 [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:32]Read from MH i2c: E2 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 0E 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 0E 00 EA FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DA [12:06:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:06:32]wFMCommunicate OK [12:06:32]SAM_PROTO_GetShiftState done [12:06:32]FM_GetShiftState done [12:06:32]req_shift_opened done [12:06:32]requested_item shift.open_date is exist - process it [12:06:32]req_shift_open_date [12:06:32]req_shift_open_date done [12:06:32]produce_requested_data done [12:06:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191740,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:06:32]process_action_free close_receipt [12:06:32]json_value_free [12:06:32]json_value_free done [12:06:32]process_json_proto returns [12:06:32]Send response to host [12:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191740,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:06:32]free response buf [12:06:32]execute_script done [12:06:32]execute_script returns [12:06:32]free content buf [12:06:32]Sock 9.Close socket [12:06:32]Sock 9.Thread stoped [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:27]accept exits with 8 [12:07:27]New connection [12:07:27]New thread 3066961252 created [12:07:27]Thread 3066817892 joined [12:07:27]Waiting for new connection... [12:07:27] Sock 8.Parse request [12:07:27]Sock 8.Check first char [12:07:27]Sock 8.First char is OK [12:07:27]request: POST /json_proto HTTP/1.0 [12:07:27]Method: POST [12:07:27]URL: /json_proto [12:07:27]Method is POST - this is cgi request [12:07:27]url: /json_proto [12:07:27]query_string will be loaded in cgi processing [12:07:27]execute_cgi json_proto POST (null) [12:07:27]execute_cgi path=json_proto method=POST [12:07:27]POST find Content-Length [12:07:27]Host: 172.17.63.131:8080 [12:07:27]Content-Length: 676 [12:07:27]Content-Type: application/json [12:07:27] [12:07:27]POST finish read [12:07:27]Found Content-Length = 676 [12:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:27]execute_script... [12:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:27]POST & json_proto [12:07:27]process_json_proto [12:07:27]json parsed OK: [12:07:27]protocol is kg_v1.0 [12:07:27]action value=close_receipt [12:07:27]process_action close_receipt [12:07:27]cmd_close_receipt [12:07:27]MH_GetDate [12:07:27]Write to MH i2c: F0 00 00 EB FA D4 [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 09 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 09 00 EB FA 00 8E DB 1C 67 22 05 6E 64 C2 [12:07:27]GetLastDocTimeStamp 1729944403 [12:07:27]current date 1729944462 [12:07:27]FM_GetShiftState [12:07:27]SAM_PROTO_GetShiftState [12:07:27]wFMCommunicate request_size=4 [12:07:27]MH_SAM_APDU [12:07:27]CAPDU: 80 13 01 00 [12:07:27]Write to MH i2c: E2 08 00 EC FA 80 13 01 00 00 00 00 00 63 [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:27]Read from MH i2c: E2 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 0E 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 0E 00 EC FA 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DC [12:07:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:07:27]wFMCommunicate OK [12:07:27]SAM_PROTO_GetShiftState done [12:07:27]FM_GetShiftState done [12:07:27]opened in 1729902770 [12:07:27]opened+sec_in_day 1729989170 [12:07:27]quantity*price = 60009 [12:07:27]sum+1 = 60010 [12:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 104 26.10.2024 12:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191741 ФПД: 250386743568168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120742&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191741&fm=250386743568168&tin=02508201610067®Number=0000000000091776&sum=60000 [12:07:29]StoreToDocumentArchive [12:07:29]shift 541 fd 191741 [12:07:29]save to /storage/0541/doc_00191741 [12:07:29]save last doc name /storage/0541/doc_00191741 to /storage/kkm_last_doc_name [12:07:29]save OK [12:07:29]Clear old archive folders... [12:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:29]tlvbuf is 016010E0 [12:07:29]SAM_PROTO_ClearQueue [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 09 00 00 [12:07:29]Write to MH i2c: E2 08 00 F9 FA 80 09 00 00 00 00 00 00 65 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 F9 FA 00 90 00 67 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]SAM_PROTO_ClearQueue done [12:07:29]KKMCreateOFDPacket [12:07:29]OFDProtocolAddRootSTLVToBuf [12:07:29]FM_MakeSignedData [12:07:29]FM_MakeSignedData [12:07:29]SAM_PROTO_SignData [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 01 02 [12:07:29]Write to MH i2c: E2 08 00 FA FA 80 0D 01 02 00 00 00 00 6D [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 FA FA 00 90 00 68 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=255 [12:07:29]MH_SAM_APDU [12: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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8E DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EC 02 00 35 04 06 00 E3 [12:07:29]Write to MH i2c: E2 02 01 FB FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8E DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EC 02 00 35 04 06 00 E3 00 00 1F [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 FB FA 00 90 00 69 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=10 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 02 02 05 B9 B4 E8 27 28 [12:07:29]Write to MH i2c: E2 0D 00 FC FA 80 0D 02 02 05 00 B9 B4 E8 27 28 00 00 1E [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 FC FA 00 90 00 6A [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 03 02 [12:07:29]Write to MH i2c: E2 08 00 FD FA 80 0D 03 02 00 00 00 00 72 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0B 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0B 00 FD FA 00 DC 67 2D 84 B9 7D 01 07 90 00 A5 [12:07:29]RAPDU: DC 67 2D 84 B9 7D 01 07 90 00 [12:07:29]wFMCommunicate OK [12:07:29]SAM_PROTO_SignData done [12:07:29]FM_MakeSignedData done [12:07:29]CreateOFDProtocolMessage [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 11 00 00 [12:07:29]Write to MH i2c: E2 08 00 FE FA 80 11 00 00 00 00 00 00 72 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 17 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 17 00 FE FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [12:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:07:29]wFMCommunicate OK [12:07:29]CreateOFDProtocolMessage done [12:07:29]OFDSenderStorePacket 191741 [12:07:29]StoreOFDPacket docnum=191741 [12:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 19 07 01 3F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8E DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EC 02 00 35 04 06 00 E3 B9 B4 E8 27 28 DC 67 2D 84 B9 7D 01 07 [12:07:29]CheckFolder [12:07:29]dirname=/storage/ofd_packets [12:07:29]CheckFolder done [12:07:29]ProducePacketName [12:07:29]name=ofd_packets/00191741 [12:07:29]NVStorageSaveData ofd_packets/00191741 [12:07:29]File name is /storage/ofd_packets/00191741 [12:07:29]Write 301 bytes [12:07:29]NVStorageSaveData done [12:07:29]OFDSenderStorePacket done [12:07:29]KKMCreateOFDPacket done [12:07:29]NVStorageSaveData kkm_last_timestamp [12:07:29]File name is /storage/kkm_last_timestamp [12:07:29]Write 4 bytes [12:07:29]NVStorageSaveData done [12:07:29]ExternCall_PrintAddStr [12:07:29]wPrintStart [12:07:29]Write to MH i2c: 01 00 00 FF FA F9 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 07 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 07 00 FF FA 00 00 00 00 00 FF 0F 0E [12:07:29]RasterBufferAndPrint [12:07:29]line Счет N : (1)31044 [12:07:29]line ИНН: 02508201610067 [12:07:29]line Контрольно-Кассовый Чек [12:07:29]line ПРОДАЖА [12:07:29]line ТРК (МРК, ГНК) : 12 [12:07:29]line Товар: 2710124130 [12:07:29]line Аи-92-К-5 [12:07:29]line 8.970 * 66.90 [12:07:29]line = 600.09 [12:07:29]line НДС 12% НСП 1% [12:07:29]line > о реализуемом товаре [12:07:29]line ОКРУГЛЕНИЕ: -0.09 [12:07:29]line ИТОГО: 600.00 [12:07:29]line Внесено: 600.00 [12:07:29]line СДАЧА: 0.00 [12:07:29]line НСП 1% : 5.31 [12:07:29]line НДС 12% : 63.73 [12:07:29]line Наличными: 600.00 [12:07:29]line Безнал.: 0.00 [12:07:29]line Место: АЗС № 170 "Партнер Нефть" [12:07:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:07:29]line СНО: Общий режим [12:07:29]line Чек 104 26.10.2024 12:07 [12:07:29]line Смена: 541 ФФД: 1.0 [12:07:29]line ЗНМ: 0300000110 [12:07:29]line РНМ: 0000000000091776 [12:07:29]line Версия ККМ: 001 [12:07:29]line ФМ: 0000000000871754 [12:07:29]line ФД: 191741 [12:07:29]line ФПД: 250386743568168 [12:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120742&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191741&fm=250386743568168&tin=02508201610067®Number=0000000000091776&sum=60000 [12:07:29]OFD Sender: Processing packet 191741 [packets to send 75, broken 74] [12:07:29]ProducePacketName [12:07:29]name=ofd_packets/00191741 [12:07:29]OFD Sender: To server: pG, [12:07:29]CommunicateWithHost lk.salyk.kg:30040 [12:07:29]ConnectInit lk.salyk.kg [12:07:29]written 0, free lines is 4095 [12:07:29]Connected sock=10 [12:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 19 07 01 3F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 8E DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EC 02 00 35 04 06 00 E3 B9 B4 E8 27 28 DC 67 2D 84 B9 7D 01 07 [12:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EB 46 47 00 55 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FD EC 02 00 F4 03 04 00 59 80 1C 67 B6 04 01 00 00 A6 53 08 54 15 83 B9 DD [12:07:30]CommunicateWithHost err = 0 [12:07:30]CheckOFDResponse [12:07:30]1017 (14) - 77093643461234 [12:07:30]1041 (16) - 0000000000871754 [12:07:30]1040 (4) - 191741 [12:07:30]1012 (4) - 26.10.2024 05:38 [12:07:30]1206 (1) - 0 [12:07:30]OFD Sender: Remove packet 191741 [12:07:30]ProducePacketName [12:07:30]name=ofd_packets/00191741 [12:07:30]NVStorageDeleteData [12:07:30]Write to MH i2c: 01 00 00 2A FB 25 [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 2A FB 00 00 00 00 00 B9 0C F1 [12:07:30]RasterBufferAndPrint [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]written 0, free lines is 3265 [12:07:30]MH_Cut [12:07:30]Write to MH i2c: D1 01 00 31 FB 01 FE [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 01 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 01 00 31 FB 00 FD [12:07:30]Write to MH i2c: 01 00 00 32 FB 2D [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]OFD Sender: No OFD packet to send [12:07:31]*** Cut start [12:07:31]*** Partial cut [12:07:31]*** CUTSNS_PIN = 1 [12:07:31]*** CUTSNS_PIN = 0 [12:07:31]*** Brake cut motor [12:07:31]Read from MH i2c: 01 [12:07:31]MH_I2C_Read... [12:07:31]*** Stop cut motor [12:07:31]*** Cut end [12:07:31]Read from MH i2c: 01 07 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 32 FB 00 00 00 00 00 FF 0F 42 [12:07:31]process_action close_receipt done [12:07:31]requested_data is exist [12:07:31]produce_requested_data [12:07:31]requested_item fm.sn is exist - process it [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 11 00 00 [12:07:31]Write to MH i2c: E2 08 00 33 FB 80 11 00 00 00 00 00 00 A8 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 33 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [12:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:07:31]wFMCommunicate OK [12:07:31]requested_item fd.num is exist - process it [12:07:31]SAM_PROTO_GetFieldsCounters [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 13 00 00 [12:07:31]Write to MH i2c: E2 08 00 34 FB 80 13 00 00 00 00 00 00 AB [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 62 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 62 00 34 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [12: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FD EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:32]wFMCommunicate OK [12:07:32]SAM_PROTO_GetFieldsCounters done [12:07:32]requested_item shift.num is exist - process it [12:07:32]requested_item shift.opened is exist - process it [12:07:32]req_shift_opened [12:07:32]FM_GetShiftState [12:07:32]SAM_PROTO_GetShiftState [12:07:32]wFMCommunicate request_size=4 [12:07:32]MH_SAM_APDU [12:07:32]CAPDU: 80 13 01 00 [12:07:32]Write to MH i2c: E2 08 00 35 FB 80 13 01 00 00 00 00 00 AD [12:07:32]Write i2c OK [12:07:32]MH_I2C_Read... [12:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:32]Read from MH i2c: E2 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 0E 00 [12:07:32]MH_I2C_Read... [12:07:32]Read from MH i2c: E2 0E 00 35 FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [12:07:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:07:32]wFMCommunicate OK [12:07:32]SAM_PROTO_GetShiftState done [12:07:32]FM_GetShiftState done [12:07:32]req_shift_opened done [12:07:32]requested_item shift.open_date is exist - process it [12:07:32]req_shift_open_date [12:07:32]req_shift_open_date done [12:07:32]produce_requested_data done [12:07:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191741,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:07:32]process_action_free close_receipt [12:07:32]json_value_free [12:07:32]json_value_free done [12:07:32]process_json_proto returns [12:07:32]Send response to host [12:07:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191741,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:07:32]free response buf [12:07:32]execute_script done [12:07:32]execute_script returns [12:07:32]free content buf [12:07:32]Sock 8.Close socket [12:07:32]Sock 8.Thread stoped [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:36]accept exits with 9 [12:08:36]New connection [12:08:36]New thread 3066817892 created [12:08:36]Thread 3066961252 joined [12:08:36]Waiting for new connection... [12:08:36] Sock 9.Parse request [12:08:36]Sock 9.Check first char [12:08:36]Sock 9.First char is OK [12:08:36]request: POST /json_proto HTTP/1.0 [12:08:36]Method: POST [12:08:36]URL: /json_proto [12:08:36]Method is POST - this is cgi request [12:08:36]url: /json_proto [12:08:36]query_string will be loaded in cgi processing [12:08:36]execute_cgi json_proto POST (null) [12:08:36]execute_cgi path=json_proto method=POST [12:08:36]POST find Content-Length [12:08:36]Host: 172.17.63.131:8080 [12:08:36]Content-Length: 676 [12:08:36]Content-Type: application/json [12:08:36] [12:08:36]POST finish read [12:08:36]Found Content-Length = 676 [12:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:36]execute_script... [12:08: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)31045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:36]POST & json_proto [12:08:36]process_json_proto [12:08:36]json parsed OK: [12:08:36]protocol is kg_v1.0 [12:08:36]action value=close_receipt [12:08:36]process_action close_receipt [12:08:36]cmd_close_receipt [12:08:36]MH_GetDate [12:08:36]Write to MH i2c: F0 00 00 36 FB 20 [12:08:36]Write i2c OK [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 09 00 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: F0 09 00 36 FB 00 D2 DB 1C 67 22 05 6E 64 52 [12:08:36]GetLastDocTimeStamp 1729944462 [12:08:36]current date 1729944530 [12:08:36]FM_GetShiftState [12:08:36]SAM_PROTO_GetShiftState [12:08:36]wFMCommunicate request_size=4 [12:08:36]MH_SAM_APDU [12:08:36]CAPDU: 80 13 01 00 [12:08:36]Write to MH i2c: E2 08 00 37 FB 80 13 01 00 00 00 00 00 AF [12:08:36]Write i2c OK [12:08:36]MH_I2C_Read... [12:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:36]Read from MH i2c: E2 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: E2 0E 00 [12:08:36]MH_I2C_Read... [12:08:36]Read from MH i2c: E2 0E 00 37 FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 28 [12:08:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:08:36]wFMCommunicate OK [12:08:36]SAM_PROTO_GetShiftState done [12:08:36]FM_GetShiftState done [12:08:36]opened in 1729902770 [12:08:36]opened+sec_in_day 1729989170 [12:08:36]quantity*price = 50041 [12:08:36]sum+1 = 50042 [12:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 105 26.10.2024 12:08 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191742 ФПД: 110589122994883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191742&fm=110589122994883&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:37]StoreToDocumentArchive [12:08:37]shift 541 fd 191742 [12:08:37]save to /storage/0541/doc_00191742 [12:08:37]save last doc name /storage/0541/doc_00191742 to /storage/kkm_last_doc_name [12:08:37]save OK [12:08:37]Clear old archive folders... [12:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:37]tlvbuf is 017F1620 [12:08:37]SAM_PROTO_ClearQueue [12:08:37]wFMCommunicate request_size=4 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 09 00 00 [12:08:37]Write to MH i2c: E2 08 00 44 FB 80 09 00 00 00 00 00 00 B1 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 44 FB 00 90 00 B3 [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]SAM_PROTO_ClearQueue done [12:08:37]KKMCreateOFDPacket [12:08:37]OFDProtocolAddRootSTLVToBuf [12:08:37]FM_MakeSignedData [12:08:37]FM_MakeSignedData [12:08:37]SAM_PROTO_SignData [12:08:37]wFMCommunicate request_size=4 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 01 02 [12:08:37]Write to MH i2c: E2 08 00 45 FB 80 0D 01 02 00 00 00 00 B9 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:37]Read from MH i2c: E2 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 [12:08:37]MH_I2C_Read... [12:08:37]Read from MH i2c: E2 03 00 45 FB 00 90 00 B4 [12:08:37]RAPDU: 90 00 [12:08:37]wFMCommunicate OK [12:08:37]wFMCommunicate request_size=255 [12:08:37]MH_SAM_APDU [12:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 D2 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EC 02 00 35 04 06 00 64 [12:08:37]Write to MH i2c: E2 02 01 46 FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EC 02 00 35 04 06 00 64 00 00 55 [12:08:37]Write i2c OK [12:08:37]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 03 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 03 00 46 FB 00 90 00 B5 [12:08:38]RAPDU: 90 00 [12:08:38]wFMCommunicate OK [12:08:38]wFMCommunicate request_size=10 [12:08:38]MH_SAM_APDU [12:08:38]CAPDU: 80 0D 02 02 05 94 89 64 62 C3 [12:08:38]Write to MH i2c: E2 0D 00 47 FB 80 0D 02 02 05 00 94 89 64 62 C3 00 00 6C [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 03 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 03 00 47 FB 00 90 00 B6 [12:08:38]RAPDU: 90 00 [12:08:38]wFMCommunicate OK [12:08:38]wFMCommunicate request_size=4 [12:08:38]MH_SAM_APDU [12:08:38]CAPDU: 80 0D 03 02 [12:08:38]Write to MH i2c: E2 08 00 48 FB 80 0D 03 02 00 00 00 00 BE [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 0B 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 0B 00 48 FB 00 F2 50 5E 14 B6 4F A5 25 90 00 42 [12:08:38]RAPDU: F2 50 5E 14 B6 4F A5 25 90 00 [12:08:38]wFMCommunicate OK [12:08:38]SAM_PROTO_SignData done [12:08:38]FM_MakeSignedData done [12:08:38]CreateOFDProtocolMessage [12:08:38]wFMCommunicate request_size=4 [12:08:38]MH_SAM_APDU [12:08:38]CAPDU: 80 11 00 00 [12:08:38]Write to MH i2c: E2 08 00 49 FB 80 11 00 00 00 00 00 00 BE [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:38]Read from MH i2c: E2 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 17 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: E2 17 00 49 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [12:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:38]wFMCommunicate OK [12:08:38]CreateOFDProtocolMessage done [12:08:38]OFDSenderStorePacket 191742 [12:08:38]StoreOFDPacket docnum=191742 [12:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A6 1C 07 01 33 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EC 02 00 35 04 06 00 64 94 89 64 62 C3 F2 50 5E 14 B6 4F A5 25 [12:08:38]CheckFolder [12:08:38]dirname=/storage/ofd_packets [12:08:38]CheckFolder done [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00191742 [12:08:38]NVStorageSaveData ofd_packets/00191742 [12:08:38]File name is /storage/ofd_packets/00191742 [12:08:38]Write 301 bytes [12:08:38]NVStorageSaveData done [12:08:38]OFDSenderStorePacket done [12:08:38]KKMCreateOFDPacket done [12:08:38]NVStorageSaveData kkm_last_timestamp [12:08:38]File name is /storage/kkm_last_timestamp [12:08:38]Write 4 bytes [12:08:38]NVStorageSaveData done [12:08:38]ExternCall_PrintAddStr [12:08:38]wPrintStart [12:08:38]Write to MH i2c: 01 00 00 4A FB 45 [12:08:38]Write i2c OK [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 [12:08:38]MH_I2C_Read... [12:08:38]Read from MH i2c: 01 07 00 4A FB 00 00 00 00 00 FF 0F 5A [12:08:38]RasterBufferAndPrint [12:08:38]line Счет N : (1)31045 [12:08:38]line ИНН: 02508201610067 [12:08:38]line Контрольно-Кассовый Чек [12:08:38]line ПРОДАЖА [12:08:38]line ТРК (МРК, ГНК) : 21 [12:08:38]line Товар: 2710124130 [12:08:38]line Аи-92-К-5 [12:08:38]line 7.480 * 66.90 [12:08:38]line = 500.41 [12:08:38]line НДС 12% НСП 1% [12:08:38]line > о реализуемом товаре [12:08:38]line ОКРУГЛЕНИЕ: -0.41 [12:08:38]line ИТОГО: 500.00 [12:08:38]line Внесено: 500.00 [12:08:38]line СДАЧА: 0.00 [12:08:38]line НСП 1% : 4.43 [12:08:38]line НДС 12% : 53.14 [12:08:38]line Наличными: 500.00 [12:08:38]line Безнал.: 0.00 [12:08:38]line Место: АЗС № 170 "Партнер Нефть" [12:08:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:08:38]line СНО: Общий режим [12:08:38]line Чек 105 26.10.2024 12:08 [12:08:38]line Смена: 541 ФФД: 1.0 [12:08:38]line ЗНМ: 0300000110 [12:08:38]line РНМ: 0000000000091776 [12:08:38]line Версия ККМ: 001 [12:08:38]line ФМ: 0000000000871754 [12:08:38]line ФД: 191742 [12:08:38]line ФПД: 110589122994883 [12:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120850&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191742&fm=110589122994883&tin=02508201610067®Number=0000000000091776&sum=50000 [12:08:38]OFD Sender: Processing packet 191742 [packets to send 75, broken 74] [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00191742 [12:08:38]OFD Sender: To server: pG, [12:08:38]CommunicateWithHost lk.salyk.kg:30040 [12:08:38]ConnectInit lk.salyk.kg [12:08:38]written 0, free lines is 4095 [12:08:38]Connected sock=8 [12:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A6 1C 07 01 33 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 DB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EC 02 00 35 04 06 00 64 94 89 64 62 C3 F2 50 5E 14 B6 4F A5 25 [12:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA EE 47 00 29 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FE EC 02 00 F4 03 04 00 9E 80 1C 67 B6 04 01 00 00 BF FD EB 40 F6 D7 C8 B7 [12:08:38]CommunicateWithHost err = 0 [12:08:38]CheckOFDResponse [12:08:38]1017 (14) - 77093643461234 [12:08:38]1041 (16) - 0000000000871754 [12:08:38]1040 (4) - 191742 [12:08:38]1012 (4) - 26.10.2024 05:39 [12:08:38]1206 (1) - 0 [12:08:38]OFD Sender: Remove packet 191742 [12:08:38]ProducePacketName [12:08:38]name=ofd_packets/00191742 [12:08:38]NVStorageDeleteData [12:08:39]Write to MH i2c: 01 00 00 75 FB 70 [12:08:39]Write i2c OK [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: 01 [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: 01 07 00 [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: 01 07 00 75 FB 00 00 00 00 00 AD 0C 30 [12:08:39]RasterBufferAndPrint [12:08:39]line [12:08:39]line [12:08:39]line [12:08:39]line [12:08:39]line [12:08:39]written 0, free lines is 3252 [12:08:39]MH_Cut [12:08:39]Write to MH i2c: D1 01 00 7C FB 01 49 [12:08:39]Write i2c OK [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: D1 [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: D1 01 00 [12:08:39]MH_I2C_Read... [12:08:39]Read from MH i2c: D1 01 00 7C FB 00 48 [12:08:39]Write to MH i2c: 01 00 00 7D FB 78 [12:08:39]Write i2c OK [12:08:39]MH_I2C_Read... [12:08:39]OFD Sender: No OFD packet to send [12:08:39]*** Cut start [12:08:39]*** Partial cut [12:08:39]*** CUTSNS_PIN = 1 [12:08:39]*** CUTSNS_PIN = 0 [12:08:40]*** Brake cut motor [12:08:40]Read from MH i2c: 01 [12:08:40]MH_I2C_Read... [12:08:40]*** Stop cut motor [12:08:40]*** Cut end [12:08:40]Read from MH i2c: 01 07 00 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: 01 07 00 7D FB 00 00 00 00 00 FF 0F 8D [12:08:40]process_action close_receipt done [12:08:40]requested_data is exist [12:08:40]produce_requested_data [12:08:40]requested_item fm.sn is exist - process it [12:08:40]wFMCommunicate request_size=4 [12:08:40]MH_SAM_APDU [12:08:40]CAPDU: 80 11 00 00 [12:08:40]Write to MH i2c: E2 08 00 7E FB 80 11 00 00 00 00 00 00 F3 [12:08:40]Write i2c OK [12:08:40]MH_I2C_Read... [12:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:40]Read from MH i2c: E2 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 17 00 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 17 00 7E FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [12:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:08:40]wFMCommunicate OK [12:08:40]requested_item fd.num is exist - process it [12:08:40]SAM_PROTO_GetFieldsCounters [12:08:40]wFMCommunicate request_size=4 [12:08:40]MH_SAM_APDU [12:08:40]CAPDU: 80 13 00 00 [12:08:40]Write to MH i2c: E2 08 00 7F FB 80 13 00 00 00 00 00 00 F6 [12:08:40]Write i2c OK [12:08:40]MH_I2C_Read... [12:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:40]Read from MH i2c: E2 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 62 00 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 62 00 7F FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FE EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:40]wFMCommunicate OK [12:08:40]SAM_PROTO_GetFieldsCounters done [12:08:40]requested_item shift.num is exist - process it [12:08:40]requested_item shift.opened is exist - process it [12:08:40]req_shift_opened [12:08:40]FM_GetShiftState [12:08:40]SAM_PROTO_GetShiftState [12:08:40]wFMCommunicate request_size=4 [12:08:40]MH_SAM_APDU [12:08:40]CAPDU: 80 13 01 00 [12:08:40]Write to MH i2c: E2 08 00 80 FB 80 13 01 00 00 00 00 00 F8 [12:08:40]Write i2c OK [12:08:40]MH_I2C_Read... [12:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:40]Read from MH i2c: E2 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 0E 00 [12:08:40]MH_I2C_Read... [12:08:40]Read from MH i2c: E2 0E 00 80 FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 71 [12:08:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:08:40]wFMCommunicate OK [12:08:40]SAM_PROTO_GetShiftState done [12:08:40]FM_GetShiftState done [12:08:40]req_shift_opened done [12:08:40]requested_item shift.open_date is exist - process it [12:08:40]req_shift_open_date [12:08:40]req_shift_open_date done [12:08:40]produce_requested_data done [12:08:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191742,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:08:40]process_action_free close_receipt [12:08:40]json_value_free [12:08:40]json_value_free done [12:08:40]process_json_proto returns [12:08:40]Send response to host [12:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191742,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:08:40]free response buf [12:08:40]execute_script done [12:08:40]execute_script returns [12:08:40]free content buf [12:08:40]Sock 9.Close socket [12:08:40]Sock 9.Thread stoped [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:33]accept exits with 10 [12:09:33]New connection [12:09:33]New thread 3066961252 created [12:09:33]Thread 3066817892 joined [12:09:33]Waiting for new connection... [12:09:33] Sock 10.Parse request [12:09:33]Sock 10.Check first char [12:09:33]Sock 10.First char is OK [12:09:33]request: POST /json_proto HTTP/1.0 [12:09:33]Method: POST [12:09:33]URL: /json_proto [12:09:33]Method is POST - this is cgi request [12:09:33]url: /json_proto [12:09:33]query_string will be loaded in cgi processing [12:09:33]execute_cgi json_proto POST (null) [12:09:33]execute_cgi path=json_proto method=POST [12:09:33]POST find Content-Length [12:09:33]Host: 172.17.63.131:8080 [12:09:33]Content-Length: 676 [12:09:33]Content-Type: application/json [12:09:33] [12:09:33]POST finish read [12:09:33]Found Content-Length = 676 [12:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:33]execute_script... [12:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:33]POST & json_proto [12:09:33]process_json_proto [12:09:33]json parsed OK: [12:09:33]protocol is kg_v1.0 [12:09:33]action value=close_receipt [12:09:33]process_action close_receipt [12:09:33]cmd_close_receipt [12:09:33]MH_GetDate [12:09:33]Write to MH i2c: F0 00 00 81 FB 6B [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 09 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 09 00 81 FB 00 0B DC 1C 67 22 05 6E 64 D7 [12:09:33]GetLastDocTimeStamp 1729944530 [12:09:33]current date 1729944587 [12:09:33]FM_GetShiftState [12:09:33]SAM_PROTO_GetShiftState [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 13 01 00 [12:09:33]Write to MH i2c: E2 08 00 82 FB 80 13 01 00 00 00 00 00 FA [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 82 FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [12:09:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:09:33]wFMCommunicate OK [12:09:33]SAM_PROTO_GetShiftState done [12:09:33]FM_GetShiftState done [12:09:33]opened in 1729902770 [12:09:33]opened+sec_in_day 1729989170 [12:09:33]quantity*price = 50041 [12:09:33]sum+1 = 50042 [12:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 106 26.10.2024 12:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191743 ФПД: 77463360853788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191743&fm=77463360853788&tin=02508201610067®Number=0000000000091776&sum=50000 [12:09:34]StoreToDocumentArchive [12:09:34]shift 541 fd 191743 [12:09:34]save to /storage/0541/doc_00191743 [12:09:34]save last doc name /storage/0541/doc_00191743 to /storage/kkm_last_doc_name [12:09:34]save OK [12:09:34]Clear old archive folders... [12:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:34]tlvbuf is 015D8D80 [12:09:34]SAM_PROTO_ClearQueue [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 09 00 00 [12:09:34]Write to MH i2c: E2 08 00 8F FB 80 09 00 00 00 00 00 00 FC [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 8F FB 00 90 00 FE [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_ClearQueue done [12:09:34]KKMCreateOFDPacket [12:09:34]OFDProtocolAddRootSTLVToBuf [12:09:34]FM_MakeSignedData [12:09:34]FM_MakeSignedData [12:09:34]SAM_PROTO_SignData [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 01 02 [12:09:34]Write to MH i2c: E2 08 00 90 FB 80 0D 01 02 00 00 00 00 04 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 90 FB 00 90 00 FF [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=255 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 0B DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EC 02 00 35 04 06 00 46 [12:09:34]Write to MH i2c: E2 02 01 91 FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 0B DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EC 02 00 35 04 06 00 46 00 00 BE [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 91 FB 00 90 00 00 [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=10 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 02 02 05 73 D8 1B 57 1C [12:09:34]Write to MH i2c: E2 0D 00 92 FB 80 0D 02 02 05 00 73 D8 1B 57 1C 00 00 EA [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 03 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 03 00 92 FB 00 90 00 01 [12:09:35]RAPDU: 90 00 [12:09:35]wFMCommunicate OK [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 0D 03 02 [12:09:35]Write to MH i2c: E2 08 00 93 FB 80 0D 03 02 00 00 00 00 09 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 0B 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 0B 00 93 FB 00 63 35 56 A6 2D C2 A8 20 90 00 55 [12:09:35]RAPDU: 63 35 56 A6 2D C2 A8 20 90 00 [12:09:35]wFMCommunicate OK [12:09:35]SAM_PROTO_SignData done [12:09:35]FM_MakeSignedData done [12:09:35]CreateOFDProtocolMessage [12:09:35]wFMCommunicate request_size=4 [12:09:35]MH_SAM_APDU [12:09:35]CAPDU: 80 11 00 00 [12:09:35]Write to MH i2c: E2 08 00 94 FB 80 11 00 00 00 00 00 00 09 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:35]Read from MH i2c: E2 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 17 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: E2 17 00 94 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [12:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:09:35]wFMCommunicate OK [12:09:35]CreateOFDProtocolMessage done [12:09:35]OFDSenderStorePacket 191743 [12:09:35]StoreOFDPacket docnum=191743 [12:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 08 07 01 CE 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 0B DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EC 02 00 35 04 06 00 46 73 D8 1B 57 1C 63 35 56 A6 2D C2 A8 20 [12:09:35]CheckFolder [12:09:35]dirname=/storage/ofd_packets [12:09:35]CheckFolder done [12:09:35]ProducePacketName [12:09:35]name=ofd_packets/00191743 [12:09:35]NVStorageSaveData ofd_packets/00191743 [12:09:35]File name is /storage/ofd_packets/00191743 [12:09:35]Write 301 bytes [12:09:35]NVStorageSaveData done [12:09:35]OFDSenderStorePacket done [12:09:35]KKMCreateOFDPacket done [12:09:35]NVStorageSaveData kkm_last_timestamp [12:09:35]File name is /storage/kkm_last_timestamp [12:09:35]Write 4 bytes [12:09:35]NVStorageSaveData done [12:09:35]ExternCall_PrintAddStr [12:09:35]wPrintStart [12:09:35]Write to MH i2c: 01 00 00 95 FB 90 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 95 FB 00 00 00 00 00 FF 0F A5 [12:09:35]RasterBufferAndPrint [12:09:35]line Счет N : (1)31047 [12:09:35]line ИНН: 02508201610067 [12:09:35]line Контрольно-Кассовый Чек [12:09:35]line ПРОДАЖА [12:09:35]line ТРК (МРК, ГНК) : 12 [12:09:35]line Товар: 2710124130 [12:09:35]line Аи-92-К-5 [12:09:35]line 7.480 * 66.90 [12:09:35]line = 500.41 [12:09:35]line НДС 12% НСП 1% [12:09:35]line > о реализуемом товаре [12:09:35]line ОКРУГЛЕНИЕ: -0.41 [12:09:35]line ИТОГО: 500.00 [12:09:35]line Внесено: 500.00 [12:09:35]line СДАЧА: 0.00 [12:09:35]line НСП 1% : 4.43 [12:09:35]line НДС 12% : 53.14 [12:09:35]line Наличными: 500.00 [12:09:35]line Безнал.: 0.00 [12:09:35]line Место: АЗС № 170 "Партнер Нефть" [12:09:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:09:35]line СНО: Общий режим [12:09:35]line Чек 106 26.10.2024 12:09 [12:09:35]line Смена: 541 ФФД: 1.0 [12:09:35]line ЗНМ: 0300000110 [12:09:35]line РНМ: 0000000000091776 [12:09:35]line Версия ККМ: 001 [12:09:35]line ФМ: 0000000000871754 [12:09:35]line ФД: 191743 [12:09:35]line ФПД: 77463360853788 [12:09:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120947&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191743&fm=77463360853788&tin=02508201610067®Number=0000000000091776&sum=50000 [12:09:35]OFD Sender: Processing packet 191743 [packets to send 75, broken 74] [12:09:35]ProducePacketName [12:09:35]name=ofd_packets/00191743 [12:09:35]OFD Sender: To server: pG, [12:09:35]CommunicateWithHost lk.salyk.kg:30040 [12:09:35]ConnectInit lk.salyk.kg [12:09:35]written 0, free lines is 4095 [12:09:35]Connected sock=9 [12:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0F 08 07 01 CE 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 0B DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EC 02 00 35 04 06 00 46 73 D8 1B 57 1C 63 35 56 A6 2D C2 A8 20 [12:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 AC 47 00 95 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 FF EC 02 00 F4 03 04 00 D7 80 1C 67 B6 04 01 00 00 BA F5 E7 42 0D 9F 91 C4 [12:09:35]CommunicateWithHost err = 0 [12:09:35]CheckOFDResponse [12:09:35]1017 (14) - 77093643461234 [12:09:35]1041 (16) - 0000000000871754 [12:09:35]1040 (4) - 191743 [12:09:35]1012 (4) - 26.10.2024 05:40 [12:09:35]1206 (1) - 0 [12:09:35]OFD Sender: Remove packet 191743 [12:09:35]ProducePacketName [12:09:35]name=ofd_packets/00191743 [12:09:35]NVStorageDeleteData [12:09:35]Write to MH i2c: 01 00 00 C0 FB BB [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 C0 FB 00 00 00 00 00 B7 0C 85 [12:09:35]RasterBufferAndPrint [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]written 0, free lines is 3262 [12:09:35]MH_Cut [12:09:35]Write to MH i2c: D1 01 00 C7 FB 01 94 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 01 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 01 00 C7 FB 00 93 [12:09:35]Write to MH i2c: 01 00 00 C8 FB C3 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:36]OFD Sender: No OFD packet to send [12:09:36]*** Cut start [12:09:36]*** Partial cut [12:09:36]*** CUTSNS_PIN = 1 [12:09:36]*** CUTSNS_PIN = 0 [12:09:37]*** Brake cut motor [12:09:37]Read from MH i2c: 01 [12:09:37]MH_I2C_Read... [12:09:37]*** Stop cut motor [12:09:37]*** Cut end [12:09:37]Read from MH i2c: 01 07 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: 01 07 00 C8 FB 00 00 00 00 00 FF 0F D8 [12:09:37]process_action close_receipt done [12:09:37]requested_data is exist [12:09:37]produce_requested_data [12:09:37]requested_item fm.sn is exist - process it [12:09:37]wFMCommunicate request_size=4 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 11 00 00 [12:09:37]Write to MH i2c: E2 08 00 C9 FB 80 11 00 00 00 00 00 00 3E [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 17 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 17 00 C9 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [12:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:09:37]wFMCommunicate OK [12:09:37]requested_item fd.num is exist - process it [12:09:37]SAM_PROTO_GetFieldsCounters [12:09:37]wFMCommunicate request_size=4 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 13 00 00 [12:09:37]Write to MH i2c: E2 08 00 CA FB 80 13 00 00 00 00 00 00 41 [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 62 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 62 00 CA FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [12:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 FF EC 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:37]wFMCommunicate OK [12:09:37]SAM_PROTO_GetFieldsCounters done [12:09:37]requested_item shift.num is exist - process it [12:09:37]requested_item shift.opened is exist - process it [12:09:37]req_shift_opened [12:09:37]FM_GetShiftState [12:09:37]SAM_PROTO_GetShiftState [12:09:37]wFMCommunicate request_size=4 [12:09:37]MH_SAM_APDU [12:09:37]CAPDU: 80 13 01 00 [12:09:37]Write to MH i2c: E2 08 00 CB FB 80 13 01 00 00 00 00 00 43 [12:09:37]Write i2c OK [12:09:37]MH_I2C_Read... [12:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:37]Read from MH i2c: E2 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 0E 00 [12:09:37]MH_I2C_Read... [12:09:37]Read from MH i2c: E2 0E 00 CB FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BC [12:09:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:09:37]wFMCommunicate OK [12:09:37]SAM_PROTO_GetShiftState done [12:09:37]FM_GetShiftState done [12:09:37]req_shift_opened done [12:09:37]requested_item shift.open_date is exist - process it [12:09:37]req_shift_open_date [12:09:37]req_shift_open_date done [12:09:37]produce_requested_data done [12:09:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191743,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:09:37]process_action_free close_receipt [12:09:37]json_value_free [12:09:37]json_value_free done [12:09:37]process_json_proto returns [12:09:37]Send response to host [12:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191743,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:09:37]free response buf [12:09:37]execute_script done [12:09:37]execute_script returns [12:09:37]free content buf [12:09:37]Sock 10.Close socket [12:09:37]Sock 10.Thread stoped [12:09:41]OFD Sender: No OFD packet to send [12:09:42]accept exits with 8 [12:09:42]New connection [12:09:42]New thread 3066817892 created [12:09:42]Thread 3066961252 joined [12:09:42]Waiting for new connection... [12:09:42] Sock 8.Parse request [12:09:42]Sock 8.Check first char [12:09:42]Sock 8.First char is OK [12:09:42]request: POST /json_proto HTTP/1.0 [12:09:42]Method: POST [12:09:42]URL: /json_proto [12:09:42]Method is POST - this is cgi request [12:09:42]url: /json_proto [12:09:42]query_string will be loaded in cgi processing [12:09:42]execute_cgi json_proto POST (null) [12:09:42]execute_cgi path=json_proto method=POST [12:09:42]POST find Content-Length [12:09:42]Host: 172.17.63.131:8080 [12:09:42]Content-Length: 681 [12:09:42]Content-Type: application/json [12:09:42] [12:09:42]POST finish read [12:09:42]Found Content-Length = 681 [12:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:42]execute_script... [12:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:42]POST & json_proto [12:09:42]process_json_proto [12:09:42]json parsed OK: [12:09:42]protocol is kg_v1.0 [12:09:42]action value=close_receipt [12:09:42]process_action close_receipt [12:09:42]cmd_close_receipt [12:09:42]MH_GetDate [12:09:42]Write to MH i2c: F0 00 00 CC FB B6 [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: F0 09 00 CC FB 00 14 DC 1C 67 22 05 6E 64 2B [12:09:42]GetLastDocTimeStamp 1729944587 [12:09:42]current date 1729944596 [12:09:42]FM_GetShiftState [12:09:42]SAM_PROTO_GetShiftState [12:09:42]wFMCommunicate request_size=4 [12:09:42]MH_SAM_APDU [12:09:42]CAPDU: 80 13 01 00 [12:09:42]Write to MH i2c: E2 08 00 CD FB 80 13 01 00 00 00 00 00 45 [12:09:42]Write i2c OK [12:09:42]MH_I2C_Read... [12:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:42]Read from MH i2c: E2 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 [12:09:42]MH_I2C_Read... [12:09:42]Read from MH i2c: E2 0E 00 CD FB 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [12:09:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:09:42]wFMCommunicate OK [12:09:42]SAM_PROTO_GetShiftState done [12:09:42]FM_GetShiftState done [12:09:42]opened in 1729902770 [12:09:42]opened+sec_in_day 1729989170 [12:09:42]quantity*price = 100015 [12:09:42]sum+1 = 100017 [12:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 107 26.10.2024 12:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191744 ФПД: 237731843990758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191744&fm=237731843990758&tin=02508201610067®Number=0000000000091776&sum=100000 [12:09:43]StoreToDocumentArchive [12:09:43]shift 541 fd 191744 [12:09:43]save to /storage/0541/doc_00191744 [12:09:43]save last doc name /storage/0541/doc_00191744 to /storage/kkm_last_doc_name [12:09:43]save OK [12:09:43]Clear old archive folders... [12:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:43]tlvbuf is 01955E10 [12:09:43]SAM_PROTO_ClearQueue [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 09 00 00 [12:09:43]Write to MH i2c: E2 08 00 DA FB 80 09 00 00 00 00 00 00 47 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 DA FB 00 90 00 49 [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]SAM_PROTO_ClearQueue done [12:09:43]KKMCreateOFDPacket [12:09:43]OFDProtocolAddRootSTLVToBuf [12:09:43]FM_MakeSignedData [12:09:43]FM_MakeSignedData [12:09:43]SAM_PROTO_SignData [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 01 02 [12:09:43]Write to MH i2c: E2 08 00 DB FB 80 0D 01 02 00 00 00 00 4F [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 DB FB 00 90 00 4A [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]wFMCommunicate request_size=255 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 14 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 ED 02 00 35 04 06 00 D8 [12:09:43]Write to MH i2c: E2 02 01 DC FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 14 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 ED 02 00 35 04 06 00 D8 00 00 A1 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 DC FB 00 90 00 4B [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]wFMCommunicate request_size=10 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 02 02 05 37 42 1C E4 E6 [12:09:43]Write to MH i2c: E2 0D 00 DD FB 80 0D 02 02 05 00 37 42 1C E4 E6 00 00 BB [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 03 00 DD FB 00 90 00 4C [12:09:43]RAPDU: 90 00 [12:09:43]wFMCommunicate OK [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 0D 03 02 [12:09:43]Write to MH i2c: E2 08 00 DE FB 80 0D 03 02 00 00 00 00 54 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 0B 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 0B 00 DE FB 00 D2 2B 2B 93 BF 22 CE 92 90 00 51 [12:09:43]RAPDU: D2 2B 2B 93 BF 22 CE 92 90 00 [12:09:43]wFMCommunicate OK [12:09:43]SAM_PROTO_SignData done [12:09:43]FM_MakeSignedData done [12:09:43]CreateOFDProtocolMessage [12:09:43]wFMCommunicate request_size=4 [12:09:43]MH_SAM_APDU [12:09:43]CAPDU: 80 11 00 00 [12:09:43]Write to MH i2c: E2 08 00 DF FB 80 11 00 00 00 00 00 00 54 [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:43]Read from MH i2c: E2 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 17 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: E2 17 00 DF FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [12:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:09:43]wFMCommunicate OK [12:09:43]CreateOFDProtocolMessage done [12:09:43]OFDSenderStorePacket 191744 [12:09:43]StoreOFDPacket docnum=191744 [12:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C 65 07 01 9C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 14 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 ED 02 00 35 04 06 00 D8 37 42 1C E4 E6 D2 2B 2B 93 BF 22 CE 92 [12:09:43]CheckFolder [12:09:43]dirname=/storage/ofd_packets [12:09:43]CheckFolder done [12:09:43]ProducePacketName [12:09:43]name=ofd_packets/00191744 [12:09:43]NVStorageSaveData ofd_packets/00191744 [12:09:43]File name is /storage/ofd_packets/00191744 [12:09:43]Write 301 bytes [12:09:43]NVStorageSaveData done [12:09:43]OFDSenderStorePacket done [12:09:43]KKMCreateOFDPacket done [12:09:43]NVStorageSaveData kkm_last_timestamp [12:09:43]File name is /storage/kkm_last_timestamp [12:09:43]Write 4 bytes [12:09:43]NVStorageSaveData done [12:09:43]ExternCall_PrintAddStr [12:09:43]wPrintStart [12:09:43]Write to MH i2c: 01 00 00 E0 FB DB [12:09:43]Write i2c OK [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 [12:09:43]MH_I2C_Read... [12:09:43]Read from MH i2c: 01 07 00 E0 FB 00 00 00 00 00 FF 0F F0 [12:09:43]RasterBufferAndPrint [12:09:43]line Счет N : (1)31046 [12:09:43]line ИНН: 02508201610067 [12:09:43]line Контрольно-Кассовый Чек [12:09:43]line ПРОДАЖА [12:09:43]line ТРК (МРК, ГНК) : 21 [12:09:43]line Товар: 2710124130 [12:09:43]line Аи-92-К-5 [12:09:43]line 14.950 * 66.90 [12:09:43]line = 1000.16 [12:09:43]line НДС 12% НСП 1% [12:09:43]line > о реализуемом товаре [12:09:43]line ОКРУГЛЕНИЕ: -0.16 [12:09:43]line ИТОГО: 1000.00 [12:09:43]line Внесено: 1000.00 [12:09:43]line СДАЧА: 0.00 [12:09:43]line НСП 1% : 8.85 [12:09:43]line НДС 12% : 106.21 [12:09:43]line Наличными: 1000.00 [12:09:43]line Безнал.: 0.00 [12:09:43]line Место: АЗС № 170 "Партнер Нефть" [12:09:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:09:43]line СНО: Общий режим [12:09:43]line Чек 107 26.10.2024 12:09 [12:09:43]line Смена: 541 ФФД: 1.0 [12:09:43]line ЗНМ: 0300000110 [12:09:43]line РНМ: 0000000000091776 [12:09:43]line Версия ККМ: 001 [12:09:43]line ФМ: 0000000000871754 [12:09:43]line ФД: 191744 [12:09:43]line ФПД: 237731843990758 [12:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T120956&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191744&fm=237731843990758&tin=02508201610067®Number=0000000000091776&sum=100000 [12:09:43]written 0, free lines is 4095 [12:09:44]OFD Sender: Processing packet 191744 [packets to send 75, broken 74] [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00191744 [12:09:44]OFD Sender: To server: pG, [12:09:44]CommunicateWithHost lk.salyk.kg:30040 [12:09:44]ConnectInit lk.salyk.kg [12:09:44]Connected sock=10 [12:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C 65 07 01 9C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 14 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 ED 02 00 35 04 06 00 D8 37 42 1C E4 E6 D2 2B 2B 93 BF 22 CE 92 [12:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B2 97 47 00 4A 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 00 ED 02 00 F4 03 04 00 DF 80 1C 67 B6 04 01 00 00 18 0A 86 2E 65 75 F1 A7 [12:09:44]CommunicateWithHost err = 0 [12:09:44]CheckOFDResponse [12:09:44]1017 (14) - 77093643461234 [12:09:44]1041 (16) - 0000000000871754 [12:09:44]1040 (4) - 191744 [12:09:44]1012 (4) - 26.10.2024 05:40 [12:09:44]1206 (1) - 0 [12:09:44]OFD Sender: Remove packet 191744 [12:09:44]ProducePacketName [12:09:44]name=ofd_packets/00191744 [12:09:44]NVStorageDeleteData [12:09:44]Write to MH i2c: 01 00 00 0B FC 07 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: 01 07 00 0B FC 00 00 00 00 00 C5 0C DF [12:09:44]RasterBufferAndPrint [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]line [12:09:44]written 0, free lines is 3279 [12:09:44]MH_Cut [12:09:44]Write to MH i2c: D1 01 00 12 FC 01 E0 [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 01 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: D1 01 00 12 FC 00 DF [12:09:44]Write to MH i2c: 01 00 00 13 FC 0F [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]OFD Sender: No OFD packet to send [12:09:45]*** Cut start [12:09:45]*** Partial cut [12:09:45]*** CUTSNS_PIN = 1 [12:09:45]*** CUTSNS_PIN = 0 [12:09:45]*** Brake cut motor [12:09:45]Read from MH i2c: 01 [12:09:45]MH_I2C_Read... [12:09:45]*** Stop cut motor [12:09:45]*** Cut end [12:09:45]Read from MH i2c: 01 07 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: 01 07 00 13 FC 00 00 00 00 00 FF 0F 24 [12:09:45]process_action close_receipt done [12:09:45]requested_data is exist [12:09:45]produce_requested_data [12:09:45]requested_item fm.sn is exist - process it [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 11 00 00 [12:09:45]Write to MH i2c: E2 08 00 14 FC 80 11 00 00 00 00 00 00 8A [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 17 00 14 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [12:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:09:45]wFMCommunicate OK [12:09:45]requested_item fd.num is exist - process it [12:09:45]SAM_PROTO_GetFieldsCounters [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 13 00 00 [12:09:45]Write to MH i2c: E2 08 00 15 FC 80 13 00 00 00 00 00 00 8D [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 62 00 15 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [12:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 00 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetFieldsCounters done [12:09:46]requested_item shift.num is exist - process it [12:09:46]requested_item shift.opened is exist - process it [12:09:46]req_shift_opened [12:09:46]FM_GetShiftState [12:09:46]SAM_PROTO_GetShiftState [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 13 01 00 [12:09:46]Write to MH i2c: E2 08 00 16 FC 80 13 01 00 00 00 00 00 8F [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0E 00 16 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [12:09:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_GetShiftState done [12:09:46]FM_GetShiftState done [12:09:46]req_shift_opened done [12:09:46]requested_item shift.open_date is exist - process it [12:09:46]req_shift_open_date [12:09:46]req_shift_open_date done [12:09:46]produce_requested_data done [12:09:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191744,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:09:46]process_action_free close_receipt [12:09:46]json_value_free [12:09:46]json_value_free done [12:09:46]process_json_proto returns [12:09:46]Send response to host [12:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191744,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:09:46]free response buf [12:09:46]execute_script done [12:09:46]execute_script returns [12:09:46]free content buf [12:09:46]Sock 8.Close socket [12:09:46]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]accept exits with 9 [12:10:39]New connection [12:10:39]New thread 3066961252 created [12:10:39]Thread 3066817892 joined [12:10:39]Waiting for new connection... [12:10:39] Sock 9.Parse request [12:10:39]Sock 9.Check first char [12:10:39]Sock 9.First char is OK [12:10:39]request: POST /json_proto HTTP/1.0 [12:10:39]Method: POST [12:10:39]URL: /json_proto [12:10:39]Method is POST - this is cgi request [12:10:39]url: /json_proto [12:10:39]query_string will be loaded in cgi processing [12:10:39]execute_cgi json_proto POST (null) [12:10:39]execute_cgi path=json_proto method=POST [12:10:39]POST find Content-Length [12:10:39]Host: 172.17.63.131:8080 [12:10:39]Content-Length: 676 [12:10:39]Content-Type: application/json [12:10:39] [12:10:39]POST finish read [12:10:39]Found Content-Length = 676 [12:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:39]execute_script... [12:10: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)31048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:39]POST & json_proto [12:10:39]process_json_proto [12:10:39]json parsed OK: [12:10:39]protocol is kg_v1.0 [12:10:39]action value=close_receipt [12:10:39]process_action close_receipt [12:10:39]cmd_close_receipt [12:10:39]MH_GetDate [12:10:39]Write to MH i2c: F0 00 00 17 FC 02 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 09 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 09 00 17 FC 00 4E DC 1C 67 22 05 6E 64 B1 [12:10:39]GetLastDocTimeStamp 1729944596 [12:10:39]current date 1729944654 [12:10:39]FM_GetShiftState [12:10:39]SAM_PROTO_GetShiftState [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 13 01 00 [12:10:39]Write to MH i2c: E2 08 00 18 FC 80 13 01 00 00 00 00 00 91 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0E 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0E 00 18 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [12:10:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:10:39]wFMCommunicate OK [12:10:39]SAM_PROTO_GetShiftState done [12:10:39]FM_GetShiftState done [12:10:39]opened in 1729902770 [12:10:39]opened+sec_in_day 1729989170 [12:10:39]quantity*price = 30038 [12:10:39]sum+1 = 30039 [12:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 108 26.10.2024 12:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191745 ФПД: 161875462921717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191745&fm=161875462921717&tin=02508201610067®Number=0000000000091776&sum=30000 [12:10:40]StoreToDocumentArchive [12:10:40]shift 541 fd 191745 [12:10:40]save to /storage/0541/doc_00191745 [12:10:40]save last doc name /storage/0541/doc_00191745 to /storage/kkm_last_doc_name [12:10:40]save OK [12:10:40]Clear old archive folders... [12:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:40]tlvbuf is 01955720 [12:10:40]SAM_PROTO_ClearQueue [12:10:40]wFMCommunicate request_size=4 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 09 00 00 [12:10:40]Write to MH i2c: E2 08 00 25 FC 80 09 00 00 00 00 00 00 93 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 [12:10:40]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 25 FC 00 90 00 95 [12:10:41]RAPDU: 90 00 [12:10:41]wFMCommunicate OK [12:10:41]SAM_PROTO_ClearQueue done [12:10:41]KKMCreateOFDPacket [12:10:41]OFDProtocolAddRootSTLVToBuf [12:10:41]FM_MakeSignedData [12:10:41]FM_MakeSignedData [12:10:41]SAM_PROTO_SignData [12:10:41]wFMCommunicate request_size=4 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 0D 01 02 [12:10:41]Write to MH i2c: E2 08 00 26 FC 80 0D 01 02 00 00 00 00 9B [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 26 FC 00 90 00 96 [12:10:41]RAPDU: 90 00 [12:10:41]wFMCommunicate OK [12:10:41]wFMCommunicate request_size=255 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4E DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 ED 02 00 35 04 06 00 93 [12:10:41]Write to MH i2c: E2 02 01 27 FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4E DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 ED 02 00 35 04 06 00 93 00 00 DE [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 27 FC 00 90 00 97 [12:10:41]RAPDU: 90 00 [12:10:41]wFMCommunicate OK [12:10:41]wFMCommunicate request_size=10 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 0D 02 02 05 39 91 77 1D F5 [12:10:41]Write to MH i2c: E2 0D 00 28 FC 80 0D 02 02 05 00 39 91 77 1D F5 00 00 FB [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 03 00 28 FC 00 90 00 98 [12:10:41]RAPDU: 90 00 [12:10:41]wFMCommunicate OK [12:10:41]wFMCommunicate request_size=4 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 0D 03 02 [12:10:41]Write to MH i2c: E2 08 00 29 FC 80 0D 03 02 00 00 00 00 A0 [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 0B 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 0B 00 29 FC 00 F0 63 BC 6F 72 58 5D 9A 90 00 E0 [12:10:41]RAPDU: F0 63 BC 6F 72 58 5D 9A 90 00 [12:10:41]wFMCommunicate OK [12:10:41]SAM_PROTO_SignData done [12:10:41]FM_MakeSignedData done [12:10:41]CreateOFDProtocolMessage [12:10:41]wFMCommunicate request_size=4 [12:10:41]MH_SAM_APDU [12:10:41]CAPDU: 80 11 00 00 [12:10:41]Write to MH i2c: E2 08 00 2A FC 80 11 00 00 00 00 00 00 A0 [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:41]Read from MH i2c: E2 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 17 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: E2 17 00 2A FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [12:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:10:41]wFMCommunicate OK [12:10:41]CreateOFDProtocolMessage done [12:10:41]OFDSenderStorePacket 191745 [12:10:41]StoreOFDPacket docnum=191745 [12:10:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 41 07 01 0E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4E DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 ED 02 00 35 04 06 00 93 39 91 77 1D F5 F0 63 BC 6F 72 58 5D 9A [12:10:41]CheckFolder [12:10:41]dirname=/storage/ofd_packets [12:10:41]CheckFolder done [12:10:41]ProducePacketName [12:10:41]name=ofd_packets/00191745 [12:10:41]NVStorageSaveData ofd_packets/00191745 [12:10:41]File name is /storage/ofd_packets/00191745 [12:10:41]Write 301 bytes [12:10:41]NVStorageSaveData done [12:10:41]OFDSenderStorePacket done [12:10:41]KKMCreateOFDPacket done [12:10:41]NVStorageSaveData kkm_last_timestamp [12:10:41]File name is /storage/kkm_last_timestamp [12:10:41]Write 4 bytes [12:10:41]NVStorageSaveData done [12:10:41]ExternCall_PrintAddStr [12:10:41]wPrintStart [12:10:41]Write to MH i2c: 01 00 00 2B FC 27 [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 07 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 07 00 2B FC 00 00 00 00 00 FF 0F 3C [12:10:41]RasterBufferAndPrint [12:10:41]line Счет N : (1)31048 [12:10:41]line ИНН: 02508201610067 [12:10:41]line Контрольно-Кассовый Чек [12:10:41]line ПРОДАЖА [12:10:41]line ТРК (МРК, ГНК) : 21 [12:10:41]line Товар: 2710124130 [12:10:41]line Аи-92-К-5 [12:10:41]line 4.490 * 66.90 [12:10:41]line = 300.38 [12:10:41]line НДС 12% НСП 1% [12:10:41]line > о реализуемом товаре [12:10:41]line ОКРУГЛЕНИЕ: -0.38 [12:10:41]line ИТОГО: 300.00 [12:10:41]line Внесено: 300.00 [12:10:41]line СДАЧА: 0.00 [12:10:41]line НСП 1% : 2.66 [12:10:41]line НДС 12% : 31.90 [12:10:41]line Наличными: 300.00 [12:10:41]line Безнал.: 0.00 [12:10:41]line Место: АЗС № 170 "Партнер Нефть" [12:10:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:10:41]line СНО: Общий режим [12:10:41]line Чек 108 26.10.2024 12:10 [12:10:41]line Смена: 541 ФФД: 1.0 [12:10:41]line ЗНМ: 0300000110 [12:10:41]line РНМ: 0000000000091776 [12:10:41]line Версия ККМ: 001 [12:10:41]line ФМ: 0000000000871754 [12:10:41]line ФД: 191745 [12:10:41]line ФПД: 161875462921717 [12:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121054&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191745&fm=161875462921717&tin=02508201610067®Number=0000000000091776&sum=30000 [12:10:41]OFD Sender: Processing packet 191745 [packets to send 75, broken 74] [12:10:41]ProducePacketName [12:10:41]name=ofd_packets/00191745 [12:10:41]OFD Sender: To server: pG, [12:10:41]CommunicateWithHost lk.salyk.kg:30040 [12:10:41]ConnectInit lk.salyk.kg [12:10:41]written 0, free lines is 4095 [12:10:41]Connected sock=10 [12:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 41 07 01 0E 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 4E DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 ED 02 00 35 04 06 00 93 39 91 77 1D F5 F0 63 BC 6F 72 58 5D 9A [12:10:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 14 6E 47 00 3C F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 01 ED 02 00 F4 03 04 00 19 81 1C 67 B6 04 01 00 00 52 B0 1B 73 99 5E 73 22 [12:10:42]CommunicateWithHost err = 0 [12:10:42]CheckOFDResponse [12:10:42]1017 (14) - 77093643461234 [12:10:42]1041 (16) - 0000000000871754 [12:10:42]1040 (4) - 191745 [12:10:42]1012 (4) - 26.10.2024 05:41 [12:10:42]1206 (1) - 0 [12:10:42]OFD Sender: Remove packet 191745 [12:10:42]ProducePacketName [12:10:42]name=ofd_packets/00191745 [12:10:42]NVStorageDeleteData [12:10:42]Write to MH i2c: 01 00 00 56 FC 52 [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 56 FC 00 00 00 00 00 AF 0C 14 [12:10:42]RasterBufferAndPrint [12:10:42]line [12:10:42]line [12:10:42]line [12:10:42]line [12:10:42]line [12:10:42]written 0, free lines is 3254 [12:10:42]MH_Cut [12:10:42]Write to MH i2c: D1 01 00 5D FC 01 2B [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: D1 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: D1 01 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: D1 01 00 5D FC 00 2A [12:10:42]Write to MH i2c: 01 00 00 5E FC 5A [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]OFD Sender: No OFD packet to send [12:10:43]*** Cut start [12:10:43]*** Partial cut [12:10:43]*** CUTSNS_PIN = 1 [12:10:43]*** CUTSNS_PIN = 0 [12:10:43]*** Brake cut motor [12:10:43]Read from MH i2c: 01 [12:10:43]MH_I2C_Read... [12:10:43]*** Stop cut motor [12:10:43]*** Cut end [12:10:43]Read from MH i2c: 01 07 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: 01 07 00 5E FC 00 00 00 00 00 FF 0F 6F [12:10:43]process_action close_receipt done [12:10:43]requested_data is exist [12:10:43]produce_requested_data [12:10:43]requested_item fm.sn is exist - process it [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 11 00 00 [12:10:43]Write to MH i2c: E2 08 00 5F FC 80 11 00 00 00 00 00 00 D5 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 17 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 17 00 5F FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [12:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:10:43]wFMCommunicate OK [12:10:43]requested_item fd.num is exist - process it [12:10:43]SAM_PROTO_GetFieldsCounters [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 13 00 00 [12:10:43]Write to MH i2c: E2 08 00 60 FC 80 13 00 00 00 00 00 00 D8 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 62 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 62 00 60 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [12:10:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 01 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_GetFieldsCounters done [12:10:43]requested_item shift.num is exist - process it [12:10:43]requested_item shift.opened is exist - process it [12:10:43]req_shift_opened [12:10:43]FM_GetShiftState [12:10:43]SAM_PROTO_GetShiftState [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 13 01 00 [12:10:43]Write to MH i2c: E2 08 00 61 FC 80 13 01 00 00 00 00 00 DA [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0E 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0E 00 61 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 53 [12:10:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_GetShiftState done [12:10:43]FM_GetShiftState done [12:10:43]req_shift_opened done [12:10:43]requested_item shift.open_date is exist - process it [12:10:43]req_shift_open_date [12:10:43]req_shift_open_date done [12:10:43]produce_requested_data done [12:10:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191745,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:10:43]process_action_free close_receipt [12:10:43]json_value_free [12:10:43]json_value_free done [12:10:43]process_json_proto returns [12:10:43]Send response to host [12:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191745,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:10:43]free response buf [12:10:43]execute_script done [12:10:43]execute_script returns [12:10:43]free content buf [12:10:43]Sock 9.Close socket [12:10:43]Sock 9.Thread stoped [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:06]accept exits with 8 [12:12:06]New connection [12:12:06]New thread 3066817892 created [12:12:06]Thread 3066961252 joined [12:12:06]Waiting for new connection... [12:12:06] Sock 8.Parse request [12:12:06]Sock 8.Check first char [12:12:06]Sock 8.First char is OK [12:12:06]request: POST /json_proto HTTP/1.0 [12:12:06]Method: POST [12:12:06]URL: /json_proto [12:12:06]Method is POST - this is cgi request [12:12:06]url: /json_proto [12:12:06]query_string will be loaded in cgi processing [12:12:06]execute_cgi json_proto POST (null) [12:12:06]execute_cgi path=json_proto method=POST [12:12:06]POST find Content-Length [12:12:06]Host: 172.17.63.131:8080 [12:12:06]Content-Length: 676 [12:12:06]Content-Type: application/json [12:12:06] [12:12:06]POST finish read [12:12:06]Found Content-Length = 676 [12:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:06]execute_script... [12:12: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)31049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:06]POST & json_proto [12:12:06]process_json_proto [12:12:06]json parsed OK: [12:12:06]protocol is kg_v1.0 [12:12:06]action value=close_receipt [12:12:06]process_action close_receipt [12:12:06]cmd_close_receipt [12:12:06]MH_GetDate [12:12:06]Write to MH i2c: F0 00 00 62 FC 4D [12:12:06]Write i2c OK [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: F0 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: F0 09 00 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: F0 09 00 62 FC 00 A5 DC 1C 67 22 05 6E 64 53 [12:12:06]GetLastDocTimeStamp 1729944654 [12:12:06]current date 1729944741 [12:12:06]FM_GetShiftState [12:12:06]SAM_PROTO_GetShiftState [12:12:06]wFMCommunicate request_size=4 [12:12:06]MH_SAM_APDU [12:12:06]CAPDU: 80 13 01 00 [12:12:06]Write to MH i2c: E2 08 00 63 FC 80 13 01 00 00 00 00 00 DC [12:12:06]Write i2c OK [12:12:06]MH_I2C_Read... [12:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:06]Read from MH i2c: E2 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: E2 0E 00 [12:12:06]MH_I2C_Read... [12:12:06]Read from MH i2c: E2 0E 00 63 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 55 [12:12:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:12:06]wFMCommunicate OK [12:12:06]SAM_PROTO_GetShiftState done [12:12:06]FM_GetShiftState done [12:12:06]opened in 1729902770 [12:12:06]opened+sec_in_day 1729989170 [12:12:06]quantity*price = 55058 [12:12:06]sum+1 = 55060 [12:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 109 26.10.2024 12:12 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191746 ФПД: 148374306637793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191746&fm=148374306637793&tin=02508201610067®Number=0000000000091776&sum=55000 [12:12:07]StoreToDocumentArchive [12:12:07]shift 541 fd 191746 [12:12:07]save to /storage/0541/doc_00191746 [12:12:07]save last doc name /storage/0541/doc_00191746 to /storage/kkm_last_doc_name [12:12:07]save OK [12:12:07]Clear old archive folders... [12:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:07]tlvbuf is 016CE7E0 [12:12:07]SAM_PROTO_ClearQueue [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 09 00 00 [12:12:07]Write to MH i2c: E2 08 00 70 FC 80 09 00 00 00 00 00 00 DE [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 03 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 03 00 70 FC 00 90 00 E0 [12:12:07]RAPDU: 90 00 [12:12:07]wFMCommunicate OK [12:12:07]SAM_PROTO_ClearQueue done [12:12:07]KKMCreateOFDPacket [12:12:07]OFDProtocolAddRootSTLVToBuf [12:12:07]FM_MakeSignedData [12:12:07]FM_MakeSignedData [12:12:07]SAM_PROTO_SignData [12:12:07]wFMCommunicate request_size=4 [12:12:07]MH_SAM_APDU [12:12:07]CAPDU: 80 0D 01 02 [12:12:07]Write to MH i2c: E2 08 00 71 FC 80 0D 01 02 00 00 00 00 E6 [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:07]Read from MH i2c: E2 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 03 00 [12:12:07]MH_I2C_Read... [12:12:07]Read from MH i2c: E2 03 00 71 FC 00 90 00 E1 [12:12:07]RAPDU: 90 00 [12:12:07]wFMCommunicate OK [12:12:07]wFMCommunicate request_size=255 [12:12:07]MH_SAM_APDU [12:12: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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 ED 02 00 35 04 06 00 86 [12:12:07]Write to MH i2c: E2 02 01 72 FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 ED 02 00 35 04 06 00 86 00 00 99 [12:12:07]Write i2c OK [12:12:07]MH_I2C_Read... [12:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:08]Read from MH i2c: E2 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 03 00 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 03 00 72 FC 00 90 00 E2 [12:12:08]RAPDU: 90 00 [12:12:08]wFMCommunicate OK [12:12:08]wFMCommunicate request_size=10 [12:12:08]MH_SAM_APDU [12:12:08]CAPDU: 80 0D 02 02 05 F2 15 D7 47 E1 [12:12:08]Write to MH i2c: E2 0D 00 73 FC 80 0D 02 02 05 00 F2 15 D7 47 E1 00 00 F9 [12:12:08]Write i2c OK [12:12:08]MH_I2C_Read... [12:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:08]Read from MH i2c: E2 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 03 00 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 03 00 73 FC 00 90 00 E3 [12:12:08]RAPDU: 90 00 [12:12:08]wFMCommunicate OK [12:12:08]wFMCommunicate request_size=4 [12:12:08]MH_SAM_APDU [12:12:08]CAPDU: 80 0D 03 02 [12:12:08]Write to MH i2c: E2 08 00 74 FC 80 0D 03 02 00 00 00 00 EB [12:12:08]Write i2c OK [12:12:08]MH_I2C_Read... [12:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:08]Read from MH i2c: E2 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 0B 00 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 0B 00 74 FC 00 52 F5 62 7B 45 2D 6F 8D 90 00 7E [12:12:08]RAPDU: 52 F5 62 7B 45 2D 6F 8D 90 00 [12:12:08]wFMCommunicate OK [12:12:08]SAM_PROTO_SignData done [12:12:08]FM_MakeSignedData done [12:12:08]CreateOFDProtocolMessage [12:12:08]wFMCommunicate request_size=4 [12:12:08]MH_SAM_APDU [12:12:08]CAPDU: 80 11 00 00 [12:12:08]Write to MH i2c: E2 08 00 75 FC 80 11 00 00 00 00 00 00 EB [12:12:08]Write i2c OK [12:12:08]MH_I2C_Read... [12:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:08]Read from MH i2c: E2 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 17 00 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: E2 17 00 75 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [12:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:12:08]wFMCommunicate OK [12:12:08]CreateOFDProtocolMessage done [12:12:08]OFDSenderStorePacket 191746 [12:12:08]StoreOFDPacket docnum=191746 [12:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 4B 07 01 F2 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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 ED 02 00 35 04 06 00 86 F2 15 D7 47 E1 52 F5 62 7B 45 2D 6F 8D [12:12:08]CheckFolder [12:12:08]dirname=/storage/ofd_packets [12:12:08]CheckFolder done [12:12:08]ProducePacketName [12:12:08]name=ofd_packets/00191746 [12:12:08]NVStorageSaveData ofd_packets/00191746 [12:12:08]File name is /storage/ofd_packets/00191746 [12:12:08]Write 301 bytes [12:12:08]NVStorageSaveData done [12:12:08]OFDSenderStorePacket done [12:12:08]KKMCreateOFDPacket done [12:12:08]NVStorageSaveData kkm_last_timestamp [12:12:08]File name is /storage/kkm_last_timestamp [12:12:08]Write 4 bytes [12:12:08]NVStorageSaveData done [12:12:08]ExternCall_PrintAddStr [12:12:08]wPrintStart [12:12:08]Write to MH i2c: 01 00 00 76 FC 72 [12:12:08]Write i2c OK [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: 01 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: 01 07 00 [12:12:08]MH_I2C_Read... [12:12:08]Read from MH i2c: 01 07 00 76 FC 00 00 00 00 00 FF 0F 87 [12:12:08]RasterBufferAndPrint [12:12:08]line Счет N : (1)31049 [12:12:08]line ИНН: 02508201610067 [12:12:08]line Контрольно-Кассовый Чек [12:12:08]line ПРОДАЖА [12:12:08]line ТРК (МРК, ГНК) : 12 [12:12:08]line Товар: 2710124130 [12:12:08]line Аи-92-К-5 [12:12:08]line 8.230 * 66.90 [12:12:08]line = 550.59 [12:12:08]line НДС 12% НСП 1% [12:12:08]line > о реализуемом товаре [12:12:08]line ОКРУГЛЕНИЕ: -0.59 [12:12:08]line ИТОГО: 550.00 [12:12:08]line Внесено: 550.00 [12:12:08]line СДАЧА: 0.00 [12:12:08]line НСП 1% : 4.87 [12:12:08]line НДС 12% : 58.47 [12:12:08]line Наличными: 550.00 [12:12:08]line Безнал.: 0.00 [12:12:08]line Место: АЗС № 170 "Партнер Нефть" [12:12:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:12:08]line СНО: Общий режим [12:12:08]line Чек 109 26.10.2024 12:12 [12:12:08]line Смена: 541 ФФД: 1.0 [12:12:08]line ЗНМ: 0300000110 [12:12:08]line РНМ: 0000000000091776 [12:12:08]line Версия ККМ: 001 [12:12:08]line ФМ: 0000000000871754 [12:12:08]line ФД: 191746 [12:12:08]line ФПД: 148374306637793 [12:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121221&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191746&fm=148374306637793&tin=02508201610067®Number=0000000000091776&sum=55000 [12:12:08]OFD Sender: Processing packet 191746 [packets to send 75, broken 74] [12:12:08]ProducePacketName [12:12:08]name=ofd_packets/00191746 [12:12:08]OFD Sender: To server: pG, [12:12:08]CommunicateWithHost lk.salyk.kg:30040 [12:12:08]ConnectInit lk.salyk.kg [12:12:08]written 0, free lines is 4095 [12:12:08]Connected sock=10 [12:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 4B 07 01 F2 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 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A5 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 ED 02 00 35 04 06 00 86 F2 15 D7 47 E1 52 F5 62 7B 45 2D 6F 8D [12:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 0F 47 00 82 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 02 ED 02 00 F4 03 04 00 70 81 1C 67 B6 04 01 00 00 F4 28 14 62 5D A7 5A 38 [12:12:09]CommunicateWithHost err = 0 [12:12:09]CheckOFDResponse [12:12:09]1017 (14) - 77093643461234 [12:12:09]1041 (16) - 0000000000871754 [12:12:09]1040 (4) - 191746 [12:12:09]1012 (4) - 26.10.2024 05:43 [12:12:09]1206 (1) - 0 [12:12:09]OFD Sender: Remove packet 191746 [12:12:09]ProducePacketName [12:12:09]name=ofd_packets/00191746 [12:12:09]NVStorageDeleteData [12:12:09]Write to MH i2c: 01 00 00 A1 FC 9D [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 07 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: 01 07 00 A1 FC 00 00 00 00 00 BB 0C 6B [12:12:09]RasterBufferAndPrint [12:12:09]line [12:12:09]line [12:12:09]line [12:12:09]line [12:12:09]line [12:12:09]written 0, free lines is 3264 [12:12:09]MH_Cut [12:12:09]Write to MH i2c: D1 01 00 A8 FC 01 76 [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: D1 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: D1 01 00 [12:12:09]MH_I2C_Read... [12:12:09]Read from MH i2c: D1 01 00 A8 FC 00 75 [12:12:09]Write to MH i2c: 01 00 00 A9 FC A5 [12:12:09]Write i2c OK [12:12:09]MH_I2C_Read... [12:12:09]OFD Sender: No OFD packet to send [12:12:10]*** Cut start [12:12:10]*** Partial cut [12:12:10]*** CUTSNS_PIN = 1 [12:12:10]*** CUTSNS_PIN = 0 [12:12:10]*** Brake cut motor [12:12:10]Read from MH i2c: 01 [12:12:10]MH_I2C_Read... [12:12:10]*** Stop cut motor [12:12:10]*** Cut end [12:12:10]Read from MH i2c: 01 07 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: 01 07 00 A9 FC 00 00 00 00 00 FF 0F BA [12:12:10]process_action close_receipt done [12:12:10]requested_data is exist [12:12:10]produce_requested_data [12:12:10]requested_item fm.sn is exist - process it [12:12:10]wFMCommunicate request_size=4 [12:12:10]MH_SAM_APDU [12:12:10]CAPDU: 80 11 00 00 [12:12:10]Write to MH i2c: E2 08 00 AA FC 80 11 00 00 00 00 00 00 20 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:10]Read from MH i2c: E2 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 17 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 17 00 AA FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 73 [12:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:12:10]wFMCommunicate OK [12:12:10]requested_item fd.num is exist - process it [12:12:10]SAM_PROTO_GetFieldsCounters [12:12:10]wFMCommunicate request_size=4 [12:12:10]MH_SAM_APDU [12:12:10]CAPDU: 80 13 00 00 [12:12:10]Write to MH i2c: E2 08 00 AB FC 80 13 00 00 00 00 00 00 23 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:10]Read from MH i2c: E2 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 62 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 62 00 AB FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [12:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 02 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:10]wFMCommunicate OK [12:12:10]SAM_PROTO_GetFieldsCounters done [12:12:10]requested_item shift.num is exist - process it [12:12:10]requested_item shift.opened is exist - process it [12:12:10]req_shift_opened [12:12:10]FM_GetShiftState [12:12:10]SAM_PROTO_GetShiftState [12:12:10]wFMCommunicate request_size=4 [12:12:10]MH_SAM_APDU [12:12:10]CAPDU: 80 13 01 00 [12:12:10]Write to MH i2c: E2 08 00 AC FC 80 13 01 00 00 00 00 00 25 [12:12:10]Write i2c OK [12:12:10]MH_I2C_Read... [12:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:10]Read from MH i2c: E2 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 0E 00 [12:12:10]MH_I2C_Read... [12:12:10]Read from MH i2c: E2 0E 00 AC FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9E [12:12:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:12:10]wFMCommunicate OK [12:12:10]SAM_PROTO_GetShiftState done [12:12:10]FM_GetShiftState done [12:12:10]req_shift_opened done [12:12:10]requested_item shift.open_date is exist - process it [12:12:10]req_shift_open_date [12:12:10]req_shift_open_date done [12:12:10]produce_requested_data done [12:12:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191746,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:12:10]process_action_free close_receipt [12:12:10]json_value_free [12:12:10]json_value_free done [12:12:10]process_json_proto returns [12:12:10]Send response to host [12:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191746,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:12:10]free response buf [12:12:10]execute_script done [12:12:10]execute_script returns [12:12:10]free content buf [12:12:10]Sock 8.Close socket [12:12:10]Sock 8.Thread stoped [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:30]accept exits with 9 [12:13:30]New connection [12:13:30]New thread 3066961252 created [12:13:30]Thread 3066817892 joined [12:13:30]Waiting for new connection... [12:13:30] Sock 9.Parse request [12:13:30]Sock 9.Check first char [12:13:30]Sock 9.First char is OK [12:13:30]request: POST /json_proto HTTP/1.0 [12:13:30]Method: POST [12:13:30]URL: /json_proto [12:13:30]Method is POST - this is cgi request [12:13:30]url: /json_proto [12:13:30]query_string will be loaded in cgi processing [12:13:30]execute_cgi json_proto POST (null) [12:13:30]execute_cgi path=json_proto method=POST [12:13:30]POST find Content-Length [12:13:30]Host: 172.17.63.131:8080 [12:13:30]Content-Length: 673 [12:13:30]Content-Type: application/json [12:13:30] [12:13:30]POST finish read [12:13:30]Found Content-Length = 673 [12:13:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31050", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:13:30]execute_script... [12: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)31050", "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" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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:13:30]POST & json_proto [12:13:30]process_json_proto [12:13:30]json parsed OK: [12:13:30]protocol is kg_v1.0 [12:13:30]action value=close_receipt [12:13:30]process_action close_receipt [12:13:30]cmd_close_receipt [12:13:30]MH_GetDate [12:13:30]Write to MH i2c: F0 00 00 AD FC 98 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: F0 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: F0 09 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: F0 09 00 AD FC 00 F9 DC 1C 67 22 05 6E 64 F2 [12:13:30]GetLastDocTimeStamp 1729944741 [12:13:30]current date 1729944825 [12:13:30]FM_GetShiftState [12:13:30]SAM_PROTO_GetShiftState [12:13:30]wFMCommunicate request_size=4 [12:13:30]MH_SAM_APDU [12:13:30]CAPDU: 80 13 01 00 [12:13:30]Write to MH i2c: E2 08 00 AE FC 80 13 01 00 00 00 00 00 27 [12:13:30]Write i2c OK [12:13:30]MH_I2C_Read... [12:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:30]Read from MH i2c: E2 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 0E 00 [12:13:30]MH_I2C_Read... [12:13:30]Read from MH i2c: E2 0E 00 AE FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A0 [12:13:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:13:30]wFMCommunicate OK [12:13:30]SAM_PROTO_GetShiftState done [12:13:30]FM_GetShiftState done [12:13:30]opened in 1729902770 [12:13:30]opened+sec_in_day 1729989170 [12:13:30]quantity*price = 60045 [12:13:30]sum+1 = 60047 [12:13:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 110 26.10.2024 12:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191747 ФПД: 143008377131442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121345&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191747&fm=143008377131442&tin=02508201610067®Number=0000000000091776&sum=60000 [12:13:31]StoreToDocumentArchive [12:13:31]shift 541 fd 191747 [12:13:31]save to /storage/0541/doc_00191747 [12:13:31]save last doc name /storage/0541/doc_00191747 to /storage/kkm_last_doc_name [12:13:31]save OK [12:13:31]Clear old archive folders... [12:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:13:31]tlvbuf is 016254E0 [12:13:31]SAM_PROTO_ClearQueue [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 09 00 00 [12:13:31]Write to MH i2c: E2 08 00 BB FC 80 09 00 00 00 00 00 00 29 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 BB FC 00 90 00 2B [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_ClearQueue done [12:13:31]KKMCreateOFDPacket [12:13:31]OFDProtocolAddRootSTLVToBuf [12:13:31]FM_MakeSignedData [12:13:31]FM_MakeSignedData [12:13:31]SAM_PROTO_SignData [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 0D 01 02 [12:13:31]Write to MH i2c: E2 08 00 BC FC 80 0D 01 02 00 00 00 00 31 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 BC FC 00 90 00 2C [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]wFMCommunicate request_size=255 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 ED 02 00 35 04 06 00 82 10 BB 84 [12:13:31]Write to MH i2c: E2 02 01 BD FC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 ED 02 00 35 04 06 00 82 10 BB 84 00 00 24 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 BD FC 00 90 00 2D [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]wFMCommunicate request_size=7 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 02 02 02 D1 B2 [12:13:32]Write to MH i2c: E2 0A 00 BE FC 80 0D 02 02 02 00 D1 B2 00 00 BB [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 03 00 BE FC 00 90 00 2E [12:13:32]RAPDU: 90 00 [12:13:32]wFMCommunicate OK [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 0D 03 02 [12:13:32]Write to MH i2c: E2 08 00 BF FC 80 0D 03 02 00 00 00 00 36 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0B 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 0B 00 BF FC 00 20 4D F6 0E 02 AB 0F A7 90 00 0B [12:13:32]RAPDU: 20 4D F6 0E 02 AB 0F A7 90 00 [12:13:32]wFMCommunicate OK [12:13:32]SAM_PROTO_SignData done [12:13:32]FM_MakeSignedData done [12:13:32]CreateOFDProtocolMessage [12:13:32]wFMCommunicate request_size=4 [12:13:32]MH_SAM_APDU [12:13:32]CAPDU: 80 11 00 00 [12:13:32]Write to MH i2c: E2 08 00 C0 FC 80 11 00 00 00 00 00 00 36 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:32]Read from MH i2c: E2 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 17 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: E2 17 00 C0 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [12:13:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:13:32]wFMCommunicate OK [12:13:32]CreateOFDProtocolMessage done [12:13:32]OFDSenderStorePacket 191747 [12:13:32]StoreOFDPacket docnum=191747 [12:13:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5B 72 04 01 56 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 ED 02 00 35 04 06 00 82 10 BB 84 D1 B2 20 4D F6 0E 02 AB 0F A7 [12:13:32]CheckFolder [12:13:32]dirname=/storage/ofd_packets [12:13:32]CheckFolder done [12:13:32]ProducePacketName [12:13:32]name=ofd_packets/00191747 [12:13:32]NVStorageSaveData ofd_packets/00191747 [12:13:32]File name is /storage/ofd_packets/00191747 [12:13:32]Write 298 bytes [12:13:32]NVStorageSaveData done [12:13:32]OFDSenderStorePacket done [12:13:32]KKMCreateOFDPacket done [12:13:32]NVStorageSaveData kkm_last_timestamp [12:13:32]File name is /storage/kkm_last_timestamp [12:13:32]Write 4 bytes [12:13:32]NVStorageSaveData done [12:13:32]ExternCall_PrintAddStr [12:13:32]wPrintStart [12:13:32]Write to MH i2c: 01 00 00 C1 FC BD [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 C1 FC 00 00 00 00 00 FF 0F D2 [12:13:32]RasterBufferAndPrint [12:13:32]line Счет N : (1)31050 [12:13:32]line ИНН: 02508201610067 [12:13:32]line Контрольно-Кассовый Чек [12:13:32]line ПРОДАЖА [12:13:32]line ТРК (МРК, ГНК) : 22 [12:13:32]line Товар: 2710194210 [12:13:32]line ДТ-К-5 [12:13:32]line 7.880 * 76.20 [12:13:32]line = 600.46 [12:13:32]line НДС 12% НСП 1% [12:13:32]line > о реализуемом товаре [12:13:32]line ОКРУГЛЕНИЕ: -0.46 [12:13:32]line ИТОГО: 600.00 [12:13:32]line Внесено: 600.00 [12:13:32]line СДАЧА: 0.00 [12:13:32]line НСП 1% : 5.31 [12:13:32]line НДС 12% : 63.77 [12:13:32]line Наличными: 600.00 [12:13:32]line Безнал.: 0.00 [12:13:32]line Место: АЗС № 170 "Партнер Нефть" [12:13:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:13:32]line СНО: Общий режим [12:13:32]line Чек 110 26.10.2024 12:13 [12:13:32]line Смена: 541 ФФД: 1.0 [12:13:32]line ЗНМ: 0300000110 [12:13:32]line РНМ: 0000000000091776 [12:13:32]line Версия ККМ: 001 [12:13:32]line ФМ: 0000000000871754 [12:13:32]line ФД: 191747 [12:13:32]line ФПД: 143008377131442 [12:13:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121345&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191747&fm=143008377131442&tin=02508201610067®Number=0000000000091776&sum=60000 [12:13:32]OFD Sender: Processing packet 191747 [packets to send 75, broken 74] [12:13:32]ProducePacketName [12:13:32]name=ofd_packets/00191747 [12:13:32]OFD Sender: To server: pG, [12:13:32]CommunicateWithHost lk.salyk.kg:30040 [12:13:32]ConnectInit lk.salyk.kg [12:13:32]written 0, free lines is 4095 [12:13:32]Connected sock=10 [12:13:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5B 72 04 01 56 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 F9 DC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 ED 02 00 35 04 06 00 82 10 BB 84 D1 B2 20 4D F6 0E 02 AB 0F A7 [12:13:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 E0 47 00 E2 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 03 ED 02 00 F4 03 04 00 C4 81 1C 67 B6 04 01 00 00 4A 62 F1 E2 44 4B 41 46 [12:13:33]CommunicateWithHost err = 0 [12:13:33]CheckOFDResponse [12:13:33]1017 (14) - 77093643461234 [12:13:33]1041 (16) - 0000000000871754 [12:13:33]1040 (4) - 191747 [12:13:33]1012 (4) - 26.10.2024 05:44 [12:13:33]1206 (1) - 0 [12:13:33]OFD Sender: Remove packet 191747 [12:13:33]ProducePacketName [12:13:33]name=ofd_packets/00191747 [12:13:33]NVStorageDeleteData [12:13:33]Write to MH i2c: 01 00 00 EC FC E8 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 EC FC 00 00 00 00 00 B7 0C B2 [12:13:33]RasterBufferAndPrint [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]line [12:13:33]written 0, free lines is 3263 [12:13:33]MH_Cut [12:13:33]Write to MH i2c: D1 01 00 F3 FC 01 C1 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 01 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: D1 01 00 F3 FC 00 C0 [12:13:33]Write to MH i2c: 01 00 00 F4 FC F0 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]OFD Sender: No OFD packet to send [12:13:34]*** Cut start [12:13:34]*** Partial cut [12:13:34]*** CUTSNS_PIN = 1 [12:13:34]*** CUTSNS_PIN = 0 [12:13:34]*** Brake cut motor [12:13:34]Read from MH i2c: 01 [12:13:34]MH_I2C_Read... [12:13:34]*** Stop cut motor [12:13:34]*** Cut end [12:13:34]Read from MH i2c: 01 07 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: 01 07 00 F4 FC 00 00 00 00 00 FF 0F 05 [12:13:34]process_action close_receipt done [12:13:34]requested_data is exist [12:13:34]produce_requested_data [12:13:34]requested_item fm.sn is exist - process it [12:13:34]wFMCommunicate request_size=4 [12:13:34]MH_SAM_APDU [12:13:34]CAPDU: 80 11 00 00 [12:13:34]Write to MH i2c: E2 08 00 F5 FC 80 11 00 00 00 00 00 00 6B [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 17 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 17 00 F5 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [12:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:13:34]wFMCommunicate OK [12:13:34]requested_item fd.num is exist - process it [12:13:34]SAM_PROTO_GetFieldsCounters [12:13:34]wFMCommunicate request_size=4 [12:13:34]MH_SAM_APDU [12:13:34]CAPDU: 80 13 00 00 [12:13:34]Write to MH i2c: E2 08 00 F6 FC 80 13 00 00 00 00 00 00 6E [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 62 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 62 00 F6 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [12:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 03 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:34]wFMCommunicate OK [12:13:34]SAM_PROTO_GetFieldsCounters done [12:13:34]requested_item shift.num is exist - process it [12:13:34]requested_item shift.opened is exist - process it [12:13:34]req_shift_opened [12:13:34]FM_GetShiftState [12:13:34]SAM_PROTO_GetShiftState [12:13:34]wFMCommunicate request_size=4 [12:13:34]MH_SAM_APDU [12:13:34]CAPDU: 80 13 01 00 [12:13:34]Write to MH i2c: E2 08 00 F7 FC 80 13 01 00 00 00 00 00 70 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 F7 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E9 [12:13:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:13:34]wFMCommunicate OK [12:13:34]SAM_PROTO_GetShiftState done [12:13:34]FM_GetShiftState done [12:13:34]req_shift_opened done [12:13:34]requested_item shift.open_date is exist - process it [12:13:34]req_shift_open_date [12:13:34]req_shift_open_date done [12:13:34]produce_requested_data done [12:13:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191747,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:13:34]process_action_free close_receipt [12:13:34]json_value_free [12:13:34]json_value_free done [12:13:34]process_json_proto returns [12:13:34]Send response to host [12:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191747,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:13:34]free response buf [12:13:34]execute_script done [12:13:34]execute_script returns [12:13:34]free content buf [12:13:34]Sock 9.Close socket [12:13:34]Sock 9.Thread stoped [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:51]accept exits with 8 [12:15:51]New connection [12:15:51]New thread 3066817892 created [12:15:51]Thread 3066961252 joined [12:15:51]Waiting for new connection... [12:15:51] Sock 8.Parse request [12:15:51]Sock 8.Check first char [12:15:51]Sock 8.First char is OK [12:15:51]request: POST /json_proto HTTP/1.0 [12:15:51]Method: POST [12:15:51]URL: /json_proto [12:15:51]Method is POST - this is cgi request [12:15:51]url: /json_proto [12:15:51]query_string will be loaded in cgi processing [12:15:51]execute_cgi json_proto POST (null) [12:15:51]execute_cgi path=json_proto method=POST [12:15:51]POST find Content-Length [12:15:51]Host: 172.17.63.131:8080 [12:15:51]Content-Length: 681 [12:15:51]Content-Type: application/json [12:15:51] [12:15:51]POST finish read [12:15:51]Found Content-Length = 681 [12:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:51]execute_script... [12:15:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:51]POST & json_proto [12:15:51]process_json_proto [12:15:51]json parsed OK: [12:15:51]protocol is kg_v1.0 [12:15:51]action value=close_receipt [12:15:51]process_action close_receipt [12:15:51]cmd_close_receipt [12:15:51]MH_GetDate [12:15:51]Write to MH i2c: F0 00 00 F8 FC E3 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 09 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: F0 09 00 F8 FC 00 86 DD 1C 67 22 05 6E 64 CB [12:15:51]GetLastDocTimeStamp 1729944825 [12:15:51]current date 1729944966 [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 F9 FC 80 13 01 00 00 00 00 00 72 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 F9 FC 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EB [12:15:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]opened in 1729902770 [12:15:51]opened+sec_in_day 1729989170 [12:15:51]quantity*price = 135004 [12:15:51]sum+1 = 135005 [12:15:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 111 26.10.2024 12:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191748 ФПД: 136527788854899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121606&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191748&fm=136527788854899&tin=02508201610067®Number=0000000000091776&sum=135000 [12:15:52]StoreToDocumentArchive [12:15:52]shift 541 fd 191748 [12:15:52]save to /storage/0541/doc_00191748 [12:15:52]save last doc name /storage/0541/doc_00191748 to /storage/kkm_last_doc_name [12:15:52]save OK [12:15:52]Clear old archive folders... [12:15:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:52]tlvbuf is 016CEAB0 [12:15:52]SAM_PROTO_ClearQueue [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 09 00 00 [12:15:52]Write to MH i2c: E2 08 00 06 FD 80 09 00 00 00 00 00 00 75 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 03 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 03 00 06 FD 00 90 00 77 [12:15:52]RAPDU: 90 00 [12:15:52]wFMCommunicate OK [12:15:52]SAM_PROTO_ClearQueue done [12:15:52]KKMCreateOFDPacket [12:15:52]OFDProtocolAddRootSTLVToBuf [12:15:52]FM_MakeSignedData [12:15:52]FM_MakeSignedData [12:15:52]SAM_PROTO_SignData [12:15:52]wFMCommunicate request_size=4 [12:15:52]MH_SAM_APDU [12:15:52]CAPDU: 80 0D 01 02 [12:15:52]Write to MH i2c: E2 08 00 07 FD 80 0D 01 02 00 00 00 00 7D [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:52]Read from MH i2c: E2 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 03 00 [12:15:52]MH_I2C_Read... [12:15:52]Read from MH i2c: E2 03 00 07 FD 00 90 00 78 [12:15:52]RAPDU: 90 00 [12:15:52]wFMCommunicate OK [12:15:52]wFMCommunicate request_size=255 [12:15:52]MH_SAM_APDU [12:15: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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 86 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 ED 02 00 35 04 06 00 7C [12:15:52]Write to MH i2c: E2 02 01 08 FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 86 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 ED 02 00 35 04 06 00 7C 00 00 F4 [12:15:52]Write i2c OK [12:15:52]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 08 FD 00 90 00 79 [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]wFMCommunicate request_size=10 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 02 02 05 2B DA 5B 4E 73 [12:15:53]Write to MH i2c: E2 0D 00 09 FD 80 0D 02 02 05 00 2B DA 5B 4E 73 00 00 AB [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 03 00 09 FD 00 90 00 7A [12:15:53]RAPDU: 90 00 [12:15:53]wFMCommunicate OK [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 0D 03 02 [12:15:53]Write to MH i2c: E2 08 00 0A FD 80 0D 03 02 00 00 00 00 82 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0B 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 0B 00 0A FD 00 01 57 3A 63 58 5C FF AE 90 00 D9 [12:15:53]RAPDU: 01 57 3A 63 58 5C FF AE 90 00 [12:15:53]wFMCommunicate OK [12:15:53]SAM_PROTO_SignData done [12:15:53]FM_MakeSignedData done [12:15:53]CreateOFDProtocolMessage [12:15:53]wFMCommunicate request_size=4 [12:15:53]MH_SAM_APDU [12:15:53]CAPDU: 80 11 00 00 [12:15:53]Write to MH i2c: E2 08 00 0B FD 80 11 00 00 00 00 00 00 82 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:53]Read from MH i2c: E2 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: E2 17 00 0B FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [12:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:15:53]wFMCommunicate OK [12:15:53]CreateOFDProtocolMessage done [12:15:53]OFDSenderStorePacket 191748 [12:15:53]StoreOFDPacket docnum=191748 [12:15:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 B6 07 01 17 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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 86 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 ED 02 00 35 04 06 00 7C 2B DA 5B 4E 73 01 57 3A 63 58 5C FF AE [12:15:53]CheckFolder [12:15:53]dirname=/storage/ofd_packets [12:15:53]CheckFolder done [12:15:53]ProducePacketName [12:15:53]name=ofd_packets/00191748 [12:15:53]NVStorageSaveData ofd_packets/00191748 [12:15:53]File name is /storage/ofd_packets/00191748 [12:15:53]Write 301 bytes [12:15:53]NVStorageSaveData done [12:15:53]OFDSenderStorePacket done [12:15:53]KKMCreateOFDPacket done [12:15:53]NVStorageSaveData kkm_last_timestamp [12:15:53]File name is /storage/kkm_last_timestamp [12:15:53]Write 4 bytes [12:15:53]NVStorageSaveData done [12:15:53]ExternCall_PrintAddStr [12:15:53]wPrintStart [12:15:53]Write to MH i2c: 01 00 00 0C FD 09 [12:15:53]Write i2c OK [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 07 00 [12:15:53]MH_I2C_Read... [12:15:53]Read from MH i2c: 01 07 00 0C FD 00 00 00 00 00 FF 0F 1E [12:15:53]RasterBufferAndPrint [12:15:53]line Счет N : (1)31052 [12:15:53]line ИНН: 02508201610067 [12:15:53]line Контрольно-Кассовый Чек [12:15:53]line ПРОДАЖА [12:15:53]line ТРК (МРК, ГНК) : 12 [12:15:53]line Товар: 2710124130 [12:15:53]line Аи-92-К-5 [12:15:53]line 20.180 * 66.90 [12:15:53]line = 1350.04 [12:15:53]line НДС 12% НСП 1% [12:15:53]line > о реализуемом товаре [12:15:53]line ОКРУГЛЕНИЕ: -0.04 [12:15:53]line ИТОГО: 1350.00 [12:15:53]line Внесено: 1350.00 [12:15:53]line СДАЧА: 0.00 [12:15:53]line НСП 1% : 11.95 [12:15:53]line НДС 12% : 143.37 [12:15:53]line Наличными: 1350.00 [12:15:53]line Безнал.: 0.00 [12:15:53]line Место: АЗС № 170 "Партнер Нефть" [12:15:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:15:53]line СНО: Общий режим [12:15:53]line Чек 111 26.10.2024 12:16 [12:15:53]line Смена: 541 ФФД: 1.0 [12:15:53]line ЗНМ: 0300000110 [12:15:53]line РНМ: 0000000000091776 [12:15:53]line Версия ККМ: 001 [12:15:53]line ФМ: 0000000000871754 [12:15:53]line ФД: 191748 [12:15:53]line ФПД: 136527788854899 [12:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121606&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191748&fm=136527788854899&tin=02508201610067®Number=0000000000091776&sum=135000 [12:15:53]OFD Sender: Processing packet 191748 [packets to send 75, broken 74] [12:15:53]ProducePacketName [12:15:53]name=ofd_packets/00191748 [12:15:53]OFD Sender: To server: pG, [12:15:53]CommunicateWithHost lk.salyk.kg:30040 [12:15:53]ConnectInit lk.salyk.kg [12:15:53]written 0, free lines is 4095 [12:15:53]Connected sock=9 [12:15:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 22 B6 07 01 17 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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 86 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 ED 02 00 35 04 06 00 7C 2B DA 5B 4E 73 01 57 3A 63 58 5C FF AE [12:15:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF AE 47 00 62 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 04 ED 02 00 F4 03 04 00 51 82 1C 67 B6 04 01 00 00 49 5C 9A 99 41 29 08 2A [12:15:53]CommunicateWithHost err = 0 [12:15:53]CheckOFDResponse [12:15:53]1017 (14) - 77093643461234 [12:15:53]1041 (16) - 0000000000871754 [12:15:53]1040 (4) - 191748 [12:15:53]1012 (4) - 26.10.2024 05:46 [12:15:53]1206 (1) - 0 [12:15:53]OFD Sender: Remove packet 191748 [12:15:53]ProducePacketName [12:15:53]name=ofd_packets/00191748 [12:15:53]NVStorageDeleteData [12:15:54]Write to MH i2c: 01 00 00 37 FD 34 [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 07 00 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: 01 07 00 37 FD 00 00 00 00 00 C2 0C 09 [12:15:54]RasterBufferAndPrint [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]line [12:15:54]written 0, free lines is 3273 [12:15:54]MH_Cut [12:15:54]Write to MH i2c: D1 01 00 3E FD 01 0D [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 01 00 [12:15:54]MH_I2C_Read... [12:15:54]Read from MH i2c: D1 01 00 3E FD 00 0C [12:15:54]Write to MH i2c: 01 00 00 3F FD 3C [12:15:54]Write i2c OK [12:15:54]MH_I2C_Read... [12:15:54]OFD Sender: No OFD packet to send [12:15:54]*** Cut start [12:15:54]*** Partial cut [12:15:54]*** CUTSNS_PIN = 1 [12:15:54]*** CUTSNS_PIN = 0 [12:15:55]*** Brake cut motor [12:15:55]Read from MH i2c: 01 [12:15:55]MH_I2C_Read... [12:15:55]*** Stop cut motor [12:15:55]*** Cut end [12:15:55]Read from MH i2c: 01 07 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: 01 07 00 3F FD 00 00 00 00 00 FF 0F 51 [12:15:55]process_action close_receipt done [12:15:55]requested_data is exist [12:15:55]produce_requested_data [12:15:55]requested_item fm.sn is exist - process it [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 11 00 00 [12:15:55]Write to MH i2c: E2 08 00 40 FD 80 11 00 00 00 00 00 00 B7 [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:55]Read from MH i2c: E2 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 17 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 17 00 40 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [12:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:15:55]wFMCommunicate OK [12:15:55]requested_item fd.num is exist - process it [12:15:55]SAM_PROTO_GetFieldsCounters [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 13 00 00 [12:15:55]Write to MH i2c: E2 08 00 41 FD 80 13 00 00 00 00 00 00 BA [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:55]Read from MH i2c: E2 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 62 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 62 00 41 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:15:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 04 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:55]wFMCommunicate OK [12:15:55]SAM_PROTO_GetFieldsCounters done [12:15:55]requested_item shift.num is exist - process it [12:15:55]requested_item shift.opened is exist - process it [12:15:55]req_shift_opened [12:15:55]FM_GetShiftState [12:15:55]SAM_PROTO_GetShiftState [12:15:55]wFMCommunicate request_size=4 [12:15:55]MH_SAM_APDU [12:15:55]CAPDU: 80 13 01 00 [12:15:55]Write to MH i2c: E2 08 00 42 FD 80 13 01 00 00 00 00 00 BC [12:15:55]Write i2c OK [12:15:55]MH_I2C_Read... [12:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:55]Read from MH i2c: E2 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 0E 00 [12:15:55]MH_I2C_Read... [12:15:55]Read from MH i2c: E2 0E 00 42 FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 35 [12:15:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:15:55]wFMCommunicate OK [12:15:55]SAM_PROTO_GetShiftState done [12:15:55]FM_GetShiftState done [12:15:55]req_shift_opened done [12:15:55]requested_item shift.open_date is exist - process it [12:15:55]req_shift_open_date [12:15:55]req_shift_open_date done [12:15:55]produce_requested_data done [12:15:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191748,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:15:55]process_action_free close_receipt [12:15:55]json_value_free [12:15:55]json_value_free done [12:15:55]process_json_proto returns [12:15:55]Send response to host [12:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191748,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:15:55]free response buf [12:15:55]execute_script done [12:15:55]execute_script returns [12:15:55]free content buf [12:15:55]Sock 8.Close socket [12:15:55]Sock 8.Thread stoped [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:47]accept exits with 10 [12:17:47]New connection [12:17:47]New thread 3066961252 created [12:17:47]Thread 3066817892 joined [12:17:47]Waiting for new connection... [12:17:47] Sock 10.Parse request [12:17:47]Sock 10.Check first char [12:17:47]Sock 10.First char is OK [12:17:47]request: POST /json_proto HTTP/1.0 [12:17:47]Method: POST [12:17:47]URL: /json_proto [12:17:47]Method is POST - this is cgi request [12:17:47]url: /json_proto [12:17:47]query_string will be loaded in cgi processing [12:17:47]execute_cgi json_proto POST (null) [12:17:47]execute_cgi path=json_proto method=POST [12:17:47]POST find Content-Length [12:17:47]Host: 172.17.63.131:8080 [12:17:47]Content-Length: 678 [12:17:47]Content-Type: application/json [12:17:47] [12:17:47]POST finish read [12:17:47]Found Content-Length = 678 [12:17:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31053", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]execute_script... [12:17:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31053", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:47]POST & json_proto [12:17:47]process_json_proto [12:17:47]json parsed OK: [12:17:47]protocol is kg_v1.0 [12:17:47]action value=close_receipt [12:17:47]process_action close_receipt [12:17:47]cmd_close_receipt [12:17:47]MH_GetDate [12:17:47]Write to MH i2c: F0 00 00 43 FD 2F [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: F0 09 00 43 FD 00 F9 DD 1C 67 22 05 6E 64 8A [12:17:47]GetLastDocTimeStamp 1729944966 [12:17:47]current date 1729945081 [12:17:47]FM_GetShiftState [12:17:47]SAM_PROTO_GetShiftState [12:17:47]wFMCommunicate request_size=4 [12:17:47]MH_SAM_APDU [12:17:47]CAPDU: 80 13 01 00 [12:17:47]Write to MH i2c: E2 08 00 44 FD 80 13 01 00 00 00 00 00 BE [12:17:47]Write i2c OK [12:17:47]MH_I2C_Read... [12:17:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:47]Read from MH i2c: E2 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 [12:17:47]MH_I2C_Read... [12:17:47]Read from MH i2c: E2 0E 00 44 FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 37 [12:17:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:17:47]wFMCommunicate OK [12:17:47]SAM_PROTO_GetShiftState done [12:17:47]FM_GetShiftState done [12:17:47]opened in 1729902770 [12:17:47]opened+sec_in_day 1729989170 [12:17:47]quantity*price = 200025 [12:17:47]sum+1 = 200026 [12:17:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 112 26.10.2024 12:18 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191749 ФПД: 249164326422896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191749&fm=249164326422896&tin=02508201610067®Number=0000000000091776&sum=200000 [12:17:48]StoreToDocumentArchive [12:17:48]shift 541 fd 191749 [12:17:48]save to /storage/0541/doc_00191749 [12:17:48]save last doc name /storage/0541/doc_00191749 to /storage/kkm_last_doc_name [12:17:48]save OK [12:17:48]Clear old archive folders... [12:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:48]tlvbuf is 01960F30 [12:17:48]SAM_PROTO_ClearQueue [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 09 00 00 [12:17:48]Write to MH i2c: E2 08 00 51 FD 80 09 00 00 00 00 00 00 C0 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 51 FD 00 90 00 C2 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_ClearQueue done [12:17:48]KKMCreateOFDPacket [12:17:48]OFDProtocolAddRootSTLVToBuf [12:17:48]FM_MakeSignedData [12:17:48]FM_MakeSignedData [12:17:48]SAM_PROTO_SignData [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 01 02 [12:17:48]Write to MH i2c: E2 08 00 52 FD 80 0D 01 02 00 00 00 00 C8 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 52 FD 00 90 00 C3 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=255 [12:17:48]MH_SAM_APDU [12:17: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F9 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 ED 02 00 35 04 06 00 E2 9D 17 2A [12:17:48]Write to MH i2c: E2 02 01 53 FD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F9 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 ED 02 00 35 04 06 00 E2 9D 17 2A 00 00 DC [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 53 FD 00 90 00 C4 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=7 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 02 02 02 C9 70 [12:17:48]Write to MH i2c: E2 0A 00 54 FD 80 0D 02 02 02 00 C9 70 00 00 08 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 03 00 54 FD 00 90 00 C5 [12:17:48]RAPDU: 90 00 [12:17:48]wFMCommunicate OK [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 0D 03 02 [12:17:48]Write to MH i2c: E2 08 00 55 FD 80 0D 03 02 00 00 00 00 CD [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0B 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0B 00 55 FD 00 73 3E AD E7 84 E4 99 3A 90 00 4E [12:17:48]RAPDU: 73 3E AD E7 84 E4 99 3A 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_SignData done [12:17:48]FM_MakeSignedData done [12:17:48]CreateOFDProtocolMessage [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 11 00 00 [12:17:48]Write to MH i2c: E2 08 00 56 FD 80 11 00 00 00 00 00 00 CD [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 56 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [12:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:48]wFMCommunicate OK [12:17:48]CreateOFDProtocolMessage done [12:17:48]OFDSenderStorePacket 191749 [12:17:48]StoreOFDPacket docnum=191749 [12:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9A 8F 04 01 70 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F9 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 ED 02 00 35 04 06 00 E2 9D 17 2A C9 70 73 3E AD E7 84 E4 99 3A [12:17:48]CheckFolder [12:17:48]dirname=/storage/ofd_packets [12:17:48]CheckFolder done [12:17:48]ProducePacketName [12:17:48]name=ofd_packets/00191749 [12:17:48]NVStorageSaveData ofd_packets/00191749 [12:17:48]File name is /storage/ofd_packets/00191749 [12:17:48]Write 298 bytes [12:17:48]NVStorageSaveData done [12:17:48]OFDSenderStorePacket done [12:17:48]KKMCreateOFDPacket done [12:17:48]NVStorageSaveData kkm_last_timestamp [12:17:48]File name is /storage/kkm_last_timestamp [12:17:48]Write 4 bytes [12:17:48]NVStorageSaveData done [12:17:48]ExternCall_PrintAddStr [12:17:48]wPrintStart [12:17:48]Write to MH i2c: 01 00 00 57 FD 54 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 57 FD 00 00 00 00 00 FF 0F 69 [12:17:48]RasterBufferAndPrint [12:17:48]line Счет N : (1)31053 [12:17:48]line ИНН: 02508201610067 [12:17:48]line Контрольно-Кассовый Чек [12:17:48]line ПРОДАЖА [12:17:48]line ТРК (МРК, ГНК) : 22 [12:17:48]line Товар: 2710194210 [12:17:48]line ДТ-К-5 [12:17:48]line 26.250 * 76.20 [12:17:48]line = 2000.25 [12:17:48]line НДС 12% НСП 1% [12:17:48]line > о реализуемом товаре [12:17:48]line ОКРУГЛЕНИЕ: -0.25 [12:17:48]line ИТОГО: 2000.00 [12:17:48]line Внесено: 2000.00 [12:17:48]line СДАЧА: 0.00 [12:17:48]line НСП 1% : 17.70 [12:17:48]line НДС 12% : 212.42 [12:17:48]line Наличными: 2000.00 [12:17:48]line Безнал.: 0.00 [12:17:48]line Место: АЗС № 170 "Партнер Нефть" [12:17:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:17:48]line СНО: Общий режим [12:17:48]line Чек 112 26.10.2024 12:18 [12:17:48]line Смена: 541 ФФД: 1.0 [12:17:48]line ЗНМ: 0300000110 [12:17:48]line РНМ: 0000000000091776 [12:17:48]line Версия ККМ: 001 [12:17:48]line ФМ: 0000000000871754 [12:17:48]line ФД: 191749 [12:17:49]line ФПД: 249164326422896 [12:17:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T121801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191749&fm=249164326422896&tin=02508201610067®Number=0000000000091776&sum=200000 [12:17:49]OFD Sender: Processing packet 191749 [packets to send 75, broken 74] [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00191749 [12:17:49]OFD Sender: To server: pG, [12:17:49]CommunicateWithHost lk.salyk.kg:30040 [12:17:49]ConnectInit lk.salyk.kg [12:17:49]written 0, free lines is 4095 [12:17:49]Connected sock=9 [12:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 9A 8F 04 01 70 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 F9 DD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 ED 02 00 35 04 06 00 E2 9D 17 2A C9 70 73 3E AD E7 84 E4 99 3A [12:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 9F 47 00 B3 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 05 ED 02 00 F4 03 04 00 C5 82 1C 67 B6 04 01 00 00 3A 2A 3C BD A1 FA 6E 2A [12:17:49]CommunicateWithHost err = 0 [12:17:49]CheckOFDResponse [12:17:49]1017 (14) - 77093643461234 [12:17:49]1041 (16) - 0000000000871754 [12:17:49]1040 (4) - 191749 [12:17:49]1012 (4) - 26.10.2024 05:48 [12:17:49]1206 (1) - 0 [12:17:49]OFD Sender: Remove packet 191749 [12:17:49]ProducePacketName [12:17:49]name=ofd_packets/00191749 [12:17:49]NVStorageDeleteData [12:17:49]Write to MH i2c: 01 00 00 82 FD 7F [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: 01 07 00 82 FD 00 00 00 00 00 C6 0C 58 [12:17:49]RasterBufferAndPrint [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]line [12:17:49]written 0, free lines is 3275 [12:17:49]MH_Cut [12:17:49]Write to MH i2c: D1 01 00 89 FD 01 58 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 [12:17:49]MH_I2C_Read... [12:17:49]Read from MH i2c: D1 01 00 89 FD 00 57 [12:17:49]Write to MH i2c: 01 00 00 8A FD 87 [12:17:49]Write i2c OK [12:17:49]MH_I2C_Read... [12:17:50]OFD Sender: No OFD packet to send [12:17:50]*** Cut start [12:17:50]*** Partial cut [12:17:50]*** CUTSNS_PIN = 1 [12:17:50]*** CUTSNS_PIN = 0 [12:17:50]*** Brake cut motor [12:17:51]Read from MH i2c: 01 [12:17:51]MH_I2C_Read... [12:17:51]*** Stop cut motor [12:17:51]*** Cut end [12:17:51]Read from MH i2c: 01 07 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: 01 07 00 8A FD 00 00 00 00 00 FF 0F 9C [12:17:51]process_action close_receipt done [12:17:51]requested_data is exist [12:17:51]produce_requested_data [12:17:51]requested_item fm.sn is exist - process it [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 11 00 00 [12:17:51]Write to MH i2c: E2 08 00 8B FD 80 11 00 00 00 00 00 00 02 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 17 00 8B FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [12:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:17:51]wFMCommunicate OK [12:17:51]requested_item fd.num is exist - process it [12:17:51]SAM_PROTO_GetFieldsCounters [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 00 00 [12:17:51]Write to MH i2c: E2 08 00 8C FD 80 13 00 00 00 00 00 00 05 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 62 00 8C FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [12:17:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 05 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetFieldsCounters done [12:17:51]requested_item shift.num is exist - process it [12:17:51]requested_item shift.opened is exist - process it [12:17:51]req_shift_opened [12:17:51]FM_GetShiftState [12:17:51]SAM_PROTO_GetShiftState [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 01 00 [12:17:51]Write to MH i2c: E2 08 00 8D FD 80 13 01 00 00 00 00 00 07 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 8D FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 80 [12:17:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetShiftState done [12:17:51]FM_GetShiftState done [12:17:51]req_shift_opened done [12:17:51]requested_item shift.open_date is exist - process it [12:17:51]req_shift_open_date [12:17:51]req_shift_open_date done [12:17:51]produce_requested_data done [12:17:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191749,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:17:51]process_action_free close_receipt [12:17:51]json_value_free [12:17:51]json_value_free done [12:17:51]process_json_proto returns [12:17:51]Send response to host [12:17:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191749,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:17:51]free response buf [12:17:51]execute_script done [12:17:51]execute_script returns [12:17:51]free content buf [12:17:51]Sock 10.Close socket [12:17:51]Sock 10.Thread stoped [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:03]accept exits with 8 [12:20:03]New connection [12:20:03]New thread 3066817892 created [12:20:03]Thread 3066961252 joined [12:20:03]Waiting for new connection... [12:20:03] Sock 8.Parse request [12:20:03]Sock 8.Check first char [12:20:03]Sock 8.First char is OK [12:20:03]request: POST /json_proto HTTP/1.0 [12:20:03]Method: POST [12:20:03]URL: /json_proto [12:20:03]Method is POST - this is cgi request [12:20:03]url: /json_proto [12:20:03]query_string will be loaded in cgi processing [12:20:03]execute_cgi json_proto POST (null) [12:20:03]execute_cgi path=json_proto method=POST [12:20:03]POST find Content-Length [12:20:03]Host: 172.17.63.131:8080 [12:20:03]Content-Length: 678 [12:20:03]Content-Type: application/json [12:20:03] [12:20:03]POST finish read [12:20:03]Found Content-Length = 678 [12:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31054", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:03]execute_script... [12:20: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)31054", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:03]POST & json_proto [12:20:03]process_json_proto [12:20:03]json parsed OK: [12:20:03]protocol is kg_v1.0 [12:20:03]action value=close_receipt [12:20:03]process_action close_receipt [12:20:03]cmd_close_receipt [12:20:03]MH_GetDate [12:20:03]Write to MH i2c: F0 00 00 8E FD 7A [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: F0 09 00 8E FD 00 81 DE 1C 67 22 05 6E 64 5E [12:20:03]GetLastDocTimeStamp 1729945081 [12:20:03]current date 1729945217 [12:20:03]FM_GetShiftState [12:20:03]SAM_PROTO_GetShiftState [12:20:03]wFMCommunicate request_size=4 [12:20:03]MH_SAM_APDU [12:20:03]CAPDU: 80 13 01 00 [12:20:03]Write to MH i2c: E2 08 00 8F FD 80 13 01 00 00 00 00 00 09 [12:20:03]Write i2c OK [12:20:03]MH_I2C_Read... [12:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:03]Read from MH i2c: E2 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 [12:20:03]MH_I2C_Read... [12:20:03]Read from MH i2c: E2 0E 00 8F FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 82 [12:20:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:20:03]wFMCommunicate OK [12:20:03]SAM_PROTO_GetShiftState done [12:20:03]FM_GetShiftState done [12:20:03]opened in 1729902770 [12:20:03]opened+sec_in_day 1729989170 [12:20:03]quantity*price = 100050 [12:20:03]sum+1 = 100052 [12:20:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 113 26.10.2024 12:20 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191750 ФПД: 184358775562436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191750&fm=184358775562436&tin=02508201610067®Number=0000000000091776&sum=100000 [12:20:04]StoreToDocumentArchive [12:20:04]shift 541 fd 191750 [12:20:04]save to /storage/0541/doc_00191750 [12:20:04]save last doc name /storage/0541/doc_00191750 to /storage/kkm_last_doc_name [12:20:04]save OK [12:20:04]Clear old archive folders... [12:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:20:04]tlvbuf is 016CEB80 [12:20:04]SAM_PROTO_ClearQueue [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 09 00 00 [12:20:04]Write to MH i2c: E2 08 00 9C FD 80 09 00 00 00 00 00 00 0B [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 9C FD 00 90 00 0D [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_ClearQueue done [12:20:04]KKMCreateOFDPacket [12:20:04]OFDProtocolAddRootSTLVToBuf [12:20:04]FM_MakeSignedData [12:20:04]FM_MakeSignedData [12:20:04]SAM_PROTO_SignData [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 01 02 [12:20:04]Write to MH i2c: E2 08 00 9D FD 80 0D 01 02 00 00 00 00 13 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 9D FD 00 90 00 0E [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=255 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 DE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 ED 02 00 35 04 06 00 A7 AC 5F 54 [12:20:04]Write to MH i2c: E2 02 01 9E FD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 DE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 ED 02 00 35 04 06 00 A7 AC 5F 54 00 00 0A [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 9E FD 00 90 00 0F [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=7 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 02 02 02 20 C4 [12:20:04]Write to MH i2c: E2 0A 00 9F FD 80 0D 02 02 02 00 20 C4 00 00 FE [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 03 00 9F FD 00 90 00 10 [12:20:04]RAPDU: 90 00 [12:20:04]wFMCommunicate OK [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 0D 03 02 [12:20:04]Write to MH i2c: E2 08 00 A0 FD 80 0D 03 02 00 00 00 00 18 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0B 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 0B 00 A0 FD 00 ED 02 8B DD BE 54 6D F1 90 00 E0 [12:20:04]RAPDU: ED 02 8B DD BE 54 6D F1 90 00 [12:20:04]wFMCommunicate OK [12:20:04]SAM_PROTO_SignData done [12:20:04]FM_MakeSignedData done [12:20:04]CreateOFDProtocolMessage [12:20:04]wFMCommunicate request_size=4 [12:20:04]MH_SAM_APDU [12:20:04]CAPDU: 80 11 00 00 [12:20:04]Write to MH i2c: E2 08 00 A1 FD 80 11 00 00 00 00 00 00 18 [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:04]Read from MH i2c: E2 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: E2 17 00 A1 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [12:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:04]wFMCommunicate OK [12:20:04]CreateOFDProtocolMessage done [12:20:04]OFDSenderStorePacket 191750 [12:20:04]StoreOFDPacket docnum=191750 [12:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B4 64 04 01 CE CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 DE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 ED 02 00 35 04 06 00 A7 AC 5F 54 20 C4 ED 02 8B DD BE 54 6D F1 [12:20:04]CheckFolder [12:20:04]dirname=/storage/ofd_packets [12:20:04]CheckFolder done [12:20:04]ProducePacketName [12:20:04]name=ofd_packets/00191750 [12:20:04]NVStorageSaveData ofd_packets/00191750 [12:20:04]File name is /storage/ofd_packets/00191750 [12:20:04]Write 298 bytes [12:20:04]NVStorageSaveData done [12:20:04]OFDSenderStorePacket done [12:20:04]KKMCreateOFDPacket done [12:20:04]NVStorageSaveData kkm_last_timestamp [12:20:04]File name is /storage/kkm_last_timestamp [12:20:04]Write 4 bytes [12:20:04]NVStorageSaveData done [12:20:04]ExternCall_PrintAddStr [12:20:04]wPrintStart [12:20:04]Write to MH i2c: 01 00 00 A2 FD 9F [12:20:04]Write i2c OK [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 [12:20:04]MH_I2C_Read... [12:20:04]Read from MH i2c: 01 07 00 A2 FD 00 00 00 00 00 FF 0F B4 [12:20:04]RasterBufferAndPrint [12:20:04]line Счет N : (1)31054 [12:20:04]line ИНН: 02508201610067 [12:20:04]line Контрольно-Кассовый Чек [12:20:04]line ПРОДАЖА [12:20:04]line ТРК (МРК, ГНК) : 22 [12:20:04]line Товар: 2710194210 [12:20:04]line ДТ-К-5 [12:20:04]line 13.130 * 76.20 [12:20:04]line = 1000.51 [12:20:04]line НДС 12% НСП 1% [12:20:04]line > о реализуемом товаре [12:20:04]line ОКРУГЛЕНИЕ: -0.51 [12:20:04]line ИТОГО: 1000.00 [12:20:04]line Внесено: 1000.00 [12:20:04]line СДАЧА: 0.00 [12:20:04]line НСП 1% : 8.85 [12:20:04]line НДС 12% : 106.25 [12:20:04]line Наличными: 1000.00 [12:20:04]line Безнал.: 0.00 [12:20:04]line Место: АЗС № 170 "Партнер Нефть" [12:20:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:20:04]line СНО: Общий режим [12:20:04]line Чек 113 26.10.2024 12:20 [12:20:04]line Смена: 541 ФФД: 1.0 [12:20:04]line ЗНМ: 0300000110 [12:20:04]line РНМ: 0000000000091776 [12:20:04]line Версия ККМ: 001 [12:20:04]line ФМ: 0000000000871754 [12:20:04]line ФД: 191750 [12:20:04]line ФПД: 184358775562436 [12:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191750&fm=184358775562436&tin=02508201610067®Number=0000000000091776&sum=100000 [12:20:05]OFD Sender: Processing packet 191750 [packets to send 75, broken 74] [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00191750 [12:20:05]OFD Sender: To server: pG, [12:20:05]CommunicateWithHost lk.salyk.kg:30040 [12:20:05]ConnectInit lk.salyk.kg [12:20:05]written 0, free lines is 4095 [12:20:05]Connected sock=10 [12:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B4 64 04 01 CE CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 81 DE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 ED 02 00 35 04 06 00 A7 AC 5F 54 20 C4 ED 02 8B DD BE 54 6D F1 [12:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D DC 47 00 EC BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 06 ED 02 00 F4 03 04 00 4C 83 1C 67 B6 04 01 00 00 96 00 12 6F 5C 64 28 CC [12:20:05]CommunicateWithHost err = 0 [12:20:05]CheckOFDResponse [12:20:05]1017 (14) - 77093643461234 [12:20:05]1041 (16) - 0000000000871754 [12:20:05]1040 (4) - 191750 [12:20:05]1012 (4) - 26.10.2024 05:51 [12:20:05]1206 (1) - 0 [12:20:05]OFD Sender: Remove packet 191750 [12:20:05]ProducePacketName [12:20:05]name=ofd_packets/00191750 [12:20:05]NVStorageDeleteData [12:20:05]Write to MH i2c: 01 00 00 CD FD CA [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: 01 07 00 CD FD 00 00 00 00 00 BF 0C 9C [12:20:05]RasterBufferAndPrint [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]line [12:20:05]written 0, free lines is 3271 [12:20:05]MH_Cut [12:20:05]Write to MH i2c: D1 01 00 D4 FD 01 A3 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 [12:20:05]MH_I2C_Read... [12:20:05]Read from MH i2c: D1 01 00 D4 FD 00 A2 [12:20:05]Write to MH i2c: 01 00 00 D5 FD D2 [12:20:05]Write i2c OK [12:20:05]MH_I2C_Read... [12:20:06]OFD Sender: No OFD packet to send [12:20:06]*** Cut start [12:20:06]*** Partial cut [12:20:06]*** CUTSNS_PIN = 1 [12:20:06]*** CUTSNS_PIN = 0 [12:20:06]*** Brake cut motor [12:20:07]Read from MH i2c: 01 [12:20:07]MH_I2C_Read... [12:20:07]*** Stop cut motor [12:20:07]*** Cut end [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 D5 FD 00 00 00 00 00 FF 0F E7 [12:20:07]process_action close_receipt done [12:20:07]requested_data is exist [12:20:07]produce_requested_data [12:20:07]requested_item fm.sn is exist - process it [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 11 00 00 [12:20:07]Write to MH i2c: E2 08 00 D6 FD 80 11 00 00 00 00 00 00 4D [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 17 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 17 00 D6 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [12:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:20:07]wFMCommunicate OK [12:20:07]requested_item fd.num is exist - process it [12:20:07]SAM_PROTO_GetFieldsCounters [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 13 00 00 [12:20:07]Write to MH i2c: E2 08 00 D7 FD 80 13 00 00 00 00 00 00 50 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 62 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 62 00 D7 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [12:20:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 06 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:07]wFMCommunicate OK [12:20:07]SAM_PROTO_GetFieldsCounters done [12:20:07]requested_item shift.num is exist - process it [12:20:07]requested_item shift.opened is exist - process it [12:20:07]req_shift_opened [12:20:07]FM_GetShiftState [12:20:07]SAM_PROTO_GetShiftState [12:20:07]wFMCommunicate request_size=4 [12:20:07]MH_SAM_APDU [12:20:07]CAPDU: 80 13 01 00 [12:20:07]Write to MH i2c: E2 08 00 D8 FD 80 13 01 00 00 00 00 00 52 [12:20:07]Write i2c OK [12:20:07]MH_I2C_Read... [12:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:07]Read from MH i2c: E2 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 [12:20:07]MH_I2C_Read... [12:20:07]Read from MH i2c: E2 0E 00 D8 FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CB [12:20:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:20:07]wFMCommunicate OK [12:20:07]SAM_PROTO_GetShiftState done [12:20:07]FM_GetShiftState done [12:20:07]req_shift_opened done [12:20:07]requested_item shift.open_date is exist - process it [12:20:07]req_shift_open_date [12:20:07]req_shift_open_date done [12:20:07]produce_requested_data done [12:20:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191750,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:20:07]process_action_free close_receipt [12:20:07]json_value_free [12:20:07]json_value_free done [12:20:07]process_json_proto returns [12:20:07]Send response to host [12:20:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191750,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:20:07]free response buf [12:20:07]execute_script done [12:20:07]execute_script returns [12:20:07]free content buf [12:20:07]Sock 8.Close socket [12:20:07]Sock 8.Thread stoped [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:24]accept exits with 9 [12:22:24]New connection [12:22:24]New thread 3066961252 created [12:22:24]Thread 3066817892 joined [12:22:24]Waiting for new connection... [12:22:24] Sock 9.Parse request [12:22:24]Sock 9.Check first char [12:22:24]Sock 9.First char is OK [12:22:24]request: POST /json_proto HTTP/1.0 [12:22:24]Method: POST [12:22:24]URL: /json_proto [12:22:24]Method is POST - this is cgi request [12:22:24]url: /json_proto [12:22:24]query_string will be loaded in cgi processing [12:22:24]execute_cgi json_proto POST (null) [12:22:24]execute_cgi path=json_proto method=POST [12:22:24]POST find Content-Length [12:22:24]Host: 172.17.63.131:8080 [12:22:24]Content-Length: 676 [12:22:24]Content-Type: application/json [12:22:24] [12:22:24]POST finish read [12:22:24]Found Content-Length = 676 [12:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:24]execute_script... [12:22:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:24]POST & json_proto [12:22:24]process_json_proto [12:22:24]json parsed OK: [12:22:24]protocol is kg_v1.0 [12:22:24]action value=close_receipt [12:22:24]process_action close_receipt [12:22:24]cmd_close_receipt [12:22:24]MH_GetDate [12:22:24]Write to MH i2c: F0 00 00 D9 FD C5 [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 09 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: F0 09 00 D9 FD 00 0E DF 1C 67 22 05 6E 64 37 [12:22:24]GetLastDocTimeStamp 1729945217 [12:22:24]current date 1729945358 [12:22:24]FM_GetShiftState [12:22:24]SAM_PROTO_GetShiftState [12:22:24]wFMCommunicate request_size=4 [12:22:24]MH_SAM_APDU [12:22:24]CAPDU: 80 13 01 00 [12:22:24]Write to MH i2c: E2 08 00 DA FD 80 13 01 00 00 00 00 00 54 [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:24]Read from MH i2c: E2 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 0E 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: E2 0E 00 DA FD 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CD [12:22:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:22:24]wFMCommunicate OK [12:22:24]SAM_PROTO_GetShiftState done [12:22:24]FM_GetShiftState done [12:22:24]opened in 1729902770 [12:22:24]opened+sec_in_day 1729989170 [12:22:24]quantity*price = 25020 [12:22:24]sum+1 = 25022 [12:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 114 26.10.2024 12:22 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191751 ФПД: 212740150182523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191751&fm=212740150182523&tin=02508201610067®Number=0000000000091776&sum=25000 [12:22:25]StoreToDocumentArchive [12:22:25]shift 541 fd 191751 [12:22:25]save to /storage/0541/doc_00191751 [12:22:25]save last doc name /storage/0541/doc_00191751 to /storage/kkm_last_doc_name [12:22:25]save OK [12:22:25]Clear old archive folders... [12:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:25]tlvbuf is 01831570 [12:22:25]SAM_PROTO_ClearQueue [12:22:25]wFMCommunicate request_size=4 [12:22:25]MH_SAM_APDU [12:22:25]CAPDU: 80 09 00 00 [12:22:25]Write to MH i2c: E2 08 00 E7 FD 80 09 00 00 00 00 00 00 56 [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:25]Read from MH i2c: E2 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 03 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 03 00 E7 FD 00 90 00 58 [12:22:25]RAPDU: 90 00 [12:22:25]wFMCommunicate OK [12:22:25]SAM_PROTO_ClearQueue done [12:22:25]KKMCreateOFDPacket [12:22:25]OFDProtocolAddRootSTLVToBuf [12:22:25]FM_MakeSignedData [12:22:25]FM_MakeSignedData [12:22:25]SAM_PROTO_SignData [12:22:25]wFMCommunicate request_size=4 [12:22:25]MH_SAM_APDU [12:22:25]CAPDU: 80 0D 01 02 [12:22:25]Write to MH i2c: E2 08 00 E8 FD 80 0D 01 02 00 00 00 00 5E [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:25]Read from MH i2c: E2 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 03 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: E2 03 00 E8 FD 00 90 00 59 [12:22:25]RAPDU: 90 00 [12:22:25]wFMCommunicate OK [12:22:25]wFMCommunicate request_size=255 [12:22:25]MH_SAM_APDU [12:22: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 0E DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 ED 02 00 35 04 06 00 C1 [12:22:25]Write to MH i2c: E2 02 01 E9 FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 0E DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 ED 02 00 35 04 06 00 C1 00 00 83 [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 E9 FD 00 90 00 5A [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]wFMCommunicate request_size=10 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 02 02 05 7C 6D 14 C2 7B [12:22:26]Write to MH i2c: E2 0D 00 EA FD 80 0D 02 02 05 00 7C 6D 14 C2 7B 00 00 A5 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 03 00 EA FD 00 90 00 5B [12:22:26]RAPDU: 90 00 [12:22:26]wFMCommunicate OK [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 0D 03 02 [12:22:26]Write to MH i2c: E2 08 00 EB FD 80 0D 03 02 00 00 00 00 63 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0B 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0B 00 EB FD 00 68 5D 0F D0 CF 9F 72 D8 90 00 C0 [12:22:26]RAPDU: 68 5D 0F D0 CF 9F 72 D8 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_SignData done [12:22:26]FM_MakeSignedData done [12:22:26]CreateOFDProtocolMessage [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 11 00 00 [12:22:26]Write to MH i2c: E2 08 00 EC FD 80 11 00 00 00 00 00 00 63 [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 EC FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [12:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:22:26]wFMCommunicate OK [12:22:26]CreateOFDProtocolMessage done [12:22:26]OFDSenderStorePacket 191751 [12:22:26]StoreOFDPacket docnum=191751 [12:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 2F 07 01 7C 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 0E DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 ED 02 00 35 04 06 00 C1 7C 6D 14 C2 7B 68 5D 0F D0 CF 9F 72 D8 [12:22:26]CheckFolder [12:22:26]dirname=/storage/ofd_packets [12:22:26]CheckFolder done [12:22:26]ProducePacketName [12:22:26]name=ofd_packets/00191751 [12:22:26]NVStorageSaveData ofd_packets/00191751 [12:22:26]File name is /storage/ofd_packets/00191751 [12:22:26]Write 301 bytes [12:22:26]NVStorageSaveData done [12:22:26]OFDSenderStorePacket done [12:22:26]KKMCreateOFDPacket done [12:22:26]NVStorageSaveData kkm_last_timestamp [12:22:26]File name is /storage/kkm_last_timestamp [12:22:26]Write 4 bytes [12:22:26]NVStorageSaveData done [12:22:26]ExternCall_PrintAddStr [12:22:26]wPrintStart [12:22:26]Write to MH i2c: 01 00 00 ED FD EA [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 07 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: 01 07 00 ED FD 00 00 00 00 00 FF 0F FF [12:22:26]RasterBufferAndPrint [12:22:26]line Счет N : (1)31055 [12:22:26]line ИНН: 02508201610067 [12:22:26]line Контрольно-Кассовый Чек [12:22:26]line ПРОДАЖА [12:22:26]line ТРК (МРК, ГНК) : 21 [12:22:26]line Товар: 2710124130 [12:22:26]line Аи-92-К-5 [12:22:26]line 3.740 * 66.90 [12:22:26]line = 250.21 [12:22:26]line НДС 12% НСП 1% [12:22:26]line > о реализуемом товаре [12:22:26]line ОКРУГЛЕНИЕ: -0.21 [12:22:26]line ИТОГО: 250.00 [12:22:26]line Внесено: 250.00 [12:22:26]line СДАЧА: 0.00 [12:22:26]line НСП 1% : 2.21 [12:22:26]line НДС 12% : 26.57 [12:22:26]line Наличными: 250.00 [12:22:26]line Безнал.: 0.00 [12:22:26]line Место: АЗС № 170 "Партнер Нефть" [12:22:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:22:26]line СНО: Общий режим [12:22:26]line Чек 114 26.10.2024 12:22 [12:22:26]line Смена: 541 ФФД: 1.0 [12:22:26]line ЗНМ: 0300000110 [12:22:26]line РНМ: 0000000000091776 [12:22:26]line Версия ККМ: 001 [12:22:26]line ФМ: 0000000000871754 [12:22:26]line ФД: 191751 [12:22:26]line ФПД: 212740150182523 [12:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122238&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191751&fm=212740150182523&tin=02508201610067®Number=0000000000091776&sum=25000 [12:22:26]OFD Sender: Processing packet 191751 [packets to send 75, broken 74] [12:22:26]ProducePacketName [12:22:26]name=ofd_packets/00191751 [12:22:26]OFD Sender: To server: pG, [12:22:26]CommunicateWithHost lk.salyk.kg:30040 [12:22:26]ConnectInit lk.salyk.kg [12:22:26]written 0, free lines is 4095 [12:22:26]Connected sock=10 [12:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D8 2F 07 01 7C 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 0E DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 ED 02 00 35 04 06 00 C1 7C 6D 14 C2 7B 68 5D 0F D0 CF 9F 72 D8 [12:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 DF 47 00 76 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 07 ED 02 00 F4 03 04 00 DA 83 1C 67 B6 04 01 00 00 1F B5 93 EC A9 B6 5F 44 [12:22:26]CommunicateWithHost err = 0 [12:22:26]CheckOFDResponse [12:22:26]1017 (14) - 77093643461234 [12:22:26]1041 (16) - 0000000000871754 [12:22:26]1040 (4) - 191751 [12:22:26]1012 (4) - 26.10.2024 05:53 [12:22:26]1206 (1) - 0 [12:22:26]OFD Sender: Remove packet 191751 [12:22:26]ProducePacketName [12:22:26]name=ofd_packets/00191751 [12:22:26]NVStorageDeleteData [12:22:27]Write to MH i2c: 01 00 00 18 FE 16 [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 07 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: 01 07 00 18 FE 00 00 00 00 00 C6 0C EF [12:22:27]RasterBufferAndPrint [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]line [12:22:27]written 0, free lines is 3279 [12:22:27]MH_Cut [12:22:27]Write to MH i2c: D1 01 00 1F FE 01 EF [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: D1 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: D1 01 00 [12:22:27]MH_I2C_Read... [12:22:27]Read from MH i2c: D1 01 00 1F FE 00 EE [12:22:27]Write to MH i2c: 01 00 00 20 FE 1E [12:22:27]Write i2c OK [12:22:27]MH_I2C_Read... [12:22:27]OFD Sender: No OFD packet to send [12:22:27]*** Cut start [12:22:27]*** Partial cut [12:22:27]*** CUTSNS_PIN = 1 [12:22:27]*** CUTSNS_PIN = 0 [12:22:28]*** Brake cut motor [12:22:28]Read from MH i2c: 01 [12:22:28]MH_I2C_Read... [12:22:28]*** Stop cut motor [12:22:28]*** Cut end [12:22:28]Read from MH i2c: 01 07 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: 01 07 00 20 FE 00 00 00 00 00 FF 0F 33 [12:22:28]process_action close_receipt done [12:22:28]requested_data is exist [12:22:28]produce_requested_data [12:22:28]requested_item fm.sn is exist - process it [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 11 00 00 [12:22:28]Write to MH i2c: E2 08 00 21 FE 80 11 00 00 00 00 00 00 99 [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 17 00 21 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [12:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:22:28]wFMCommunicate OK [12:22:28]requested_item fd.num is exist - process it [12:22:28]SAM_PROTO_GetFieldsCounters [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 13 00 00 [12:22:28]Write to MH i2c: E2 08 00 22 FE 80 13 00 00 00 00 00 00 9C [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 62 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 62 00 22 FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [12:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 07 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:28]wFMCommunicate OK [12:22:28]SAM_PROTO_GetFieldsCounters done [12:22:28]requested_item shift.num is exist - process it [12:22:28]requested_item shift.opened is exist - process it [12:22:28]req_shift_opened [12:22:28]FM_GetShiftState [12:22:28]SAM_PROTO_GetShiftState [12:22:28]wFMCommunicate request_size=4 [12:22:28]MH_SAM_APDU [12:22:28]CAPDU: 80 13 01 00 [12:22:28]Write to MH i2c: E2 08 00 23 FE 80 13 01 00 00 00 00 00 9E [12:22:28]Write i2c OK [12:22:28]MH_I2C_Read... [12:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:28]Read from MH i2c: E2 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0E 00 [12:22:28]MH_I2C_Read... [12:22:28]Read from MH i2c: E2 0E 00 23 FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 17 [12:22:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:22:28]wFMCommunicate OK [12:22:28]SAM_PROTO_GetShiftState done [12:22:28]FM_GetShiftState done [12:22:28]req_shift_opened done [12:22:28]requested_item shift.open_date is exist - process it [12:22:28]req_shift_open_date [12:22:28]req_shift_open_date done [12:22:28]produce_requested_data done [12:22:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191751,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:22:28]process_action_free close_receipt [12:22:28]json_value_free [12:22:28]json_value_free done [12:22:28]process_json_proto returns [12:22:28]Send response to host [12:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191751,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:22:28]free response buf [12:22:28]execute_script done [12:22:28]execute_script returns [12:22:28]free content buf [12:22:28]Sock 9.Close socket [12:22:28]Sock 9.Thread stoped [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:28]accept exits with 8 [12:24:28]New connection [12:24:28]New thread 3066817892 created [12:24:28]Thread 3066961252 joined [12:24:28]Waiting for new connection... [12:24:28] Sock 8.Parse request [12:24:28]Sock 8.Check first char [12:24:28]Sock 8.First char is OK [12:24:28]request: POST /json_proto HTTP/1.0 [12:24:28]Method: POST [12:24:28]URL: /json_proto [12:24:28]Method is POST - this is cgi request [12:24:28]url: /json_proto [12:24:28]query_string will be loaded in cgi processing [12:24:28]execute_cgi json_proto POST (null) [12:24:28]execute_cgi path=json_proto method=POST [12:24:28]POST find Content-Length [12:24:28]Host: 172.17.63.131:8080 [12:24:28]Content-Length: 676 [12:24:28]Content-Type: application/json [12:24:28] [12:24:28]POST finish read [12:24:28]Found Content-Length = 676 [12:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:28]execute_script... [12:24: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)31056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:28]POST & json_proto [12:24:28]process_json_proto [12:24:28]json parsed OK: [12:24:28]protocol is kg_v1.0 [12:24:28]action value=close_receipt [12:24:28]process_action close_receipt [12:24:28]cmd_close_receipt [12:24:28]MH_GetDate [12:24:28]Write to MH i2c: F0 00 00 24 FE 11 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 09 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: F0 09 00 24 FE 00 8A DF 1C 67 22 05 6E 64 FF [12:24:28]GetLastDocTimeStamp 1729945358 [12:24:28]current date 1729945482 [12:24:28]FM_GetShiftState [12:24:28]SAM_PROTO_GetShiftState [12:24:28]wFMCommunicate request_size=4 [12:24:28]MH_SAM_APDU [12:24:28]CAPDU: 80 13 01 00 [12:24:28]Write to MH i2c: E2 08 00 25 FE 80 13 01 00 00 00 00 00 A0 [12:24:28]Write i2c OK [12:24:28]MH_I2C_Read... [12:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:28]Read from MH i2c: E2 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0E 00 [12:24:28]MH_I2C_Read... [12:24:28]Read from MH i2c: E2 0E 00 25 FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 19 [12:24:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:24:28]wFMCommunicate OK [12:24:28]SAM_PROTO_GetShiftState done [12:24:28]FM_GetShiftState done [12:24:28]opened in 1729902770 [12:24:28]opened+sec_in_day 1729989170 [12:24:28]quantity*price = 50041 [12:24:28]sum+1 = 50042 [12:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 115 26.10.2024 12:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191752 ФПД: 46447012362733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191752&fm=46447012362733&tin=02508201610067®Number=0000000000091776&sum=50000 [12:24:29]StoreToDocumentArchive [12:24:29]shift 541 fd 191752 [12:24:29]save to /storage/0541/doc_00191752 [12:24:29]save last doc name /storage/0541/doc_00191752 to /storage/kkm_last_doc_name [12:24:29]save OK [12:24:29]Clear old archive folders... [12:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:29]tlvbuf is 016CE970 [12:24:29]SAM_PROTO_ClearQueue [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 09 00 00 [12:24:29]Write to MH i2c: E2 08 00 32 FE 80 09 00 00 00 00 00 00 A2 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 32 FE 00 90 00 A4 [12:24:29]RAPDU: 90 00 [12:24:29]wFMCommunicate OK [12:24:29]SAM_PROTO_ClearQueue done [12:24:29]KKMCreateOFDPacket [12:24:29]OFDProtocolAddRootSTLVToBuf [12:24:29]FM_MakeSignedData [12:24:29]FM_MakeSignedData [12:24:29]SAM_PROTO_SignData [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 0D 01 02 [12:24:29]Write to MH i2c: E2 08 00 33 FE 80 0D 01 02 00 00 00 00 AA [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 33 FE 00 90 00 A5 [12:24:29]RAPDU: 90 00 [12:24:29]wFMCommunicate OK [12:24:29]wFMCommunicate request_size=255 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8A DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 ED 02 00 35 04 06 00 2A [12:24:29]Write to MH i2c: E2 02 01 34 FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 ED 02 00 35 04 06 00 2A 00 00 DD [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 34 FE 00 90 00 A6 [12:24:29]RAPDU: 90 00 [12:24:29]wFMCommunicate OK [12:24:29]wFMCommunicate request_size=10 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 0D 02 02 05 3E 49 AC 39 ED [12:24:29]Write to MH i2c: E2 0D 00 35 FE 80 0D 02 02 05 00 3E 49 AC 39 ED 00 00 10 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 03 00 35 FE 00 90 00 A7 [12:24:29]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 03 02 [12:24:30]Write to MH i2c: E2 08 00 36 FE 80 0D 03 02 00 00 00 00 AF [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 0B 00 36 FE 00 7F 13 F5 C6 92 74 1B BF 90 00 DD [12:24:30]RAPDU: 7F 13 F5 C6 92 74 1B BF 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_SignData done [12:24:30]FM_MakeSignedData done [12:24:30]CreateOFDProtocolMessage [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 11 00 00 [12:24:30]Write to MH i2c: E2 08 00 37 FE 80 11 00 00 00 00 00 00 AF [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 17 00 37 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [12:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:24:30]wFMCommunicate OK [12:24:30]CreateOFDProtocolMessage done [12:24:30]OFDSenderStorePacket 191752 [12:24:30]StoreOFDPacket docnum=191752 [12:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 BB 07 01 E5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 ED 02 00 35 04 06 00 2A 3E 49 AC 39 ED 7F 13 F5 C6 92 74 1B BF [12:24:30]CheckFolder [12:24:30]dirname=/storage/ofd_packets [12:24:30]CheckFolder done [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00191752 [12:24:30]NVStorageSaveData ofd_packets/00191752 [12:24:30]File name is /storage/ofd_packets/00191752 [12:24:30]Write 301 bytes [12:24:30]NVStorageSaveData done [12:24:30]OFDSenderStorePacket done [12:24:30]KKMCreateOFDPacket done [12:24:30]NVStorageSaveData kkm_last_timestamp [12:24:30]File name is /storage/kkm_last_timestamp [12:24:30]Write 4 bytes [12:24:30]NVStorageSaveData done [12:24:30]ExternCall_PrintAddStr [12:24:30]wPrintStart [12:24:30]Write to MH i2c: 01 00 00 38 FE 36 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 38 FE 00 00 00 00 00 FF 0F 4B [12:24:30]RasterBufferAndPrint [12:24:30]line Счет N : (1)31056 [12:24:30]line ИНН: 02508201610067 [12:24:30]line Контрольно-Кассовый Чек [12:24:30]line ПРОДАЖА [12:24:30]line ТРК (МРК, ГНК) : 21 [12:24:30]line Товар: 2710124130 [12:24:30]line Аи-92-К-5 [12:24:30]line 7.480 * 66.90 [12:24:30]line = 500.41 [12:24:30]line НДС 12% НСП 1% [12:24:30]line > о реализуемом товаре [12:24:30]line ОКРУГЛЕНИЕ: -0.41 [12:24:30]line ИТОГО: 500.00 [12:24:30]line Внесено: 500.00 [12:24:30]line СДАЧА: 0.00 [12:24:30]line НСП 1% : 4.43 [12:24:30]line НДС 12% : 53.14 [12:24:30]line Наличными: 500.00 [12:24:30]line Безнал.: 0.00 [12:24:30]line Место: АЗС № 170 "Партнер Нефть" [12:24:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:24:30]line СНО: Общий режим [12:24:30]line Чек 115 26.10.2024 12:24 [12:24:30]line Смена: 541 ФФД: 1.0 [12:24:30]line ЗНМ: 0300000110 [12:24:30]line РНМ: 0000000000091776 [12:24:30]line Версия ККМ: 001 [12:24:30]line ФМ: 0000000000871754 [12:24:30]line ФД: 191752 [12:24:30]line ФПД: 46447012362733 [12:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122442&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191752&fm=46447012362733&tin=02508201610067®Number=0000000000091776&sum=50000 [12:24:30]OFD Sender: Processing packet 191752 [packets to send 75, broken 74] [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00191752 [12:24:30]OFD Sender: To server: pG, [12:24:30]CommunicateWithHost lk.salyk.kg:30040 [12:24:30]ConnectInit lk.salyk.kg [12:24:30]written 0, free lines is 4095 [12:24:30]Connected sock=10 [12:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 61 BB 07 01 E5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8A DF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 ED 02 00 35 04 06 00 2A 3E 49 AC 39 ED 7F 13 F5 C6 92 74 1B BF [12:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 00 89 47 00 24 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 08 ED 02 00 F4 03 04 00 56 84 1C 67 B6 04 01 00 00 5D 25 2C 92 D9 BF AC FE [12:24:30]CommunicateWithHost err = 0 [12:24:30]CheckOFDResponse [12:24:30]1017 (14) - 77093643461234 [12:24:30]1041 (16) - 0000000000871754 [12:24:30]1040 (4) - 191752 [12:24:30]1012 (4) - 26.10.2024 05:55 [12:24:30]1206 (1) - 0 [12:24:30]OFD Sender: Remove packet 191752 [12:24:30]ProducePacketName [12:24:30]name=ofd_packets/00191752 [12:24:30]NVStorageDeleteData [12:24:30]Write to MH i2c: 01 00 00 63 FE 61 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: 01 07 00 63 FE 00 00 00 00 00 B5 0C 29 [12:24:30]RasterBufferAndPrint [12:24:30]line [12:24:30]line [12:24:30]line [12:24:30]line [12:24:30]line [12:24:30]written 0, free lines is 3259 [12:24:30]MH_Cut [12:24:30]Write to MH i2c: D1 01 00 6A FE 01 3A [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: D1 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: D1 01 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: D1 01 00 6A FE 00 39 [12:24:30]Write to MH i2c: 01 00 00 6B FE 69 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:31]OFD Sender: No OFD packet to send [12:24:31]*** Cut start [12:24:31]*** Partial cut [12:24:31]*** CUTSNS_PIN = 1 [12:24:31]*** CUTSNS_PIN = 0 [12:24:32]*** Brake cut motor [12:24:32]Read from MH i2c: 01 [12:24:32]MH_I2C_Read... [12:24:32]*** Stop cut motor [12:24:32]*** Cut end [12:24:32]Read from MH i2c: 01 07 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 6B FE 00 00 00 00 00 FF 0F 7E [12:24:32]process_action close_receipt done [12:24:32]requested_data is exist [12:24:32]produce_requested_data [12:24:32]requested_item fm.sn is exist - process it [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 11 00 00 [12:24:32]Write to MH i2c: E2 08 00 6C FE 80 11 00 00 00 00 00 00 E4 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 17 00 6C FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [12:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:24:32]wFMCommunicate OK [12:24:32]requested_item fd.num is exist - process it [12:24:32]SAM_PROTO_GetFieldsCounters [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 00 00 [12:24:32]Write to MH i2c: E2 08 00 6D FE 80 13 00 00 00 00 00 00 E7 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 62 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 62 00 6D FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 08 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:32]wFMCommunicate OK [12:24:32]SAM_PROTO_GetFieldsCounters done [12:24:32]requested_item shift.num is exist - process it [12:24:32]requested_item shift.opened is exist - process it [12:24:32]req_shift_opened [12:24:32]FM_GetShiftState [12:24:32]SAM_PROTO_GetShiftState [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 01 00 [12:24:32]Write to MH i2c: E2 08 00 6E FE 80 13 01 00 00 00 00 00 E9 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 6E FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 62 [12:24:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:24:32]wFMCommunicate OK [12:24:32]SAM_PROTO_GetShiftState done [12:24:32]FM_GetShiftState done [12:24:32]req_shift_opened done [12:24:32]requested_item shift.open_date is exist - process it [12:24:32]req_shift_open_date [12:24:32]req_shift_open_date done [12:24:32]produce_requested_data done [12:24:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191752,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:24:32]process_action_free close_receipt [12:24:32]json_value_free [12:24:32]json_value_free done [12:24:32]process_json_proto returns [12:24:32]Send response to host [12:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191752,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:24:32]free response buf [12:24:32]execute_script done [12:24:32]execute_script returns [12:24:32]free content buf [12:24:32]Sock 8.Close socket [12:24:32]Sock 8.Thread stoped [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]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:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:26]accept exits with 9 [12:28:26]New connection [12:28:26]New thread 3066961252 created [12:28:26]Thread 3066817892 joined [12:28:26]Waiting for new connection... [12:28:26] Sock 9.Parse request [12:28:26]Sock 9.Check first char [12:28:26]Sock 9.First char is OK [12:28:26]request: POST /json_proto HTTP/1.0 [12:28:26]Method: POST [12:28:26]URL: /json_proto [12:28:26]Method is POST - this is cgi request [12:28:26]url: /json_proto [12:28:26]query_string will be loaded in cgi processing [12:28:26]execute_cgi json_proto POST (null) [12:28:26]execute_cgi path=json_proto method=POST [12:28:26]POST find Content-Length [12:28:26]Host: 172.17.63.131:8080 [12:28:26]Content-Length: 980 [12:28:26]Content-Type: application/json [12:28:26] [12:28:26]POST finish read [12:28:26]Found Content-Length = 980 [12:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.070, "sum" : 795.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 12.07 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 795.00, "payments": [ { "type": 0, "sum" : 795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:26]execute_script... [12:28:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 12.070, "sum" : 795.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 12.07 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 795.00, "payments": [ { "type": 0, "sum" : 795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:26]POST & json_proto [12:28:26]process_json_proto [12:28:26]json parsed OK: [12:28:26]protocol is kg_v1.0 [12:28:26]action value=close_receipt [12:28:26]process_action close_receipt [12:28:26]cmd_close_receipt [12:28:26]MH_GetDate [12:28:26]Write to MH i2c: F0 00 00 6F FE 5C [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 09 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: F0 09 00 6F FE 00 79 E0 1C 67 22 05 6E 64 3A [12:28:26]GetLastDocTimeStamp 1729945482 [12:28:26]current date 1729945721 [12:28:26]FM_GetShiftState [12:28:26]SAM_PROTO_GetShiftState [12:28:26]wFMCommunicate request_size=4 [12:28:26]MH_SAM_APDU [12:28:26]CAPDU: 80 13 01 00 [12:28:26]Write to MH i2c: E2 08 00 70 FE 80 13 01 00 00 00 00 00 EB [12:28:26]Write i2c OK [12:28:26]MH_I2C_Read... [12:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:26]Read from MH i2c: E2 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0E 00 [12:28:26]MH_I2C_Read... [12:28:26]Read from MH i2c: E2 0E 00 70 FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 64 [12:28:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:28:26]wFMCommunicate OK [12:28:26]SAM_PROTO_GetShiftState done [12:28:26]FM_GetShiftState done [12:28:26]opened in 1729902770 [12:28:26]opened+sec_in_day 1729989170 [12:28:26]quantity*price = 79541 [12:28:26]sum+1 = 79542 [12:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 795.00 Внесено: 1500.00 СДАЧА: 705.00 НСП 1% : 7.04 НДС 12% : 84.47 Наличными: 795.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 116 26.10.2024 12:28 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 12.07 сом ФМ: 0000000000871754 ФД: 191753 ФПД: 178324509328199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191753&fm=178324509328199&tin=02508201610067®Number=0000000000091776&sum=79500 [12:28:28]StoreToDocumentArchive [12:28:28]shift 541 fd 191753 [12:28:28]save to /storage/0541/doc_00191753 [12:28:28]save last doc name /storage/0541/doc_00191753 to /storage/kkm_last_doc_name [12:28:28]save OK [12:28:28]Clear old archive folders... [12:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:28]tlvbuf is 01A93A60 [12:28:28]SAM_PROTO_ClearQueue [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 09 00 00 [12:28:28]Write to MH i2c: E2 08 00 7D FE 80 09 00 00 00 00 00 00 ED [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 7D FE 00 90 00 EF [12:28:28]RAPDU: 90 00 [12:28:28]wFMCommunicate OK [12:28:28]SAM_PROTO_ClearQueue done [12:28:28]KKMCreateOFDPacket [12:28:28]OFDProtocolAddRootSTLVToBuf [12:28:28]FM_MakeSignedData [12:28:28]FM_MakeSignedData [12:28:28]SAM_PROTO_SignData [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 0D 01 02 [12:28:28]Write to MH i2c: E2 08 00 7E FE 80 0D 01 02 00 00 00 00 F5 [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 7E FE 00 90 00 F0 [12:28:28]RAPDU: 90 00 [12:28:28]wFMCommunicate OK [12:28:28]wFMCommunicate request_size=255 [12:28:28]MH_SAM_APDU [12:28: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 26 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B5 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 20 00 00 00 00 07 04 06 00 8C 36 01 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 79 E0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 ED 02 00 35 04 06 00 A2 [12:28:28]Write to MH i2c: E2 02 01 7F FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B5 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 20 00 00 00 00 07 04 06 00 8C 36 01 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 79 E0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 ED 02 00 35 04 06 00 A2 00 00 8C [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 7F FE 00 90 00 F1 [12:28:28]RAPDU: 90 00 [12:28:28]wFMCommunicate OK [12:28:28]wFMCommunicate request_size=10 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 0D 02 02 05 2F 69 08 83 47 [12:28:28]Write to MH i2c: E2 0D 00 80 FE 80 0D 02 02 05 00 2F 69 08 83 47 00 00 6C [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 03 00 80 FE 00 90 00 F2 [12:28:28]RAPDU: 90 00 [12:28:28]wFMCommunicate OK [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 0D 03 02 [12:28:28]Write to MH i2c: E2 08 00 81 FE 80 0D 03 02 00 00 00 00 FA [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 0B 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 0B 00 81 FE 00 4F 82 7E 27 0B A3 10 6A 90 00 99 [12:28:28]RAPDU: 4F 82 7E 27 0B A3 10 6A 90 00 [12:28:28]wFMCommunicate OK [12:28:28]SAM_PROTO_SignData done [12:28:28]FM_MakeSignedData done [12:28:28]CreateOFDProtocolMessage [12:28:28]wFMCommunicate request_size=4 [12:28:28]MH_SAM_APDU [12:28:28]CAPDU: 80 11 00 00 [12:28:28]Write to MH i2c: E2 08 00 82 FE 80 11 00 00 00 00 00 00 FA [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:28]Read from MH i2c: E2 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 17 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: E2 17 00 82 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [12:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:28]wFMCommunicate OK [12:28:28]CreateOFDProtocolMessage done [12:28:28]OFDSenderStorePacket 191753 [12:28:28]StoreOFDPacket docnum=191753 [12:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 62 07 01 68 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B5 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 20 00 00 00 00 07 04 06 00 8C 36 01 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 79 E0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 ED 02 00 35 04 06 00 A2 2F 69 08 83 47 4F 82 7E 27 0B A3 10 6A [12:28:28]CheckFolder [12:28:28]dirname=/storage/ofd_packets [12:28:28]CheckFolder done [12:28:28]ProducePacketName [12:28:28]name=ofd_packets/00191753 [12:28:28]NVStorageSaveData ofd_packets/00191753 [12:28:28]File name is /storage/ofd_packets/00191753 [12:28:28]Write 301 bytes [12:28:28]NVStorageSaveData done [12:28:28]OFDSenderStorePacket done [12:28:28]KKMCreateOFDPacket done [12:28:28]NVStorageSaveData kkm_last_timestamp [12:28:28]File name is /storage/kkm_last_timestamp [12:28:28]Write 4 bytes [12:28:28]NVStorageSaveData done [12:28:28]ExternCall_PrintAddStr [12:28:28]wPrintStart [12:28:28]Write to MH i2c: 01 00 00 83 FE 81 [12:28:28]Write i2c OK [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 07 00 [12:28:28]MH_I2C_Read... [12:28:28]Read from MH i2c: 01 07 00 83 FE 00 00 00 00 00 FF 0F 96 [12:28:28]RasterBufferAndPrint [12:28:28]line Счет N : (1)31058 [12:28:28]line ИНН: 02508201610067 [12:28:28]line Контрольно-Кассовый Чек [12:28:28]line ПРОДАЖА [12:28:28]line ТРК (МРК, ГНК) : 21 [12:28:28]line Товар: 2710124130 [12:28:28]line Аи-92-К-5 [12:28:28]line 12.070 * 65.90 [12:28:28]line = 795.41 [12:28:28]line НДС 12% НСП 1% [12:28:28]line > о реализуемом товаре [12:28:28]line ОКРУГЛЕНИЕ: -0.41 [12:28:28]line ИТОГО: 795.00 [12:28:28]line Внесено: 1500.00 [12:28:28]line СДАЧА: 705.00 [12:28:28]line НСП 1% : 7.04 [12:28:28]line НДС 12% : 84.47 [12:28:28]line Наличными: 795.00 [12:28:28]line Безнал.: 0.00 [12:28:28]line Место: АЗС № 170 "Партнер Нефть" [12:28:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:28:28]line СНО: Общий режим [12:28:28]line Чек 116 26.10.2024 12:28 [12:28:28]line Смена: 541 ФФД: 1.0 [12:28:28]line ЗНМ: 0300000110 [12:28:28]line РНМ: 0000000000091776 [12:28:28]line Версия ККМ: 001 [12:28:28]line [12:28:28]line Дисконтная программа [12:28:28]line АИ-92 [12:28:28]line номер 170 [12:28:28]line сэкономлено 12.07 сом [12:28:28]line ФМ: 0000000000871754 [12:28:28]line ФД: 191753 [12:28:28]line ФПД: 178324509328199 [12:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T122841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191753&fm=178324509328199&tin=02508201610067®Number=0000000000091776&sum=79500 [12:28:28]OFD Sender: Processing packet 191753 [packets to send 75, broken 74] [12:28:28]ProducePacketName [12:28:28]name=ofd_packets/00191753 [12:28:28]OFD Sender: To server: pG, [12:28:28]CommunicateWithHost lk.salyk.kg:30040 [12:28:28]ConnectInit lk.salyk.kg [12:28:28]written 0, free lines is 4095 [12:28:29]Connected sock=10 [12:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 62 07 01 68 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 B5 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 36 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 20 00 00 00 00 07 04 06 00 8C 36 01 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 79 E0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 ED 02 00 35 04 06 00 A2 2F 69 08 83 47 4F 82 7E 27 0B A3 10 6A [12:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 11 91 47 00 86 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 09 ED 02 00 F4 03 04 00 44 85 1C 67 B6 04 01 00 00 4A F7 CF 0E D8 D4 D8 6B [12:28:29]CommunicateWithHost err = 0 [12:28:29]CheckOFDResponse [12:28:29]1017 (14) - 77093643461234 [12:28:29]1041 (16) - 0000000000871754 [12:28:29]1040 (4) - 191753 [12:28:29]1012 (4) - 26.10.2024 05:59 [12:28:29]1206 (1) - 0 [12:28:29]OFD Sender: Remove packet 191753 [12:28:29]ProducePacketName [12:28:29]name=ofd_packets/00191753 [12:28:29]NVStorageDeleteData [12:28:29]Write to MH i2c: 01 00 00 B3 FE B1 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 07 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 07 00 B3 FE 00 00 00 00 00 59 0C 1D [12:28:29]RasterBufferAndPrint [12:28:29]line [12:28:29]line [12:28:29]line [12:28:29]line [12:28:29]line [12:28:29]written 0, free lines is 3167 [12:28:29]MH_Cut [12:28:29]Write to MH i2c: D1 01 00 BA FE 01 8A [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: D1 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: D1 01 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: D1 01 00 BA FE 00 89 [12:28:29]Write to MH i2c: 01 00 00 BB FE B9 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]OFD Sender: No OFD packet to send [12:28:30]*** Cut start [12:28:30]*** Partial cut [12:28:30]*** CUTSNS_PIN = 1 [12:28:30]*** CUTSNS_PIN = 0 [12:28:30]*** Brake cut motor [12:28:30]Read from MH i2c: 01 [12:28:31]MH_I2C_Read... [12:28:31]*** Stop cut motor [12:28:31]*** Cut end [12:28:31]Read from MH i2c: 01 07 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: 01 07 00 BB FE 00 00 00 00 00 FF 0F CE [12:28:31]process_action close_receipt done [12:28:31]requested_data is exist [12:28:31]produce_requested_data [12:28:31]requested_item fm.sn is exist - process it [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 11 00 00 [12:28:31]Write to MH i2c: E2 08 00 BC FE 80 11 00 00 00 00 00 00 34 [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 17 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 17 00 BC FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [12:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:28:31]wFMCommunicate OK [12:28:31]requested_item fd.num is exist - process it [12:28:31]SAM_PROTO_GetFieldsCounters [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 13 00 00 [12:28:31]Write to MH i2c: E2 08 00 BD FE 80 13 00 00 00 00 00 00 37 [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 62 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 62 00 BD FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 09 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:31]wFMCommunicate OK [12:28:31]SAM_PROTO_GetFieldsCounters done [12:28:31]requested_item shift.num is exist - process it [12:28:31]requested_item shift.opened is exist - process it [12:28:31]req_shift_opened [12:28:31]FM_GetShiftState [12:28:31]SAM_PROTO_GetShiftState [12:28:31]wFMCommunicate request_size=4 [12:28:31]MH_SAM_APDU [12:28:31]CAPDU: 80 13 01 00 [12:28:31]Write to MH i2c: E2 08 00 BE FE 80 13 01 00 00 00 00 00 39 [12:28:31]Write i2c OK [12:28:31]MH_I2C_Read... [12:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:31]Read from MH i2c: E2 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 0E 00 [12:28:31]MH_I2C_Read... [12:28:31]Read from MH i2c: E2 0E 00 BE FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B2 [12:28:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:28:31]wFMCommunicate OK [12:28:31]SAM_PROTO_GetShiftState done [12:28:31]FM_GetShiftState done [12:28:31]req_shift_opened done [12:28:31]requested_item shift.open_date is exist - process it [12:28:31]req_shift_open_date [12:28:31]req_shift_open_date done [12:28:31]produce_requested_data done [12:28:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191753,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:28:31]process_action_free close_receipt [12:28:31]json_value_free [12:28:31]json_value_free done [12:28:31]process_json_proto returns [12:28:31]Send response to host [12:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191753,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:28:31]free response buf [12:28:31]execute_script done [12:28:31]execute_script returns [12:28:31]free content buf [12:28:31]Sock 9.Close socket [12:28:31]Sock 9.Thread stoped [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:18]accept exits with 8 [12:32:18]New connection [12:32:18]New thread 3066817892 created [12:32:18]Thread 3066961252 joined [12:32:18]Waiting for new connection... [12:32:18] Sock 8.Parse request [12:32:18]Sock 8.Check first char [12:32:18]Sock 8.First char is OK [12:32:18]request: POST /json_proto HTTP/1.0 [12:32:18]Method: POST [12:32:18]URL: /json_proto [12:32:18]Method is POST - this is cgi request [12:32:18]url: /json_proto [12:32:18]query_string will be loaded in cgi processing [12:32:18]execute_cgi json_proto POST (null) [12:32:18]execute_cgi path=json_proto method=POST [12:32:18]POST find Content-Length [12:32:18]Host: 172.17.63.131:8080 [12:32:18]Content-Length: 681 [12:32:18]Content-Type: application/json [12:32:18] [12:32:18]POST finish read [12:32:18]Found Content-Length = 681 [12:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:18]execute_script... [12:32: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)31059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:18]POST & json_proto [12:32:18]process_json_proto [12:32:18]json parsed OK: [12:32:18]protocol is kg_v1.0 [12:32:18]action value=close_receipt [12:32:18]process_action close_receipt [12:32:18]cmd_close_receipt [12:32:18]MH_GetDate [12:32:18]Write to MH i2c: F0 00 00 BF FE AC [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 09 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 09 00 BF FE 00 61 E1 1C 67 22 05 6E 64 73 [12:32:18]GetLastDocTimeStamp 1729945721 [12:32:18]current date 1729945953 [12:32:18]FM_GetShiftState [12:32:18]SAM_PROTO_GetShiftState [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 13 01 00 [12:32:18]Write to MH i2c: E2 08 00 C0 FE 80 13 01 00 00 00 00 00 3B [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 C0 FE 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B4 [12:32:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:32:18]wFMCommunicate OK [12:32:18]SAM_PROTO_GetShiftState done [12:32:18]FM_GetShiftState done [12:32:18]opened in 1729902770 [12:32:18]opened+sec_in_day 1729989170 [12:32:18]quantity*price = 100015 [12:32:18]sum+1 = 100017 [12:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 117 26.10.2024 12:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191754 ФПД: 95074096779066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191754&fm=95074096779066&tin=02508201610067®Number=0000000000091776&sum=100000 [12:32:19]StoreToDocumentArchive [12:32:19]shift 541 fd 191754 [12:32:19]save to /storage/0541/doc_00191754 [12:32:19]save last doc name /storage/0541/doc_00191754 to /storage/kkm_last_doc_name [12:32:19]save OK [12:32:19]Clear old archive folders... [12:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:19]tlvbuf is 015A9670 [12:32:19]SAM_PROTO_ClearQueue [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 09 00 00 [12:32:19]Write to MH i2c: E2 08 00 CD FE 80 09 00 00 00 00 00 00 3D [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 CD FE 00 90 00 3F [12:32:19]RAPDU: 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_ClearQueue done [12:32:19]KKMCreateOFDPacket [12:32:19]OFDProtocolAddRootSTLVToBuf [12:32:19]FM_MakeSignedData [12:32:19]FM_MakeSignedData [12:32:19]SAM_PROTO_SignData [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 0D 01 02 [12:32:19]Write to MH i2c: E2 08 00 CE FE 80 0D 01 02 00 00 00 00 45 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 CE FE 00 90 00 40 [12:32:19]RAPDU: 90 00 [12:32:19]wFMCommunicate OK [12:32:19]wFMCommunicate request_size=255 [12:32:19]MH_SAM_APDU [12:32: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 E1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A ED 02 00 35 04 06 00 56 [12:32:19]Write to MH i2c: E2 02 01 CF FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 E1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A ED 02 00 35 04 06 00 56 00 00 7B [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:20]OFD Sender: No OFD packet to send [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 CF FE 00 90 00 41 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=10 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 02 02 05 78 29 C4 0F 3A [12:32:20]Write to MH i2c: E2 0D 00 D0 FE 80 0D 02 02 05 00 78 29 C4 0F 3A 00 00 00 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 D0 FE 00 90 00 42 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 03 02 [12:32:20]Write to MH i2c: E2 08 00 D1 FE 80 0D 03 02 00 00 00 00 4A [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 D1 FE 00 F6 56 13 D2 4E 97 D7 AE 90 00 E6 [12:32:20]RAPDU: F6 56 13 D2 4E 97 D7 AE 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_SignData done [12:32:20]FM_MakeSignedData done [12:32:20]CreateOFDProtocolMessage [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 11 00 00 [12:32:20]Write to MH i2c: E2 08 00 D2 FE 80 11 00 00 00 00 00 00 4A [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 D2 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [12:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:20]wFMCommunicate OK [12:32:20]CreateOFDProtocolMessage done [12:32:20]OFDSenderStorePacket 191754 [12:32:20]StoreOFDPacket docnum=191754 [12:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 2F 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 E1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A ED 02 00 35 04 06 00 56 78 29 C4 0F 3A F6 56 13 D2 4E 97 D7 AE [12:32:20]CheckFolder [12:32:20]dirname=/storage/ofd_packets [12:32:20]CheckFolder done [12:32:20]ProducePacketName [12:32:20]name=ofd_packets/00191754 [12:32:20]NVStorageSaveData ofd_packets/00191754 [12:32:20]File name is /storage/ofd_packets/00191754 [12:32:20]Write 301 bytes [12:32:20]NVStorageSaveData done [12:32:20]OFDSenderStorePacket done [12:32:20]KKMCreateOFDPacket done [12:32:20]NVStorageSaveData kkm_last_timestamp [12:32:20]File name is /storage/kkm_last_timestamp [12:32:20]Write 4 bytes [12:32:20]NVStorageSaveData done [12:32:20]ExternCall_PrintAddStr [12:32:20]wPrintStart [12:32:20]Write to MH i2c: 01 00 00 D3 FE D1 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 D3 FE 00 00 00 00 00 FF 0F E6 [12:32:20]RasterBufferAndPrint [12:32:20]line Счет N : (1)31059 [12:32:20]line ИНН: 02508201610067 [12:32:20]line Контрольно-Кассовый Чек [12:32:20]line ПРОДАЖА [12:32:20]line ТРК (МРК, ГНК) : 12 [12:32:20]line Товар: 2710124130 [12:32:20]line Аи-92-К-5 [12:32:20]line 14.950 * 66.90 [12:32:20]line = 1000.16 [12:32:20]line НДС 12% НСП 1% [12:32:20]line > о реализуемом товаре [12:32:20]line ОКРУГЛЕНИЕ: -0.16 [12:32:20]line ИТОГО: 1000.00 [12:32:20]line Внесено: 1000.00 [12:32:20]line СДАЧА: 0.00 [12:32:20]line НСП 1% : 8.85 [12:32:20]line НДС 12% : 106.21 [12:32:20]line Наличными: 1000.00 [12:32:20]line Безнал.: 0.00 [12:32:20]line Место: АЗС № 170 "Партнер Нефть" [12:32:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:32:20]line СНО: Общий режим [12:32:20]line Чек 117 26.10.2024 12:32 [12:32:20]line Смена: 541 ФФД: 1.0 [12:32:20]line ЗНМ: 0300000110 [12:32:20]line РНМ: 0000000000091776 [12:32:20]line Версия ККМ: 001 [12:32:20]line ФМ: 0000000000871754 [12:32:20]line ФД: 191754 [12:32:20]line ФПД: 95074096779066 [12:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T123233&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191754&fm=95074096779066&tin=02508201610067®Number=0000000000091776&sum=100000 [12:32:20]written 0, free lines is 4095 [12:32:20]OFD Sender: Processing packet 191754 [packets to send 75, broken 74] [12:32:20]ProducePacketName [12:32:20]name=ofd_packets/00191754 [12:32:20]OFD Sender: To server: pG, [12:32:20]CommunicateWithHost lk.salyk.kg:30040 [12:32:20]ConnectInit lk.salyk.kg [12:32:20]Connected sock=10 [12:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 2F 07 01 B6 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 61 E1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A ED 02 00 35 04 06 00 56 78 29 C4 0F 3A F6 56 13 D2 4E 97 D7 AE [12:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 90 47 00 A5 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0A ED 02 00 F4 03 04 00 2B 86 1C 67 B6 04 01 00 00 55 DD 93 25 FF D8 26 D4 [12:32:20]CommunicateWithHost err = 0 [12:32:20]CheckOFDResponse [12:32:20]1017 (14) - 77093643461234 [12:32:20]1041 (16) - 0000000000871754 [12:32:20]1040 (4) - 191754 [12:32:20]1012 (4) - 26.10.2024 06:03 [12:32:20]1206 (1) - 0 [12:32:20]OFD Sender: Remove packet 191754 [12:32:20]ProducePacketName [12:32:20]name=ofd_packets/00191754 [12:32:20]NVStorageDeleteData [12:32:20]Write to MH i2c: 01 00 00 FE FE FC [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 FE FE 00 00 00 00 00 CB 0C DA [12:32:20]RasterBufferAndPrint [12:32:20]line [12:32:20]line [12:32:20]line [12:32:20]line [12:32:20]line [12:32:20]written 0, free lines is 3281 [12:32:20]MH_Cut [12:32:20]Write to MH i2c: D1 01 00 05 FF 01 D6 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: D1 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: D1 01 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: D1 01 00 05 FF 00 D5 [12:32:20]Write to MH i2c: 01 00 00 06 FF 05 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:21]OFD Sender: No OFD packet to send [12:32:21]*** Cut start [12:32:21]*** Partial cut [12:32:21]*** CUTSNS_PIN = 1 [12:32:21]*** CUTSNS_PIN = 0 [12:32:21]*** Brake cut motor [12:32:22]Read from MH i2c: 01 [12:32:22]MH_I2C_Read... [12:32:22]*** Stop cut motor [12:32:22]*** Cut end [12:32:22]Read from MH i2c: 01 07 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 06 FF 00 00 00 00 00 FF 0F 1A [12:32:22]process_action close_receipt done [12:32:22]requested_data is exist [12:32:22]produce_requested_data [12:32:22]requested_item fm.sn is exist - process it [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 11 00 00 [12:32:22]Write to MH i2c: E2 08 00 07 FF 80 11 00 00 00 00 00 00 80 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 17 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 17 00 07 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [12:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:32:22]wFMCommunicate OK [12:32:22]requested_item fd.num is exist - process it [12:32:22]SAM_PROTO_GetFieldsCounters [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 00 00 [12:32:22]Write to MH i2c: E2 08 00 08 FF 80 13 00 00 00 00 00 00 83 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 08 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [12:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetFieldsCounters done [12:32:22]requested_item shift.num is exist - process it [12:32:22]requested_item shift.opened is exist - process it [12:32:22]req_shift_opened [12:32:22]FM_GetShiftState [12:32:22]SAM_PROTO_GetShiftState [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 01 00 [12:32:22]Write to MH i2c: E2 08 00 09 FF 80 13 01 00 00 00 00 00 85 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 09 FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FE [12:32:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetShiftState done [12:32:22]FM_GetShiftState done [12:32:22]req_shift_opened done [12:32:22]requested_item shift.open_date is exist - process it [12:32:22]req_shift_open_date [12:32:22]req_shift_open_date done [12:32:22]produce_requested_data done [12:32:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191754,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:32:22]process_action_free close_receipt [12:32:22]json_value_free [12:32:22]json_value_free done [12:32:22]process_json_proto returns [12:32:22]Send response to host [12:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191754,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:32:22]free response buf [12:32:22]execute_script done [12:32:22]execute_script returns [12:32:22]free content buf [12:32:22]Sock 8.Close socket [12:32:22]Sock 8.Thread stoped [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:46]OFD Sender: No OFD packet to send [12:36:51]OFD Sender: No OFD packet to send [12:36:56]OFD Sender: No OFD packet to send [12:37:01]OFD Sender: No OFD packet to send [12:37:06]OFD Sender: No OFD packet to send [12:37:11]OFD Sender: No OFD packet to send [12:37:16]OFD Sender: No OFD packet to send [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:45:06]ConnectInit Can't connect to host [12:45:09]ConnectInit Can't take IP for lk.salyk.kg [12:45:09]CommunicateWithHost connect error [12:45:09]CommunicateWithHost err = -1 [12:45:09]OFD Sender: Server communicate error [12:45:14]OFD Sender: Processing packet 191755 [packets to send 75, broken 74] [12:45:14]ProducePacketName [12:45:14]name=ofd_packets/00191755 [12:45:14]OFD Sender: To server: pG, [12:45:14]CommunicateWithHost lk.salyk.kg:30040 [12:45:14]ConnectInit lk.salyk.kg [12:45:14]Connected sock=8 [12:45:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 8C E1 04 01 B6 18 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 9E E3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B ED 02 00 35 04 06 00 6C EA 21 D5 CE 08 1E D9 65 F0 EB F0 EA D8 [12:45:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6D B8 47 00 31 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0B ED 02 00 F4 03 04 00 32 89 1C 67 B6 04 01 00 00 68 D3 10 B0 E1 C9 14 C8 [12:45:14]CommunicateWithHost err = 0 [12:45:14]CheckOFDResponse [12:45:14]1017 (14) - 77093643461234 [12:45:14]1041 (16) - 0000000000871754 [12:45:14]1040 (4) - 191755 [12:45:14]1012 (4) - 26.10.2024 06:16 [12:45:14]1206 (1) - 0 [12:45:14]OFD Sender: Remove packet 191755 [12:45:14]ProducePacketName [12:45:14]name=ofd_packets/00191755 [12:45:14]NVStorageDeleteData [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:33]accept exits with 10 [12:47:33]New connection [12:47:33]New thread 3066817892 created [12:47:33]Thread 3066961252 joined [12:47:33]Waiting for new connection... [12:47:33] Sock 10.Parse request [12:47:33]Sock 10.Check first char [12:47:33]Sock 10.First char is OK [12:47:33]request: POST /json_proto HTTP/1.0 [12:47:33]Method: POST [12:47:33]URL: /json_proto [12:47:33]Method is POST - this is cgi request [12:47:33]url: /json_proto [12:47:33]query_string will be loaded in cgi processing [12:47:33]execute_cgi json_proto POST (null) [12:47:33]execute_cgi path=json_proto method=POST [12:47:33]POST find Content-Length [12:47:33]Host: 172.17.63.131:8080 [12:47:33]Content-Length: 676 [12:47:33]Content-Type: application/json [12:47:33] [12:47:33]POST finish read [12:47:33]Found Content-Length = 676 [12:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]execute_script... [12:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:33]POST & json_proto [12:47:33]process_json_proto [12:47:33]json parsed OK: [12:47:33]protocol is kg_v1.0 [12:47:33]action value=close_receipt [12:47:33]process_action close_receipt [12:47:33]cmd_close_receipt [12:47:33]MH_GetDate [12:47:33]Write to MH i2c: F0 00 00 55 FF 43 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 09 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: F0 09 00 55 FF 00 F4 E4 1C 67 22 05 6E 64 A0 [12:47:33]GetLastDocTimeStamp 1729946526 [12:47:33]current date 1729946868 [12:47:33]FM_GetShiftState [12:47:33]SAM_PROTO_GetShiftState [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 01 00 [12:47:33]Write to MH i2c: E2 08 00 56 FF 80 13 01 00 00 00 00 00 D2 [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 56 FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4B [12:47:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetShiftState done [12:47:33]FM_GetShiftState done [12:47:33]opened in 1729902770 [12:47:33]opened+sec_in_day 1729989170 [12:47:33]quantity*price = 50041 [12:47:33]sum+1 = 50042 [12:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 119 26.10.2024 12:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191756 ФПД: 117798368459568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191756&fm=117798368459568&tin=02508201610067®Number=0000000000091776&sum=50000 [12:47:34]StoreToDocumentArchive [12:47:34]shift 541 fd 191756 [12:47:34]save to /storage/0541/doc_00191756 [12:47:34]save last doc name /storage/0541/doc_00191756 to /storage/kkm_last_doc_name [12:47:34]save OK [12:47:34]Clear old archive folders... [12:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:34]tlvbuf is 0160B9B0 [12:47:34]SAM_PROTO_ClearQueue [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 09 00 00 [12:47:34]Write to MH i2c: E2 08 00 63 FF 80 09 00 00 00 00 00 00 D4 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 63 FF 00 90 00 D6 [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]SAM_PROTO_ClearQueue done [12:47:34]KKMCreateOFDPacket [12:47:34]OFDProtocolAddRootSTLVToBuf [12:47:34]FM_MakeSignedData [12:47:34]FM_MakeSignedData [12:47:34]SAM_PROTO_SignData [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 0D 01 02 [12:47:34]Write to MH i2c: E2 08 00 64 FF 80 0D 01 02 00 00 00 00 DC [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 03 00 64 FF 00 90 00 D7 [12:47:34]RAPDU: 90 00 [12:47:34]wFMCommunicate OK [12:47:34]wFMCommunicate request_size=255 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F4 E4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C ED 02 00 35 04 06 00 6B [12:47:34]Write to MH i2c: E2 02 01 65 FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F4 E4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C ED 02 00 35 04 06 00 6B 00 00 C7 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 65 FF 00 90 00 D8 [12:47:35]RAPDU: 90 00 [12:47:35]wFMCommunicate OK [12:47:35]wFMCommunicate request_size=10 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 0D 02 02 05 23 11 E8 3B 30 [12:47:35]Write to MH i2c: E2 0D 00 66 FF 80 0D 02 02 05 00 23 11 E8 3B 30 00 00 70 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 66 FF 00 90 00 D9 [12:47:35]RAPDU: 90 00 [12:47:35]wFMCommunicate OK [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 0D 03 02 [12:47:35]Write to MH i2c: E2 08 00 67 FF 80 0D 03 02 00 00 00 00 E1 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0B 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 0B 00 67 FF 00 A9 CE 4C E6 12 71 4A C6 90 00 1E [12:47:35]RAPDU: A9 CE 4C E6 12 71 4A C6 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_SignData done [12:47:35]FM_MakeSignedData done [12:47:35]CreateOFDProtocolMessage [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 11 00 00 [12:47:35]Write to MH i2c: E2 08 00 68 FF 80 11 00 00 00 00 00 00 E1 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 17 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 17 00 68 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [12:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:35]wFMCommunicate OK [12:47:35]CreateOFDProtocolMessage done [12:47:35]OFDSenderStorePacket 191756 [12:47:35]StoreOFDPacket docnum=191756 [12:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C8 44 07 01 6E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F4 E4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C ED 02 00 35 04 06 00 6B 23 11 E8 3B 30 A9 CE 4C E6 12 71 4A C6 [12:47:35]CheckFolder [12:47:35]dirname=/storage/ofd_packets [12:47:35]CheckFolder done [12:47:35]ProducePacketName [12:47:35]name=ofd_packets/00191756 [12:47:35]NVStorageSaveData ofd_packets/00191756 [12:47:35]File name is /storage/ofd_packets/00191756 [12:47:35]Write 301 bytes [12:47:35]NVStorageSaveData done [12:47:35]OFDSenderStorePacket done [12:47:35]KKMCreateOFDPacket done [12:47:35]NVStorageSaveData kkm_last_timestamp [12:47:35]File name is /storage/kkm_last_timestamp [12:47:35]Write 4 bytes [12:47:35]NVStorageSaveData done [12:47:35]ExternCall_PrintAddStr [12:47:35]wPrintStart [12:47:35]Write to MH i2c: 01 00 00 69 FF 68 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 69 FF 00 00 00 00 00 FF 0F 7D [12:47:35]RasterBufferAndPrint [12:47:35]line Счет N : (1)31061 [12:47:35]line ИНН: 02508201610067 [12:47:35]line Контрольно-Кассовый Чек [12:47:35]line ПРОДАЖА [12:47:35]line ТРК (МРК, ГНК) : 21 [12:47:35]line Товар: 2710124130 [12:47:35]line Аи-92-К-5 [12:47:35]line 7.480 * 66.90 [12:47:35]line = 500.41 [12:47:35]line НДС 12% НСП 1% [12:47:35]line > о реализуемом товаре [12:47:35]line ОКРУГЛЕНИЕ: -0.41 [12:47:35]line ИТОГО: 500.00 [12:47:35]line Внесено: 500.00 [12:47:35]line СДАЧА: 0.00 [12:47:35]line НСП 1% : 4.43 [12:47:35]line НДС 12% : 53.14 [12:47:35]line Наличными: 500.00 [12:47:35]line Безнал.: 0.00 [12:47:35]line Место: АЗС № 170 "Партнер Нефть" [12:47:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:47:35]line СНО: Общий режим [12:47:35]line Чек 119 26.10.2024 12:47 [12:47:35]line Смена: 541 ФФД: 1.0 [12:47:35]line ЗНМ: 0300000110 [12:47:35]line РНМ: 0000000000091776 [12:47:35]line Версия ККМ: 001 [12:47:35]line ФМ: 0000000000871754 [12:47:35]line ФД: 191756 [12:47:35]line ФПД: 117798368459568 [12:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124748&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191756&fm=117798368459568&tin=02508201610067®Number=0000000000091776&sum=50000 [12:47:35]written 0, free lines is 4095 [12:47:35]OFD Sender: Processing packet 191756 [packets to send 75, broken 74] [12:47:35]ProducePacketName [12:47:35]name=ofd_packets/00191756 [12:47:35]OFD Sender: To server: pG, [12:47:35]CommunicateWithHost lk.salyk.kg:30040 [12:47:35]ConnectInit lk.salyk.kg [12:47:35]Connected sock=11 [12:47:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C8 44 07 01 6E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F4 E4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C ED 02 00 35 04 06 00 6B 23 11 E8 3B 30 A9 CE 4C E6 12 71 4A C6 [12:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 80 47 00 56 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0C ED 02 00 F4 03 04 00 BE 89 1C 67 B6 04 01 00 00 6E 38 D6 1D A8 AC 3C 4D [12:47:35]CommunicateWithHost err = 0 [12:47:35]CheckOFDResponse [12:47:35]1017 (14) - 77093643461234 [12:47:35]1041 (16) - 0000000000871754 [12:47:35]1040 (4) - 191756 [12:47:35]1012 (4) - 26.10.2024 06:18 [12:47:35]1206 (1) - 0 [12:47:35]OFD Sender: Remove packet 191756 [12:47:35]ProducePacketName [12:47:35]name=ofd_packets/00191756 [12:47:35]NVStorageDeleteData [12:47:35]Write to MH i2c: 01 00 00 94 FF 93 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: 01 07 00 94 FF 00 00 00 00 00 C0 0C 66 [12:47:35]RasterBufferAndPrint [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]line [12:47:35]written 0, free lines is 3270 [12:47:35]MH_Cut [12:47:35]Write to MH i2c: D1 01 00 9B FF 01 6C [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 01 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: D1 01 00 9B FF 00 6B [12:47:35]Write to MH i2c: 01 00 00 9C FF 9B [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:36]OFD Sender: No OFD packet to send [12:47:36]*** Cut start [12:47:36]*** Partial cut [12:47:36]*** CUTSNS_PIN = 1 [12:47:36]*** CUTSNS_PIN = 0 [12:47:36]*** Brake cut motor [12:47:37]Read from MH i2c: 01 [12:47:37]MH_I2C_Read... [12:47:37]*** Stop cut motor [12:47:37]*** Cut end [12:47:37]Read from MH i2c: 01 07 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: 01 07 00 9C FF 00 00 00 00 00 FF 0F B0 [12:47:37]process_action close_receipt done [12:47:37]requested_data is exist [12:47:37]produce_requested_data [12:47:37]requested_item fm.sn is exist - process it [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 11 00 00 [12:47:37]Write to MH i2c: E2 08 00 9D FF 80 11 00 00 00 00 00 00 16 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 9D FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [12:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:37]wFMCommunicate OK [12:47:37]requested_item fd.num is exist - process it [12:47:37]SAM_PROTO_GetFieldsCounters [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 13 00 00 [12:47:37]Write to MH i2c: E2 08 00 9E FF 80 13 00 00 00 00 00 00 19 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 62 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 62 00 9E FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [12:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_GetFieldsCounters done [12:47:37]requested_item shift.num is exist - process it [12:47:37]requested_item shift.opened is exist - process it [12:47:37]req_shift_opened [12:47:37]FM_GetShiftState [12:47:37]SAM_PROTO_GetShiftState [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 13 01 00 [12:47:37]Write to MH i2c: E2 08 00 9F FF 80 13 01 00 00 00 00 00 1B [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0E 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0E 00 9F FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 94 [12:47:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_GetShiftState done [12:47:37]FM_GetShiftState done [12:47:37]req_shift_opened done [12:47:37]requested_item shift.open_date is exist - process it [12:47:37]req_shift_open_date [12:47:37]req_shift_open_date done [12:47:37]produce_requested_data done [12:47:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191756,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:47:37]process_action_free close_receipt [12:47:37]json_value_free [12:47:37]json_value_free done [12:47:37]process_json_proto returns [12:47:37]Send response to host [12:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191756,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:47:37]free response buf [12:47:37]execute_script done [12:47:37]execute_script returns [12:47:37]free content buf [12:47:37]Sock 10.Close socket [12:47:37]Sock 10.Thread stoped [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:47]accept exits with 8 [12:47:47]New connection [12:47:47]New thread 3066961252 created [12:47:47]Thread 3066817892 joined [12:47:47]Waiting for new connection... [12:47:47] Sock 8.Parse request [12:47:47]Sock 8.Check first char [12:47:47]Sock 8.First char is OK [12:47:47]request: POST /json_proto HTTP/1.0 [12:47:47]Method: POST [12:47:47]URL: /json_proto [12:47:47]Method is POST - this is cgi request [12:47:47]url: /json_proto [12:47:47]query_string will be loaded in cgi processing [12:47:47]execute_cgi json_proto POST (null) [12:47:47]execute_cgi path=json_proto method=POST [12:47:47]POST find Content-Length [12:47:47]Host: 172.17.63.131:8080 [12:47:47]Content-Length: 681 [12:47:47]Content-Type: application/json [12:47:47] [12:47:47]POST finish read [12:47:47]Found Content-Length = 681 [12:47:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.000, "sum" : 1003.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1003.00, "payments": [ { "type": 0, "sum" : 1003.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:47]execute_script... [12:47:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.000, "sum" : 1003.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1003.00, "payments": [ { "type": 0, "sum" : 1003.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:47]POST & json_proto [12:47:47]process_json_proto [12:47:47]json parsed OK: [12:47:47]protocol is kg_v1.0 [12:47:47]action value=close_receipt [12:47:47]process_action close_receipt [12:47:47]cmd_close_receipt [12:47:47]MH_GetDate [12:47:47]Write to MH i2c: F0 00 00 A0 FF 8E [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: F0 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: F0 09 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: F0 09 00 A0 FF 00 02 E5 1C 67 22 05 6E 64 FA [12:47:47]GetLastDocTimeStamp 1729946868 [12:47:47]current date 1729946882 [12:47:47]FM_GetShiftState [12:47:47]SAM_PROTO_GetShiftState [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 13 01 00 [12:47:47]Write to MH i2c: E2 08 00 A1 FF 80 13 01 00 00 00 00 00 1D [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0E 00 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 0E 00 A1 FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 96 [12:47:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_GetShiftState done [12:47:47]FM_GetShiftState done [12:47:47]opened in 1729902770 [12:47:47]opened+sec_in_day 1729989170 [12:47:47]quantity*price = 100350 [12:47:47]sum+1 = 100351 [12:47:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1003.00 Внесено: 3000.00 СДАЧА: 1997.00 НСП 1% : 8.88 НДС 12% : 106.57 Наличными: 1003.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 120 26.10.2024 12:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191757 ФПД: 159592502535165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191757&fm=159592502535165&tin=02508201610067®Number=0000000000091776&sum=100300 [12:47:48]StoreToDocumentArchive [12:47:48]shift 541 fd 191757 [12:47:48]save to /storage/0541/doc_00191757 [12:47:48]save last doc name /storage/0541/doc_00191757 to /storage/kkm_last_doc_name [12:47:48]save OK [12:47:48]Clear old archive folders... [12:47:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:48]tlvbuf is 0160B400 [12:47:48]SAM_PROTO_ClearQueue [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 09 00 00 [12:47:48]Write to MH i2c: E2 08 00 AE FF 80 09 00 00 00 00 00 00 1F [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 03 00 AE FF 00 90 00 21 [12:47:48]RAPDU: 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_ClearQueue done [12:47:48]KKMCreateOFDPacket [12:47:48]OFDProtocolAddRootSTLVToBuf [12:47:48]FM_MakeSignedData [12:47:48]FM_MakeSignedData [12:47:48]SAM_PROTO_SignData [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 0D 01 02 [12:47:48]Write to MH i2c: E2 08 00 AF FF 80 0D 01 02 00 00 00 00 27 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 AF FF 00 90 00 22 [12:47:49]RAPDU: 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=255 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 02 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D ED 02 00 35 04 06 00 91 [12:47:49]Write to MH i2c: E2 02 01 B0 FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 02 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D ED 02 00 35 04 06 00 91 00 00 45 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 B0 FF 00 90 00 23 [12:47:49]RAPDU: 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=10 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 0D 02 02 05 26 06 6C 23 FD [12:47:49]Write to MH i2c: E2 0D 00 B1 FF 80 0D 02 02 05 00 26 06 6C 23 FD 00 00 EC [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 03 00 B1 FF 00 90 00 24 [12:47:49]RAPDU: 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 0D 03 02 [12:47:49]Write to MH i2c: E2 08 00 B2 FF 80 0D 03 02 00 00 00 00 2C [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 0B 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 0B 00 B2 FF 00 ED 63 1A CF 4A 4F 93 4D 90 00 DF [12:47:49]RAPDU: ED 63 1A CF 4A 4F 93 4D 90 00 [12:47:49]wFMCommunicate OK [12:47:49]SAM_PROTO_SignData done [12:47:49]FM_MakeSignedData done [12:47:49]CreateOFDProtocolMessage [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 11 00 00 [12:47:49]Write to MH i2c: E2 08 00 B3 FF 80 11 00 00 00 00 00 00 2C [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 17 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 17 00 B3 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [12:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:49]wFMCommunicate OK [12:47:49]CreateOFDProtocolMessage done [12:47:49]OFDSenderStorePacket 191757 [12:47:49]StoreOFDPacket docnum=191757 [12:47:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 B6 07 01 4A 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 98 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 02 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D ED 02 00 35 04 06 00 91 26 06 6C 23 FD ED 63 1A CF 4A 4F 93 4D [12:47:49]CheckFolder [12:47:49]dirname=/storage/ofd_packets [12:47:49]CheckFolder done [12:47:49]ProducePacketName [12:47:49]name=ofd_packets/00191757 [12:47:49]NVStorageSaveData ofd_packets/00191757 [12:47:49]File name is /storage/ofd_packets/00191757 [12:47:49]Write 301 bytes [12:47:49]NVStorageSaveData done [12:47:49]OFDSenderStorePacket done [12:47:49]KKMCreateOFDPacket done [12:47:49]NVStorageSaveData kkm_last_timestamp [12:47:49]File name is /storage/kkm_last_timestamp [12:47:49]Write 4 bytes [12:47:49]NVStorageSaveData done [12:47:49]ExternCall_PrintAddStr [12:47:49]wPrintStart [12:47:49]Write to MH i2c: 01 00 00 B4 FF B3 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: 01 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: 01 07 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: 01 07 00 B4 FF 00 00 00 00 00 FF 0F C8 [12:47:49]RasterBufferAndPrint [12:47:49]line Счет N : (1)31062 [12:47:49]line ИНН: 02508201610067 [12:47:49]line Контрольно-Кассовый Чек [12:47:49]line ПРОДАЖА [12:47:49]line ТРК (МРК, ГНК) : 12 [12:47:49]line Товар: 2710124130 [12:47:49]line Аи-92-К-5 [12:47:49]line 15.000 * 66.90 [12:47:49]line = 1003.50 [12:47:49]line НДС 12% НСП 1% [12:47:49]line > о реализуемом товаре [12:47:49]line ОКРУГЛЕНИЕ: -0.50 [12:47:49]line ИТОГО: 1003.00 [12:47:49]line Внесено: 3000.00 [12:47:49]line СДАЧА: 1997.00 [12:47:49]line НСП 1% : 8.88 [12:47:49]line НДС 12% : 106.57 [12:47:49]line Наличными: 1003.00 [12:47:49]line Безнал.: 0.00 [12:47:49]line Место: АЗС № 170 "Партнер Нефть" [12:47:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:47:49]line СНО: Общий режим [12:47:49]line Чек 120 26.10.2024 12:48 [12:47:49]line Смена: 541 ФФД: 1.0 [12:47:49]line ЗНМ: 0300000110 [12:47:49]line РНМ: 0000000000091776 [12:47:49]line Версия ККМ: 001 [12:47:49]line ФМ: 0000000000871754 [12:47:49]line ФД: 191757 [12:47:49]line ФПД: 159592502535165 [12:47:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124802&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191757&fm=159592502535165&tin=02508201610067®Number=0000000000091776&sum=100300 [12:47:49]OFD Sender: Processing packet 191757 [packets to send 75, broken 74] [12:47:49]ProducePacketName [12:47:49]name=ofd_packets/00191757 [12:47:49]OFD Sender: To server: pG, [12:47:49]CommunicateWithHost lk.salyk.kg:30040 [12:47:49]ConnectInit lk.salyk.kg [12:47:49]written 0, free lines is 4095 [12:47:49]Connected sock=10 [12:47:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F3 B6 07 01 4A 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 98 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FE 87 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 87 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 29 00 00 00 00 07 04 06 00 CC 87 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 02 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D ED 02 00 35 04 06 00 91 26 06 6C 23 FD ED 63 1A CF 4A 4F 93 4D [12:47:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 28 47 00 8F 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0D ED 02 00 F4 03 04 00 CD 89 1C 67 B6 04 01 00 00 C4 DE AF FC D3 56 CF F1 [12:47:50]CommunicateWithHost err = 0 [12:47:50]CheckOFDResponse [12:47:50]1017 (14) - 77093643461234 [12:47:50]1041 (16) - 0000000000871754 [12:47:50]1040 (4) - 191757 [12:47:50]1012 (4) - 26.10.2024 06:18 [12:47:50]1206 (1) - 0 [12:47:50]OFD Sender: Remove packet 191757 [12:47:50]ProducePacketName [12:47:50]name=ofd_packets/00191757 [12:47:50]NVStorageDeleteData [12:47:50]Write to MH i2c: 01 00 00 DF FF DE [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: 01 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: 01 07 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: 01 07 00 DF FF 00 00 00 00 00 D3 0C C4 [12:47:50]RasterBufferAndPrint [12:47:50]line [12:47:50]line [12:47:50]line [12:47:50]line [12:47:50]line [12:47:50]written 0, free lines is 3289 [12:47:50]MH_Cut [12:47:50]Write to MH i2c: D1 01 00 E6 FF 01 B7 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: D1 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: D1 01 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: D1 01 00 E6 FF 00 B6 [12:47:50]Write to MH i2c: 01 00 00 E7 FF E6 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]OFD Sender: No OFD packet to send [12:47:51]*** Cut start [12:47:51]*** Partial cut [12:47:51]*** CUTSNS_PIN = 1 [12:47:51]*** CUTSNS_PIN = 0 [12:47:51]*** Brake cut motor [12:47:51]Read from MH i2c: 01 [12:47:51]MH_I2C_Read... [12:47:51]*** Stop cut motor [12:47:51]*** Cut end [12:47:51]Read from MH i2c: 01 07 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: 01 07 00 E7 FF 00 00 00 00 00 FF 0F FB [12:47:51]process_action close_receipt done [12:47:51]requested_data is exist [12:47:51]produce_requested_data [12:47:51]requested_item fm.sn is exist - process it [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 11 00 00 [12:47:51]Write to MH i2c: E2 08 00 E8 FF 80 11 00 00 00 00 00 00 61 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 17 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 17 00 E8 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [12:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:47:51]wFMCommunicate OK [12:47:51]requested_item fd.num is exist - process it [12:47:51]SAM_PROTO_GetFieldsCounters [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 13 00 00 [12:47:51]Write to MH i2c: E2 08 00 E9 FF 80 13 00 00 00 00 00 00 64 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 62 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 62 00 E9 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:47:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:51]wFMCommunicate OK [12:47:51]SAM_PROTO_GetFieldsCounters done [12:47:51]requested_item shift.num is exist - process it [12:47:51]requested_item shift.opened is exist - process it [12:47:51]req_shift_opened [12:47:51]FM_GetShiftState [12:47:51]SAM_PROTO_GetShiftState [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 13 01 00 [12:47:51]Write to MH i2c: E2 08 00 EA FF 80 13 01 00 00 00 00 00 66 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 0E 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 0E 00 EA FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DF [12:47:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:47:51]wFMCommunicate OK [12:47:51]SAM_PROTO_GetShiftState done [12:47:51]FM_GetShiftState done [12:47:51]req_shift_opened done [12:47:51]requested_item shift.open_date is exist - process it [12:47:51]req_shift_open_date [12:47:51]req_shift_open_date done [12:47:51]produce_requested_data done [12:47:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191757,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:47:51]process_action_free close_receipt [12:47:51]json_value_free [12:47:51]json_value_free done [12:47:51]process_json_proto returns [12:47:51]Send response to host [12:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191757,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:47:51]free response buf [12:47:51]execute_script done [12:47:51]execute_script returns [12:47:51]free content buf [12:47:51]Sock 8.Close socket [12:47:51]Sock 8.Thread stoped [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:07]accept exits with 9 [12:49:07]New connection [12:49:07]New thread 3066817892 created [12:49:07]Thread 3066961252 joined [12:49:07]Waiting for new connection... [12:49:07] Sock 9.Parse request [12:49:07]Sock 9.Check first char [12:49:07]Sock 9.First char is OK [12:49:07]request: POST /json_proto HTTP/1.0 [12:49:07]Method: POST [12:49:07]URL: /json_proto [12:49:07]Method is POST - this is cgi request [12:49:07]url: /json_proto [12:49:07]query_string will be loaded in cgi processing [12:49:07]execute_cgi json_proto POST (null) [12:49:07]execute_cgi path=json_proto method=POST [12:49:07]POST find Content-Length [12:49:07]Host: 172.17.63.131:8080 [12:49:07]Content-Length: 676 [12:49:07]Content-Type: application/json [12:49:07] [12:49:07]POST finish read [12:49:07]Found Content-Length = 676 [12:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:07]execute_script... [12:49: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)31063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:07]POST & json_proto [12:49:07]process_json_proto [12:49:07]json parsed OK: [12:49:07]protocol is kg_v1.0 [12:49:07]action value=close_receipt [12:49:07]process_action close_receipt [12:49:07]cmd_close_receipt [12:49:07]MH_GetDate [12:49:07]Write to MH i2c: F0 00 00 EB FF D9 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 09 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: F0 09 00 EB FF 00 52 E5 1C 67 22 05 6E 64 95 [12:49:07]GetLastDocTimeStamp 1729946882 [12:49:07]current date 1729946962 [12:49:07]FM_GetShiftState [12:49:07]SAM_PROTO_GetShiftState [12:49:07]wFMCommunicate request_size=4 [12:49:07]MH_SAM_APDU [12:49:07]CAPDU: 80 13 01 00 [12:49:07]Write to MH i2c: E2 08 00 EC FF 80 13 01 00 00 00 00 00 68 [12:49:07]Write i2c OK [12:49:07]MH_I2C_Read... [12:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:07]Read from MH i2c: E2 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0E 00 [12:49:07]MH_I2C_Read... [12:49:07]Read from MH i2c: E2 0E 00 EC FF 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E1 [12:49:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:49:07]wFMCommunicate OK [12:49:07]SAM_PROTO_GetShiftState done [12:49:07]FM_GetShiftState done [12:49:07]opened in 1729902770 [12:49:07]opened+sec_in_day 1729989170 [12:49:07]quantity*price = 20003 [12:49:07]sum+1 = 20004 [12:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 121 26.10.2024 12:49 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191758 ФПД: 4586256800601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124922&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191758&fm=4586256800601&tin=02508201610067®Number=0000000000091776&sum=20000 [12:49:09]StoreToDocumentArchive [12:49:09]shift 541 fd 191758 [12:49:09]save to /storage/0541/doc_00191758 [12:49:09]save last doc name /storage/0541/doc_00191758 to /storage/kkm_last_doc_name [12:49:09]save OK [12:49:09]Clear old archive folders... [12:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:09]tlvbuf is 016252F0 [12:49:09]SAM_PROTO_ClearQueue [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 09 00 00 [12:49:09]Write to MH i2c: E2 08 00 F9 FF 80 09 00 00 00 00 00 00 6A [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 F9 FF 00 90 00 6C [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_ClearQueue done [12:49:09]KKMCreateOFDPacket [12:49:09]OFDProtocolAddRootSTLVToBuf [12:49:09]FM_MakeSignedData [12:49:09]FM_MakeSignedData [12:49:09]SAM_PROTO_SignData [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 01 02 [12:49:09]Write to MH i2c: E2 08 00 FA FF 80 0D 01 02 00 00 00 00 72 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 FA FF 00 90 00 6D [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]wFMCommunicate request_size=255 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 52 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E ED 02 00 35 04 06 00 04 [12:49:09]Write to MH i2c: E2 02 01 FB FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 52 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E ED 02 00 35 04 06 00 04 00 00 1B [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 FB FF 00 90 00 6E [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]wFMCommunicate request_size=10 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 02 02 05 2B D2 35 1B 59 [12:49:09]Write to MH i2c: E2 0D 00 FC FF 80 0D 02 02 05 00 2B D2 35 1B 59 00 00 25 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 03 00 FC FF 00 90 00 6F [12:49:09]RAPDU: 90 00 [12:49:09]wFMCommunicate OK [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 0D 03 02 [12:49:09]Write to MH i2c: E2 08 00 FD FF 80 0D 03 02 00 00 00 00 77 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0B 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 0B 00 FD FF 00 DF 85 EB 3C 87 FD 3D 81 90 00 45 [12:49:09]RAPDU: DF 85 EB 3C 87 FD 3D 81 90 00 [12:49:09]wFMCommunicate OK [12:49:09]SAM_PROTO_SignData done [12:49:09]FM_MakeSignedData done [12:49:09]CreateOFDProtocolMessage [12:49:09]wFMCommunicate request_size=4 [12:49:09]MH_SAM_APDU [12:49:09]CAPDU: 80 11 00 00 [12:49:09]Write to MH i2c: E2 08 00 FE FF 80 11 00 00 00 00 00 00 77 [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:09]Read from MH i2c: E2 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: E2 17 00 FE FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [12:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:49:09]wFMCommunicate OK [12:49:09]CreateOFDProtocolMessage done [12:49:09]OFDSenderStorePacket 191758 [12:49:09]StoreOFDPacket docnum=191758 [12:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 BC 07 01 2A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 52 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E ED 02 00 35 04 06 00 04 2B D2 35 1B 59 DF 85 EB 3C 87 FD 3D 81 [12:49:09]CheckFolder [12:49:09]dirname=/storage/ofd_packets [12:49:09]CheckFolder done [12:49:09]ProducePacketName [12:49:09]name=ofd_packets/00191758 [12:49:09]NVStorageSaveData ofd_packets/00191758 [12:49:09]File name is /storage/ofd_packets/00191758 [12:49:09]Write 301 bytes [12:49:09]NVStorageSaveData done [12:49:09]OFDSenderStorePacket done [12:49:09]KKMCreateOFDPacket done [12:49:09]NVStorageSaveData kkm_last_timestamp [12:49:09]File name is /storage/kkm_last_timestamp [12:49:09]Write 4 bytes [12:49:09]NVStorageSaveData done [12:49:09]ExternCall_PrintAddStr [12:49:09]wPrintStart [12:49:09]Write to MH i2c: 01 00 00 FF FF FE [12:49:09]Write i2c OK [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 [12:49:09]MH_I2C_Read... [12:49:09]Read from MH i2c: 01 07 00 FF FF 00 00 00 00 00 FF 0F 13 [12:49:09]RasterBufferAndPrint [12:49:09]line Счет N : (1)31063 [12:49:09]line ИНН: 02508201610067 [12:49:09]line Контрольно-Кассовый Чек [12:49:09]line ПРОДАЖА [12:49:09]line ТРК (МРК, ГНК) : 21 [12:49:09]line Товар: 2710124130 [12:49:09]line Аи-92-К-5 [12:49:09]line 2.990 * 66.90 [12:49:09]line = 200.03 [12:49:09]line НДС 12% НСП 1% [12:49:09]line > о реализуемом товаре [12:49:09]line ОКРУГЛЕНИЕ: -0.03 [12:49:09]line ИТОГО: 200.00 [12:49:09]line Внесено: 200.00 [12:49:09]line СДАЧА: 0.00 [12:49:09]line НСП 1% : 1.77 [12:49:09]line НДС 12% : 21.24 [12:49:09]line Наличными: 200.00 [12:49:09]line Безнал.: 0.00 [12:49:09]line Место: АЗС № 170 "Партнер Нефть" [12:49:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:49:09]line СНО: Общий режим [12:49:09]line Чек 121 26.10.2024 12:49 [12:49:09]line Смена: 541 ФФД: 1.0 [12:49:09]line ЗНМ: 0300000110 [12:49:09]line РНМ: 0000000000091776 [12:49:09]line Версия ККМ: 001 [12:49:09]line ФМ: 0000000000871754 [12:49:09]line ФД: 191758 [12:49:09]line ФПД: 4586256800601 [12:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T124922&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191758&fm=4586256800601&tin=02508201610067®Number=0000000000091776&sum=20000 [12:49:10]OFD Sender: Processing packet 191758 [packets to send 75, broken 74] [12:49:10]ProducePacketName [12:49:10]name=ofd_packets/00191758 [12:49:10]OFD Sender: To server: pG, [12:49:10]CommunicateWithHost lk.salyk.kg:30040 [12:49:10]ConnectInit lk.salyk.kg [12:49:10]written 0, free lines is 4095 [12:49:10]Connected sock=10 [12:49:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 BC 07 01 2A E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 52 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E ED 02 00 35 04 06 00 04 2B D2 35 1B 59 DF 85 EB 3C 87 FD 3D 81 [12:49:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D2 67 47 00 08 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0E ED 02 00 F4 03 04 00 1D 8A 1C 67 B6 04 01 00 00 EA C0 25 C1 66 0A 17 2E [12:49:10]CommunicateWithHost err = 0 [12:49:10]CheckOFDResponse [12:49:10]1017 (14) - 77093643461234 [12:49:10]1041 (16) - 0000000000871754 [12:49:10]1040 (4) - 191758 [12:49:10]1012 (4) - 26.10.2024 06:20 [12:49:10]1206 (1) - 0 [12:49:10]OFD Sender: Remove packet 191758 [12:49:10]ProducePacketName [12:49:10]name=ofd_packets/00191758 [12:49:10]NVStorageDeleteData [12:49:10]Write to MH i2c: 01 00 00 2B 00 2B [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: 01 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: 01 07 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: 01 07 00 2B 00 00 00 00 00 00 C2 0C 00 [12:49:10]RasterBufferAndPrint [12:49:10]line [12:49:10]line [12:49:10]line [12:49:10]line [12:49:10]line [12:49:10]written 0, free lines is 3275 [12:49:10]MH_Cut [12:49:10]Write to MH i2c: D1 01 00 32 00 01 04 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: D1 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: D1 01 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: D1 01 00 32 00 00 03 [12:49:10]Write to MH i2c: 01 00 00 33 00 33 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]OFD Sender: No OFD packet to send [12:49:11]*** Cut start [12:49:11]*** Partial cut [12:49:11]*** CUTSNS_PIN = 1 [12:49:11]*** CUTSNS_PIN = 0 [12:49:11]*** Brake cut motor [12:49:11]Read from MH i2c: 01 [12:49:11]MH_I2C_Read... [12:49:11]*** Stop cut motor [12:49:11]*** Cut end [12:49:11]Read from MH i2c: 01 07 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: 01 07 00 33 00 00 00 00 00 00 FF 0F 48 [12:49:11]process_action close_receipt done [12:49:11]requested_data is exist [12:49:11]produce_requested_data [12:49:11]requested_item fm.sn is exist - process it [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 11 00 00 [12:49:11]Write to MH i2c: E2 08 00 34 00 80 11 00 00 00 00 00 00 AE [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:11]Read from MH i2c: E2 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 17 00 [12:49:11]MH_I2C_Read... [12:49:11]Read from MH i2c: E2 17 00 34 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [12:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:49:11]wFMCommunicate OK [12:49:11]requested_item fd.num is exist - process it [12:49:11]SAM_PROTO_GetFieldsCounters [12:49:11]wFMCommunicate request_size=4 [12:49:11]MH_SAM_APDU [12:49:11]CAPDU: 80 13 00 00 [12:49:11]Write to MH i2c: E2 08 00 35 00 80 13 00 00 00 00 00 00 B1 [12:49:11]Write i2c OK [12:49:11]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 62 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 62 00 35 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_GetFieldsCounters done [12:49:12]requested_item shift.num is exist - process it [12:49:12]requested_item shift.opened is exist - process it [12:49:12]req_shift_opened [12:49:12]FM_GetShiftState [12:49:12]SAM_PROTO_GetShiftState [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 13 01 00 [12:49:12]Write to MH i2c: E2 08 00 36 00 80 13 01 00 00 00 00 00 B3 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0E 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0E 00 36 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2C [12:49:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_GetShiftState done [12:49:12]FM_GetShiftState done [12:49:12]req_shift_opened done [12:49:12]requested_item shift.open_date is exist - process it [12:49:12]req_shift_open_date [12:49:12]req_shift_open_date done [12:49:12]produce_requested_data done [12:49:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191758,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:49:12]process_action_free close_receipt [12:49:12]json_value_free [12:49:12]json_value_free done [12:49:12]process_json_proto returns [12:49:12]Send response to host [12:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191758,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:49:12]free response buf [12:49:12]execute_script done [12:49:12]execute_script returns [12:49:12]free content buf [12:49:12]Sock 9.Close socket [12:49:12]Sock 9.Thread stoped [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:13]accept exits with 8 [12:51:13]New connection [12:51:13]New thread 3066961252 created [12:51:13]Thread 3066817892 joined [12:51:13]Waiting for new connection... [12:51:13] Sock 8.Parse request [12:51:13]Sock 8.Check first char [12:51:13]Sock 8.First char is OK [12:51:13]request: POST /json_proto HTTP/1.0 [12:51:13]Method: POST [12:51:13]URL: /json_proto [12:51:13]Method is POST - this is cgi request [12:51:13]url: /json_proto [12:51:13]query_string will be loaded in cgi processing [12:51:13]execute_cgi json_proto POST (null) [12:51:13]execute_cgi path=json_proto method=POST [12:51:13]POST find Content-Length [12:51:13]Host: 172.17.63.131:8080 [12:51:13]Content-Length: 676 [12:51:13]Content-Type: application/json [12:51:13] [12:51:13]POST finish read [12:51:13]Found Content-Length = 676 [12:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:13]execute_script... [12:51: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)31064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.270, "sum" : 620.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:13]POST & json_proto [12:51:13]process_json_proto [12:51:13]json parsed OK: [12:51:13]protocol is kg_v1.0 [12:51:13]action value=close_receipt [12:51:13]process_action close_receipt [12:51:13]cmd_close_receipt [12:51:13]MH_GetDate [12:51:13]Write to MH i2c: F0 00 00 37 00 26 [12:51:13]Write i2c OK [12:51:13]MH_I2C_Read... [12:51:13]Read from MH i2c: F0 [12:51:13]MH_I2C_Read... [12:51:13]Read from MH i2c: F0 09 00 [12:51:13]MH_I2C_Read... [12:51:13]Read from MH i2c: F0 09 00 37 00 00 D0 E5 1C 67 22 05 6E 64 60 [12:51:13]GetLastDocTimeStamp 1729946962 [12:51:13]current date 1729947088 [12:51:13]FM_GetShiftState [12:51:13]SAM_PROTO_GetShiftState [12:51:13]wFMCommunicate request_size=4 [12:51:13]MH_SAM_APDU [12:51:13]CAPDU: 80 13 01 00 [12:51:13]Write to MH i2c: E2 08 00 38 00 80 13 01 00 00 00 00 00 B5 [12:51:13]Write i2c OK [12:51:13]MH_I2C_Read... [12:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:13]Read from MH i2c: E2 [12:51:13]MH_I2C_Read... [12:51:13]Read from MH i2c: E2 0E 00 [12:51:13]MH_I2C_Read... [12:51:13]Read from MH i2c: E2 0E 00 38 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2E [12:51:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:51:13]wFMCommunicate OK [12:51:13]SAM_PROTO_GetShiftState done [12:51:13]FM_GetShiftState done [12:51:13]opened in 1729902770 [12:51:13]opened+sec_in_day 1729989170 [12:51:13]quantity*price = 62016 [12:51:13]sum+1 = 62017 [12:51:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.86 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 122 26.10.2024 12:51 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191759 ФПД: 247408963336861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191759&fm=247408963336861&tin=02508201610067®Number=0000000000091776&sum=62000 [12:51:14]StoreToDocumentArchive [12:51:14]shift 541 fd 191759 [12:51:14]save to /storage/0541/doc_00191759 [12:51:14]save last doc name /storage/0541/doc_00191759 to /storage/kkm_last_doc_name [12:51:14]save OK [12:51:14]Clear old archive folders... [12:51:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:14]tlvbuf is 016CEB50 [12:51:14]SAM_PROTO_ClearQueue [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 09 00 00 [12:51:14]Write to MH i2c: E2 08 00 45 00 80 09 00 00 00 00 00 00 B7 [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:14]Read from MH i2c: E2 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 [12:51:14]MH_I2C_Read... [12:51:14]Read from MH i2c: E2 03 00 45 00 00 90 00 B9 [12:51:14]RAPDU: 90 00 [12:51:14]wFMCommunicate OK [12:51:14]SAM_PROTO_ClearQueue done [12:51:14]KKMCreateOFDPacket [12:51:14]OFDProtocolAddRootSTLVToBuf [12:51:14]FM_MakeSignedData [12:51:14]FM_MakeSignedData [12:51:14]SAM_PROTO_SignData [12:51:14]wFMCommunicate request_size=4 [12:51:14]MH_SAM_APDU [12:51:14]CAPDU: 80 0D 01 02 [12:51:14]Write to MH i2c: E2 08 00 46 00 80 0D 01 02 00 00 00 00 BF [12:51:14]Write i2c OK [12:51:14]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 46 00 00 90 00 BA [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=255 [12:51:15]MH_SAM_APDU [12:51: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 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D0 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F ED 02 00 35 04 06 00 E1 [12:51:15]Write to MH i2c: E2 02 01 47 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 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D0 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F ED 02 00 35 04 06 00 E1 00 00 84 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 47 00 00 90 00 BB [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=10 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 02 02 05 04 63 5F BA 9D [12:51:15]Write to MH i2c: E2 0D 00 48 00 80 0D 02 02 05 00 04 63 5F BA 9D 00 00 E9 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 03 00 48 00 00 90 00 BC [12:51:15]RAPDU: 90 00 [12:51:15]wFMCommunicate OK [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 0D 03 02 [12:51:15]Write to MH i2c: E2 08 00 49 00 80 0D 03 02 00 00 00 00 C4 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0B 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 0B 00 49 00 00 7E 38 22 DF E9 C4 33 22 90 00 7E [12:51:15]RAPDU: 7E 38 22 DF E9 C4 33 22 90 00 [12:51:15]wFMCommunicate OK [12:51:15]SAM_PROTO_SignData done [12:51:15]FM_MakeSignedData done [12:51:15]CreateOFDProtocolMessage [12:51:15]wFMCommunicate request_size=4 [12:51:15]MH_SAM_APDU [12:51:15]CAPDU: 80 11 00 00 [12:51:15]Write to MH i2c: E2 08 00 4A 00 80 11 00 00 00 00 00 00 C4 [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:15]Read from MH i2c: E2 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: E2 17 00 4A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [12:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:51:15]wFMCommunicate OK [12:51:15]CreateOFDProtocolMessage done [12:51:15]OFDSenderStorePacket 191759 [12:51:15]StoreOFDPacket docnum=191759 [12:51:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 3F 07 01 04 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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D0 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F ED 02 00 35 04 06 00 E1 04 63 5F BA 9D 7E 38 22 DF E9 C4 33 22 [12:51:15]CheckFolder [12:51:15]dirname=/storage/ofd_packets [12:51:15]CheckFolder done [12:51:15]ProducePacketName [12:51:15]name=ofd_packets/00191759 [12:51:15]NVStorageSaveData ofd_packets/00191759 [12:51:15]File name is /storage/ofd_packets/00191759 [12:51:15]Write 301 bytes [12:51:15]NVStorageSaveData done [12:51:15]OFDSenderStorePacket done [12:51:15]KKMCreateOFDPacket done [12:51:15]NVStorageSaveData kkm_last_timestamp [12:51:15]File name is /storage/kkm_last_timestamp [12:51:15]Write 4 bytes [12:51:15]NVStorageSaveData done [12:51:15]ExternCall_PrintAddStr [12:51:15]wPrintStart [12:51:15]Write to MH i2c: 01 00 00 4B 00 4B [12:51:15]Write i2c OK [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 07 00 [12:51:15]MH_I2C_Read... [12:51:15]Read from MH i2c: 01 07 00 4B 00 00 00 00 00 00 FF 0F 60 [12:51:15]RasterBufferAndPrint [12:51:15]line Счет N : (1)31064 [12:51:15]line ИНН: 02508201610067 [12:51:15]line Контрольно-Кассовый Чек [12:51:15]line ПРОДАЖА [12:51:15]line ТРК (МРК, ГНК) : 21 [12:51:15]line Товар: 2710124130 [12:51:15]line Аи-92-К-5 [12:51:15]line 9.270 * 66.90 [12:51:15]line = 620.16 [12:51:15]line НДС 12% НСП 1% [12:51:15]line > о реализуемом товаре [12:51:15]line ОКРУГЛЕНИЕ: -0.16 [12:51:15]line ИТОГО: 620.00 [12:51:15]line Внесено: 620.00 [12:51:15]line СДАЧА: 0.00 [12:51:15]line НСП 1% : 5.49 [12:51:15]line НДС 12% : 65.86 [12:51:15]line Наличными: 620.00 [12:51:15]line Безнал.: 0.00 [12:51:15]line Место: АЗС № 170 "Партнер Нефть" [12:51:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:51:15]line СНО: Общий режим [12:51:15]line Чек 122 26.10.2024 12:51 [12:51:15]line Смена: 541 ФФД: 1.0 [12:51:15]line ЗНМ: 0300000110 [12:51:15]line РНМ: 0000000000091776 [12:51:15]line Версия ККМ: 001 [12:51:15]line ФМ: 0000000000871754 [12:51:15]line ФД: 191759 [12:51:15]line ФПД: 247408963336861 [12:51:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125128&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191759&fm=247408963336861&tin=02508201610067®Number=0000000000091776&sum=62000 [12:51:15]OFD Sender: Processing packet 191759 [packets to send 75, broken 74] [12:51:15]ProducePacketName [12:51:15]name=ofd_packets/00191759 [12:51:15]OFD Sender: To server: pG, [12:51:15]CommunicateWithHost lk.salyk.kg:30040 [12:51:15]ConnectInit lk.salyk.kg [12:51:15]written 0, free lines is 4095 [12:51:15]Connected sock=10 [12:51:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 3F 07 01 04 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 36 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 D0 E5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F ED 02 00 35 04 06 00 E1 04 63 5F BA 9D 7E 38 22 DF E9 C4 33 22 [12:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 57 6F 47 00 DF 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 0F ED 02 00 F4 03 04 00 9B 8A 1C 67 B6 04 01 00 00 C6 92 19 97 87 E4 E2 EC [12:51:16]CommunicateWithHost err = 0 [12:51:16]CheckOFDResponse [12:51:16]1017 (14) - 77093643461234 [12:51:16]1041 (16) - 0000000000871754 [12:51:16]1040 (4) - 191759 [12:51:16]1012 (4) - 26.10.2024 06:22 [12:51:16]1206 (1) - 0 [12:51:16]OFD Sender: Remove packet 191759 [12:51:16]ProducePacketName [12:51:16]name=ofd_packets/00191759 [12:51:16]NVStorageDeleteData [12:51:16]Write to MH i2c: 01 00 00 76 00 76 [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: 01 07 00 76 00 00 00 00 00 00 C6 0C 4F [12:51:16]RasterBufferAndPrint [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]line [12:51:16]written 0, free lines is 3279 [12:51:16]MH_Cut [12:51:16]Write to MH i2c: D1 01 00 7D 00 01 4F [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 01 00 [12:51:16]MH_I2C_Read... [12:51:16]Read from MH i2c: D1 01 00 7D 00 00 4E [12:51:16]Write to MH i2c: 01 00 00 7E 00 7E [12:51:16]Write i2c OK [12:51:16]MH_I2C_Read... [12:51:16]OFD Sender: No OFD packet to send [12:51:17]*** Cut start [12:51:17]*** Partial cut [12:51:17]*** CUTSNS_PIN = 1 [12:51:17]*** CUTSNS_PIN = 0 [12:51:17]*** Brake cut motor [12:51:17]Read from MH i2c: 01 [12:51:17]MH_I2C_Read... [12:51:17]*** Stop cut motor [12:51:17]*** Cut end [12:51:17]Read from MH i2c: 01 07 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: 01 07 00 7E 00 00 00 00 00 00 FF 0F 93 [12:51:17]process_action close_receipt done [12:51:17]requested_data is exist [12:51:17]produce_requested_data [12:51:17]requested_item fm.sn is exist - process it [12:51:17]wFMCommunicate request_size=4 [12:51:17]MH_SAM_APDU [12:51:17]CAPDU: 80 11 00 00 [12:51:17]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:17]Read from MH i2c: E2 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 17 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [12:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:51:17]wFMCommunicate OK [12:51:17]requested_item fd.num is exist - process it [12:51:17]SAM_PROTO_GetFieldsCounters [12:51:17]wFMCommunicate request_size=4 [12:51:17]MH_SAM_APDU [12:51:17]CAPDU: 80 13 00 00 [12:51:17]Write to MH i2c: E2 08 00 80 00 80 13 00 00 00 00 00 00 FC [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:17]Read from MH i2c: E2 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 62 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 62 00 80 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12:51:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 0F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:17]wFMCommunicate OK [12:51:17]SAM_PROTO_GetFieldsCounters done [12:51:17]requested_item shift.num is exist - process it [12:51:17]requested_item shift.opened is exist - process it [12:51:17]req_shift_opened [12:51:17]FM_GetShiftState [12:51:17]SAM_PROTO_GetShiftState [12:51:17]wFMCommunicate request_size=4 [12:51:17]MH_SAM_APDU [12:51:17]CAPDU: 80 13 01 00 [12:51:17]Write to MH i2c: E2 08 00 81 00 80 13 01 00 00 00 00 00 FE [12:51:17]Write i2c OK [12:51:17]MH_I2C_Read... [12:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:17]Read from MH i2c: E2 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 0E 00 [12:51:17]MH_I2C_Read... [12:51:17]Read from MH i2c: E2 0E 00 81 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 77 [12:51:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:51:17]wFMCommunicate OK [12:51:17]SAM_PROTO_GetShiftState done [12:51:17]FM_GetShiftState done [12:51:17]req_shift_opened done [12:51:17]requested_item shift.open_date is exist - process it [12:51:17]req_shift_open_date [12:51:17]req_shift_open_date done [12:51:17]produce_requested_data done [12:51:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191759,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:51:17]process_action_free close_receipt [12:51:17]json_value_free [12:51:17]json_value_free done [12:51:17]process_json_proto returns [12:51:17]Send response to host [12:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191759,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:51:17]free response buf [12:51:17]execute_script done [12:51:17]execute_script returns [12:51:17]free content buf [12:51:17]Sock 8.Close socket [12:51:17]Sock 8.Thread stoped [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:28]accept exits with 9 [12:59:28]New connection [12:59:28]New thread 3066817892 created [12:59:28]Thread 3066961252 joined [12:59:28]Waiting for new connection... [12:59:28] Sock 9.Parse request [12:59:28]Sock 9.Check first char [12:59:28]Sock 9.First char is OK [12:59:28]request: POST /json_proto HTTP/1.0 [12:59:28]Method: POST [12:59:28]URL: /json_proto [12:59:28]Method is POST - this is cgi request [12:59:28]url: /json_proto [12:59:28]query_string will be loaded in cgi processing [12:59:28]execute_cgi json_proto POST (null) [12:59:28]execute_cgi path=json_proto method=POST [12:59:28]POST find Content-Length [12:59:28]Host: 172.17.63.131:8080 [12:59:28]Content-Length: 676 [12:59:28]Content-Type: application/json [12:59:28] [12:59:28]POST finish read [12:59:28]Found Content-Length = 676 [12:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:28]execute_script... [12:59:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:28]POST & json_proto [12:59:28]process_json_proto [12:59:28]json parsed OK: [12:59:28]protocol is kg_v1.0 [12:59:28]action value=close_receipt [12:59:28]process_action close_receipt [12:59:28]cmd_close_receipt [12:59:28]MH_GetDate [12:59:28]Write to MH i2c: F0 00 00 82 00 71 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: F0 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: F0 09 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: F0 09 00 82 00 00 BE E7 1C 67 22 05 6E 64 9B [12:59:28]GetLastDocTimeStamp 1729947088 [12:59:28]current date 1729947582 [12:59:28]FM_GetShiftState [12:59:28]SAM_PROTO_GetShiftState [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 13 01 00 [12:59:28]Write to MH i2c: E2 08 00 83 00 80 13 01 00 00 00 00 00 00 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0E 00 83 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 79 [12:59:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_GetShiftState done [12:59:28]FM_GetShiftState done [12:59:28]opened in 1729902770 [12:59:28]opened+sec_in_day 1729989170 [12:59:28]quantity*price = 15052 [12:59:28]sum+1 = 15054 [12:59:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 123 26.10.2024 12:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191760 ФПД: 263869911493181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125942&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191760&fm=263869911493181&tin=02508201610067®Number=0000000000091776&sum=15000 [12:59:29]StoreToDocumentArchive [12:59:29]shift 541 fd 191760 [12:59:29]save to /storage/0541/doc_00191760 [12:59:29]save last doc name /storage/0541/doc_00191760 to /storage/kkm_last_doc_name [12:59:29]save OK [12:59:29]Clear old archive folders... [12:59:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:29]tlvbuf is 01B0CC70 [12:59:29]SAM_PROTO_ClearQueue [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 09 00 00 [12:59:29]Write to MH i2c: E2 08 00 90 00 80 09 00 00 00 00 00 00 02 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 90 00 00 90 00 04 [12:59:29]RAPDU: 90 00 [12:59:29]wFMCommunicate OK [12:59:29]SAM_PROTO_ClearQueue done [12:59:29]KKMCreateOFDPacket [12:59:29]OFDProtocolAddRootSTLVToBuf [12:59:29]FM_MakeSignedData [12:59:29]FM_MakeSignedData [12:59:29]SAM_PROTO_SignData [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 0D 01 02 [12:59:29]Write to MH i2c: E2 08 00 91 00 80 0D 01 02 00 00 00 00 0A [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 91 00 00 90 00 05 [12:59:29]RAPDU: 90 00 [12:59:29]wFMCommunicate OK [12:59:29]wFMCommunicate request_size=255 [12:59:29]MH_SAM_APDU [12:59: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BE E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 ED 02 00 35 04 06 00 EF [12:59:29]Write to MH i2c: E2 02 01 92 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BE E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 ED 02 00 35 04 06 00 EF 00 00 4B [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 92 00 00 90 00 06 [12:59:29]RAPDU: 90 00 [12:59:29]wFMCommunicate OK [12:59:29]wFMCommunicate request_size=10 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 0D 02 02 05 FD 00 57 6A 3D [12:59:29]Write to MH i2c: E2 0D 00 93 00 80 0D 02 02 05 00 FD 00 57 6A 3D 00 00 12 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 03 00 93 00 00 90 00 07 [12:59:29]RAPDU: 90 00 [12:59:29]wFMCommunicate OK [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 0D 03 02 [12:59:29]Write to MH i2c: E2 08 00 94 00 80 0D 03 02 00 00 00 00 0F [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 0B 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 0B 00 94 00 00 A8 70 30 28 9C 62 18 E0 90 00 76 [12:59:29]RAPDU: A8 70 30 28 9C 62 18 E0 90 00 [12:59:29]wFMCommunicate OK [12:59:29]SAM_PROTO_SignData done [12:59:29]FM_MakeSignedData done [12:59:29]CreateOFDProtocolMessage [12:59:29]wFMCommunicate request_size=4 [12:59:29]MH_SAM_APDU [12:59:29]CAPDU: 80 11 00 00 [12:59:29]Write to MH i2c: E2 08 00 95 00 80 11 00 00 00 00 00 00 0F [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:29]Read from MH i2c: E2 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: E2 17 00 95 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [12:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:29]wFMCommunicate OK [12:59:29]CreateOFDProtocolMessage done [12:59:29]OFDSenderStorePacket 191760 [12:59:29]StoreOFDPacket docnum=191760 [12:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C 18 07 01 59 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BE E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 ED 02 00 35 04 06 00 EF FD 00 57 6A 3D A8 70 30 28 9C 62 18 E0 [12:59:29]CheckFolder [12:59:29]dirname=/storage/ofd_packets [12:59:29]CheckFolder done [12:59:29]ProducePacketName [12:59:29]name=ofd_packets/00191760 [12:59:29]NVStorageSaveData ofd_packets/00191760 [12:59:29]File name is /storage/ofd_packets/00191760 [12:59:29]Write 301 bytes [12:59:29]NVStorageSaveData done [12:59:29]OFDSenderStorePacket done [12:59:29]KKMCreateOFDPacket done [12:59:29]NVStorageSaveData kkm_last_timestamp [12:59:29]File name is /storage/kkm_last_timestamp [12:59:29]Write 4 bytes [12:59:29]NVStorageSaveData done [12:59:29]ExternCall_PrintAddStr [12:59:29]wPrintStart [12:59:29]Write to MH i2c: 01 00 00 96 00 96 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [12:59:29]RasterBufferAndPrint [12:59:29]line Счет N : (1)31065 [12:59:29]line ИНН: 02508201610067 [12:59:29]line Контрольно-Кассовый Чек [12:59:29]line ПРОДАЖА [12:59:29]line ТРК (МРК, ГНК) : 12 [12:59:29]line Товар: 2710124130 [12:59:29]line Аи-92-К-5 [12:59:29]line 2.250 * 66.90 [12:59:29]line = 150.53 [12:59:29]line НДС 12% НСП 1% [12:59:29]line > о реализуемом товаре [12:59:29]line ОКРУГЛЕНИЕ: -0.53 [12:59:29]line ИТОГО: 150.00 [12:59:29]line Внесено: 150.00 [12:59:29]line СДАЧА: 0.00 [12:59:29]line НСП 1% : 1.33 [12:59:29]line НДС 12% : 15.98 [12:59:29]line Наличными: 150.00 [12:59:29]line Безнал.: 0.00 [12:59:29]line Место: АЗС № 170 "Партнер Нефть" [12:59:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [12:59:29]line СНО: Общий режим [12:59:29]line Чек 123 26.10.2024 12:59 [12:59:29]line Смена: 541 ФФД: 1.0 [12:59:29]line ЗНМ: 0300000110 [12:59:29]line РНМ: 0000000000091776 [12:59:29]line Версия ККМ: 001 [12:59:29]line ФМ: 0000000000871754 [12:59:29]line ФД: 191760 [12:59:29]line ФПД: 263869911493181 [12:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T125942&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191760&fm=263869911493181&tin=02508201610067®Number=0000000000091776&sum=15000 [12:59:30]OFD Sender: Processing packet 191760 [packets to send 75, broken 74] [12:59:30]ProducePacketName [12:59:30]name=ofd_packets/00191760 [12:59:30]OFD Sender: To server: pG, [12:59:30]CommunicateWithHost lk.salyk.kg:30040 [12:59:30]ConnectInit lk.salyk.kg [12:59:30]written 0, free lines is 4095 [12:59:30]Connected sock=10 [12:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1C 18 07 01 59 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 BE E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 ED 02 00 35 04 06 00 EF FD 00 57 6A 3D A8 70 30 28 9C 62 18 E0 [12:59:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C4 F6 47 00 E0 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 10 ED 02 00 F4 03 04 00 8A 8C 1C 67 B6 04 01 00 00 B2 0E A5 A0 AF CE 18 DE [12:59:30]CommunicateWithHost err = 0 [12:59:30]CheckOFDResponse [12:59:30]1017 (14) - 77093643461234 [12:59:30]1041 (16) - 0000000000871754 [12:59:30]1040 (4) - 191760 [12:59:30]1012 (4) - 26.10.2024 06:30 [12:59:30]1206 (1) - 0 [12:59:30]OFD Sender: Remove packet 191760 [12:59:30]ProducePacketName [12:59:30]name=ofd_packets/00191760 [12:59:30]NVStorageDeleteData [12:59:30]Write to MH i2c: 01 00 00 C1 00 C1 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: 01 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: 01 07 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 C0 0C 94 [12:59:30]RasterBufferAndPrint [12:59:30]line [12:59:30]line [12:59:30]line [12:59:30]line [12:59:30]line [12:59:30]written 0, free lines is 3273 [12:59:30]MH_Cut [12:59:30]Write to MH i2c: D1 01 00 C8 00 01 9A [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: D1 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: D1 01 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: D1 01 00 C8 00 00 99 [12:59:30]Write to MH i2c: 01 00 00 C9 00 C9 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:31]OFD Sender: No OFD packet to send [12:59:31]*** Cut start [12:59:31]*** Partial cut [12:59:31]*** CUTSNS_PIN = 1 [12:59:31]*** CUTSNS_PIN = 0 [12:59:31]*** Brake cut motor [12:59:32]Read from MH i2c: 01 [12:59:32]MH_I2C_Read... [12:59:32]*** Stop cut motor [12:59:32]*** Cut end [12:59:32]Read from MH i2c: 01 07 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: 01 07 00 C9 00 00 00 00 00 00 FF 0F DE [12:59:32]process_action close_receipt done [12:59:32]requested_data is exist [12:59:32]produce_requested_data [12:59:32]requested_item fm.sn is exist - process it [12:59:32]wFMCommunicate request_size=4 [12:59:32]MH_SAM_APDU [12:59:32]CAPDU: 80 11 00 00 [12:59:32]Write to MH i2c: E2 08 00 CA 00 80 11 00 00 00 00 00 00 44 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:32]Read from MH i2c: E2 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 17 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 17 00 CA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [12:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [12:59:32]wFMCommunicate OK [12:59:32]requested_item fd.num is exist - process it [12:59:32]SAM_PROTO_GetFieldsCounters [12:59:32]wFMCommunicate request_size=4 [12:59:32]MH_SAM_APDU [12:59:32]CAPDU: 80 13 00 00 [12:59:32]Write to MH i2c: E2 08 00 CB 00 80 13 00 00 00 00 00 00 47 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:32]Read from MH i2c: E2 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 62 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 62 00 CB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:59:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 10 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:32]wFMCommunicate OK [12:59:32]SAM_PROTO_GetFieldsCounters done [12:59:32]requested_item shift.num is exist - process it [12:59:32]requested_item shift.opened is exist - process it [12:59:32]req_shift_opened [12:59:32]FM_GetShiftState [12:59:32]SAM_PROTO_GetShiftState [12:59:32]wFMCommunicate request_size=4 [12:59:32]MH_SAM_APDU [12:59:32]CAPDU: 80 13 01 00 [12:59:32]Write to MH i2c: E2 08 00 CC 00 80 13 01 00 00 00 00 00 49 [12:59:32]Write i2c OK [12:59:32]MH_I2C_Read... [12:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:32]Read from MH i2c: E2 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 0E 00 [12:59:32]MH_I2C_Read... [12:59:32]Read from MH i2c: E2 0E 00 CC 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C2 [12:59:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [12:59:32]wFMCommunicate OK [12:59:32]SAM_PROTO_GetShiftState done [12:59:32]FM_GetShiftState done [12:59:32]req_shift_opened done [12:59:32]requested_item shift.open_date is exist - process it [12:59:32]req_shift_open_date [12:59:32]req_shift_open_date done [12:59:32]produce_requested_data done [12:59:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191760,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [12:59:32]process_action_free close_receipt [12:59:32]json_value_free [12:59:32]json_value_free done [12:59:32]process_json_proto returns [12:59:32]Send response to host [12:59:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191760,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [12:59:32]free response buf [12:59:32]execute_script done [12:59:32]execute_script returns [12:59:32]free content buf [12:59:32]Sock 9.Close socket [12:59:32]Sock 9.Thread stoped [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:09]accept exits with 8 [13:00:09]New connection [13:00:09]New thread 3066961252 created [13:00:09]Thread 3066817892 joined [13:00:09]Waiting for new connection... [13:00:09] Sock 8.Parse request [13:00:09]Sock 8.Check first char [13:00:09]Sock 8.First char is OK [13:00:09]request: POST /json_proto HTTP/1.0 [13:00:09]Method: POST [13:00:09]URL: /json_proto [13:00:09]Method is POST - this is cgi request [13:00:09]url: /json_proto [13:00:09]query_string will be loaded in cgi processing [13:00:09]execute_cgi json_proto POST (null) [13:00:09]execute_cgi path=json_proto method=POST [13:00:09]POST find Content-Length [13:00:09]Host: 172.17.63.131:8080 [13:00:09]Content-Length: 681 [13:00:09]Content-Type: application/json [13:00:09] [13:00:09]POST finish read [13:00:09]Found Content-Length = 681 [13:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:09]execute_script... [13:00: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)31066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:09]POST & json_proto [13:00:09]process_json_proto [13:00:09]json parsed OK: [13:00:09]protocol is kg_v1.0 [13:00:09]action value=close_receipt [13:00:09]process_action close_receipt [13:00:09]cmd_close_receipt [13:00:09]MH_GetDate [13:00:09]Write to MH i2c: F0 00 00 CD 00 BC [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: F0 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: F0 09 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: F0 09 00 CD 00 00 E7 E7 1C 67 22 05 6E 64 0F [13:00:09]GetLastDocTimeStamp 1729947582 [13:00:09]current date 1729947623 [13:00:09]FM_GetShiftState [13:00:09]SAM_PROTO_GetShiftState [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 13 01 00 [13:00:09]Write to MH i2c: E2 08 00 CE 00 80 13 01 00 00 00 00 00 4B [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 CE 00 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C4 [13:00:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_GetShiftState done [13:00:09]FM_GetShiftState done [13:00:09]opened in 1729902770 [13:00:09]opened+sec_in_day 1729989170 [13:00:09]quantity*price = 100015 [13:00:09]sum+1 = 100017 [13:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 124 26.10.2024 13:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191761 ФПД: 269054787927651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191761&fm=269054787927651&tin=02508201610067®Number=0000000000091776&sum=100000 [13:00:10]StoreToDocumentArchive [13:00:10]shift 541 fd 191761 [13:00:10]save to /storage/0541/doc_00191761 [13:00:10]save last doc name /storage/0541/doc_00191761 to /storage/kkm_last_doc_name [13:00:10]save OK [13:00:10]Clear old archive folders... [13:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:10]tlvbuf is 01601310 [13:00:10]SAM_PROTO_ClearQueue [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 09 00 00 [13:00:10]Write to MH i2c: E2 08 00 DB 00 80 09 00 00 00 00 00 00 4D [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 DB 00 00 90 00 4F [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_ClearQueue done [13:00:10]KKMCreateOFDPacket [13:00:10]OFDProtocolAddRootSTLVToBuf [13:00:10]FM_MakeSignedData [13:00:10]FM_MakeSignedData [13:00:10]SAM_PROTO_SignData [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 01 02 [13:00:10]Write to MH i2c: E2 08 00 DC 00 80 0D 01 02 00 00 00 00 55 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 DC 00 00 90 00 50 [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]wFMCommunicate request_size=255 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E7 E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 ED 02 00 35 04 06 00 F4 [13:00:10]Write to MH i2c: E2 02 01 DD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E7 E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 ED 02 00 35 04 06 00 F4 00 00 C3 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 DD 00 00 90 00 51 [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]wFMCommunicate request_size=10 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 02 02 05 B4 33 0F 3E 63 [13:00:10]Write to MH i2c: E2 0D 00 DE 00 80 0D 02 02 05 00 B4 33 0F 3E 63 00 00 F9 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 03 00 DE 00 00 90 00 52 [13:00:10]RAPDU: 90 00 [13:00:10]wFMCommunicate OK [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 0D 03 02 [13:00:10]Write to MH i2c: E2 08 00 DF 00 80 0D 03 02 00 00 00 00 5A [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0B 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0B 00 DF 00 00 51 1B C5 B7 B1 22 0E D7 90 00 FB [13:00:10]RAPDU: 51 1B C5 B7 B1 22 0E D7 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_SignData done [13:00:10]FM_MakeSignedData done [13:00:10]CreateOFDProtocolMessage [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 11 00 00 [13:00:10]Write to MH i2c: E2 08 00 E0 00 80 11 00 00 00 00 00 00 5A [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 17 00 E0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [13:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:10]wFMCommunicate OK [13:00:10]CreateOFDProtocolMessage done [13:00:10]OFDSenderStorePacket 191761 [13:00:10]StoreOFDPacket docnum=191761 [13:00:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 97 07 01 FF 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E7 E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 ED 02 00 35 04 06 00 F4 B4 33 0F 3E 63 51 1B C5 B7 B1 22 0E D7 [13:00:10]CheckFolder [13:00:10]dirname=/storage/ofd_packets [13:00:10]CheckFolder done [13:00:10]ProducePacketName [13:00:10]name=ofd_packets/00191761 [13:00:10]NVStorageSaveData ofd_packets/00191761 [13:00:10]File name is /storage/ofd_packets/00191761 [13:00:10]Write 301 bytes [13:00:10]NVStorageSaveData done [13:00:10]OFDSenderStorePacket done [13:00:10]KKMCreateOFDPacket done [13:00:10]NVStorageSaveData kkm_last_timestamp [13:00:10]File name is /storage/kkm_last_timestamp [13:00:10]Write 4 bytes [13:00:10]NVStorageSaveData done [13:00:10]ExternCall_PrintAddStr [13:00:10]wPrintStart [13:00:10]Write to MH i2c: 01 00 00 E1 00 E1 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [13:00:10]RasterBufferAndPrint [13:00:10]line Счет N : (1)31066 [13:00:10]line ИНН: 02508201610067 [13:00:10]line Контрольно-Кассовый Чек [13:00:10]line ПРОДАЖА [13:00:10]line ТРК (МРК, ГНК) : 21 [13:00:10]line Товар: 2710124130 [13:00:10]line Аи-92-К-5 [13:00:10]line 14.950 * 66.90 [13:00:10]line = 1000.16 [13:00:10]line НДС 12% НСП 1% [13:00:10]line > о реализуемом товаре [13:00:10]line ОКРУГЛЕНИЕ: -0.16 [13:00:10]line ИТОГО: 1000.00 [13:00:10]line Внесено: 1000.00 [13:00:10]line СДАЧА: 0.00 [13:00:10]line НСП 1% : 8.85 [13:00:10]line НДС 12% : 106.21 [13:00:10]line Наличными: 1000.00 [13:00:10]line Безнал.: 0.00 [13:00:10]line Место: АЗС № 170 "Партнер Нефть" [13:00:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:00:10]line СНО: Общий режим [13:00:10]line Чек 124 26.10.2024 13:00 [13:00:10]line Смена: 541 ФФД: 1.0 [13:00:10]line ЗНМ: 0300000110 [13:00:10]line РНМ: 0000000000091776 [13:00:10]line Версия ККМ: 001 [13:00:10]line ФМ: 0000000000871754 [13:00:10]line ФД: 191761 [13:00:10]line ФПД: 269054787927651 [13:00:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130023&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191761&fm=269054787927651&tin=02508201610067®Number=0000000000091776&sum=100000 [13:00:11]OFD Sender: Processing packet 191761 [packets to send 75, broken 74] [13:00:11]ProducePacketName [13:00:11]name=ofd_packets/00191761 [13:00:11]OFD Sender: To server: pG, [13:00:11]CommunicateWithHost lk.salyk.kg:30040 [13:00:11]ConnectInit lk.salyk.kg [13:00:11]written 0, free lines is 4095 [13:00:11]Connected sock=10 [13:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1D 97 07 01 FF 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E7 E7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 ED 02 00 35 04 06 00 F4 B4 33 0F 3E 63 51 1B C5 B7 B1 22 0E D7 [13:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C4 F6 47 00 85 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 11 ED 02 00 F4 03 04 00 B3 8C 1C 67 B6 04 01 00 00 20 4C 16 7C 47 00 C1 A0 [13:00:11]CommunicateWithHost err = 0 [13:00:11]CheckOFDResponse [13:00:11]1017 (14) - 77093643461234 [13:00:11]1041 (16) - 0000000000871754 [13:00:11]1040 (4) - 191761 [13:00:11]1012 (4) - 26.10.2024 06:31 [13:00:11]1206 (1) - 0 [13:00:11]OFD Sender: Remove packet 191761 [13:00:11]ProducePacketName [13:00:11]name=ofd_packets/00191761 [13:00:11]NVStorageDeleteData [13:00:11]Write to MH i2c: 01 00 00 0C 01 0D [13:00:11]Write i2c OK [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: 01 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: 01 07 00 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: 01 07 00 0C 01 00 00 00 00 00 C2 0C E2 [13:00:11]RasterBufferAndPrint [13:00:11]line [13:00:11]line [13:00:11]line [13:00:11]line [13:00:11]line [13:00:11]written 0, free lines is 3273 [13:00:11]MH_Cut [13:00:11]Write to MH i2c: D1 01 00 13 01 01 E6 [13:00:11]Write i2c OK [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: D1 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: D1 01 00 [13:00:11]MH_I2C_Read... [13:00:11]Read from MH i2c: D1 01 00 13 01 00 E5 [13:00:11]Write to MH i2c: 01 00 00 14 01 15 [13:00:11]Write i2c OK [13:00:11]MH_I2C_Read... [13:00:12]OFD Sender: No OFD packet to send [13:00:12]*** Cut start [13:00:12]*** Partial cut [13:00:12]*** CUTSNS_PIN = 1 [13:00:12]*** CUTSNS_PIN = 0 [13:00:12]*** Brake cut motor [13:00:13]Read from MH i2c: 01 [13:00:13]MH_I2C_Read... [13:00:13]*** Stop cut motor [13:00:13]*** Cut end [13:00:13]Read from MH i2c: 01 07 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 07 00 14 01 00 00 00 00 00 FF 0F 2A [13:00:13]process_action close_receipt done [13:00:13]requested_data is exist [13:00:13]produce_requested_data [13:00:13]requested_item fm.sn is exist - process it [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 11 00 00 [13:00:13]Write to MH i2c: E2 08 00 15 01 80 11 00 00 00 00 00 00 90 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 17 00 15 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [13:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:13]wFMCommunicate OK [13:00:13]requested_item fd.num is exist - process it [13:00:13]SAM_PROTO_GetFieldsCounters [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 13 00 00 [13:00:13]Write to MH i2c: E2 08 00 16 01 80 13 00 00 00 00 00 00 93 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 62 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 62 00 16 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [13:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 11 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_GetFieldsCounters done [13:00:13]requested_item shift.num is exist - process it [13:00:13]requested_item shift.opened is exist - process it [13:00:13]req_shift_opened [13:00:13]FM_GetShiftState [13:00:13]SAM_PROTO_GetShiftState [13:00:13]wFMCommunicate request_size=4 [13:00:13]MH_SAM_APDU [13:00:13]CAPDU: 80 13 01 00 [13:00:13]Write to MH i2c: E2 08 00 17 01 80 13 01 00 00 00 00 00 95 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:13]Read from MH i2c: E2 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: E2 0E 00 17 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0E [13:00:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:00:13]wFMCommunicate OK [13:00:13]SAM_PROTO_GetShiftState done [13:00:13]FM_GetShiftState done [13:00:13]req_shift_opened done [13:00:13]requested_item shift.open_date is exist - process it [13:00:13]req_shift_open_date [13:00:13]req_shift_open_date done [13:00:13]produce_requested_data done [13:00:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191761,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:00:13]process_action_free close_receipt [13:00:13]json_value_free [13:00:13]json_value_free done [13:00:13]process_json_proto returns [13:00:13]Send response to host [13:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191761,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:00:13]free response buf [13:00:13]execute_script done [13:00:13]execute_script returns [13:00:13]free content buf [13:00:13]Sock 8.Close socket [13:00:13]Sock 8.Thread stoped [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:49]accept exits with 9 [13:00:49]New connection [13:00:49]New thread 3066817892 created [13:00:49]Thread 3066961252 joined [13:00:49]Waiting for new connection... [13:00:49] Sock 9.Parse request [13:00:49]Sock 9.Check first char [13:00:49]Sock 9.First char is OK [13:00:49]request: POST /json_proto HTTP/1.0 [13:00:49]Method: POST [13:00:49]URL: /json_proto [13:00:49]Method is POST - this is cgi request [13:00:49]url: /json_proto [13:00:49]query_string will be loaded in cgi processing [13:00:49]execute_cgi json_proto POST (null) [13:00:49]execute_cgi path=json_proto method=POST [13:00:49]POST find Content-Length [13:00:49]Host: 172.17.63.131:8080 [13:00:49]Content-Length: 676 [13:00:49]Content-Type: application/json [13:00:49] [13:00:49]POST finish read [13:00:49]Found Content-Length = 676 [13:00:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:49]execute_script... [13:00:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:49]POST & json_proto [13:00:49]process_json_proto [13:00:49]json parsed OK: [13:00:49]protocol is kg_v1.0 [13:00:49]action value=close_receipt [13:00:49]process_action close_receipt [13:00:49]cmd_close_receipt [13:00:49]MH_GetDate [13:00:49]Write to MH i2c: F0 00 00 18 01 08 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 09 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: F0 09 00 18 01 00 10 E8 1C 67 22 05 6E 64 85 [13:00:49]GetLastDocTimeStamp 1729947623 [13:00:49]current date 1729947664 [13:00:49]FM_GetShiftState [13:00:49]SAM_PROTO_GetShiftState [13:00:49]wFMCommunicate request_size=4 [13:00:49]MH_SAM_APDU [13:00:49]CAPDU: 80 13 01 00 [13:00:49]Write to MH i2c: E2 08 00 19 01 80 13 01 00 00 00 00 00 97 [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:49]Read from MH i2c: E2 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0E 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: E2 0E 00 19 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 10 [13:00:49]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:00:49]wFMCommunicate OK [13:00:49]SAM_PROTO_GetShiftState done [13:00:49]FM_GetShiftState done [13:00:49]opened in 1729902770 [13:00:49]opened+sec_in_day 1729989170 [13:00:49]quantity*price = 40006 [13:00:49]sum+1 = 40007 [13:00:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 125 26.10.2024 13:01 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191762 ФПД: 208623025587091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191762&fm=208623025587091&tin=02508201610067®Number=0000000000091776&sum=40000 [13:00:50]StoreToDocumentArchive [13:00:50]shift 541 fd 191762 [13:00:50]save to /storage/0541/doc_00191762 [13:00:50]save last doc name /storage/0541/doc_00191762 to /storage/kkm_last_doc_name [13:00:50]save OK [13:00:50]Clear old archive folders... [13:00:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:50]tlvbuf is 01880D30 [13:00:50]SAM_PROTO_ClearQueue [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 09 00 00 [13:00:50]Write to MH i2c: E2 08 00 26 01 80 09 00 00 00 00 00 00 99 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:50]Read from MH i2c: E2 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 03 00 [13:00:50]MH_I2C_Read... [13:00:50]Read from MH i2c: E2 03 00 26 01 00 90 00 9B [13:00:50]RAPDU: 90 00 [13:00:50]wFMCommunicate OK [13:00:50]SAM_PROTO_ClearQueue done [13:00:50]KKMCreateOFDPacket [13:00:50]OFDProtocolAddRootSTLVToBuf [13:00:50]FM_MakeSignedData [13:00:50]FM_MakeSignedData [13:00:50]SAM_PROTO_SignData [13:00:50]wFMCommunicate request_size=4 [13:00:50]MH_SAM_APDU [13:00:50]CAPDU: 80 0D 01 02 [13:00:50]Write to MH i2c: E2 08 00 27 01 80 0D 01 02 00 00 00 00 A1 [13:00:50]Write i2c OK [13:00:50]MH_I2C_Read... [13:00:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 27 01 00 90 00 9C [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=255 [13:00:51]MH_SAM_APDU [13:00: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 10 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 ED 02 00 35 04 06 00 BD [13:00:51]Write to MH i2c: E2 02 01 28 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 10 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 ED 02 00 35 04 06 00 BD 00 00 D9 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 28 01 00 90 00 9D [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=10 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 02 02 05 BD D5 55 03 93 [13:00:51]Write to MH i2c: E2 0D 00 29 01 80 0D 02 02 05 00 BD D5 55 03 93 00 00 2B [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 03 00 29 01 00 90 00 9E [13:00:51]RAPDU: 90 00 [13:00:51]wFMCommunicate OK [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 0D 03 02 [13:00:51]Write to MH i2c: E2 08 00 2A 01 80 0D 03 02 00 00 00 00 A6 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0B 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 0B 00 2A 01 00 5A 73 BC 68 7F 64 2E 5A 90 00 03 [13:00:51]RAPDU: 5A 73 BC 68 7F 64 2E 5A 90 00 [13:00:51]wFMCommunicate OK [13:00:51]SAM_PROTO_SignData done [13:00:51]FM_MakeSignedData done [13:00:51]CreateOFDProtocolMessage [13:00:51]wFMCommunicate request_size=4 [13:00:51]MH_SAM_APDU [13:00:51]CAPDU: 80 11 00 00 [13:00:51]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:51]Read from MH i2c: E2 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [13:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:51]wFMCommunicate OK [13:00:51]CreateOFDProtocolMessage done [13:00:51]OFDSenderStorePacket 191762 [13:00:51]StoreOFDPacket docnum=191762 [13:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 4F 07 01 94 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 10 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 ED 02 00 35 04 06 00 BD BD D5 55 03 93 5A 73 BC 68 7F 64 2E 5A [13:00:51]CheckFolder [13:00:51]dirname=/storage/ofd_packets [13:00:51]CheckFolder done [13:00:51]ProducePacketName [13:00:51]name=ofd_packets/00191762 [13:00:51]NVStorageSaveData ofd_packets/00191762 [13:00:51]File name is /storage/ofd_packets/00191762 [13:00:51]Write 301 bytes [13:00:51]NVStorageSaveData done [13:00:51]OFDSenderStorePacket done [13:00:51]KKMCreateOFDPacket done [13:00:51]NVStorageSaveData kkm_last_timestamp [13:00:51]File name is /storage/kkm_last_timestamp [13:00:51]Write 4 bytes [13:00:51]NVStorageSaveData done [13:00:51]ExternCall_PrintAddStr [13:00:51]wPrintStart [13:00:51]Write to MH i2c: 01 00 00 2C 01 2D [13:00:51]Write i2c OK [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 07 00 [13:00:51]MH_I2C_Read... [13:00:51]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [13:00:51]RasterBufferAndPrint [13:00:51]line Счет N : (1)31067 [13:00:51]line ИНН: 02508201610067 [13:00:51]line Контрольно-Кассовый Чек [13:00:51]line ПРОДАЖА [13:00:51]line ТРК (МРК, ГНК) : 12 [13:00:51]line Товар: 2710124130 [13:00:51]line Аи-92-К-5 [13:00:51]line 5.980 * 66.90 [13:00:51]line = 400.06 [13:00:51]line НДС 12% НСП 1% [13:00:51]line > о реализуемом товаре [13:00:51]line ОКРУГЛЕНИЕ: -0.06 [13:00:51]line ИТОГО: 400.00 [13:00:51]line Внесено: 400.00 [13:00:51]line СДАЧА: 0.00 [13:00:51]line НСП 1% : 3.54 [13:00:51]line НДС 12% : 42.48 [13:00:51]line Наличными: 400.00 [13:00:51]line Безнал.: 0.00 [13:00:51]line Место: АЗС № 170 "Партнер Нефть" [13:00:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:00:51]line СНО: Общий режим [13:00:51]line Чек 125 26.10.2024 13:01 [13:00:51]line Смена: 541 ФФД: 1.0 [13:00:51]line ЗНМ: 0300000110 [13:00:51]line РНМ: 0000000000091776 [13:00:51]line Версия ККМ: 001 [13:00:51]line ФМ: 0000000000871754 [13:00:51]line ФД: 191762 [13:00:51]line ФПД: 208623025587091 [13:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191762&fm=208623025587091&tin=02508201610067®Number=0000000000091776&sum=40000 [13:00:51]OFD Sender: Processing packet 191762 [packets to send 75, broken 74] [13:00:51]ProducePacketName [13:00:51]name=ofd_packets/00191762 [13:00:51]OFD Sender: To server: pG, [13:00:51]CommunicateWithHost lk.salyk.kg:30040 [13:00:51]ConnectInit lk.salyk.kg [13:00:51]written 0, free lines is 4095 [13:00:51]Connected sock=10 [13:00:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 4F 07 01 94 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 10 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 ED 02 00 35 04 06 00 BD BD D5 55 03 93 5A 73 BC 68 7F 64 2E 5A [13:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 82 F2 47 00 96 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 12 ED 02 00 F4 03 04 00 DB 8C 1C 67 B6 04 01 00 00 EA 71 35 E7 2E 09 32 EC [13:00:52]CommunicateWithHost err = 0 [13:00:52]CheckOFDResponse [13:00:52]1017 (14) - 77093643461234 [13:00:52]1041 (16) - 0000000000871754 [13:00:52]1040 (4) - 191762 [13:00:52]1012 (4) - 26.10.2024 06:31 [13:00:52]1206 (1) - 0 [13:00:52]OFD Sender: Remove packet 191762 [13:00:52]ProducePacketName [13:00:52]name=ofd_packets/00191762 [13:00:52]NVStorageDeleteData [13:00:52]Write to MH i2c: 01 00 00 57 01 58 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 C6 0C 31 [13:00:52]RasterBufferAndPrint [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]line [13:00:52]written 0, free lines is 3276 [13:00:52]MH_Cut [13:00:52]Write to MH i2c: D1 01 00 5E 01 01 31 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 01 00 [13:00:52]MH_I2C_Read... [13:00:52]Read from MH i2c: D1 01 00 5E 01 00 30 [13:00:52]Write to MH i2c: 01 00 00 5F 01 60 [13:00:52]Write i2c OK [13:00:52]MH_I2C_Read... [13:00:52]OFD Sender: No OFD packet to send [13:00:53]*** Cut start [13:00:53]*** Partial cut [13:00:53]*** CUTSNS_PIN = 1 [13:00:53]*** CUTSNS_PIN = 0 [13:00:53]*** Brake cut motor [13:00:53]Read from MH i2c: 01 [13:00:53]MH_I2C_Read... [13:00:53]*** Stop cut motor [13:00:53]*** Cut end [13:00:53]Read from MH i2c: 01 07 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [13:00:53]process_action close_receipt done [13:00:53]requested_data is exist [13:00:53]produce_requested_data [13:00:53]requested_item fm.sn is exist - process it [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 11 00 00 [13:00:53]Write to MH i2c: E2 08 00 60 01 80 11 00 00 00 00 00 00 DB [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 17 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 17 00 60 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [13:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:00:53]wFMCommunicate OK [13:00:53]requested_item fd.num is exist - process it [13:00:53]SAM_PROTO_GetFieldsCounters [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 13 00 00 [13:00:53]Write to MH i2c: E2 08 00 61 01 80 13 00 00 00 00 00 00 DE [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 62 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 62 00 61 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [13:00:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 12 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:53]wFMCommunicate OK [13:00:53]SAM_PROTO_GetFieldsCounters done [13:00:53]requested_item shift.num is exist - process it [13:00:53]requested_item shift.opened is exist - process it [13:00:53]req_shift_opened [13:00:53]FM_GetShiftState [13:00:53]SAM_PROTO_GetShiftState [13:00:53]wFMCommunicate request_size=4 [13:00:53]MH_SAM_APDU [13:00:53]CAPDU: 80 13 01 00 [13:00:53]Write to MH i2c: E2 08 00 62 01 80 13 01 00 00 00 00 00 E0 [13:00:53]Write i2c OK [13:00:53]MH_I2C_Read... [13:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:53]Read from MH i2c: E2 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 0E 00 [13:00:53]MH_I2C_Read... [13:00:53]Read from MH i2c: E2 0E 00 62 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 59 [13:00:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:00:53]wFMCommunicate OK [13:00:53]SAM_PROTO_GetShiftState done [13:00:53]FM_GetShiftState done [13:00:53]req_shift_opened done [13:00:53]requested_item shift.open_date is exist - process it [13:00:53]req_shift_open_date [13:00:53]req_shift_open_date done [13:00:53]produce_requested_data done [13:00:53]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191762,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:00:53]process_action_free close_receipt [13:00:53]json_value_free [13:00:53]json_value_free done [13:00:53]process_json_proto returns [13:00:53]Send response to host [13:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191762,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:00:53]free response buf [13:00:53]execute_script done [13:00:53]execute_script returns [13:00:53]free content buf [13:00:53]Sock 9.Close socket [13:00:53]Sock 9.Thread stoped [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:18]accept exits with 8 [13:01:18]New connection [13:01:18]New thread 3066961252 created [13:01:18]Thread 3066817892 joined [13:01:18]Waiting for new connection... [13:01:18] Sock 8.Parse request [13:01:18]Sock 8.Check first char [13:01:18]Sock 8.First char is OK [13:01:18]request: POST /json_proto HTTP/1.0 [13:01:18]Method: POST [13:01:18]URL: /json_proto [13:01:18]Method is POST - this is cgi request [13:01:18]url: /json_proto [13:01:18]query_string will be loaded in cgi processing [13:01:18]execute_cgi json_proto POST (null) [13:01:18]execute_cgi path=json_proto method=POST [13:01:18]POST find Content-Length [13:01:18]Host: 172.17.63.131:8080 [13:01:18]Content-Length: 676 [13:01:18]Content-Type: application/json [13:01:18] [13:01:18]POST finish read [13:01:18]Found Content-Length = 676 [13:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:18]execute_script... [13:01: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)31068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:18]POST & json_proto [13:01:18]process_json_proto [13:01:18]json parsed OK: [13:01:18]protocol is kg_v1.0 [13:01:18]action value=close_receipt [13:01:18]process_action close_receipt [13:01:18]cmd_close_receipt [13:01:18]MH_GetDate [13:01:18]Write to MH i2c: F0 00 00 63 01 53 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 09 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 09 00 63 01 00 2D E8 1C 67 22 05 6E 64 ED [13:01:18]GetLastDocTimeStamp 1729947664 [13:01:18]current date 1729947693 [13:01:18]FM_GetShiftState [13:01:18]SAM_PROTO_GetShiftState [13:01:18]wFMCommunicate request_size=4 [13:01:18]MH_SAM_APDU [13:01:18]CAPDU: 80 13 01 00 [13:01:18]Write to MH i2c: E2 08 00 64 01 80 13 01 00 00 00 00 00 E2 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:18]Read from MH i2c: E2 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 0E 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 0E 00 64 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5B [13:01:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:01:18]wFMCommunicate OK [13:01:18]SAM_PROTO_GetShiftState done [13:01:18]FM_GetShiftState done [13:01:18]opened in 1729902770 [13:01:18]opened+sec_in_day 1729989170 [13:01:18]quantity*price = 50041 [13:01:18]sum+1 = 50042 [13:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 126 26.10.2024 13:01 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191763 ФПД: 73371974805841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130133&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191763&fm=73371974805841&tin=02508201610067®Number=0000000000091776&sum=50000 [13:01:20]StoreToDocumentArchive [13:01:20]shift 541 fd 191763 [13:01:20]save to /storage/0541/doc_00191763 [13:01:20]save last doc name /storage/0541/doc_00191763 to /storage/kkm_last_doc_name [13:01:20]save OK [13:01:20]Clear old archive folders... [13:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:20]tlvbuf is 017095E0 [13:01:20]SAM_PROTO_ClearQueue [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 09 00 00 [13:01:20]Write to MH i2c: E2 08 00 71 01 80 09 00 00 00 00 00 00 E4 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_ClearQueue done [13:01:20]KKMCreateOFDPacket [13:01:20]OFDProtocolAddRootSTLVToBuf [13:01:20]FM_MakeSignedData [13:01:20]FM_MakeSignedData [13:01:20]SAM_PROTO_SignData [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 01 02 [13:01:20]Write to MH i2c: E2 08 00 72 01 80 0D 01 02 00 00 00 00 EC [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=255 [13:01:20]MH_SAM_APDU [13:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2D E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 ED 02 00 35 04 06 00 42 [13:01:20]Write to MH i2c: E2 02 01 73 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2D E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 ED 02 00 35 04 06 00 42 00 00 F9 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=10 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 02 02 05 BB 3E 7E A9 51 [13:01:20]Write to MH i2c: E2 0D 00 74 01 80 0D 02 02 05 00 BB 3E 7E A9 51 00 00 6A [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 03 02 [13:01:20]Write to MH i2c: E2 08 00 75 01 80 0D 03 02 00 00 00 00 F1 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0B 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0B 00 75 01 00 A4 3B F5 39 2A 73 C1 24 90 00 81 [13:01:20]RAPDU: A4 3B F5 39 2A 73 C1 24 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_SignData done [13:01:20]FM_MakeSignedData done [13:01:20]CreateOFDProtocolMessage [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 11 00 00 [13:01:20]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [13:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:20]wFMCommunicate OK [13:01:20]CreateOFDProtocolMessage done [13:01:20]OFDSenderStorePacket 191763 [13:01:20]StoreOFDPacket docnum=191763 [13:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 2A 07 01 5D A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2D E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 ED 02 00 35 04 06 00 42 BB 3E 7E A9 51 A4 3B F5 39 2A 73 C1 24 [13:01:20]CheckFolder [13:01:20]dirname=/storage/ofd_packets [13:01:20]CheckFolder done [13:01:20]ProducePacketName [13:01:20]name=ofd_packets/00191763 [13:01:20]NVStorageSaveData ofd_packets/00191763 [13:01:20]File name is /storage/ofd_packets/00191763 [13:01:20]Write 301 bytes [13:01:20]NVStorageSaveData done [13:01:20]OFDSenderStorePacket done [13:01:20]KKMCreateOFDPacket done [13:01:20]NVStorageSaveData kkm_last_timestamp [13:01:20]File name is /storage/kkm_last_timestamp [13:01:20]Write 4 bytes [13:01:20]NVStorageSaveData done [13:01:20]ExternCall_PrintAddStr [13:01:20]wPrintStart [13:01:20]Write to MH i2c: 01 00 00 77 01 78 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [13:01:20]RasterBufferAndPrint [13:01:20]line Счет N : (1)31068 [13:01:20]line ИНН: 02508201610067 [13:01:20]line Контрольно-Кассовый Чек [13:01:20]line ПРОДАЖА [13:01:20]line ТРК (МРК, ГНК) : 21 [13:01:20]line Товар: 2710124130 [13:01:20]line Аи-92-К-5 [13:01:20]line 7.480 * 66.90 [13:01:20]line = 500.41 [13:01:20]line НДС 12% НСП 1% [13:01:20]line > о реализуемом товаре [13:01:20]line ОКРУГЛЕНИЕ: -0.41 [13:01:20]line ИТОГО: 500.00 [13:01:20]line Внесено: 500.00 [13:01:20]line СДАЧА: 0.00 [13:01:20]line НСП 1% : 4.43 [13:01:20]line НДС 12% : 53.14 [13:01:20]line Наличными: 500.00 [13:01:20]line Безнал.: 0.00 [13:01:20]line Место: АЗС № 170 "Партнер Нефть" [13:01:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:01:20]line СНО: Общий режим [13:01:20]line Чек 126 26.10.2024 13:01 [13:01:20]line Смена: 541 ФФД: 1.0 [13:01:20]line ЗНМ: 0300000110 [13:01:20]line РНМ: 0000000000091776 [13:01:20]line Версия ККМ: 001 [13:01:20]line ФМ: 0000000000871754 [13:01:20]line ФД: 191763 [13:01:20]line ФПД: 73371974805841 [13:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130133&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191763&fm=73371974805841&tin=02508201610067®Number=0000000000091776&sum=50000 [13:01:20]OFD Sender: Processing packet 191763 [packets to send 75, broken 74] [13:01:20]ProducePacketName [13:01:20]name=ofd_packets/00191763 [13:01:20]OFD Sender: To server: pG, [13:01:20]CommunicateWithHost lk.salyk.kg:30040 [13:01:20]ConnectInit lk.salyk.kg [13:01:20]written 0, free lines is 4095 [13:01:21]Connected sock=10 [13:01:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD 2A 07 01 5D A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 2D E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 ED 02 00 35 04 06 00 42 BB 3E 7E A9 51 A4 3B F5 39 2A 73 C1 24 [13:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A6 10 47 00 CC 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 13 ED 02 00 F4 03 04 00 F8 8C 1C 67 B6 04 01 00 00 42 26 4E 08 B1 8E 4C 68 [13:01:21]CommunicateWithHost err = 0 [13:01:21]CheckOFDResponse [13:01:21]1017 (14) - 77093643461234 [13:01:21]1041 (16) - 0000000000871754 [13:01:21]1040 (4) - 191763 [13:01:21]1012 (4) - 26.10.2024 06:32 [13:01:21]1206 (1) - 0 [13:01:21]OFD Sender: Remove packet 191763 [13:01:21]ProducePacketName [13:01:21]name=ofd_packets/00191763 [13:01:21]NVStorageDeleteData [13:01:21]Write to MH i2c: 01 00 00 A2 01 A3 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 C2 0C 78 [13:01:21]RasterBufferAndPrint [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]written 0, free lines is 3275 [13:01:21]MH_Cut [13:01:21]Write to MH i2c: D1 01 00 A9 01 01 7C [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 01 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 01 00 A9 01 00 7B [13:01:21]Write to MH i2c: 01 00 00 AA 01 AB [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]OFD Sender: No OFD packet to send [13:01:22]*** Cut start [13:01:22]*** Partial cut [13:01:22]*** CUTSNS_PIN = 1 [13:01:22]*** CUTSNS_PIN = 0 [13:01:22]*** Brake cut motor [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]*** Stop cut motor [13:01:22]*** Cut end [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 AA 01 00 00 00 00 00 FF 0F C0 [13:01:22]process_action close_receipt done [13:01:22]requested_data is exist [13:01:22]produce_requested_data [13:01:22]requested_item fm.sn is exist - process it [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 11 00 00 [13:01:22]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:22]Read from MH i2c: E2 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 17 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [13:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:01:22]wFMCommunicate OK [13:01:22]requested_item fd.num is exist - process it [13:01:22]SAM_PROTO_GetFieldsCounters [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 13 00 00 [13:01:22]Write to MH i2c: E2 08 00 AC 01 80 13 00 00 00 00 00 00 29 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 62 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 62 00 AC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [13:01:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 13 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetFieldsCounters done [13:01:23]requested_item shift.num is exist - process it [13:01:23]requested_item shift.opened is exist - process it [13:01:23]req_shift_opened [13:01:23]FM_GetShiftState [13:01:23]SAM_PROTO_GetShiftState [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 13 01 00 [13:01:23]Write to MH i2c: E2 08 00 AD 01 80 13 01 00 00 00 00 00 2B [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0E 00 AD 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A4 [13:01:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_GetShiftState done [13:01:23]FM_GetShiftState done [13:01:23]req_shift_opened done [13:01:23]requested_item shift.open_date is exist - process it [13:01:23]req_shift_open_date [13:01:23]req_shift_open_date done [13:01:23]produce_requested_data done [13:01:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191763,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:01:23]process_action_free close_receipt [13:01:23]json_value_free [13:01:23]json_value_free done [13:01:23]process_json_proto returns [13:01:23]Send response to host [13:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191763,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:01:23]free response buf [13:01:23]execute_script done [13:01:23]execute_script returns [13:01:23]free content buf [13:01:23]Sock 8.Close socket [13:01:23]Sock 8.Thread stoped [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]accept exits with 9 [13:02:46]New connection [13:02:46]New thread 3066817892 created [13:02:46]Thread 3066961252 joined [13:02:46]Waiting for new connection... [13:02:46] Sock 9.Parse request [13:02:46]Sock 9.Check first char [13:02:46]Sock 9.First char is OK [13:02:46]request: POST /json_proto HTTP/1.0 [13:02:46]Method: POST [13:02:46]URL: /json_proto [13:02:46]Method is POST - this is cgi request [13:02:46]url: /json_proto [13:02:46]query_string will be loaded in cgi processing [13:02:46]execute_cgi json_proto POST (null) [13:02:46]execute_cgi path=json_proto method=POST [13:02:46]POST find Content-Length [13:02:46]Host: 172.17.63.131:8080 [13:02:46]Content-Length: 681 [13:02:46]Content-Type: application/json [13:02:46] [13:02:46]POST finish read [13:02:46]Found Content-Length = 681 [13:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:46]execute_script... [13:02: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)31069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:46]POST & json_proto [13:02:46]process_json_proto [13:02:46]json parsed OK: [13:02:46]protocol is kg_v1.0 [13:02:46]action value=close_receipt [13:02:46]process_action close_receipt [13:02:46]cmd_close_receipt [13:02:46]MH_GetDate [13:02:46]Write to MH i2c: F0 00 00 AE 01 9E [13:02:46]Write i2c OK [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 09 00 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 09 00 AE 01 00 85 E8 1C 67 22 05 6E 64 90 [13:02:46]GetLastDocTimeStamp 1729947693 [13:02:46]current date 1729947781 [13:02:46]FM_GetShiftState [13:02:46]SAM_PROTO_GetShiftState [13:02:46]wFMCommunicate request_size=4 [13:02:46]MH_SAM_APDU [13:02:46]CAPDU: 80 13 01 00 [13:02:46]Write to MH i2c: E2 08 00 AF 01 80 13 01 00 00 00 00 00 2D [13:02:46]Write i2c OK [13:02:46]MH_I2C_Read... [13:02:46]OFD Sender: No OFD packet to send [13:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:46]Read from MH i2c: E2 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: E2 0E 00 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: E2 0E 00 AF 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A6 [13:02:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:02:46]wFMCommunicate OK [13:02:46]SAM_PROTO_GetShiftState done [13:02:46]FM_GetShiftState done [13:02:46]opened in 1729902770 [13:02:46]opened+sec_in_day 1729989170 [13:02:46]quantity*price = 100015 [13:02:46]sum+1 = 100017 [13:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 127 26.10.2024 13:03 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191764 ФПД: 58819313733283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191764&fm=58819313733283&tin=02508201610067®Number=0000000000091776&sum=100000 [13:02:48]StoreToDocumentArchive [13:02:48]shift 541 fd 191764 [13:02:48]save to /storage/0541/doc_00191764 [13:02:48]save last doc name /storage/0541/doc_00191764 to /storage/kkm_last_doc_name [13:02:48]save OK [13:02:48]Clear old archive folders... [13:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:48]tlvbuf is 016BC1A0 [13:02:48]SAM_PROTO_ClearQueue [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 09 00 00 [13:02:48]Write to MH i2c: E2 08 00 BC 01 80 09 00 00 00 00 00 00 2F [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 BC 01 00 90 00 31 [13:02:48]RAPDU: 90 00 [13:02:48]wFMCommunicate OK [13:02:48]SAM_PROTO_ClearQueue done [13:02:48]KKMCreateOFDPacket [13:02:48]OFDProtocolAddRootSTLVToBuf [13:02:48]FM_MakeSignedData [13:02:48]FM_MakeSignedData [13:02:48]SAM_PROTO_SignData [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 0D 01 02 [13:02:48]Write to MH i2c: E2 08 00 BD 01 80 0D 01 02 00 00 00 00 37 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [13:02:48]RAPDU: 90 00 [13:02:48]wFMCommunicate OK [13:02:48]wFMCommunicate request_size=255 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 ED 02 00 35 04 06 00 35 [13:02:48]Write to MH i2c: E2 02 01 BE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 ED 02 00 35 04 06 00 35 00 00 8B [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 BE 01 00 90 00 33 [13:02:48]RAPDU: 90 00 [13:02:48]wFMCommunicate OK [13:02:48]wFMCommunicate request_size=10 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 0D 02 02 05 7E F0 4D 0E A3 [13:02:48]Write to MH i2c: E2 0D 00 BF 01 80 0D 02 02 05 00 7E F0 4D 0E A3 00 00 B0 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 BF 01 00 90 00 34 [13:02:48]RAPDU: 90 00 [13:02:48]wFMCommunicate OK [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 0D 03 02 [13:02:48]Write to MH i2c: E2 08 00 C0 01 80 0D 03 02 00 00 00 00 3C [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0B 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0B 00 C0 01 00 85 CF CC FC A8 76 B7 EF 90 00 1D [13:02:48]RAPDU: 85 CF CC FC A8 76 B7 EF 90 00 [13:02:48]wFMCommunicate OK [13:02:48]SAM_PROTO_SignData done [13:02:48]FM_MakeSignedData done [13:02:48]CreateOFDProtocolMessage [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 11 00 00 [13:02:48]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 17 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [13:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:48]wFMCommunicate OK [13:02:48]CreateOFDProtocolMessage done [13:02:48]OFDSenderStorePacket 191764 [13:02:48]StoreOFDPacket docnum=191764 [13:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 A0 07 01 96 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 ED 02 00 35 04 06 00 35 7E F0 4D 0E A3 85 CF CC FC A8 76 B7 EF [13:02:48]CheckFolder [13:02:48]dirname=/storage/ofd_packets [13:02:48]CheckFolder done [13:02:48]ProducePacketName [13:02:48]name=ofd_packets/00191764 [13:02:48]NVStorageSaveData ofd_packets/00191764 [13:02:48]File name is /storage/ofd_packets/00191764 [13:02:48]Write 301 bytes [13:02:48]NVStorageSaveData done [13:02:48]OFDSenderStorePacket done [13:02:48]KKMCreateOFDPacket done [13:02:48]NVStorageSaveData kkm_last_timestamp [13:02:48]File name is /storage/kkm_last_timestamp [13:02:48]Write 4 bytes [13:02:48]NVStorageSaveData done [13:02:48]ExternCall_PrintAddStr [13:02:48]wPrintStart [13:02:48]Write to MH i2c: 01 00 00 C2 01 C3 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [13:02:48]RasterBufferAndPrint [13:02:48]line Счет N : (1)31069 [13:02:48]line ИНН: 02508201610067 [13:02:48]line Контрольно-Кассовый Чек [13:02:48]line ПРОДАЖА [13:02:48]line ТРК (МРК, ГНК) : 21 [13:02:48]line Товар: 2710124130 [13:02:48]line Аи-92-К-5 [13:02:48]line 14.950 * 66.90 [13:02:48]line = 1000.16 [13:02:48]line НДС 12% НСП 1% [13:02:48]line > о реализуемом товаре [13:02:48]line ОКРУГЛЕНИЕ: -0.16 [13:02:48]line ИТОГО: 1000.00 [13:02:48]line Внесено: 1000.00 [13:02:48]line СДАЧА: 0.00 [13:02:48]line НСП 1% : 8.85 [13:02:48]line НДС 12% : 106.21 [13:02:48]line Наличными: 1000.00 [13:02:48]line Безнал.: 0.00 [13:02:48]line Место: АЗС № 170 "Партнер Нефть" [13:02:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:02:48]line СНО: Общий режим [13:02:48]line Чек 127 26.10.2024 13:03 [13:02:48]line Смена: 541 ФФД: 1.0 [13:02:48]line ЗНМ: 0300000110 [13:02:48]line РНМ: 0000000000091776 [13:02:48]line Версия ККМ: 001 [13:02:48]line ФМ: 0000000000871754 [13:02:48]line ФД: 191764 [13:02:48]line ФПД: 58819313733283 [13:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130301&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191764&fm=58819313733283&tin=02508201610067®Number=0000000000091776&sum=100000 [13:02:48]OFD Sender: Processing packet 191764 [packets to send 75, broken 74] [13:02:48]ProducePacketName [13:02:48]name=ofd_packets/00191764 [13:02:48]OFD Sender: To server: pG, [13:02:48]CommunicateWithHost lk.salyk.kg:30040 [13:02:48]ConnectInit lk.salyk.kg [13:02:48]written 0, free lines is 4095 [13:02:49]Connected sock=10 [13:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 54 A0 07 01 96 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 85 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 ED 02 00 35 04 06 00 35 7E F0 4D 0E A3 85 CF CC FC A8 76 B7 EF [13:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 85 47 00 F3 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 14 ED 02 00 F4 03 04 00 50 8D 1C 67 B6 04 01 00 00 73 FA D9 24 CF B0 D0 1E [13:02:49]CommunicateWithHost err = 0 [13:02:49]CheckOFDResponse [13:02:49]1017 (14) - 77093643461234 [13:02:49]1041 (16) - 0000000000871754 [13:02:49]1040 (4) - 191764 [13:02:49]1012 (4) - 26.10.2024 06:33 [13:02:49]1206 (1) - 0 [13:02:49]OFD Sender: Remove packet 191764 [13:02:49]ProducePacketName [13:02:49]name=ofd_packets/00191764 [13:02:49]NVStorageDeleteData [13:02:49]Write to MH i2c: 01 00 00 ED 01 EE [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: 01 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: 01 07 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 C3 0C C4 [13:02:49]RasterBufferAndPrint [13:02:49]line [13:02:49]line [13:02:49]line [13:02:49]line [13:02:49]line [13:02:49]written 0, free lines is 3273 [13:02:49]MH_Cut [13:02:49]Write to MH i2c: D1 01 00 F4 01 01 C7 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: D1 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: D1 01 00 [13:02:49]MH_I2C_Read... [13:02:49]Read from MH i2c: D1 01 00 F4 01 00 C6 [13:02:49]Write to MH i2c: 01 00 00 F5 01 F6 [13:02:49]Write i2c OK [13:02:49]MH_I2C_Read... [13:02:49]OFD Sender: No OFD packet to send [13:02:50]*** Cut start [13:02:50]*** Partial cut [13:02:50]*** CUTSNS_PIN = 1 [13:02:50]*** CUTSNS_PIN = 0 [13:02:50]*** Brake cut motor [13:02:50]Read from MH i2c: 01 [13:02:50]MH_I2C_Read... [13:02:50]*** Stop cut motor [13:02:50]*** Cut end [13:02:50]Read from MH i2c: 01 07 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [13:02:50]process_action close_receipt done [13:02:50]requested_data is exist [13:02:50]produce_requested_data [13:02:50]requested_item fm.sn is exist - process it [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 11 00 00 [13:02:50]Write to MH i2c: E2 08 00 F6 01 80 11 00 00 00 00 00 00 71 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 F6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [13:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:02:50]wFMCommunicate OK [13:02:50]requested_item fd.num is exist - process it [13:02:50]SAM_PROTO_GetFieldsCounters [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 13 00 00 [13:02:50]Write to MH i2c: E2 08 00 F7 01 80 13 00 00 00 00 00 00 74 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 62 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 62 00 F7 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [13:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 14 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_GetFieldsCounters done [13:02:51]requested_item shift.num is exist - process it [13:02:51]requested_item shift.opened is exist - process it [13:02:51]req_shift_opened [13:02:51]FM_GetShiftState [13:02:51]SAM_PROTO_GetShiftState [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 13 01 00 [13:02:51]Write to MH i2c: E2 08 00 F8 01 80 13 01 00 00 00 00 00 76 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 F8 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EF [13:02:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_GetShiftState done [13:02:51]FM_GetShiftState done [13:02:51]req_shift_opened done [13:02:51]requested_item shift.open_date is exist - process it [13:02:51]req_shift_open_date [13:02:51]req_shift_open_date done [13:02:51]produce_requested_data done [13:02:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191764,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:02:51]process_action_free close_receipt [13:02:51]json_value_free [13:02:51]json_value_free done [13:02:51]process_json_proto returns [13:02:51]Send response to host [13:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191764,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:02:51]free response buf [13:02:51]execute_script done [13:02:51]execute_script returns [13:02:51]free content buf [13:02:51]Sock 9.Close socket [13:02:51]Sock 9.Thread stoped [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:40]accept exits with 8 [13:04:40]New connection [13:04:40]New thread 3066961252 created [13:04:40]Thread 3066817892 joined [13:04:40]Waiting for new connection... [13:04:40] Sock 8.Parse request [13:04:40]Sock 8.Check first char [13:04:40]Sock 8.First char is OK [13:04:40]request: POST /json_proto HTTP/1.0 [13:04:40]Method: POST [13:04:40]URL: /json_proto [13:04:40]Method is POST - this is cgi request [13:04:40]url: /json_proto [13:04:40]query_string will be loaded in cgi processing [13:04:40]execute_cgi json_proto POST (null) [13:04:40]execute_cgi path=json_proto method=POST [13:04:40]POST find Content-Length [13:04:40]Host: 172.17.63.131:8080 [13:04:40]Content-Length: 676 [13:04:40]Content-Type: application/json [13:04:40] [13:04:40]POST finish read [13:04:40]Found Content-Length = 676 [13:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:40]execute_script... [13:04:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:40]POST & json_proto [13:04:40]process_json_proto [13:04:40]json parsed OK: [13:04:40]protocol is kg_v1.0 [13:04:40]action value=close_receipt [13:04:40]process_action close_receipt [13:04:40]cmd_close_receipt [13:04:40]MH_GetDate [13:04:40]Write to MH i2c: F0 00 00 F9 01 E9 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: F0 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: F0 09 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: F0 09 00 F9 01 00 F7 E8 1C 67 22 05 6E 64 4D [13:04:40]GetLastDocTimeStamp 1729947781 [13:04:40]current date 1729947895 [13:04:40]FM_GetShiftState [13:04:40]SAM_PROTO_GetShiftState [13:04:40]wFMCommunicate request_size=4 [13:04:40]MH_SAM_APDU [13:04:40]CAPDU: 80 13 01 00 [13:04:40]Write to MH i2c: E2 08 00 FA 01 80 13 01 00 00 00 00 00 78 [13:04:40]Write i2c OK [13:04:40]MH_I2C_Read... [13:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:40]Read from MH i2c: E2 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 0E 00 [13:04:40]MH_I2C_Read... [13:04:40]Read from MH i2c: E2 0E 00 FA 01 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F1 [13:04:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:04:40]wFMCommunicate OK [13:04:40]SAM_PROTO_GetShiftState done [13:04:40]FM_GetShiftState done [13:04:40]opened in 1729902770 [13:04:40]opened+sec_in_day 1729989170 [13:04:40]quantity*price = 50041 [13:04:40]sum+1 = 50042 [13:04:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 128 26.10.2024 13:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191765 ФПД: 230721854318518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191765&fm=230721854318518&tin=02508201610067®Number=0000000000091776&sum=50000 [13:04:41]StoreToDocumentArchive [13:04:41]shift 541 fd 191765 [13:04:41]save to /storage/0541/doc_00191765 [13:04:41]save last doc name /storage/0541/doc_00191765 to /storage/kkm_last_doc_name [13:04:41]save OK [13:04:41]Clear old archive folders... [13:04:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:04:41]tlvbuf is 015D8D00 [13:04:41]SAM_PROTO_ClearQueue [13:04:41]wFMCommunicate request_size=4 [13:04:41]MH_SAM_APDU [13:04:41]CAPDU: 80 09 00 00 [13:04:41]Write to MH i2c: E2 08 00 07 02 80 09 00 00 00 00 00 00 7B [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:41]Read from MH i2c: E2 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 03 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [13:04:41]RAPDU: 90 00 [13:04:41]wFMCommunicate OK [13:04:41]SAM_PROTO_ClearQueue done [13:04:41]KKMCreateOFDPacket [13:04:41]OFDProtocolAddRootSTLVToBuf [13:04:41]FM_MakeSignedData [13:04:41]FM_MakeSignedData [13:04:41]SAM_PROTO_SignData [13:04:41]wFMCommunicate request_size=4 [13:04:41]MH_SAM_APDU [13:04:41]CAPDU: 80 0D 01 02 [13:04:41]Write to MH i2c: E2 08 00 08 02 80 0D 01 02 00 00 00 00 83 [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:41]Read from MH i2c: E2 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 03 00 [13:04:41]MH_I2C_Read... [13:04:41]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [13:04:41]RAPDU: 90 00 [13:04:41]wFMCommunicate OK [13:04:41]wFMCommunicate request_size=255 [13:04:41]MH_SAM_APDU [13:04:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 ED 02 00 35 04 06 00 D1 [13:04:41]Write to MH i2c: E2 02 01 09 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 ED 02 00 35 04 06 00 D1 00 00 ED [13:04:41]Write i2c OK [13:04:41]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 03 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 03 00 09 02 00 90 00 7F [13:04:42]RAPDU: 90 00 [13:04:42]wFMCommunicate OK [13:04:42]wFMCommunicate request_size=10 [13:04:42]MH_SAM_APDU [13:04:42]CAPDU: 80 0D 02 02 05 D7 1E 2B 27 B6 [13:04:42]Write to MH i2c: E2 0D 00 0A 02 80 0D 02 02 05 00 D7 1E 2B 27 B6 00 00 8D [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 03 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 03 00 0A 02 00 90 00 80 [13:04:42]RAPDU: 90 00 [13:04:42]wFMCommunicate OK [13:04:42]wFMCommunicate request_size=4 [13:04:42]MH_SAM_APDU [13:04:42]CAPDU: 80 0D 03 02 [13:04:42]Write to MH i2c: E2 08 00 0B 02 80 0D 03 02 00 00 00 00 88 [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0B 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 0B 00 0B 02 00 89 20 97 57 9A EC 88 66 90 00 94 [13:04:42]RAPDU: 89 20 97 57 9A EC 88 66 90 00 [13:04:42]wFMCommunicate OK [13:04:42]SAM_PROTO_SignData done [13:04:42]FM_MakeSignedData done [13:04:42]CreateOFDProtocolMessage [13:04:42]wFMCommunicate request_size=4 [13:04:42]MH_SAM_APDU [13:04:42]CAPDU: 80 11 00 00 [13:04:42]Write to MH i2c: E2 08 00 0C 02 80 11 00 00 00 00 00 00 88 [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:42]Read from MH i2c: E2 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 17 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: E2 17 00 0C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [13:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:42]wFMCommunicate OK [13:04:42]CreateOFDProtocolMessage done [13:04:42]OFDSenderStorePacket 191765 [13:04:42]StoreOFDPacket docnum=191765 [13:04:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F CE 07 01 7A 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 ED 02 00 35 04 06 00 D1 D7 1E 2B 27 B6 89 20 97 57 9A EC 88 66 [13:04:42]CheckFolder [13:04:42]dirname=/storage/ofd_packets [13:04:42]CheckFolder done [13:04:42]ProducePacketName [13:04:42]name=ofd_packets/00191765 [13:04:42]NVStorageSaveData ofd_packets/00191765 [13:04:42]File name is /storage/ofd_packets/00191765 [13:04:42]Write 301 bytes [13:04:42]NVStorageSaveData done [13:04:42]OFDSenderStorePacket done [13:04:42]KKMCreateOFDPacket done [13:04:42]NVStorageSaveData kkm_last_timestamp [13:04:42]File name is /storage/kkm_last_timestamp [13:04:42]Write 4 bytes [13:04:42]NVStorageSaveData done [13:04:42]ExternCall_PrintAddStr [13:04:42]wPrintStart [13:04:42]Write to MH i2c: 01 00 00 0D 02 0F [13:04:42]Write i2c OK [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 07 00 [13:04:42]MH_I2C_Read... [13:04:42]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [13:04:42]RasterBufferAndPrint [13:04:42]line Счет N : (1)31070 [13:04:42]line ИНН: 02508201610067 [13:04:42]line Контрольно-Кассовый Чек [13:04:42]line ПРОДАЖА [13:04:42]line ТРК (МРК, ГНК) : 12 [13:04:42]line Товар: 2710124130 [13:04:42]line Аи-92-К-5 [13:04:42]line 7.480 * 66.90 [13:04:42]line = 500.41 [13:04:42]line НДС 12% НСП 1% [13:04:42]line > о реализуемом товаре [13:04:42]line ОКРУГЛЕНИЕ: -0.41 [13:04:42]line ИТОГО: 500.00 [13:04:42]line Внесено: 500.00 [13:04:42]line СДАЧА: 0.00 [13:04:42]line НСП 1% : 4.43 [13:04:42]line НДС 12% : 53.14 [13:04:42]line Наличными: 500.00 [13:04:42]line Безнал.: 0.00 [13:04:42]line Место: АЗС № 170 "Партнер Нефть" [13:04:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:04:42]line СНО: Общий режим [13:04:42]line Чек 128 26.10.2024 13:04 [13:04:42]line Смена: 541 ФФД: 1.0 [13:04:42]line ЗНМ: 0300000110 [13:04:42]line РНМ: 0000000000091776 [13:04:42]line Версия ККМ: 001 [13:04:42]line ФМ: 0000000000871754 [13:04:42]line ФД: 191765 [13:04:42]line ФПД: 230721854318518 [13:04:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191765&fm=230721854318518&tin=02508201610067®Number=0000000000091776&sum=50000 [13:04:42]OFD Sender: Processing packet 191765 [packets to send 75, broken 74] [13:04:42]ProducePacketName [13:04:42]name=ofd_packets/00191765 [13:04:42]OFD Sender: To server: pG, [13:04:42]CommunicateWithHost lk.salyk.kg:30040 [13:04:42]ConnectInit lk.salyk.kg [13:04:42]written 0, free lines is 4095 [13:04:42]Connected sock=10 [13:04:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9F CE 07 01 7A 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F7 E8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 ED 02 00 35 04 06 00 D1 D7 1E 2B 27 B6 89 20 97 57 9A EC 88 66 [13:04:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EA 3F 47 00 A8 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 15 ED 02 00 F4 03 04 00 C2 8D 1C 67 B6 04 01 00 00 40 8B A8 CE 9B 1B F0 C7 [13:04:42]CommunicateWithHost err = 0 [13:04:42]CheckOFDResponse [13:04:42]1017 (14) - 77093643461234 [13:04:42]1041 (16) - 0000000000871754 [13:04:42]1040 (4) - 191765 [13:04:42]1012 (4) - 26.10.2024 06:35 [13:04:42]1206 (1) - 0 [13:04:42]OFD Sender: Remove packet 191765 [13:04:42]ProducePacketName [13:04:42]name=ofd_packets/00191765 [13:04:42]NVStorageDeleteData [13:04:43]Write to MH i2c: 01 00 00 38 02 3A [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 C4 0C 11 [13:04:43]RasterBufferAndPrint [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]line [13:04:43]written 0, free lines is 3276 [13:04:43]MH_Cut [13:04:43]Write to MH i2c: D1 01 00 3F 02 01 13 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 01 00 [13:04:43]MH_I2C_Read... [13:04:43]Read from MH i2c: D1 01 00 3F 02 00 12 [13:04:43]Write to MH i2c: 01 00 00 40 02 42 [13:04:43]Write i2c OK [13:04:43]MH_I2C_Read... [13:04:43]OFD Sender: No OFD packet to send [13:04:43]*** Cut start [13:04:43]*** Partial cut [13:04:43]*** CUTSNS_PIN = 1 [13:04:43]*** CUTSNS_PIN = 0 [13:04:44]*** Brake cut motor [13:04:44]Read from MH i2c: 01 [13:04:44]MH_I2C_Read... [13:04:44]*** Stop cut motor [13:04:44]*** Cut end [13:04:44]Read from MH i2c: 01 07 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [13:04:44]process_action close_receipt done [13:04:44]requested_data is exist [13:04:44]produce_requested_data [13:04:44]requested_item fm.sn is exist - process it [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 11 00 00 [13:04:44]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [13:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:04:44]wFMCommunicate OK [13:04:44]requested_item fd.num is exist - process it [13:04:44]SAM_PROTO_GetFieldsCounters [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 00 00 [13:04:44]Write to MH i2c: E2 08 00 42 02 80 13 00 00 00 00 00 00 C0 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 62 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 62 00 42 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [13:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 15 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetFieldsCounters done [13:04:44]requested_item shift.num is exist - process it [13:04:44]requested_item shift.opened is exist - process it [13:04:44]req_shift_opened [13:04:44]FM_GetShiftState [13:04:44]SAM_PROTO_GetShiftState [13:04:44]wFMCommunicate request_size=4 [13:04:44]MH_SAM_APDU [13:04:44]CAPDU: 80 13 01 00 [13:04:44]Write to MH i2c: E2 08 00 43 02 80 13 01 00 00 00 00 00 C2 [13:04:44]Write i2c OK [13:04:44]MH_I2C_Read... [13:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:44]Read from MH i2c: E2 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 [13:04:44]MH_I2C_Read... [13:04:44]Read from MH i2c: E2 0E 00 43 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3B [13:04:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:04:44]wFMCommunicate OK [13:04:44]SAM_PROTO_GetShiftState done [13:04:44]FM_GetShiftState done [13:04:44]req_shift_opened done [13:04:44]requested_item shift.open_date is exist - process it [13:04:44]req_shift_open_date [13:04:44]req_shift_open_date done [13:04:44]produce_requested_data done [13:04:44]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191765,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:04:44]process_action_free close_receipt [13:04:44]json_value_free [13:04:44]json_value_free done [13:04:44]process_json_proto returns [13:04:44]Send response to host [13:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191765,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:04:44]free response buf [13:04:44]execute_script done [13:04:44]execute_script returns [13:04:44]free content buf [13:04:44]Sock 8.Close socket [13:04:44]Sock 8.Thread stoped [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:30]accept exits with 9 [13:06:30]New connection [13:06:30]New thread 3066817892 created [13:06:30]Thread 3066961252 joined [13:06:30]Waiting for new connection... [13:06:30] Sock 9.Parse request [13:06:30]Sock 9.Check first char [13:06:30]Sock 9.First char is OK [13:06:30]request: POST /json_proto HTTP/1.0 [13:06:30]Method: POST [13:06:30]URL: /json_proto [13:06:30]Method is POST - this is cgi request [13:06:30]url: /json_proto [13:06:30]query_string will be loaded in cgi processing [13:06:30]execute_cgi json_proto POST (null) [13:06:30]execute_cgi path=json_proto method=POST [13:06:30]POST find Content-Length [13:06:30]Host: 172.17.63.131:8080 [13:06:30]Content-Length: 676 [13:06:30]Content-Type: application/json [13:06:30] [13:06:30]POST finish read [13:06:30]Found Content-Length = 676 [13:06:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:30]execute_script... [13:06: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)31071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:30]POST & json_proto [13:06:30]process_json_proto [13:06:30]json parsed OK: [13:06:30]protocol is kg_v1.0 [13:06:30]action value=close_receipt [13:06:30]process_action close_receipt [13:06:30]cmd_close_receipt [13:06:30]MH_GetDate [13:06:30]Write to MH i2c: F0 00 00 44 02 35 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: F0 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: F0 09 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: F0 09 00 44 02 00 64 E9 1C 67 22 05 6E 64 07 [13:06:30]GetLastDocTimeStamp 1729947895 [13:06:30]current date 1729948004 [13:06:30]FM_GetShiftState [13:06:30]SAM_PROTO_GetShiftState [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 13 01 00 [13:06:30]Write to MH i2c: E2 08 00 45 02 80 13 01 00 00 00 00 00 C4 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0E 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0E 00 45 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3D [13:06:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_GetShiftState done [13:06:30]FM_GetShiftState done [13:06:30]opened in 1729902770 [13:06:30]opened+sec_in_day 1729989170 [13:06:30]quantity*price = 34052 [13:06:30]sum+1 = 34053 [13:06:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 129 26.10.2024 13:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191766 ФПД: 88795881191014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191766&fm=88795881191014&tin=02508201610067®Number=0000000000091776&sum=34000 [13:06:31]StoreToDocumentArchive [13:06:31]shift 541 fd 191766 [13:06:31]save to /storage/0541/doc_00191766 [13:06:31]save last doc name /storage/0541/doc_00191766 to /storage/kkm_last_doc_name [13:06:31]save OK [13:06:31]Clear old archive folders... [13:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:31]tlvbuf is 015C8C30 [13:06:31]SAM_PROTO_ClearQueue [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 09 00 00 [13:06:31]Write to MH i2c: E2 08 00 52 02 80 09 00 00 00 00 00 00 C6 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]SAM_PROTO_ClearQueue done [13:06:31]KKMCreateOFDPacket [13:06:31]OFDProtocolAddRootSTLVToBuf [13:06:31]FM_MakeSignedData [13:06:31]FM_MakeSignedData [13:06:31]SAM_PROTO_SignData [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 0D 01 02 [13:06:31]Write to MH i2c: E2 08 00 53 02 80 0D 01 02 00 00 00 00 CE [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=255 [13:06:31]MH_SAM_APDU [13:06: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 64 E9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 ED 02 00 35 04 06 00 50 [13:06:31]Write to MH i2c: E2 02 01 54 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 64 E9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 ED 02 00 35 04 06 00 50 00 00 60 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 54 02 00 90 00 CA [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=10 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 0D 02 02 05 C2 66 F4 B6 66 [13:06:31]Write to MH i2c: E2 0D 00 55 02 80 0D 02 02 05 00 C2 66 F4 B6 66 00 00 13 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 03 00 55 02 00 90 00 CB [13:06:31]RAPDU: 90 00 [13:06:31]wFMCommunicate OK [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 0D 03 02 [13:06:31]Write to MH i2c: E2 08 00 56 02 80 0D 03 02 00 00 00 00 D3 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 0B 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 0B 00 56 02 00 0C 0F 2E 19 7D 61 93 BA 90 00 61 [13:06:31]RAPDU: 0C 0F 2E 19 7D 61 93 BA 90 00 [13:06:31]wFMCommunicate OK [13:06:31]SAM_PROTO_SignData done [13:06:31]FM_MakeSignedData done [13:06:31]CreateOFDProtocolMessage [13:06:31]wFMCommunicate request_size=4 [13:06:31]MH_SAM_APDU [13:06:31]CAPDU: 80 11 00 00 [13:06:31]Write to MH i2c: E2 08 00 57 02 80 11 00 00 00 00 00 00 D3 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:31]Read from MH i2c: E2 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: E2 17 00 57 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [13:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:31]wFMCommunicate OK [13:06:31]CreateOFDProtocolMessage done [13:06:31]OFDSenderStorePacket 191766 [13:06:31]StoreOFDPacket docnum=191766 [13:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD B0 07 01 14 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 64 E9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 ED 02 00 35 04 06 00 50 C2 66 F4 B6 66 0C 0F 2E 19 7D 61 93 BA [13:06:31]CheckFolder [13:06:31]dirname=/storage/ofd_packets [13:06:31]CheckFolder done [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00191766 [13:06:31]NVStorageSaveData ofd_packets/00191766 [13:06:31]File name is /storage/ofd_packets/00191766 [13:06:31]Write 301 bytes [13:06:31]NVStorageSaveData done [13:06:31]OFDSenderStorePacket done [13:06:31]KKMCreateOFDPacket done [13:06:31]NVStorageSaveData kkm_last_timestamp [13:06:31]File name is /storage/kkm_last_timestamp [13:06:31]Write 4 bytes [13:06:31]NVStorageSaveData done [13:06:31]ExternCall_PrintAddStr [13:06:31]wPrintStart [13:06:31]Write to MH i2c: 01 00 00 58 02 5A [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 58 02 00 00 00 00 00 FF 0F 6F [13:06:31]RasterBufferAndPrint [13:06:31]line Счет N : (1)31071 [13:06:31]line ИНН: 02508201610067 [13:06:31]line Контрольно-Кассовый Чек [13:06:31]line ПРОДАЖА [13:06:31]line ТРК (МРК, ГНК) : 12 [13:06:31]line Товар: 2710124130 [13:06:31]line Аи-92-К-5 [13:06:31]line 5.090 * 66.90 [13:06:31]line = 340.52 [13:06:31]line НДС 12% НСП 1% [13:06:31]line > о реализуемом товаре [13:06:31]line ОКРУГЛЕНИЕ: -0.52 [13:06:31]line ИТОГО: 340.00 [13:06:31]line Внесено: 340.00 [13:06:31]line СДАЧА: 0.00 [13:06:31]line НСП 1% : 3.01 [13:06:31]line НДС 12% : 36.16 [13:06:31]line Наличными: 340.00 [13:06:31]line Безнал.: 0.00 [13:06:31]line Место: АЗС № 170 "Партнер Нефть" [13:06:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:06:31]line СНО: Общий режим [13:06:31]line Чек 129 26.10.2024 13:06 [13:06:31]line Смена: 541 ФФД: 1.0 [13:06:31]line ЗНМ: 0300000110 [13:06:31]line РНМ: 0000000000091776 [13:06:31]line Версия ККМ: 001 [13:06:31]line ФМ: 0000000000871754 [13:06:31]line ФД: 191766 [13:06:31]line ФПД: 88795881191014 [13:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T130644&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191766&fm=88795881191014&tin=02508201610067®Number=0000000000091776&sum=34000 [13:06:32]OFD Sender: Processing packet 191766 [packets to send 75, broken 74] [13:06:32]ProducePacketName [13:06:32]name=ofd_packets/00191766 [13:06:32]OFD Sender: To server: pG, [13:06:32]CommunicateWithHost lk.salyk.kg:30040 [13:06:32]ConnectInit lk.salyk.kg [13:06:32]written 0, free lines is 4095 [13:06:32]Connected sock=10 [13:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD B0 07 01 14 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 64 E9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 ED 02 00 35 04 06 00 50 C2 66 F4 B6 66 0C 0F 2E 19 7D 61 93 BA [13:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8C C6 47 00 C0 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 16 ED 02 00 F4 03 04 00 2F 8E 1C 67 B6 04 01 00 00 B3 28 D8 47 76 AC 16 FB [13:06:32]CommunicateWithHost err = 0 [13:06:32]CheckOFDResponse [13:06:32]1017 (14) - 77093643461234 [13:06:32]1041 (16) - 0000000000871754 [13:06:32]1040 (4) - 191766 [13:06:32]1012 (4) - 26.10.2024 06:37 [13:06:32]1206 (1) - 0 [13:06:32]OFD Sender: Remove packet 191766 [13:06:32]ProducePacketName [13:06:32]name=ofd_packets/00191766 [13:06:32]NVStorageDeleteData [13:06:32]Write to MH i2c: 01 00 00 83 02 85 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 CD 0C 65 [13:06:32]RasterBufferAndPrint [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]line [13:06:32]written 0, free lines is 3283 [13:06:32]MH_Cut [13:06:32]Write to MH i2c: D1 01 00 8A 02 01 5E [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 01 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: D1 01 00 8A 02 00 5D [13:06:32]Write to MH i2c: 01 00 00 8B 02 8D [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]OFD Sender: No OFD packet to send [13:06:33]*** Cut start [13:06:33]*** Partial cut [13:06:33]*** CUTSNS_PIN = 1 [13:06:33]*** CUTSNS_PIN = 0 [13:06:33]*** Brake cut motor [13:06:34]Read from MH i2c: 01 [13:06:34]MH_I2C_Read... [13:06:34]*** Stop cut motor [13:06:34]*** Cut end [13:06:34]Read from MH i2c: 01 07 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: 01 07 00 8B 02 00 00 00 00 00 FF 0F A2 [13:06:34]process_action close_receipt done [13:06:34]requested_data is exist [13:06:34]produce_requested_data [13:06:34]requested_item fm.sn is exist - process it [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 11 00 00 [13:06:34]Write to MH i2c: E2 08 00 8C 02 80 11 00 00 00 00 00 00 08 [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 17 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 17 00 8C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [13:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:06:34]wFMCommunicate OK [13:06:34]requested_item fd.num is exist - process it [13:06:34]SAM_PROTO_GetFieldsCounters [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 13 00 00 [13:06:34]Write to MH i2c: E2 08 00 8D 02 80 13 00 00 00 00 00 00 0B [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 62 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 62 00 8D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [13:06:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 16 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:34]wFMCommunicate OK [13:06:34]SAM_PROTO_GetFieldsCounters done [13:06:34]requested_item shift.num is exist - process it [13:06:34]requested_item shift.opened is exist - process it [13:06:34]req_shift_opened [13:06:34]FM_GetShiftState [13:06:34]SAM_PROTO_GetShiftState [13:06:34]wFMCommunicate request_size=4 [13:06:34]MH_SAM_APDU [13:06:34]CAPDU: 80 13 01 00 [13:06:34]Write to MH i2c: E2 08 00 8E 02 80 13 01 00 00 00 00 00 0D [13:06:34]Write i2c OK [13:06:34]MH_I2C_Read... [13:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:34]Read from MH i2c: E2 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0E 00 [13:06:34]MH_I2C_Read... [13:06:34]Read from MH i2c: E2 0E 00 8E 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 86 [13:06:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:06:34]wFMCommunicate OK [13:06:34]SAM_PROTO_GetShiftState done [13:06:34]FM_GetShiftState done [13:06:34]req_shift_opened done [13:06:34]requested_item shift.open_date is exist - process it [13:06:34]req_shift_open_date [13:06:34]req_shift_open_date done [13:06:34]produce_requested_data done [13:06:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191766,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:06:34]process_action_free close_receipt [13:06:34]json_value_free [13:06:34]json_value_free done [13:06:34]process_json_proto returns [13:06:34]Send response to host [13:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191766,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:06:34]free response buf [13:06:34]execute_script done [13:06:34]execute_script returns [13:06:34]free content buf [13:06:34]Sock 9.Close socket [13:06:34]Sock 9.Thread stoped [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:21]accept exits with 8 [13:13:21]New connection [13:13:21]New thread 3066961252 created [13:13:21]Thread 3066817892 joined [13:13:21]Waiting for new connection... [13:13:21] Sock 8.Parse request [13:13:21]Sock 8.Check first char [13:13:21]Sock 8.First char is OK [13:13:21]request: POST /json_proto HTTP/1.0 [13:13:21]Method: POST [13:13:21]URL: /json_proto [13:13:21]Method is POST - this is cgi request [13:13:21]url: /json_proto [13:13:21]query_string will be loaded in cgi processing [13:13:21]execute_cgi json_proto POST (null) [13:13:21]execute_cgi path=json_proto method=POST [13:13:21]POST find Content-Length [13:13:21]Host: 172.17.63.131:8080 [13:13:21]Content-Length: 676 [13:13:21]Content-Type: application/json [13:13:21] [13:13:21]POST finish read [13:13:21]Found Content-Length = 676 [13:13:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:21]execute_script... [13:13: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)31073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:21]POST & json_proto [13:13:21]process_json_proto [13:13:21]json parsed OK: [13:13:21]protocol is kg_v1.0 [13:13:21]action value=close_receipt [13:13:21]process_action close_receipt [13:13:21]cmd_close_receipt [13:13:21]MH_GetDate [13:13:21]Write to MH i2c: F0 00 00 8F 02 80 [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: F0 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: F0 09 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: F0 09 00 8F 02 00 00 EB 1C 67 22 05 6E 64 F0 [13:13:21]GetLastDocTimeStamp 1729948004 [13:13:21]current date 1729948416 [13:13:21]FM_GetShiftState [13:13:21]SAM_PROTO_GetShiftState [13:13:21]wFMCommunicate request_size=4 [13:13:21]MH_SAM_APDU [13:13:21]CAPDU: 80 13 01 00 [13:13:21]Write to MH i2c: E2 08 00 90 02 80 13 01 00 00 00 00 00 0F [13:13:21]Write i2c OK [13:13:21]MH_I2C_Read... [13:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:21]Read from MH i2c: E2 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 0E 00 [13:13:21]MH_I2C_Read... [13:13:21]Read from MH i2c: E2 0E 00 90 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 88 [13:13:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:13:21]wFMCommunicate OK [13:13:21]SAM_PROTO_GetShiftState done [13:13:21]FM_GetShiftState done [13:13:21]opened in 1729902770 [13:13:21]opened+sec_in_day 1729989170 [13:13:21]quantity*price = 50041 [13:13:21]sum+1 = 50042 [13:13:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 130 26.10.2024 13:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191767 ФПД: 48764303603044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131336&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191767&fm=48764303603044&tin=02508201610067®Number=0000000000091776&sum=50000 [13:13:22]StoreToDocumentArchive [13:13:22]shift 541 fd 191767 [13:13:22]save to /storage/0541/doc_00191767 [13:13:22]save last doc name /storage/0541/doc_00191767 to /storage/kkm_last_doc_name [13:13:22]save OK [13:13:22]Clear old archive folders... [13:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:22]tlvbuf is 01B5D440 [13:13:22]SAM_PROTO_ClearQueue [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 09 00 00 [13:13:22]Write to MH i2c: E2 08 00 9D 02 80 09 00 00 00 00 00 00 11 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [13:13:22]RAPDU: 90 00 [13:13:22]wFMCommunicate OK [13:13:22]SAM_PROTO_ClearQueue done [13:13:22]KKMCreateOFDPacket [13:13:22]OFDProtocolAddRootSTLVToBuf [13:13:22]FM_MakeSignedData [13:13:22]FM_MakeSignedData [13:13:22]SAM_PROTO_SignData [13:13:22]wFMCommunicate request_size=4 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 0D 01 02 [13:13:22]Write to MH i2c: E2 08 00 9E 02 80 0D 01 02 00 00 00 00 19 [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:22]Read from MH i2c: E2 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 [13:13:22]MH_I2C_Read... [13:13:22]Read from MH i2c: E2 03 00 9E 02 00 90 00 14 [13:13:22]RAPDU: 90 00 [13:13:22]wFMCommunicate OK [13:13:22]wFMCommunicate request_size=255 [13:13:22]MH_SAM_APDU [13:13:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 00 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 ED 02 00 35 04 06 00 2C [13:13:22]Write to MH i2c: E2 02 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 ED 02 00 35 04 06 00 2C 00 00 EE [13:13:22]Write i2c OK [13:13:22]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 9F 02 00 90 00 15 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]wFMCommunicate request_size=10 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 02 02 05 59 D2 FE 75 64 [13:13:23]Write to MH i2c: E2 0D 00 A0 02 80 0D 02 02 05 00 59 D2 FE 75 64 00 00 28 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 03 00 A0 02 00 90 00 16 [13:13:23]RAPDU: 90 00 [13:13:23]wFMCommunicate OK [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 0D 03 02 [13:13:23]Write to MH i2c: E2 08 00 A1 02 80 0D 03 02 00 00 00 00 1E [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0B 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 0B 00 A1 02 00 D1 5C 8B 90 81 61 7A A1 90 00 64 [13:13:23]RAPDU: D1 5C 8B 90 81 61 7A A1 90 00 [13:13:23]wFMCommunicate OK [13:13:23]SAM_PROTO_SignData done [13:13:23]FM_MakeSignedData done [13:13:23]CreateOFDProtocolMessage [13:13:23]wFMCommunicate request_size=4 [13:13:23]MH_SAM_APDU [13:13:23]CAPDU: 80 11 00 00 [13:13:23]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:23]Read from MH i2c: E2 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [13:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:23]wFMCommunicate OK [13:13:23]CreateOFDProtocolMessage done [13:13:23]OFDSenderStorePacket 191767 [13:13:23]StoreOFDPacket docnum=191767 [13:13:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC FE 07 01 1C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 ED 02 00 35 04 06 00 2C 59 D2 FE 75 64 D1 5C 8B 90 81 61 7A A1 [13:13:23]CheckFolder [13:13:23]dirname=/storage/ofd_packets [13:13:23]CheckFolder done [13:13:23]ProducePacketName [13:13:23]name=ofd_packets/00191767 [13:13:23]NVStorageSaveData ofd_packets/00191767 [13:13:23]File name is /storage/ofd_packets/00191767 [13:13:23]Write 301 bytes [13:13:23]NVStorageSaveData done [13:13:23]OFDSenderStorePacket done [13:13:23]KKMCreateOFDPacket done [13:13:23]NVStorageSaveData kkm_last_timestamp [13:13:23]File name is /storage/kkm_last_timestamp [13:13:23]Write 4 bytes [13:13:23]NVStorageSaveData done [13:13:23]ExternCall_PrintAddStr [13:13:23]wPrintStart [13:13:23]Write to MH i2c: 01 00 00 A3 02 A5 [13:13:23]Write i2c OK [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 07 00 [13:13:23]MH_I2C_Read... [13:13:23]Read from MH i2c: 01 07 00 A3 02 00 00 00 00 00 FF 0F BA [13:13:23]RasterBufferAndPrint [13:13:23]line Счет N : (1)31073 [13:13:23]line ИНН: 02508201610067 [13:13:23]line Контрольно-Кассовый Чек [13:13:23]line ПРОДАЖА [13:13:23]line ТРК (МРК, ГНК) : 21 [13:13:23]line Товар: 2710124130 [13:13:23]line Аи-92-К-5 [13:13:23]line 7.480 * 66.90 [13:13:23]line = 500.41 [13:13:23]line НДС 12% НСП 1% [13:13:23]line > о реализуемом товаре [13:13:23]line ОКРУГЛЕНИЕ: -0.41 [13:13:23]line ИТОГО: 500.00 [13:13:23]line Внесено: 500.00 [13:13:23]line СДАЧА: 0.00 [13:13:23]line НСП 1% : 4.43 [13:13:23]line НДС 12% : 53.14 [13:13:23]line Наличными: 500.00 [13:13:23]line Безнал.: 0.00 [13:13:23]line Место: АЗС № 170 "Партнер Нефть" [13:13:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:13:23]line СНО: Общий режим [13:13:23]line Чек 130 26.10.2024 13:13 [13:13:23]line Смена: 541 ФФД: 1.0 [13:13:23]line ЗНМ: 0300000110 [13:13:23]line РНМ: 0000000000091776 [13:13:23]line Версия ККМ: 001 [13:13:23]line ФМ: 0000000000871754 [13:13:23]line ФД: 191767 [13:13:23]line ФПД: 48764303603044 [13:13:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131336&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191767&fm=48764303603044&tin=02508201610067®Number=0000000000091776&sum=50000 [13:13:23]OFD Sender: Processing packet 191767 [packets to send 75, broken 74] [13:13:23]ProducePacketName [13:13:23]name=ofd_packets/00191767 [13:13:23]OFD Sender: To server: pG, [13:13:23]CommunicateWithHost lk.salyk.kg:30040 [13:13:23]ConnectInit lk.salyk.kg [13:13:23]written 0, free lines is 4095 [13:13:23]Connected sock=10 [13:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CC FE 07 01 1C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 ED 02 00 35 04 06 00 2C 59 D2 FE 75 64 D1 5C 8B 90 81 61 7A A1 [13:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 00 9D 47 00 2A E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 17 ED 02 00 F4 03 04 00 CB 8F 1C 67 B6 04 01 00 00 2D 47 E7 AB 44 7B EF 4F [13:13:23]CommunicateWithHost err = 0 [13:13:23]CheckOFDResponse [13:13:23]1017 (14) - 77093643461234 [13:13:23]1041 (16) - 0000000000871754 [13:13:23]1040 (4) - 191767 [13:13:23]1012 (4) - 26.10.2024 06:44 [13:13:23]1206 (1) - 0 [13:13:23]OFD Sender: Remove packet 191767 [13:13:23]ProducePacketName [13:13:23]name=ofd_packets/00191767 [13:13:23]NVStorageDeleteData [13:13:23]Write to MH i2c: 01 00 00 CE 02 D0 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: 01 07 00 CE 02 00 00 00 00 00 B8 0C 9B [13:13:24]RasterBufferAndPrint [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]line [13:13:24]written 0, free lines is 3263 [13:13:24]MH_Cut [13:13:24]Write to MH i2c: D1 01 00 D5 02 01 A9 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 01 00 [13:13:24]MH_I2C_Read... [13:13:24]Read from MH i2c: D1 01 00 D5 02 00 A8 [13:13:24]Write to MH i2c: 01 00 00 D6 02 D8 [13:13:24]Write i2c OK [13:13:24]MH_I2C_Read... [13:13:24]OFD Sender: No OFD packet to send [13:13:24]*** Cut start [13:13:24]*** Partial cut [13:13:24]*** CUTSNS_PIN = 1 [13:13:24]*** CUTSNS_PIN = 0 [13:13:25]*** Brake cut motor [13:13:25]Read from MH i2c: 01 [13:13:25]MH_I2C_Read... [13:13:25]*** Stop cut motor [13:13:25]*** Cut end [13:13:25]Read from MH i2c: 01 07 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: 01 07 00 D6 02 00 00 00 00 00 FF 0F ED [13:13:25]process_action close_receipt done [13:13:25]requested_data is exist [13:13:25]produce_requested_data [13:13:25]requested_item fm.sn is exist - process it [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 11 00 00 [13:13:25]Write to MH i2c: E2 08 00 D7 02 80 11 00 00 00 00 00 00 53 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 17 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 17 00 D7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [13:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:25]wFMCommunicate OK [13:13:25]requested_item fd.num is exist - process it [13:13:25]SAM_PROTO_GetFieldsCounters [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 13 00 00 [13:13:25]Write to MH i2c: E2 08 00 D8 02 80 13 00 00 00 00 00 00 56 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 62 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 62 00 D8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [13:13:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 17 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:25]wFMCommunicate OK [13:13:25]SAM_PROTO_GetFieldsCounters done [13:13:25]requested_item shift.num is exist - process it [13:13:25]requested_item shift.opened is exist - process it [13:13:25]req_shift_opened [13:13:25]FM_GetShiftState [13:13:25]SAM_PROTO_GetShiftState [13:13:25]wFMCommunicate request_size=4 [13:13:25]MH_SAM_APDU [13:13:25]CAPDU: 80 13 01 00 [13:13:25]Write to MH i2c: E2 08 00 D9 02 80 13 01 00 00 00 00 00 58 [13:13:25]Write i2c OK [13:13:25]MH_I2C_Read... [13:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:25]Read from MH i2c: E2 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 0E 00 [13:13:25]MH_I2C_Read... [13:13:25]Read from MH i2c: E2 0E 00 D9 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D1 [13:13:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:13:25]wFMCommunicate OK [13:13:25]SAM_PROTO_GetShiftState done [13:13:25]FM_GetShiftState done [13:13:25]req_shift_opened done [13:13:25]requested_item shift.open_date is exist - process it [13:13:25]req_shift_open_date [13:13:25]req_shift_open_date done [13:13:25]produce_requested_data done [13:13:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191767,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:13:25]process_action_free close_receipt [13:13:25]json_value_free [13:13:25]json_value_free done [13:13:25]process_json_proto returns [13:13:25]Send response to host [13:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191767,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:13:25]free response buf [13:13:25]execute_script done [13:13:25]execute_script returns [13:13:25]free content buf [13:13:25]Sock 8.Close socket [13:13:25]Sock 8.Thread stoped [13:13:27]accept exits with 9 [13:13:27]New connection [13:13:27]New thread 3066817892 created [13:13:27]Thread 3066961252 joined [13:13:27]Waiting for new connection... [13:13:27] Sock 9.Parse request [13:13:27]Sock 9.Check first char [13:13:27]Sock 9.First char is OK [13:13:27]request: POST /json_proto HTTP/1.0 [13:13:27]Method: POST [13:13:27]URL: /json_proto [13:13:27]Method is POST - this is cgi request [13:13:27]url: /json_proto [13:13:27]query_string will be loaded in cgi processing [13:13:27]execute_cgi json_proto POST (null) [13:13:27]execute_cgi path=json_proto method=POST [13:13:27]POST find Content-Length [13:13:27]Host: 172.17.63.131:8080 [13:13:27]Content-Length: 676 [13:13:27]Content-Type: application/json [13:13:27] [13:13:27]POST finish read [13:13:27]Found Content-Length = 676 [13:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:27]execute_script... [13:13: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)31072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:27]POST & json_proto [13:13:27]process_json_proto [13:13:27]json parsed OK: [13:13:27]protocol is kg_v1.0 [13:13:27]action value=close_receipt [13:13:27]process_action close_receipt [13:13:27]cmd_close_receipt [13:13:27]MH_GetDate [13:13:27]Write to MH i2c: F0 00 00 DA 02 CB [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: F0 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: F0 09 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: F0 09 00 DA 02 00 05 EB 1C 67 22 05 6E 64 40 [13:13:27]GetLastDocTimeStamp 1729948416 [13:13:27]current date 1729948421 [13:13:27]FM_GetShiftState [13:13:27]SAM_PROTO_GetShiftState [13:13:27]wFMCommunicate request_size=4 [13:13:27]MH_SAM_APDU [13:13:27]CAPDU: 80 13 01 00 [13:13:27]Write to MH i2c: E2 08 00 DB 02 80 13 01 00 00 00 00 00 5A [13:13:27]Write i2c OK [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 [13:13:27]MH_I2C_Read... [13:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:27]Read from MH i2c: E2 0E 00 [13:13:27]MH_I2C_Read... [13:13:27]Read from MH i2c: E2 0E 00 DB 02 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D3 [13:13:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:13:27]wFMCommunicate OK [13:13:27]SAM_PROTO_GetShiftState done [13:13:27]FM_GetShiftState done [13:13:27]opened in 1729902770 [13:13:27]opened+sec_in_day 1729989170 [13:13:27]quantity*price = 50041 [13:13:27]sum+1 = 50042 [13:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 131 26.10.2024 13:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191768 ФПД: 236369397129106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131341&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191768&fm=236369397129106&tin=02508201610067®Number=0000000000091776&sum=50000 [13:13:28]StoreToDocumentArchive [13:13:28]shift 541 fd 191768 [13:13:28]save to /storage/0541/doc_00191768 [13:13:28]save last doc name /storage/0541/doc_00191768 to /storage/kkm_last_doc_name [13:13:28]save OK [13:13:28]Clear old archive folders... [13:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:28]tlvbuf is 01B5CFD0 [13:13:28]SAM_PROTO_ClearQueue [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 09 00 00 [13:13:28]Write to MH i2c: E2 08 00 E8 02 80 09 00 00 00 00 00 00 5C [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]SAM_PROTO_ClearQueue done [13:13:28]KKMCreateOFDPacket [13:13:28]OFDProtocolAddRootSTLVToBuf [13:13:28]FM_MakeSignedData [13:13:28]FM_MakeSignedData [13:13:28]SAM_PROTO_SignData [13:13:28]wFMCommunicate request_size=4 [13:13:28]MH_SAM_APDU [13:13:28]CAPDU: 80 0D 01 02 [13:13:28]Write to MH i2c: E2 08 00 E9 02 80 0D 01 02 00 00 00 00 64 [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:28]Read from MH i2c: E2 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 [13:13:28]MH_I2C_Read... [13:13:28]Read from MH i2c: E2 03 00 E9 02 00 90 00 5F [13:13:28]RAPDU: 90 00 [13:13:28]wFMCommunicate OK [13:13:28]wFMCommunicate request_size=255 [13:13:28]MH_SAM_APDU [13:13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 05 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 ED 02 00 35 04 06 00 D6 [13:13:28]Write to MH i2c: E2 02 01 EA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 05 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 ED 02 00 35 04 06 00 D6 00 00 EA [13:13:28]Write i2c OK [13:13:28]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 EA 02 00 90 00 60 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=10 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 02 02 05 FA 09 F3 9F 92 [13:13:29]Write to MH i2c: E2 0D 00 EB 02 80 0D 02 02 05 00 FA 09 F3 9F 92 00 00 98 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 03 00 EB 02 00 90 00 61 [13:13:29]RAPDU: 90 00 [13:13:29]wFMCommunicate OK [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 0D 03 02 [13:13:29]Write to MH i2c: E2 08 00 EC 02 80 0D 03 02 00 00 00 00 69 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0B 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 0B 00 EC 02 00 EE 21 3F 77 DB 0A 49 C3 90 00 20 [13:13:29]RAPDU: EE 21 3F 77 DB 0A 49 C3 90 00 [13:13:29]wFMCommunicate OK [13:13:29]SAM_PROTO_SignData done [13:13:29]FM_MakeSignedData done [13:13:29]CreateOFDProtocolMessage [13:13:29]wFMCommunicate request_size=4 [13:13:29]MH_SAM_APDU [13:13:29]CAPDU: 80 11 00 00 [13:13:29]Write to MH i2c: E2 08 00 ED 02 80 11 00 00 00 00 00 00 69 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:29]Read from MH i2c: E2 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: E2 17 00 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [13:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:29]wFMCommunicate OK [13:13:29]CreateOFDProtocolMessage done [13:13:29]OFDSenderStorePacket 191768 [13:13:29]StoreOFDPacket docnum=191768 [13:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 63 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 05 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 ED 02 00 35 04 06 00 D6 FA 09 F3 9F 92 EE 21 3F 77 DB 0A 49 C3 [13:13:29]CheckFolder [13:13:29]dirname=/storage/ofd_packets [13:13:29]CheckFolder done [13:13:29]ProducePacketName [13:13:29]name=ofd_packets/00191768 [13:13:29]NVStorageSaveData ofd_packets/00191768 [13:13:29]File name is /storage/ofd_packets/00191768 [13:13:29]Write 301 bytes [13:13:29]NVStorageSaveData done [13:13:29]OFDSenderStorePacket done [13:13:29]KKMCreateOFDPacket done [13:13:29]NVStorageSaveData kkm_last_timestamp [13:13:29]File name is /storage/kkm_last_timestamp [13:13:29]Write 4 bytes [13:13:29]NVStorageSaveData done [13:13:29]ExternCall_PrintAddStr [13:13:29]wPrintStart [13:13:29]Write to MH i2c: 01 00 00 EE 02 F0 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 EE 02 00 00 00 00 00 FF 0F 05 [13:13:29]RasterBufferAndPrint [13:13:29]line Счет N : (1)31072 [13:13:29]line ИНН: 02508201610067 [13:13:29]line Контрольно-Кассовый Чек [13:13:29]line ПРОДАЖА [13:13:29]line ТРК (МРК, ГНК) : 12 [13:13:29]line Товар: 2710124130 [13:13:29]line Аи-92-К-5 [13:13:29]line 7.480 * 66.90 [13:13:29]line = 500.41 [13:13:29]line НДС 12% НСП 1% [13:13:29]line > о реализуемом товаре [13:13:29]line ОКРУГЛЕНИЕ: -0.41 [13:13:29]line ИТОГО: 500.00 [13:13:29]line Внесено: 500.00 [13:13:29]line СДАЧА: 0.00 [13:13:29]line НСП 1% : 4.43 [13:13:29]line НДС 12% : 53.14 [13:13:29]line Наличными: 500.00 [13:13:29]line Безнал.: 0.00 [13:13:29]line Место: АЗС № 170 "Партнер Нефть" [13:13:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:13:29]line СНО: Общий режим [13:13:29]line Чек 131 26.10.2024 13:13 [13:13:29]line Смена: 541 ФФД: 1.0 [13:13:29]line ЗНМ: 0300000110 [13:13:29]line РНМ: 0000000000091776 [13:13:29]line Версия ККМ: 001 [13:13:29]line ФМ: 0000000000871754 [13:13:29]line ФД: 191768 [13:13:29]line ФПД: 236369397129106 [13:13:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131341&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191768&fm=236369397129106&tin=02508201610067®Number=0000000000091776&sum=50000 [13:13:29]written 0, free lines is 4095 [13:13:29]OFD Sender: Processing packet 191768 [packets to send 75, broken 74] [13:13:29]ProducePacketName [13:13:29]name=ofd_packets/00191768 [13:13:29]OFD Sender: To server: pG, [13:13:29]CommunicateWithHost lk.salyk.kg:30040 [13:13:29]ConnectInit lk.salyk.kg [13:13:29]Connected sock=10 [13:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 63 07 01 F6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 05 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 ED 02 00 35 04 06 00 D6 FA 09 F3 9F 92 EE 21 3F 77 DB 0A 49 C3 [13:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 56 5D 47 00 31 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 18 ED 02 00 F4 03 04 00 D1 8F 1C 67 B6 04 01 00 00 EB 59 0F 0F E8 9F 97 D3 [13:13:29]CommunicateWithHost err = 0 [13:13:29]CheckOFDResponse [13:13:29]1017 (14) - 77093643461234 [13:13:29]1041 (16) - 0000000000871754 [13:13:29]1040 (4) - 191768 [13:13:29]1012 (4) - 26.10.2024 06:44 [13:13:29]1206 (1) - 0 [13:13:29]OFD Sender: Remove packet 191768 [13:13:29]ProducePacketName [13:13:29]name=ofd_packets/00191768 [13:13:29]NVStorageDeleteData [13:13:29]Write to MH i2c: 01 00 00 19 03 1C [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 DF 0C 0E [13:13:29]RasterBufferAndPrint [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]line [13:13:29]written 0, free lines is 3307 [13:13:29]MH_Cut [13:13:29]Write to MH i2c: D1 01 00 20 03 01 F5 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 01 00 [13:13:29]MH_I2C_Read... [13:13:29]Read from MH i2c: D1 01 00 20 03 00 F4 [13:13:29]Write to MH i2c: 01 00 00 21 03 24 [13:13:29]Write i2c OK [13:13:29]MH_I2C_Read... [13:13:30]OFD Sender: No OFD packet to send [13:13:30]*** Cut start [13:13:30]*** Partial cut [13:13:30]*** CUTSNS_PIN = 1 [13:13:30]*** CUTSNS_PIN = 0 [13:13:30]*** Brake cut motor [13:13:31]Read from MH i2c: 01 [13:13:31]MH_I2C_Read... [13:13:31]*** Stop cut motor [13:13:31]*** Cut end [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 21 03 00 00 00 00 00 FF 0F 39 [13:13:31]process_action close_receipt done [13:13:31]requested_data is exist [13:13:31]produce_requested_data [13:13:31]requested_item fm.sn is exist - process it [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 22 03 80 11 00 00 00 00 00 00 9F [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 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [13:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:13:31]wFMCommunicate OK [13:13:31]requested_item fd.num is exist - process it [13:13:31]SAM_PROTO_GetFieldsCounters [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 13 00 00 [13:13:31]Write to MH i2c: E2 08 00 23 03 80 13 00 00 00 00 00 00 A2 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 62 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 62 00 23 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [13:13:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 18 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_GetFieldsCounters done [13:13:31]requested_item shift.num is exist - process it [13:13:31]requested_item shift.opened is exist - process it [13:13:31]req_shift_opened [13:13:31]FM_GetShiftState [13:13:31]SAM_PROTO_GetShiftState [13:13:31]wFMCommunicate request_size=4 [13:13:31]MH_SAM_APDU [13:13:31]CAPDU: 80 13 01 00 [13:13:31]Write to MH i2c: E2 08 00 24 03 80 13 01 00 00 00 00 00 A4 [13:13:31]Write i2c OK [13:13:31]MH_I2C_Read... [13:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:31]Read from MH i2c: E2 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 [13:13:31]MH_I2C_Read... [13:13:31]Read from MH i2c: E2 0E 00 24 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1D [13:13:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:13:31]wFMCommunicate OK [13:13:31]SAM_PROTO_GetShiftState done [13:13:31]FM_GetShiftState done [13:13:31]req_shift_opened done [13:13:31]requested_item shift.open_date is exist - process it [13:13:31]req_shift_open_date [13:13:31]req_shift_open_date done [13:13:31]produce_requested_data done [13:13:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191768,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:13:31]process_action_free close_receipt [13:13:31]json_value_free [13:13:31]json_value_free done [13:13:31]process_json_proto returns [13:13:31]Send response to host [13:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191768,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:13:31]free response buf [13:13:31]execute_script done [13:13:31]execute_script returns [13:13:31]free content buf [13:13:31]Sock 9.Close socket [13:13:31]Sock 9.Thread stoped [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:50]OFD Sender: No OFD packet to send [13:13:55]OFD Sender: No OFD packet to send [13:14:00]OFD Sender: No OFD packet to send [13:14:05]OFD Sender: No OFD packet to send [13:14:10]OFD Sender: No OFD packet to send [13:14:15]OFD Sender: No OFD packet to send [13:14:20]OFD Sender: No OFD packet to send [13:14:25]OFD Sender: No OFD packet to send [13:14:30]OFD Sender: No OFD packet to send [13:14:35]OFD Sender: No OFD packet to send [13:14:40]OFD Sender: No OFD packet to send [13:14:45]OFD Sender: No OFD packet to send [13:14:50]OFD Sender: No OFD packet to send [13:14:55]OFD Sender: No OFD packet to send [13:15:00]OFD Sender: No OFD packet to send [13:15:05]OFD Sender: No OFD packet to send [13:15:10]OFD Sender: No OFD packet to send [13:15:15]OFD Sender: No OFD packet to send [13:15:20]OFD Sender: No OFD packet to send [13:15:25]OFD Sender: No OFD packet to send [13:15:30]OFD Sender: No OFD packet to send [13:15:35]OFD Sender: No OFD packet to send [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:42]accept exits with 8 [13:16:42]New connection [13:16:42]New thread 3066961252 created [13:16:42]Thread 3066817892 joined [13:16:42]Waiting for new connection... [13:16:42] Sock 8.Parse request [13:16:42]Sock 8.Check first char [13:16:42]Sock 8.First char is OK [13:16:42]request: POST /json_proto HTTP/1.0 [13:16:42]Method: POST [13:16:42]URL: /json_proto [13:16:42]Method is POST - this is cgi request [13:16:42]url: /json_proto [13:16:42]query_string will be loaded in cgi processing [13:16:42]execute_cgi json_proto POST (null) [13:16:42]execute_cgi path=json_proto method=POST [13:16:42]POST find Content-Length [13:16:42]Host: 172.17.63.131:8080 [13:16:42]Content-Length: 676 [13:16:42]Content-Type: application/json [13:16:42] [13:16:42]POST finish read [13:16:42]Found Content-Length = 676 [13:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:42]execute_script... [13:16: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)31074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:42]POST & json_proto [13:16:42]process_json_proto [13:16:42]json parsed OK: [13:16:42]protocol is kg_v1.0 [13:16:42]action value=close_receipt [13:16:42]process_action close_receipt [13:16:42]cmd_close_receipt [13:16:42]MH_GetDate [13:16:42]Write to MH i2c: F0 00 00 25 03 17 [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 09 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: F0 09 00 25 03 00 C9 EB 1C 67 22 05 6E 64 50 [13:16:42]GetLastDocTimeStamp 1729948421 [13:16:42]current date 1729948617 [13:16:42]FM_GetShiftState [13:16:42]SAM_PROTO_GetShiftState [13:16:42]wFMCommunicate request_size=4 [13:16:42]MH_SAM_APDU [13:16:42]CAPDU: 80 13 01 00 [13:16:42]Write to MH i2c: E2 08 00 26 03 80 13 01 00 00 00 00 00 A6 [13:16:42]Write i2c OK [13:16:42]MH_I2C_Read... [13:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:42]Read from MH i2c: E2 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 [13:16:42]MH_I2C_Read... [13:16:42]Read from MH i2c: E2 0E 00 26 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1F [13:16:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:16:42]wFMCommunicate OK [13:16:42]SAM_PROTO_GetShiftState done [13:16:42]FM_GetShiftState done [13:16:42]opened in 1729902770 [13:16:42]opened+sec_in_day 1729989170 [13:16:42]quantity*price = 40006 [13:16:42]sum+1 = 40007 [13:16:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 132 26.10.2024 13:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191769 ФПД: 136533932027651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191769&fm=136533932027651&tin=02508201610067®Number=0000000000091776&sum=40000 [13:16:44]StoreToDocumentArchive [13:16:44]shift 541 fd 191769 [13:16:44]save to /storage/0541/doc_00191769 [13:16:44]save last doc name /storage/0541/doc_00191769 to /storage/kkm_last_doc_name [13:16:44]save OK [13:16:44]Clear old archive folders... [13:16:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:44]tlvbuf is 0187D3F0 [13:16:44]SAM_PROTO_ClearQueue [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 09 00 00 [13:16:44]Write to MH i2c: E2 08 00 33 03 80 09 00 00 00 00 00 00 A8 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]SAM_PROTO_ClearQueue done [13:16:44]KKMCreateOFDPacket [13:16:44]OFDProtocolAddRootSTLVToBuf [13:16:44]FM_MakeSignedData [13:16:44]FM_MakeSignedData [13:16:44]SAM_PROTO_SignData [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 01 02 [13:16:44]Write to MH i2c: E2 08 00 34 03 80 0D 01 02 00 00 00 00 B0 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 34 03 00 90 00 AB [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=255 [13:16:44]MH_SAM_APDU [13: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C9 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 ED 02 00 35 04 06 00 7C [13:16:44]Write to MH i2c: E2 02 01 35 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C9 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 ED 02 00 35 04 06 00 7C 00 00 71 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 35 03 00 90 00 AC [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=10 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 02 02 05 2D 48 84 AF 03 [13:16:44]Write to MH i2c: E2 0D 00 36 03 80 0D 02 02 05 00 2D 48 84 AF 03 00 00 68 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 03 00 36 03 00 90 00 AD [13:16:44]RAPDU: 90 00 [13:16:44]wFMCommunicate OK [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 0D 03 02 [13:16:44]Write to MH i2c: E2 08 00 37 03 80 0D 03 02 00 00 00 00 B5 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 0B 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 0B 00 37 03 00 EF 1C EE 29 E2 1E 8A 36 90 00 98 [13:16:44]RAPDU: EF 1C EE 29 E2 1E 8A 36 90 00 [13:16:44]wFMCommunicate OK [13:16:44]SAM_PROTO_SignData done [13:16:44]FM_MakeSignedData done [13:16:44]CreateOFDProtocolMessage [13:16:44]wFMCommunicate request_size=4 [13:16:44]MH_SAM_APDU [13:16:44]CAPDU: 80 11 00 00 [13:16:44]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:44]Read from MH i2c: E2 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 17 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [13:16:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:16:44]wFMCommunicate OK [13:16:44]CreateOFDProtocolMessage done [13:16:44]OFDSenderStorePacket 191769 [13:16:44]StoreOFDPacket docnum=191769 [13:16:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CD C3 07 01 87 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C9 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 ED 02 00 35 04 06 00 7C 2D 48 84 AF 03 EF 1C EE 29 E2 1E 8A 36 [13:16:44]CheckFolder [13:16:44]dirname=/storage/ofd_packets [13:16:44]CheckFolder done [13:16:44]ProducePacketName [13:16:44]name=ofd_packets/00191769 [13:16:44]NVStorageSaveData ofd_packets/00191769 [13:16:44]File name is /storage/ofd_packets/00191769 [13:16:44]Write 301 bytes [13:16:44]NVStorageSaveData done [13:16:44]OFDSenderStorePacket done [13:16:44]KKMCreateOFDPacket done [13:16:44]NVStorageSaveData kkm_last_timestamp [13:16:44]File name is /storage/kkm_last_timestamp [13:16:44]Write 4 bytes [13:16:44]NVStorageSaveData done [13:16:44]ExternCall_PrintAddStr [13:16:44]wPrintStart [13:16:44]Write to MH i2c: 01 00 00 39 03 3C [13:16:44]Write i2c OK [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 07 00 [13:16:44]MH_I2C_Read... [13:16:44]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 FF 0F 51 [13:16:44]RasterBufferAndPrint [13:16:44]line Счет N : (1)31074 [13:16:44]line ИНН: 02508201610067 [13:16:44]line Контрольно-Кассовый Чек [13:16:44]line ПРОДАЖА [13:16:44]line ТРК (МРК, ГНК) : 21 [13:16:44]line Товар: 2710124130 [13:16:44]line Аи-92-К-5 [13:16:44]line 5.980 * 66.90 [13:16:44]line = 400.06 [13:16:44]line НДС 12% НСП 1% [13:16:44]line > о реализуемом товаре [13:16:44]line ОКРУГЛЕНИЕ: -0.06 [13:16:44]line ИТОГО: 400.00 [13:16:44]line Внесено: 400.00 [13:16:44]line СДАЧА: 0.00 [13:16:44]line НСП 1% : 3.54 [13:16:44]line НДС 12% : 42.48 [13:16:44]line Наличными: 400.00 [13:16:44]line Безнал.: 0.00 [13:16:44]line Место: АЗС № 170 "Партнер Нефть" [13:16:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:16:44]line СНО: Общий режим [13:16:44]line Чек 132 26.10.2024 13:16 [13:16:44]line Смена: 541 ФФД: 1.0 [13:16:44]line ЗНМ: 0300000110 [13:16:44]line РНМ: 0000000000091776 [13:16:44]line Версия ККМ: 001 [13:16:44]line ФМ: 0000000000871754 [13:16:44]line ФД: 191769 [13:16:44]line ФПД: 136533932027651 [13:16:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T131657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191769&fm=136533932027651&tin=02508201610067®Number=0000000000091776&sum=40000 [13:16:44]OFD Sender: Processing packet 191769 [packets to send 75, broken 74] [13:16:44]ProducePacketName [13:16:44]name=ofd_packets/00191769 [13:16:44]OFD Sender: To server: pG, [13:16:44]CommunicateWithHost lk.salyk.kg:30040 [13:16:44]ConnectInit lk.salyk.kg [13:16:44]written 0, free lines is 4095 [13:16:45]Connected sock=10 [13: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 31 37 35 34 0F 01 00 00 CD C3 07 01 87 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 C9 EB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 ED 02 00 35 04 06 00 7C 2D 48 84 AF 03 EF 1C EE 29 E2 1E 8A 36 [13:16:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 25 47 00 09 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 19 ED 02 00 F4 03 04 00 94 90 1C 67 B6 04 01 00 00 20 12 F1 BE 56 65 71 0D [13:16:45]CommunicateWithHost err = 0 [13:16:45]CheckOFDResponse [13:16:45]1017 (14) - 77093643461234 [13:16:45]1041 (16) - 0000000000871754 [13:16:45]1040 (4) - 191769 [13:16:45]1012 (4) - 26.10.2024 06:47 [13:16:45]1206 (1) - 0 [13:16:45]OFD Sender: Remove packet 191769 [13:16:45]ProducePacketName [13:16:45]name=ofd_packets/00191769 [13:16:45]NVStorageDeleteData [13:16:45]Write to MH i2c: 01 00 00 64 03 67 [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 07 00 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 C2 0C 3C [13:16:45]RasterBufferAndPrint [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]line [13:16:45]written 0, free lines is 3275 [13:16:45]MH_Cut [13:16:45]Write to MH i2c: D1 01 00 6B 03 01 40 [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 01 00 [13:16:45]MH_I2C_Read... [13:16:45]Read from MH i2c: D1 01 00 6B 03 00 3F [13:16:45]Write to MH i2c: 01 00 00 6C 03 6F [13:16:45]Write i2c OK [13:16:45]MH_I2C_Read... [13:16:45]OFD Sender: No OFD packet to send [13:16:46]*** Cut start [13:16:46]*** Partial cut [13:16:46]*** CUTSNS_PIN = 1 [13:16:46]*** CUTSNS_PIN = 0 [13:16:46]*** Brake cut motor [13:16:46]Read from MH i2c: 01 [13:16:46]MH_I2C_Read... [13:16:46]*** Stop cut motor [13:16:46]*** Cut end [13:16:46]Read from MH i2c: 01 07 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: 01 07 00 6C 03 00 00 00 00 00 FF 0F 84 [13:16:46]process_action close_receipt done [13:16:46]requested_data is exist [13:16:46]produce_requested_data [13:16:46]requested_item fm.sn is exist - process it [13:16:46]wFMCommunicate request_size=4 [13:16:46]MH_SAM_APDU [13:16:46]CAPDU: 80 11 00 00 [13:16:46]Write to MH i2c: E2 08 00 6D 03 80 11 00 00 00 00 00 00 EA [13:16:46]Write i2c OK [13:16:46]MH_I2C_Read... [13:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:46]Read from MH i2c: E2 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 17 00 [13:16:46]MH_I2C_Read... [13:16:46]Read from MH i2c: E2 17 00 6D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [13:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:16:46]wFMCommunicate OK [13:16:46]requested_item fd.num is exist - process it [13:16:46]SAM_PROTO_GetFieldsCounters [13:16:46]wFMCommunicate request_size=4 [13:16:46]MH_SAM_APDU [13:16:46]CAPDU: 80 13 00 00 [13:16:46]Write to MH i2c: E2 08 00 6E 03 80 13 00 00 00 00 00 00 ED [13:16:46]Write i2c OK [13:16:46]MH_I2C_Read... [13:16:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:47]Read from MH i2c: E2 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 62 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 62 00 6E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [13: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 19 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:47]wFMCommunicate OK [13:16:47]SAM_PROTO_GetFieldsCounters done [13:16:47]requested_item shift.num is exist - process it [13:16:47]requested_item shift.opened is exist - process it [13:16:47]req_shift_opened [13:16:47]FM_GetShiftState [13:16:47]SAM_PROTO_GetShiftState [13:16:47]wFMCommunicate request_size=4 [13:16:47]MH_SAM_APDU [13:16:47]CAPDU: 80 13 01 00 [13:16:47]Write to MH i2c: E2 08 00 6F 03 80 13 01 00 00 00 00 00 EF [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:47]Read from MH i2c: E2 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 6F 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 68 [13:16:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:16:47]wFMCommunicate OK [13:16:47]SAM_PROTO_GetShiftState done [13:16:47]FM_GetShiftState done [13:16:47]req_shift_opened done [13:16:47]requested_item shift.open_date is exist - process it [13:16:47]req_shift_open_date [13:16:47]req_shift_open_date done [13:16:47]produce_requested_data done [13:16:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191769,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:16:47]process_action_free close_receipt [13:16:47]json_value_free [13:16:47]json_value_free done [13:16:47]process_json_proto returns [13:16:47]Send response to host [13:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191769,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:16:47]free response buf [13:16:47]execute_script done [13:16:47]execute_script returns [13:16:47]free content buf [13:16:47]Sock 8.Close socket [13:16:47]Sock 8.Thread stoped [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]accept exits with 9 [13:25:41]New connection [13:25:41]New thread 3066817892 created [13:25:41]Thread 3066961252 joined [13:25:41]Waiting for new connection... [13:25:41] Sock 9.Parse request [13:25:41]Sock 9.Check first char [13:25:41]Sock 9.First char is OK [13:25:41]request: POST /json_proto HTTP/1.0 [13:25:41]Method: POST [13:25:41]URL: /json_proto [13:25:41]Method is POST - this is cgi request [13:25:41]url: /json_proto [13:25:41]query_string will be loaded in cgi processing [13:25:41]execute_cgi json_proto POST (null) [13:25:41]execute_cgi path=json_proto method=POST [13:25:41]POST find Content-Length [13:25:41]Host: 172.17.63.131:8080 [13:25:41]Content-Length: 676 [13:25:41]Content-Type: application/json [13:25:41] [13:25:41]POST finish read [13:25:41]Found Content-Length = 676 [13:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:41]execute_script... [13:25: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)31075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:41]POST & json_proto [13:25:41]process_json_proto [13:25:41]json parsed OK: [13:25:41]protocol is kg_v1.0 [13:25:41]action value=close_receipt [13:25:41]process_action close_receipt [13:25:41]cmd_close_receipt [13:25:41]MH_GetDate [13:25:41]Write to MH i2c: F0 00 00 70 03 62 [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: F0 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: F0 09 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: F0 09 00 70 03 00 E3 ED 1C 67 22 05 6E 64 B7 [13:25:41]GetLastDocTimeStamp 1729948617 [13:25:41]current date 1729949155 [13:25:41]FM_GetShiftState [13:25:41]SAM_PROTO_GetShiftState [13:25:41]wFMCommunicate request_size=4 [13:25:41]MH_SAM_APDU [13:25:41]CAPDU: 80 13 01 00 [13:25:41]Write to MH i2c: E2 08 00 71 03 80 13 01 00 00 00 00 00 F1 [13:25:41]Write i2c OK [13:25:41]MH_I2C_Read... [13:25:41]OFD Sender: No OFD packet to send [13:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:41]Read from MH i2c: E2 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 0E 00 [13:25:41]MH_I2C_Read... [13:25:41]Read from MH i2c: E2 0E 00 71 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6A [13:25:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:25:41]wFMCommunicate OK [13:25:41]SAM_PROTO_GetShiftState done [13:25:41]FM_GetShiftState done [13:25:41]opened in 1729902770 [13:25:41]opened+sec_in_day 1729989170 [13:25:41]quantity*price = 50041 [13:25:41]sum+1 = 50042 [13:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 133 26.10.2024 13:25 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191770 ФПД: 176149372174724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132556&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191770&fm=176149372174724&tin=02508201610067®Number=0000000000091776&sum=50000 [13:25:42]StoreToDocumentArchive [13:25:42]shift 541 fd 191770 [13:25:42]save to /storage/0541/doc_00191770 [13:25:42]save last doc name /storage/0541/doc_00191770 to /storage/kkm_last_doc_name [13:25:42]save OK [13:25:42]Clear old archive folders... [13:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:42]tlvbuf is 016EB0F0 [13:25:42]SAM_PROTO_ClearQueue [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 09 00 00 [13:25:42]Write to MH i2c: E2 08 00 7E 03 80 09 00 00 00 00 00 00 F3 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [13:25:42]RAPDU: 90 00 [13:25:42]wFMCommunicate OK [13:25:42]SAM_PROTO_ClearQueue done [13:25:42]KKMCreateOFDPacket [13:25:42]OFDProtocolAddRootSTLVToBuf [13:25:42]FM_MakeSignedData [13:25:42]FM_MakeSignedData [13:25:42]SAM_PROTO_SignData [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 0D 01 02 [13:25:42]Write to MH i2c: E2 08 00 7F 03 80 0D 01 02 00 00 00 00 FB [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 7F 03 00 90 00 F6 [13:25:42]RAPDU: 90 00 [13:25:42]wFMCommunicate OK [13:25:42]wFMCommunicate request_size=255 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A ED 02 00 35 04 06 00 A0 [13:25:42]Write to MH i2c: E2 02 01 80 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A ED 02 00 35 04 06 00 A0 00 00 30 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 80 03 00 90 00 F7 [13:25:42]RAPDU: 90 00 [13:25:42]wFMCommunicate OK [13:25:42]wFMCommunicate request_size=10 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 0D 02 02 05 34 F8 C1 81 84 [13:25:42]Write to MH i2c: E2 0D 00 81 03 80 0D 02 02 05 00 34 F8 C1 81 84 00 00 FA [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 03 00 81 03 00 90 00 F8 [13:25:42]RAPDU: 90 00 [13:25:42]wFMCommunicate OK [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 0D 03 02 [13:25:42]Write to MH i2c: E2 08 00 82 03 80 0D 03 02 00 00 00 00 00 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 0B 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 0B 00 82 03 00 93 B0 96 58 D4 11 0B B0 90 00 D2 [13:25:42]RAPDU: 93 B0 96 58 D4 11 0B B0 90 00 [13:25:42]wFMCommunicate OK [13:25:42]SAM_PROTO_SignData done [13:25:42]FM_MakeSignedData done [13:25:42]CreateOFDProtocolMessage [13:25:42]wFMCommunicate request_size=4 [13:25:42]MH_SAM_APDU [13:25:42]CAPDU: 80 11 00 00 [13:25:42]Write to MH i2c: E2 08 00 83 03 80 11 00 00 00 00 00 00 00 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:42]Read from MH i2c: E2 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 17 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: E2 17 00 83 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [13:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:25:42]wFMCommunicate OK [13:25:42]CreateOFDProtocolMessage done [13:25:42]OFDSenderStorePacket 191770 [13:25:42]StoreOFDPacket docnum=191770 [13:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 6C 07 01 03 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A ED 02 00 35 04 06 00 A0 34 F8 C1 81 84 93 B0 96 58 D4 11 0B B0 [13:25:42]CheckFolder [13:25:42]dirname=/storage/ofd_packets [13:25:42]CheckFolder done [13:25:42]ProducePacketName [13:25:42]name=ofd_packets/00191770 [13:25:42]NVStorageSaveData ofd_packets/00191770 [13:25:42]File name is /storage/ofd_packets/00191770 [13:25:42]Write 301 bytes [13:25:42]NVStorageSaveData done [13:25:42]OFDSenderStorePacket done [13:25:42]KKMCreateOFDPacket done [13:25:42]NVStorageSaveData kkm_last_timestamp [13:25:42]File name is /storage/kkm_last_timestamp [13:25:42]Write 4 bytes [13:25:42]NVStorageSaveData done [13:25:42]ExternCall_PrintAddStr [13:25:42]wPrintStart [13:25:42]Write to MH i2c: 01 00 00 84 03 87 [13:25:42]Write i2c OK [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: 01 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: 01 07 00 [13:25:42]MH_I2C_Read... [13:25:42]Read from MH i2c: 01 07 00 84 03 00 00 00 00 00 FF 0F 9C [13:25:42]RasterBufferAndPrint [13:25:42]line Счет N : (1)31075 [13:25:42]line ИНН: 02508201610067 [13:25:42]line Контрольно-Кассовый Чек [13:25:42]line ПРОДАЖА [13:25:42]line ТРК (МРК, ГНК) : 12 [13:25:42]line Товар: 2710124130 [13:25:42]line Аи-92-К-5 [13:25:42]line 7.480 * 66.90 [13:25:42]line = 500.41 [13:25:42]line НДС 12% НСП 1% [13:25:42]line > о реализуемом товаре [13:25:42]line ОКРУГЛЕНИЕ: -0.41 [13:25:42]line ИТОГО: 500.00 [13:25:42]line Внесено: 500.00 [13:25:42]line СДАЧА: 0.00 [13:25:42]line НСП 1% : 4.43 [13:25:42]line НДС 12% : 53.14 [13:25:42]line Наличными: 500.00 [13:25:42]line Безнал.: 0.00 [13:25:42]line Место: АЗС № 170 "Партнер Нефть" [13:25:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:25:42]line СНО: Общий режим [13:25:42]line Чек 133 26.10.2024 13:25 [13:25:42]line Смена: 541 ФФД: 1.0 [13:25:42]line ЗНМ: 0300000110 [13:25:42]line РНМ: 0000000000091776 [13:25:42]line Версия ККМ: 001 [13:25:42]line ФМ: 0000000000871754 [13:25:42]line ФД: 191770 [13:25:42]line ФПД: 176149372174724 [13:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T132556&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191770&fm=176149372174724&tin=02508201610067®Number=0000000000091776&sum=50000 [13:25:43]OFD Sender: Processing packet 191770 [packets to send 75, broken 74] [13:25:43]ProducePacketName [13:25:43]name=ofd_packets/00191770 [13:25:43]OFD Sender: To server: pG, [13:25:43]CommunicateWithHost lk.salyk.kg:30040 [13:25:43]ConnectInit lk.salyk.kg [13:25:43]written 0, free lines is 4095 [13:25:43]Connected sock=10 [13:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 46 6C 07 01 03 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E4 ED 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A ED 02 00 35 04 06 00 A0 34 F8 C1 81 84 93 B0 96 58 D4 11 0B B0 [13:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC C1 47 00 94 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1A ED 02 00 F4 03 04 00 AF 92 1C 67 B6 04 01 00 00 FE F1 67 CD 98 F2 15 2F [13:25:43]CommunicateWithHost err = 0 [13:25:43]CheckOFDResponse [13:25:43]1017 (14) - 77093643461234 [13:25:43]1041 (16) - 0000000000871754 [13:25:43]1040 (4) - 191770 [13:25:43]1012 (4) - 26.10.2024 06:56 [13:25:43]1206 (1) - 0 [13:25:43]OFD Sender: Remove packet 191770 [13:25:43]ProducePacketName [13:25:43]name=ofd_packets/00191770 [13:25:43]NVStorageDeleteData [13:25:43]Write to MH i2c: 01 00 00 AF 03 B2 [13:25:43]Write i2c OK [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: 01 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: 01 07 00 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: 01 07 00 AF 03 00 00 00 00 00 B4 0C 79 [13:25:43]RasterBufferAndPrint [13:25:43]line [13:25:43]line [13:25:43]line [13:25:43]line [13:25:43]line [13:25:43]written 0, free lines is 3259 [13:25:43]MH_Cut [13:25:43]Write to MH i2c: D1 01 00 B6 03 01 8B [13:25:43]Write i2c OK [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: D1 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: D1 01 00 [13:25:43]MH_I2C_Read... [13:25:43]Read from MH i2c: D1 01 00 B6 03 00 8A [13:25:43]Write to MH i2c: 01 00 00 B7 03 BA [13:25:43]Write i2c OK [13:25:43]MH_I2C_Read... [13:25:44]OFD Sender: No OFD packet to send [13:25:44]*** Cut start [13:25:44]*** Partial cut [13:25:44]*** CUTSNS_PIN = 1 [13:25:44]*** CUTSNS_PIN = 0 [13:25:44]*** Brake cut motor [13:25:45]Read from MH i2c: 01 [13:25:45]MH_I2C_Read... [13:25:45]*** Stop cut motor [13:25:45]*** Cut end [13:25:45]Read from MH i2c: 01 07 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [13:25:45]process_action close_receipt done [13:25:45]requested_data is exist [13:25:45]produce_requested_data [13:25:45]requested_item fm.sn is exist - process it [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 11 00 00 [13:25:45]Write to MH i2c: E2 08 00 B8 03 80 11 00 00 00 00 00 00 35 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 17 00 B8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [13:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:25:45]wFMCommunicate OK [13:25:45]requested_item fd.num is exist - process it [13:25:45]SAM_PROTO_GetFieldsCounters [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 13 00 00 [13:25:45]Write to MH i2c: E2 08 00 B9 03 80 13 00 00 00 00 00 00 38 [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 62 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 62 00 B9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [13:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_GetFieldsCounters done [13:25:45]requested_item shift.num is exist - process it [13:25:45]requested_item shift.opened is exist - process it [13:25:45]req_shift_opened [13:25:45]FM_GetShiftState [13:25:45]SAM_PROTO_GetShiftState [13:25:45]wFMCommunicate request_size=4 [13:25:45]MH_SAM_APDU [13:25:45]CAPDU: 80 13 01 00 [13:25:45]Write to MH i2c: E2 08 00 BA 03 80 13 01 00 00 00 00 00 3A [13:25:45]Write i2c OK [13:25:45]MH_I2C_Read... [13:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:45]Read from MH i2c: E2 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0E 00 [13:25:45]MH_I2C_Read... [13:25:45]Read from MH i2c: E2 0E 00 BA 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B3 [13:25:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:25:45]wFMCommunicate OK [13:25:45]SAM_PROTO_GetShiftState done [13:25:45]FM_GetShiftState done [13:25:45]req_shift_opened done [13:25:45]requested_item shift.open_date is exist - process it [13:25:45]req_shift_open_date [13:25:45]req_shift_open_date done [13:25:45]produce_requested_data done [13:25:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191770,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:25:45]process_action_free close_receipt [13:25:45]json_value_free [13:25:45]json_value_free done [13:25:45]process_json_proto returns [13:25:45]Send response to host [13:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191770,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:25:45]free response buf [13:25:45]execute_script done [13:25:45]execute_script returns [13:25:45]free content buf [13:25:45]Sock 9.Close socket [13:25:45]Sock 9.Thread stoped [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:41]accept exits with 8 [13:31:41]New connection [13:31:41]New thread 3066961252 created [13:31:41]Thread 3066817892 joined [13:31:41]Waiting for new connection... [13:31:41] Sock 8.Parse request [13:31:41]Sock 8.Check first char [13:31:41]Sock 8.First char is OK [13:31:41]request: POST /json_proto HTTP/1.0 [13:31:41]Method: POST [13:31:41]URL: /json_proto [13:31:41]Method is POST - this is cgi request [13:31:41]url: /json_proto [13:31:41]query_string will be loaded in cgi processing [13:31:41]execute_cgi json_proto POST (null) [13:31:41]execute_cgi path=json_proto method=POST [13:31:41]POST find Content-Length [13:31:41]Host: 172.17.63.131:8080 [13:31:41]Content-Length: 676 [13:31:41]Content-Type: application/json [13:31:41] [13:31:41]POST finish read [13:31:41]Found Content-Length = 676 [13:31:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:41]execute_script... [13:31: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)31076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:41]POST & json_proto [13:31:41]process_json_proto [13:31:41]json parsed OK: [13:31:41]protocol is kg_v1.0 [13:31:41]action value=close_receipt [13:31:41]process_action close_receipt [13:31:41]cmd_close_receipt [13:31:41]MH_GetDate [13:31:41]Write to MH i2c: F0 00 00 BB 03 AD [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: F0 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: F0 09 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: F0 09 00 BB 03 00 4C EF 1C 67 22 05 6E 64 6D [13:31:41]GetLastDocTimeStamp 1729949156 [13:31:41]current date 1729949516 [13:31:41]FM_GetShiftState [13:31:41]SAM_PROTO_GetShiftState [13:31:41]wFMCommunicate request_size=4 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 13 01 00 [13:31:41]Write to MH i2c: E2 08 00 BC 03 80 13 01 00 00 00 00 00 3C [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 0E 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 0E 00 BC 03 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B5 [13:31:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:31:41]wFMCommunicate OK [13:31:41]SAM_PROTO_GetShiftState done [13:31:41]FM_GetShiftState done [13:31:41]opened in 1729902770 [13:31:41]opened+sec_in_day 1729989170 [13:31:41]quantity*price = 50041 [13:31:41]sum+1 = 50042 [13:31:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 134 26.10.2024 13:31 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191771 ФПД: 89415597372854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191771&fm=89415597372854&tin=02508201610067®Number=0000000000091776&sum=50000 [13:31:42]StoreToDocumentArchive [13:31:42]shift 541 fd 191771 [13:31:42]save to /storage/0541/doc_00191771 [13:31:42]save last doc name /storage/0541/doc_00191771 to /storage/kkm_last_doc_name [13:31:42]save OK [13:31:42]Clear old archive folders... [13:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:42]tlvbuf is 01B75D80 [13:31:42]SAM_PROTO_ClearQueue [13:31:42]wFMCommunicate request_size=4 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 09 00 00 [13:31:42]Write to MH i2c: E2 08 00 C9 03 80 09 00 00 00 00 00 00 3E [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:42]Read from MH i2c: E2 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 03 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 03 00 C9 03 00 90 00 40 [13:31:42]RAPDU: 90 00 [13:31:42]wFMCommunicate OK [13:31:42]SAM_PROTO_ClearQueue done [13:31:42]KKMCreateOFDPacket [13:31:42]OFDProtocolAddRootSTLVToBuf [13:31:42]FM_MakeSignedData [13:31:42]FM_MakeSignedData [13:31:42]SAM_PROTO_SignData [13:31:42]wFMCommunicate request_size=4 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 0D 01 02 [13:31:42]Write to MH i2c: E2 08 00 CA 03 80 0D 01 02 00 00 00 00 46 [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:42]Read from MH i2c: E2 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 03 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 03 00 CA 03 00 90 00 41 [13:31:42]RAPDU: 90 00 [13:31:42]wFMCommunicate OK [13:31:42]wFMCommunicate request_size=255 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B ED 02 00 35 04 06 00 51 [13:31:42]Write to MH i2c: E2 02 01 CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B ED 02 00 35 04 06 00 51 00 00 98 [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:43]Read from MH i2c: E2 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 03 00 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 03 00 CB 03 00 90 00 42 [13:31:43]RAPDU: 90 00 [13:31:43]wFMCommunicate OK [13:31:43]wFMCommunicate request_size=10 [13:31:43]MH_SAM_APDU [13:31:43]CAPDU: 80 0D 02 02 05 52 B0 EB 35 B6 [13:31:43]Write to MH i2c: E2 0D 00 CC 03 80 0D 02 02 05 00 52 B0 EB 35 B6 00 00 2B [13:31:43]Write i2c OK [13:31:43]MH_I2C_Read... [13:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:43]Read from MH i2c: E2 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 03 00 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 03 00 CC 03 00 90 00 43 [13:31:43]RAPDU: 90 00 [13:31:43]wFMCommunicate OK [13:31:43]wFMCommunicate request_size=4 [13:31:43]MH_SAM_APDU [13:31:43]CAPDU: 80 0D 03 02 [13:31:43]Write to MH i2c: E2 08 00 CD 03 80 0D 03 02 00 00 00 00 4B [13:31:43]Write i2c OK [13:31:43]MH_I2C_Read... [13:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:43]Read from MH i2c: E2 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 0B 00 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 0B 00 CD 03 00 F4 BC 1E 57 64 52 99 6B 90 00 2B [13:31:43]RAPDU: F4 BC 1E 57 64 52 99 6B 90 00 [13:31:43]wFMCommunicate OK [13:31:43]SAM_PROTO_SignData done [13:31:43]FM_MakeSignedData done [13:31:43]CreateOFDProtocolMessage [13:31:43]wFMCommunicate request_size=4 [13:31:43]MH_SAM_APDU [13:31:43]CAPDU: 80 11 00 00 [13:31:43]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [13:31:43]Write i2c OK [13:31:43]MH_I2C_Read... [13:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:43]Read from MH i2c: E2 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 17 00 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: E2 17 00 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [13:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:31:43]wFMCommunicate OK [13:31:43]CreateOFDProtocolMessage done [13:31:43]OFDSenderStorePacket 191771 [13:31:43]StoreOFDPacket docnum=191771 [13:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 34 07 01 44 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B ED 02 00 35 04 06 00 51 52 B0 EB 35 B6 F4 BC 1E 57 64 52 99 6B [13:31:43]CheckFolder [13:31:43]dirname=/storage/ofd_packets [13:31:43]CheckFolder done [13:31:43]ProducePacketName [13:31:43]name=ofd_packets/00191771 [13:31:43]NVStorageSaveData ofd_packets/00191771 [13:31:43]File name is /storage/ofd_packets/00191771 [13:31:43]Write 301 bytes [13:31:43]NVStorageSaveData done [13:31:43]OFDSenderStorePacket done [13:31:43]KKMCreateOFDPacket done [13:31:43]NVStorageSaveData kkm_last_timestamp [13:31:43]File name is /storage/kkm_last_timestamp [13:31:43]Write 4 bytes [13:31:43]NVStorageSaveData done [13:31:43]ExternCall_PrintAddStr [13:31:43]wPrintStart [13:31:43]Write to MH i2c: 01 00 00 CF 03 D2 [13:31:43]Write i2c OK [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: 01 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: 01 07 00 [13:31:43]MH_I2C_Read... [13:31:43]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [13:31:43]RasterBufferAndPrint [13:31:43]line Счет N : (1)31076 [13:31:43]line ИНН: 02508201610067 [13:31:43]line Контрольно-Кассовый Чек [13:31:43]line ПРОДАЖА [13:31:43]line ТРК (МРК, ГНК) : 12 [13:31:43]line Товар: 2710124130 [13:31:43]line Аи-92-К-5 [13:31:43]line 7.480 * 66.90 [13:31:43]line = 500.41 [13:31:43]line НДС 12% НСП 1% [13:31:43]line > о реализуемом товаре [13:31:43]line ОКРУГЛЕНИЕ: -0.41 [13:31:43]line ИТОГО: 500.00 [13:31:43]line Внесено: 500.00 [13:31:43]line СДАЧА: 0.00 [13:31:43]line НСП 1% : 4.43 [13:31:43]line НДС 12% : 53.14 [13:31:43]line Наличными: 500.00 [13:31:43]line Безнал.: 0.00 [13:31:43]line Место: АЗС № 170 "Партнер Нефть" [13:31:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:31:43]line СНО: Общий режим [13:31:43]line Чек 134 26.10.2024 13:31 [13:31:43]line Смена: 541 ФФД: 1.0 [13:31:43]line ЗНМ: 0300000110 [13:31:43]line РНМ: 0000000000091776 [13:31:43]line Версия ККМ: 001 [13:31:43]line ФМ: 0000000000871754 [13:31:43]line ФД: 191771 [13:31:43]line ФПД: 89415597372854 [13:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191771&fm=89415597372854&tin=02508201610067®Number=0000000000091776&sum=50000 [13:31:43]OFD Sender: Processing packet 191771 [packets to send 75, broken 74] [13:31:43]ProducePacketName [13:31:43]name=ofd_packets/00191771 [13:31:43]OFD Sender: To server: pG, [13:31:43]CommunicateWithHost lk.salyk.kg:30040 [13:31:43]ConnectInit lk.salyk.kg [13:31:43]written 0, free lines is 4095 [13:31:43]Connected sock=10 [13:31:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C3 34 07 01 44 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 4C EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B ED 02 00 35 04 06 00 51 52 B0 EB 35 B6 F4 BC 1E 57 64 52 99 6B [13:31:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB ED 47 00 49 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1B ED 02 00 F4 03 04 00 17 94 1C 67 B6 04 01 00 00 B5 A3 E8 95 09 B3 79 CE [13:31:43]CommunicateWithHost err = 0 [13:31:43]CheckOFDResponse [13:31:43]1017 (14) - 77093643461234 [13:31:43]1041 (16) - 0000000000871754 [13:31:43]1040 (4) - 191771 [13:31:43]1012 (4) - 26.10.2024 07:02 [13:31:43]1206 (1) - 0 [13:31:43]OFD Sender: Remove packet 191771 [13:31:43]ProducePacketName [13:31:43]name=ofd_packets/00191771 [13:31:43]NVStorageDeleteData [13:31:44]Write to MH i2c: 01 00 00 FA 03 FD [13:31:44]Write i2c OK [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: 01 [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: 01 07 00 [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 BF 0C CF [13:31:44]RasterBufferAndPrint [13:31:44]line [13:31:44]line [13:31:44]line [13:31:44]line [13:31:44]line [13:31:44]written 0, free lines is 3269 [13:31:44]MH_Cut [13:31:44]Write to MH i2c: D1 01 00 01 04 01 D7 [13:31:44]Write i2c OK [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: D1 [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: D1 01 00 [13:31:44]MH_I2C_Read... [13:31:44]Read from MH i2c: D1 01 00 01 04 00 D6 [13:31:44]Write to MH i2c: 01 00 00 02 04 06 [13:31:44]Write i2c OK [13:31:44]MH_I2C_Read... [13:31:44]OFD Sender: No OFD packet to send [13:31:44]*** Cut start [13:31:44]*** Partial cut [13:31:44]*** CUTSNS_PIN = 1 [13:31:44]*** CUTSNS_PIN = 0 [13:31:45]*** Brake cut motor [13:31:45]Read from MH i2c: 01 [13:31:45]MH_I2C_Read... [13:31:45]*** Stop cut motor [13:31:45]*** Cut end [13:31:45]Read from MH i2c: 01 07 00 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [13:31:45]process_action close_receipt done [13:31:45]requested_data is exist [13:31:45]produce_requested_data [13:31:45]requested_item fm.sn is exist - process it [13:31:45]wFMCommunicate request_size=4 [13:31:45]MH_SAM_APDU [13:31:45]CAPDU: 80 11 00 00 [13:31:45]Write to MH i2c: E2 08 00 03 04 80 11 00 00 00 00 00 00 81 [13:31:45]Write i2c OK [13:31:45]MH_I2C_Read... [13:31:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:45]Read from MH i2c: E2 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 17 00 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 17 00 03 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [13:31:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:31:45]wFMCommunicate OK [13:31:45]requested_item fd.num is exist - process it [13:31:45]SAM_PROTO_GetFieldsCounters [13:31:45]wFMCommunicate request_size=4 [13:31:45]MH_SAM_APDU [13:31:45]CAPDU: 80 13 00 00 [13:31:45]Write to MH i2c: E2 08 00 04 04 80 13 00 00 00 00 00 00 84 [13:31:45]Write i2c OK [13:31:45]MH_I2C_Read... [13:31:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:45]Read from MH i2c: E2 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 62 00 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 62 00 04 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:31:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:45]wFMCommunicate OK [13:31:45]SAM_PROTO_GetFieldsCounters done [13:31:45]requested_item shift.num is exist - process it [13:31:45]requested_item shift.opened is exist - process it [13:31:45]req_shift_opened [13:31:45]FM_GetShiftState [13:31:45]SAM_PROTO_GetShiftState [13:31:45]wFMCommunicate request_size=4 [13:31:45]MH_SAM_APDU [13:31:45]CAPDU: 80 13 01 00 [13:31:45]Write to MH i2c: E2 08 00 05 04 80 13 01 00 00 00 00 00 86 [13:31:45]Write i2c OK [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 [13:31:45]MH_I2C_Read... [13:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:45]Read from MH i2c: E2 0E 00 [13:31:45]MH_I2C_Read... [13:31:45]Read from MH i2c: E2 0E 00 05 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FF [13:31:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:31:45]wFMCommunicate OK [13:31:45]SAM_PROTO_GetShiftState done [13:31:45]FM_GetShiftState done [13:31:45]req_shift_opened done [13:31:45]requested_item shift.open_date is exist - process it [13:31:45]req_shift_open_date [13:31:45]req_shift_open_date done [13:31:45]produce_requested_data done [13:31:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191771,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:31:45]process_action_free close_receipt [13:31:45]json_value_free [13:31:45]json_value_free done [13:31:45]process_json_proto returns [13:31:45]Send response to host [13:31:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191771,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:31:45]free response buf [13:31:45]execute_script done [13:31:45]execute_script returns [13:31:45]free content buf [13:31:45]Sock 8.Close socket [13:31:45]Sock 8.Thread stoped [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:19]accept exits with 9 [13:33:19]New connection [13:33:19]New thread 3066817892 created [13:33:19]Thread 3066961252 joined [13:33:19]Waiting for new connection... [13:33:19] Sock 9.Parse request [13:33:19]Sock 9.Check first char [13:33:19]Sock 9.First char is OK [13:33:19]request: POST /json_proto HTTP/1.0 [13:33:19]Method: POST [13:33:19]URL: /json_proto [13:33:19]Method is POST - this is cgi request [13:33:19]url: /json_proto [13:33:19]query_string will be loaded in cgi processing [13:33:19]execute_cgi json_proto POST (null) [13:33:19]execute_cgi path=json_proto method=POST [13:33:19]POST find Content-Length [13:33:19]Host: 172.17.63.131:8080 [13:33:19]Content-Length: 676 [13:33:19]Content-Type: application/json [13:33:19] [13:33:19]POST finish read [13:33:19]Found Content-Length = 676 [13:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:19]execute_script... [13:33: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)31077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:19]POST & json_proto [13:33:19]process_json_proto [13:33:19]json parsed OK: [13:33:19]protocol is kg_v1.0 [13:33:19]action value=close_receipt [13:33:19]process_action close_receipt [13:33:19]cmd_close_receipt [13:33:19]MH_GetDate [13:33:19]Write to MH i2c: F0 00 00 06 04 F9 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: F0 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: F0 09 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: F0 09 00 06 04 00 AE EF 1C 67 22 05 6E 64 1B [13:33:19]GetLastDocTimeStamp 1729949516 [13:33:19]current date 1729949614 [13:33:19]FM_GetShiftState [13:33:19]SAM_PROTO_GetShiftState [13:33:19]wFMCommunicate request_size=4 [13:33:19]MH_SAM_APDU [13:33:19]CAPDU: 80 13 01 00 [13:33:19]Write to MH i2c: E2 08 00 07 04 80 13 01 00 00 00 00 00 88 [13:33:19]Write i2c OK [13:33:19]MH_I2C_Read... [13:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:19]Read from MH i2c: E2 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 [13:33:19]MH_I2C_Read... [13:33:19]Read from MH i2c: E2 0E 00 07 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 01 [13:33:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:33:19]wFMCommunicate OK [13:33:19]SAM_PROTO_GetShiftState done [13:33:19]FM_GetShiftState done [13:33:19]opened in 1729902770 [13:33:19]opened+sec_in_day 1729989170 [13:33:19]quantity*price = 50041 [13:33:19]sum+1 = 50042 [13:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 135 26.10.2024 13:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191772 ФПД: 67619813781657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191772&fm=67619813781657&tin=02508201610067®Number=0000000000091776&sum=50000 [13:33:20]StoreToDocumentArchive [13:33:20]shift 541 fd 191772 [13:33:20]save to /storage/0541/doc_00191772 [13:33:20]save last doc name /storage/0541/doc_00191772 to /storage/kkm_last_doc_name [13:33:20]save OK [13:33:20]Clear old archive folders... [13:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:20]tlvbuf is 01B5CB90 [13:33:20]SAM_PROTO_ClearQueue [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 09 00 00 [13:33:20]Write to MH i2c: E2 08 00 14 04 80 09 00 00 00 00 00 00 8A [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 14 04 00 90 00 8C [13:33:20]RAPDU: 90 00 [13:33:20]wFMCommunicate OK [13:33:20]SAM_PROTO_ClearQueue done [13:33:20]KKMCreateOFDPacket [13:33:20]OFDProtocolAddRootSTLVToBuf [13:33:20]FM_MakeSignedData [13:33:20]FM_MakeSignedData [13:33:20]SAM_PROTO_SignData [13:33:20]wFMCommunicate request_size=4 [13:33:20]MH_SAM_APDU [13:33:20]CAPDU: 80 0D 01 02 [13:33:20]Write to MH i2c: E2 08 00 15 04 80 0D 01 02 00 00 00 00 92 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:20]Read from MH i2c: E2 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 [13:33:20]MH_I2C_Read... [13:33:20]Read from MH i2c: E2 03 00 15 04 00 90 00 8D [13:33:20]RAPDU: 90 00 [13:33:20]wFMCommunicate OK [13:33:20]wFMCommunicate request_size=255 [13:33:20]MH_SAM_APDU [13:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C ED 02 00 35 04 06 00 3D [13:33:20]Write to MH i2c: E2 02 01 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C ED 02 00 35 04 06 00 3D 00 00 34 [13:33:20]Write i2c OK [13:33:20]MH_I2C_Read... [13:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:21]Read from MH i2c: E2 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 03 00 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [13:33:21]RAPDU: 90 00 [13:33:21]wFMCommunicate OK [13:33:21]wFMCommunicate request_size=10 [13:33:21]MH_SAM_APDU [13:33:21]CAPDU: 80 0D 02 02 05 7F F6 FA F0 99 [13:33:21]Write to MH i2c: E2 0D 00 17 04 80 0D 02 02 05 00 7F F6 FA F0 99 00 00 97 [13:33:21]Write i2c OK [13:33:21]MH_I2C_Read... [13:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:21]Read from MH i2c: E2 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 03 00 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [13:33:21]RAPDU: 90 00 [13:33:21]wFMCommunicate OK [13:33:21]wFMCommunicate request_size=4 [13:33:21]MH_SAM_APDU [13:33:21]CAPDU: 80 0D 03 02 [13:33:21]Write to MH i2c: E2 08 00 18 04 80 0D 03 02 00 00 00 00 97 [13:33:21]Write i2c OK [13:33:21]MH_I2C_Read... [13:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:21]Read from MH i2c: E2 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 0B 00 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 0B 00 18 04 00 8A 59 B6 7D B2 81 78 44 90 00 9D [13:33:21]RAPDU: 8A 59 B6 7D B2 81 78 44 90 00 [13:33:21]wFMCommunicate OK [13:33:21]SAM_PROTO_SignData done [13:33:21]FM_MakeSignedData done [13:33:21]CreateOFDProtocolMessage [13:33:21]wFMCommunicate request_size=4 [13:33:21]MH_SAM_APDU [13:33:21]CAPDU: 80 11 00 00 [13:33:21]Write to MH i2c: E2 08 00 19 04 80 11 00 00 00 00 00 00 97 [13:33:21]Write i2c OK [13:33:21]MH_I2C_Read... [13:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:21]Read from MH i2c: E2 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 17 00 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: E2 17 00 19 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [13:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:21]wFMCommunicate OK [13:33:21]CreateOFDProtocolMessage done [13:33:21]OFDSenderStorePacket 191772 [13:33:21]StoreOFDPacket docnum=191772 [13:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 93 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C ED 02 00 35 04 06 00 3D 7F F6 FA F0 99 8A 59 B6 7D B2 81 78 44 [13:33:21]CheckFolder [13:33:21]dirname=/storage/ofd_packets [13:33:21]CheckFolder done [13:33:21]ProducePacketName [13:33:21]name=ofd_packets/00191772 [13:33:21]NVStorageSaveData ofd_packets/00191772 [13:33:21]File name is /storage/ofd_packets/00191772 [13:33:21]Write 301 bytes [13:33:21]NVStorageSaveData done [13:33:21]OFDSenderStorePacket done [13:33:21]KKMCreateOFDPacket done [13:33:21]NVStorageSaveData kkm_last_timestamp [13:33:21]File name is /storage/kkm_last_timestamp [13:33:21]Write 4 bytes [13:33:21]NVStorageSaveData done [13:33:21]ExternCall_PrintAddStr [13:33:21]wPrintStart [13:33:21]Write to MH i2c: 01 00 00 1A 04 1E [13:33:21]Write i2c OK [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: 01 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: 01 07 00 [13:33:21]MH_I2C_Read... [13:33:21]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [13:33:21]RasterBufferAndPrint [13:33:21]line Счет N : (1)31077 [13:33:21]line ИНН: 02508201610067 [13:33:21]line Контрольно-Кассовый Чек [13:33:21]line ПРОДАЖА [13:33:21]line ТРК (МРК, ГНК) : 12 [13:33:21]line Товар: 2710124130 [13:33:21]line Аи-92-К-5 [13:33:21]line 7.480 * 66.90 [13:33:21]line = 500.41 [13:33:21]line НДС 12% НСП 1% [13:33:21]line > о реализуемом товаре [13:33:21]line ОКРУГЛЕНИЕ: -0.41 [13:33:21]line ИТОГО: 500.00 [13:33:21]line Внесено: 500.00 [13:33:21]line СДАЧА: 0.00 [13:33:21]line НСП 1% : 4.43 [13:33:21]line НДС 12% : 53.14 [13:33:21]line Наличными: 500.00 [13:33:21]line Безнал.: 0.00 [13:33:21]line Место: АЗС № 170 "Партнер Нефть" [13:33:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:33:21]line СНО: Общий режим [13:33:21]line Чек 135 26.10.2024 13:33 [13:33:21]line Смена: 541 ФФД: 1.0 [13:33:21]line ЗНМ: 0300000110 [13:33:21]line РНМ: 0000000000091776 [13:33:21]line Версия ККМ: 001 [13:33:21]line ФМ: 0000000000871754 [13:33:21]line ФД: 191772 [13:33:21]line ФПД: 67619813781657 [13:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133334&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191772&fm=67619813781657&tin=02508201610067®Number=0000000000091776&sum=50000 [13:33:21]OFD Sender: Processing packet 191772 [packets to send 75, broken 74] [13:33:21]ProducePacketName [13:33:21]name=ofd_packets/00191772 [13:33:21]OFD Sender: To server: pG, [13:33:21]CommunicateWithHost lk.salyk.kg:30040 [13:33:21]ConnectInit lk.salyk.kg [13:33:21]written 0, free lines is 4095 [13:33:21]Connected sock=10 [13:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 93 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE EF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C ED 02 00 35 04 06 00 3D 7F F6 FA F0 99 8A 59 B6 7D B2 81 78 44 [13:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF B2 47 00 72 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1C ED 02 00 F4 03 04 00 79 94 1C 67 B6 04 01 00 00 55 22 9B 17 C1 10 CE 54 [13:33:22]CommunicateWithHost err = 0 [13:33:22]CheckOFDResponse [13:33:22]1017 (14) - 77093643461234 [13:33:22]1041 (16) - 0000000000871754 [13:33:22]1040 (4) - 191772 [13:33:22]1012 (4) - 26.10.2024 07:04 [13:33:22]1206 (1) - 0 [13:33:22]OFD Sender: Remove packet 191772 [13:33:22]ProducePacketName [13:33:22]name=ofd_packets/00191772 [13:33:22]NVStorageDeleteData [13:33:22]Write to MH i2c: 01 00 00 45 04 49 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: 01 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: 01 07 00 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: 01 07 00 45 04 00 00 00 00 00 CC 0C 28 [13:33:22]RasterBufferAndPrint [13:33:22]line [13:33:22]line [13:33:22]line [13:33:22]line [13:33:22]line [13:33:22]written 0, free lines is 3285 [13:33:22]MH_Cut [13:33:22]Write to MH i2c: D1 01 00 4C 04 01 22 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: D1 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: D1 01 00 [13:33:22]MH_I2C_Read... [13:33:22]Read from MH i2c: D1 01 00 4C 04 00 21 [13:33:22]Write to MH i2c: 01 00 00 4D 04 51 [13:33:22]Write i2c OK [13:33:22]MH_I2C_Read... [13:33:22]OFD Sender: No OFD packet to send [13:33:23]*** Cut start [13:33:23]*** Partial cut [13:33:23]*** CUTSNS_PIN = 1 [13:33:23]*** CUTSNS_PIN = 0 [13:33:23]*** Brake cut motor [13:33:23]Read from MH i2c: 01 [13:33:23]MH_I2C_Read... [13:33:23]*** Stop cut motor [13:33:23]*** Cut end [13:33:23]Read from MH i2c: 01 07 00 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: 01 07 00 4D 04 00 00 00 00 00 FF 0F 66 [13:33:23]process_action close_receipt done [13:33:23]requested_data is exist [13:33:23]produce_requested_data [13:33:23]requested_item fm.sn is exist - process it [13:33:23]wFMCommunicate request_size=4 [13:33:23]MH_SAM_APDU [13:33:23]CAPDU: 80 11 00 00 [13:33:23]Write to MH i2c: E2 08 00 4E 04 80 11 00 00 00 00 00 00 CC [13:33:23]Write i2c OK [13:33:23]MH_I2C_Read... [13:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:23]Read from MH i2c: E2 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 17 00 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 17 00 4E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [13:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:33:23]wFMCommunicate OK [13:33:23]requested_item fd.num is exist - process it [13:33:23]SAM_PROTO_GetFieldsCounters [13:33:23]wFMCommunicate request_size=4 [13:33:23]MH_SAM_APDU [13:33:23]CAPDU: 80 13 00 00 [13:33:23]Write to MH i2c: E2 08 00 4F 04 80 13 00 00 00 00 00 00 CF [13:33:23]Write i2c OK [13:33:23]MH_I2C_Read... [13:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:23]Read from MH i2c: E2 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 62 00 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 62 00 4F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [13:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:23]wFMCommunicate OK [13:33:23]SAM_PROTO_GetFieldsCounters done [13:33:23]requested_item shift.num is exist - process it [13:33:23]requested_item shift.opened is exist - process it [13:33:23]req_shift_opened [13:33:23]FM_GetShiftState [13:33:23]SAM_PROTO_GetShiftState [13:33:23]wFMCommunicate request_size=4 [13:33:23]MH_SAM_APDU [13:33:23]CAPDU: 80 13 01 00 [13:33:23]Write to MH i2c: E2 08 00 50 04 80 13 01 00 00 00 00 00 D1 [13:33:23]Write i2c OK [13:33:23]MH_I2C_Read... [13:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:23]Read from MH i2c: E2 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 0E 00 [13:33:23]MH_I2C_Read... [13:33:23]Read from MH i2c: E2 0E 00 50 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4A [13:33:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:33:23]wFMCommunicate OK [13:33:23]SAM_PROTO_GetShiftState done [13:33:23]FM_GetShiftState done [13:33:23]req_shift_opened done [13:33:23]requested_item shift.open_date is exist - process it [13:33:23]req_shift_open_date [13:33:23]req_shift_open_date done [13:33:23]produce_requested_data done [13:33:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191772,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:33:23]process_action_free close_receipt [13:33:23]json_value_free [13:33:23]json_value_free done [13:33:23]process_json_proto returns [13:33:23]Send response to host [13:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191772,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:33:23]free response buf [13:33:23]execute_script done [13:33:23]execute_script returns [13:33:23]free content buf [13:33:23]Sock 9.Close socket [13:33:23]Sock 9.Thread stoped [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]accept exits with 8 [13:36:07]New connection [13:36:07]New thread 3066961252 created [13:36:07]Thread 3066817892 joined [13:36:07]Waiting for new connection... [13:36:07] Sock 8.Parse request [13:36:07]Sock 8.Check first char [13:36:07]Sock 8.First char is OK [13:36:07]request: POST /json_proto HTTP/1.0 [13:36:07]Method: POST [13:36:07]URL: /json_proto [13:36:07]Method is POST - this is cgi request [13:36:07]url: /json_proto [13:36:07]query_string will be loaded in cgi processing [13:36:07]execute_cgi json_proto POST (null) [13:36:07]execute_cgi path=json_proto method=POST [13:36:07]POST find Content-Length [13:36:07]Host: 172.17.63.131:8080 [13:36:07]Content-Length: 983 [13:36:07]Content-Type: application/json [13:36:07] [13:36:07]POST finish read [13:36:07]Found Content-Length = 983 [13:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:07]execute_script... [13:36:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:07]POST & json_proto [13:36:07]process_json_proto [13:36:07]json parsed OK: [13:36:07]protocol is kg_v1.0 [13:36:07]action value=close_receipt [13:36:07]process_action close_receipt [13:36:07]cmd_close_receipt [13:36:07]MH_GetDate [13:36:07]Write to MH i2c: F0 00 00 51 04 44 [13:36:07]Write i2c OK [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 09 00 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: F0 09 00 51 04 00 56 F0 1C 67 22 05 6E 64 0F [13:36:07]GetLastDocTimeStamp 1729949614 [13:36:07]current date 1729949782 [13:36:07]FM_GetShiftState [13:36:07]SAM_PROTO_GetShiftState [13:36:07]wFMCommunicate request_size=4 [13:36:07]MH_SAM_APDU [13:36:07]CAPDU: 80 13 01 00 [13:36:07]Write to MH i2c: E2 08 00 52 04 80 13 01 00 00 00 00 00 D3 [13:36:07]Write i2c OK [13:36:07]MH_I2C_Read... [13:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:07]Read from MH i2c: E2 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: E2 0E 00 [13:36:07]MH_I2C_Read... [13:36:07]Read from MH i2c: E2 0E 00 52 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4C [13:36:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:36:07]wFMCommunicate OK [13:36:07]SAM_PROTO_GetShiftState done [13:36:07]FM_GetShiftState done [13:36:07]opened in 1729902770 [13:36:07]opened+sec_in_day 1729989170 [13:36:07]quantity*price = 150054 [13:36:07]sum+1 = 150055 [13:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 136 26.10.2024 13:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191773 ФПД: 73646431619871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191773&fm=73646431619871&tin=02508201610067®Number=0000000000091776&sum=150000 [13:36:08]StoreToDocumentArchive [13:36:08]shift 541 fd 191773 [13:36:08]save to /storage/0541/doc_00191773 [13:36:08]save last doc name /storage/0541/doc_00191773 to /storage/kkm_last_doc_name [13:36:08]save OK [13:36:08]Clear old archive folders... [13:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:36:08]tlvbuf is 019D4D30 [13:36:08]SAM_PROTO_ClearQueue [13:36:08]wFMCommunicate request_size=4 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 09 00 00 [13:36:08]Write to MH i2c: E2 08 00 5F 04 80 09 00 00 00 00 00 00 D5 [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:08]Read from MH i2c: E2 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [13:36:08]RAPDU: 90 00 [13:36:08]wFMCommunicate OK [13:36:08]SAM_PROTO_ClearQueue done [13:36:08]KKMCreateOFDPacket [13:36:08]OFDProtocolAddRootSTLVToBuf [13:36:08]FM_MakeSignedData [13:36:08]FM_MakeSignedData [13:36:08]SAM_PROTO_SignData [13:36:08]wFMCommunicate request_size=4 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 0D 01 02 [13:36:08]Write to MH i2c: E2 08 00 60 04 80 0D 01 02 00 00 00 00 DD [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:08]Read from MH i2c: E2 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 [13:36:08]MH_I2C_Read... [13:36:08]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [13:36:08]RAPDU: 90 00 [13:36:08]wFMCommunicate OK [13:36:08]wFMCommunicate request_size=255 [13:36:08]MH_SAM_APDU [13:36:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 56 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D ED 02 00 35 04 06 00 42 [13:36:08]Write to MH i2c: E2 02 01 61 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 56 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D ED 02 00 35 04 06 00 42 00 00 65 [13:36:08]Write i2c OK [13:36:08]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [13:36:09]RAPDU: 90 00 [13:36:09]wFMCommunicate OK [13:36:09]wFMCommunicate request_size=10 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 0D 02 02 05 FB 25 65 4B 1F [13:36:09]Write to MH i2c: E2 0D 00 62 04 80 0D 02 02 05 00 FB 25 65 4B 1F 00 00 D9 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 03 00 62 04 00 90 00 DA [13:36:09]RAPDU: 90 00 [13:36:09]wFMCommunicate OK [13:36:09]wFMCommunicate request_size=4 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 0D 03 02 [13:36:09]Write to MH i2c: E2 08 00 63 04 80 0D 03 02 00 00 00 00 E2 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0B 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 0B 00 63 04 00 16 21 27 22 6B 04 6E E6 90 00 26 [13:36:09]RAPDU: 16 21 27 22 6B 04 6E E6 90 00 [13:36:09]wFMCommunicate OK [13:36:09]SAM_PROTO_SignData done [13:36:09]FM_MakeSignedData done [13:36:09]CreateOFDProtocolMessage [13:36:09]wFMCommunicate request_size=4 [13:36:09]MH_SAM_APDU [13:36:09]CAPDU: 80 11 00 00 [13:36:09]Write to MH i2c: E2 08 00 64 04 80 11 00 00 00 00 00 00 E2 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:09]Read from MH i2c: E2 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 17 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: E2 17 00 64 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [13:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:09]wFMCommunicate OK [13:36:09]CreateOFDProtocolMessage done [13:36:09]OFDSenderStorePacket 191773 [13:36:09]StoreOFDPacket docnum=191773 [13:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 BB 07 01 CF 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 56 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D ED 02 00 35 04 06 00 42 FB 25 65 4B 1F 16 21 27 22 6B 04 6E E6 [13:36:09]CheckFolder [13:36:09]dirname=/storage/ofd_packets [13:36:09]CheckFolder done [13:36:09]ProducePacketName [13:36:09]name=ofd_packets/00191773 [13:36:09]NVStorageSaveData ofd_packets/00191773 [13:36:09]File name is /storage/ofd_packets/00191773 [13:36:09]Write 301 bytes [13:36:09]NVStorageSaveData done [13:36:09]OFDSenderStorePacket done [13:36:09]KKMCreateOFDPacket done [13:36:09]NVStorageSaveData kkm_last_timestamp [13:36:09]File name is /storage/kkm_last_timestamp [13:36:09]Write 4 bytes [13:36:09]NVStorageSaveData done [13:36:09]ExternCall_PrintAddStr [13:36:09]wPrintStart [13:36:09]Write to MH i2c: 01 00 00 65 04 69 [13:36:09]Write i2c OK [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 07 00 [13:36:09]MH_I2C_Read... [13:36:09]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [13:36:09]RasterBufferAndPrint [13:36:09]line Счет N : (1)31078 [13:36:09]line ИНН: 02508201610067 [13:36:09]line Контрольно-Кассовый Чек [13:36:09]line ПРОДАЖА [13:36:09]line ТРК (МРК, ГНК) : 12 [13:36:09]line Товар: 2710124130 [13:36:09]line Аи-92-К-5 [13:36:09]line 22.770 * 65.90 [13:36:09]line = 1500.54 [13:36:09]line НДС 12% НСП 1% [13:36:09]line > о реализуемом товаре [13:36:09]line ОКРУГЛЕНИЕ: -0.54 [13:36:09]line ИТОГО: 1500.00 [13:36:09]line Внесено: 1500.00 [13:36:09]line СДАЧА: 0.00 [13:36:09]line НСП 1% : 13.28 [13:36:09]line НДС 12% : 159.35 [13:36:09]line Наличными: 1500.00 [13:36:09]line Безнал.: 0.00 [13:36:09]line Место: АЗС № 170 "Партнер Нефть" [13:36:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:36:09]line СНО: Общий режим [13:36:09]line Чек 136 26.10.2024 13:36 [13:36:09]line Смена: 541 ФФД: 1.0 [13:36:09]line ЗНМ: 0300000110 [13:36:09]line РНМ: 0000000000091776 [13:36:09]line Версия ККМ: 001 [13:36:09]line [13:36:09]line Дисконтная программа [13:36:09]line АИ-92 [13:36:09]line номер 170 [13:36:09]line сэкономлено 22.77 сом [13:36:09]line ФМ: 0000000000871754 [13:36:09]line ФД: 191773 [13:36:09]line ФПД: 73646431619871 [13:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191773&fm=73646431619871&tin=02508201610067®Number=0000000000091776&sum=150000 [13:36:09]OFD Sender: Processing packet 191773 [packets to send 75, broken 74] [13:36:09]ProducePacketName [13:36:09]name=ofd_packets/00191773 [13:36:09]OFD Sender: To server: pG, [13:36:09]CommunicateWithHost lk.salyk.kg:30040 [13:36:09]ConnectInit lk.salyk.kg [13:36:09]written 0, free lines is 4095 [13:36:09]Connected sock=10 [13:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 BB 07 01 CF 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 56 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D ED 02 00 35 04 06 00 42 FB 25 65 4B 1F 16 21 27 22 6B 04 6E E6 [13:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 92 47 00 B4 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1D ED 02 00 F4 03 04 00 21 95 1C 67 B6 04 01 00 00 08 74 1F E6 4E F3 EC 9C [13:36:10]CommunicateWithHost err = 0 [13:36:10]CheckOFDResponse [13:36:10]1017 (14) - 77093643461234 [13:36:10]1041 (16) - 0000000000871754 [13:36:10]1040 (4) - 191773 [13:36:10]1012 (4) - 26.10.2024 07:07 [13:36:10]1206 (1) - 0 [13:36:10]OFD Sender: Remove packet 191773 [13:36:10]ProducePacketName [13:36:10]name=ofd_packets/00191773 [13:36:10]NVStorageDeleteData [13:36:10]Write to MH i2c: 01 00 00 95 04 99 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 51 0C FD [13:36:10]RasterBufferAndPrint [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]line [13:36:10]written 0, free lines is 3161 [13:36:10]MH_Cut [13:36:10]Write to MH i2c: D1 01 00 9C 04 01 72 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 01 00 [13:36:10]MH_I2C_Read... [13:36:10]Read from MH i2c: D1 01 00 9C 04 00 71 [13:36:10]Write to MH i2c: 01 00 00 9D 04 A1 [13:36:10]Write i2c OK [13:36:10]MH_I2C_Read... [13:36:10]OFD Sender: No OFD packet to send [13:36:11]*** Cut start [13:36:11]*** Partial cut [13:36:11]*** CUTSNS_PIN = 1 [13:36:11]*** CUTSNS_PIN = 0 [13:36:11]*** Brake cut motor [13:36:11]Read from MH i2c: 01 [13:36:11]MH_I2C_Read... [13:36:11]*** Stop cut motor [13:36:11]*** Cut end [13:36:11]Read from MH i2c: 01 07 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [13:36:11]process_action close_receipt done [13:36:11]requested_data is exist [13:36:11]produce_requested_data [13:36:11]requested_item fm.sn is exist - process it [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 11 00 00 [13:36:11]Write to MH i2c: E2 08 00 9E 04 80 11 00 00 00 00 00 00 1C [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 17 00 9E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [13:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:36:11]wFMCommunicate OK [13:36:11]requested_item fd.num is exist - process it [13:36:11]SAM_PROTO_GetFieldsCounters [13:36:11]wFMCommunicate request_size=4 [13:36:11]MH_SAM_APDU [13:36:11]CAPDU: 80 13 00 00 [13:36:11]Write to MH i2c: E2 08 00 9F 04 80 13 00 00 00 00 00 00 1F [13:36:11]Write i2c OK [13:36:11]MH_I2C_Read... [13:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:11]Read from MH i2c: E2 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 62 00 [13:36:11]MH_I2C_Read... [13:36:11]Read from MH i2c: E2 62 00 9F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [13:36:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:36:11]wFMCommunicate OK [13:36:11]SAM_PROTO_GetFieldsCounters done [13:36:11]requested_item shift.num is exist - process it [13:36:11]requested_item shift.opened is exist - process it [13:36:11]req_shift_opened [13:36:11]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 A0 04 80 13 01 00 00 00 00 00 21 [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 A0 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9A [13:36:12]RAPDU: 09 00 01 B2 38 1C 67 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]req_shift_opened done [13:36:12]requested_item shift.open_date is exist - process it [13:36:12]req_shift_open_date [13:36:12]req_shift_open_date done [13:36:12]produce_requested_data done [13:36:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191773,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:36:12]process_action_free close_receipt [13:36:12]json_value_free [13:36:12]json_value_free done [13:36:12]process_json_proto returns [13:36:12]Send response to host [13:36:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191773,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:36:12]free response buf [13:36:12]execute_script done [13:36:12]execute_script returns [13:36:12]free content buf [13:36:12]Sock 8.Close socket [13:36:12]Sock 8.Thread stoped [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]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:37:57]accept exits with 9 [13:37:57]New connection [13:37:57]New thread 3066817892 created [13:37:57]Thread 3066961252 joined [13:37:57]Waiting for new connection... [13:37:57] Sock 9.Parse request [13:37:57]Sock 9.Check first char [13:37:57]Sock 9.First char is OK [13:37:57]request: POST /json_proto HTTP/1.0 [13:37:57]Method: POST [13:37:57]URL: /json_proto [13:37:57]Method is POST - this is cgi request [13:37:57]url: /json_proto [13:37:57]query_string will be loaded in cgi processing [13:37:57]execute_cgi json_proto POST (null) [13:37:57]execute_cgi path=json_proto method=POST [13:37:57]POST find Content-Length [13:37:57]Host: 172.17.63.131:8080 [13:37:57]Content-Length: 673 [13:37:57]Content-Type: application/json [13:37:57] [13:37:57]POST finish read [13:37:57]Found Content-Length = 673 [13:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:57]execute_script... [13:37:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:57]POST & json_proto [13:37:57]process_json_proto [13:37:57]json parsed OK: [13:37:57]protocol is kg_v1.0 [13:37:57]action value=close_receipt [13:37:57]process_action close_receipt [13:37:57]cmd_close_receipt [13:37:57]MH_GetDate [13:37:57]Write to MH i2c: F0 00 00 A1 04 94 [13:37:57]Write i2c OK [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: F0 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: F0 09 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: F0 09 00 A1 04 00 C4 F0 1C 67 22 05 6E 64 CD [13:37:57]GetLastDocTimeStamp 1729949782 [13:37:57]current date 1729949892 [13:37:57]FM_GetShiftState [13:37:57]SAM_PROTO_GetShiftState [13:37:57]wFMCommunicate request_size=4 [13:37:57]MH_SAM_APDU [13:37:57]CAPDU: 80 13 01 00 [13:37:57]Write to MH i2c: E2 08 00 A2 04 80 13 01 00 00 00 00 00 23 [13:37:57]Write i2c OK [13:37:57]MH_I2C_Read... [13:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:57]Read from MH i2c: E2 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 0E 00 [13:37:57]MH_I2C_Read... [13:37:57]Read from MH i2c: E2 0E 00 A2 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9C [13:37:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:37:57]wFMCommunicate OK [13:37:57]SAM_PROTO_GetShiftState done [13:37:57]FM_GetShiftState done [13:37:57]opened in 1729902770 [13:37:57]opened+sec_in_day 1729989170 [13:37:57]quantity*price = 50063 [13:37:57]sum+1 = 50064 [13:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 137 26.10.2024 13:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191774 ФПД: 207200325977966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133812&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191774&fm=207200325977966&tin=02508201610067®Number=0000000000091776&sum=50000 [13:37:58]StoreToDocumentArchive [13:37:58]shift 541 fd 191774 [13:37:58]save to /storage/0541/doc_00191774 [13:37:58]save last doc name /storage/0541/doc_00191774 to /storage/kkm_last_doc_name [13:37:58]save OK [13:37:58]Clear old archive folders... [13:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:58]tlvbuf is 01831870 [13:37:58]SAM_PROTO_ClearQueue [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 09 00 00 [13:37:58]Write to MH i2c: E2 08 00 AF 04 80 09 00 00 00 00 00 00 25 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]SAM_PROTO_ClearQueue done [13:37:58]KKMCreateOFDPacket [13:37:58]OFDProtocolAddRootSTLVToBuf [13:37:58]FM_MakeSignedData [13:37:58]FM_MakeSignedData [13:37:58]SAM_PROTO_SignData [13:37:58]wFMCommunicate request_size=4 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 01 02 [13:37:58]Write to MH i2c: E2 08 00 B0 04 80 0D 01 02 00 00 00 00 2D [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:58]Read from MH i2c: E2 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 [13:37:58]MH_I2C_Read... [13:37:58]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [13:37:58]RAPDU: 90 00 [13:37:58]wFMCommunicate OK [13:37:58]wFMCommunicate request_size=255 [13:37:58]MH_SAM_APDU [13:37:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C4 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E ED 02 00 35 04 06 00 BC 72 95 D3 [13:37:58]Write to MH i2c: E2 02 01 B1 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C4 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E ED 02 00 35 04 06 00 BC 72 95 D3 00 00 C1 [13:37:58]Write i2c OK [13:37:58]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 B1 04 00 90 00 29 [13:37:59]RAPDU: 90 00 [13:37:59]wFMCommunicate OK [13:37:59]wFMCommunicate request_size=7 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 0D 02 02 02 C7 6E [13:37:59]Write to MH i2c: E2 0A 00 B2 04 80 0D 02 02 02 00 C7 6E 00 00 69 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 03 00 B2 04 00 90 00 2A [13:37:59]RAPDU: 90 00 [13:37:59]wFMCommunicate OK [13:37:59]wFMCommunicate request_size=4 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 0D 03 02 [13:37:59]Write to MH i2c: E2 08 00 B3 04 80 0D 03 02 00 00 00 00 32 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 0B 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 0B 00 B3 04 00 32 C6 BC C2 AB AD 3B 2D 90 00 69 [13:37:59]RAPDU: 32 C6 BC C2 AB AD 3B 2D 90 00 [13:37:59]wFMCommunicate OK [13:37:59]SAM_PROTO_SignData done [13:37:59]FM_MakeSignedData done [13:37:59]CreateOFDProtocolMessage [13:37:59]wFMCommunicate request_size=4 [13:37:59]MH_SAM_APDU [13:37:59]CAPDU: 80 11 00 00 [13:37:59]Write to MH i2c: E2 08 00 B4 04 80 11 00 00 00 00 00 00 32 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:59]Read from MH i2c: E2 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 17 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: E2 17 00 B4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [13:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:37:59]wFMCommunicate OK [13:37:59]CreateOFDProtocolMessage done [13:37:59]OFDSenderStorePacket 191774 [13:37:59]StoreOFDPacket docnum=191774 [13:37:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E6 C6 04 01 99 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C4 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E ED 02 00 35 04 06 00 BC 72 95 D3 C7 6E 32 C6 BC C2 AB AD 3B 2D [13:37:59]CheckFolder [13:37:59]dirname=/storage/ofd_packets [13:37:59]CheckFolder done [13:37:59]ProducePacketName [13:37:59]name=ofd_packets/00191774 [13:37:59]NVStorageSaveData ofd_packets/00191774 [13:37:59]File name is /storage/ofd_packets/00191774 [13:37:59]Write 298 bytes [13:37:59]NVStorageSaveData done [13:37:59]OFDSenderStorePacket done [13:37:59]KKMCreateOFDPacket done [13:37:59]NVStorageSaveData kkm_last_timestamp [13:37:59]File name is /storage/kkm_last_timestamp [13:37:59]Write 4 bytes [13:37:59]NVStorageSaveData done [13:37:59]ExternCall_PrintAddStr [13:37:59]wPrintStart [13:37:59]Write to MH i2c: 01 00 00 B5 04 B9 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 FF 0F CE [13:37:59]RasterBufferAndPrint [13:37:59]line Счет N : (1)31079 [13:37:59]line ИНН: 02508201610067 [13:37:59]line Контрольно-Кассовый Чек [13:37:59]line ПРОДАЖА [13:37:59]line ТРК (МРК, ГНК) : 11 [13:37:59]line Товар: 2710194210 [13:37:59]line ДТ-К-5 [13:37:59]line 6.570 * 76.20 [13:37:59]line = 500.63 [13:37:59]line НДС 12% НСП 1% [13:37:59]line > о реализуемом товаре [13:37:59]line ОКРУГЛЕНИЕ: -0.63 [13:37:59]line ИТОГО: 500.00 [13:37:59]line Внесено: 500.00 [13:37:59]line СДАЧА: 0.00 [13:37:59]line НСП 1% : 4.43 [13:37:59]line НДС 12% : 53.16 [13:37:59]line Наличными: 500.00 [13:37:59]line Безнал.: 0.00 [13:37:59]line Место: АЗС № 170 "Партнер Нефть" [13:37:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:37:59]line СНО: Общий режим [13:37:59]line Чек 137 26.10.2024 13:38 [13:37:59]line Смена: 541 ФФД: 1.0 [13:37:59]line ЗНМ: 0300000110 [13:37:59]line РНМ: 0000000000091776 [13:37:59]line Версия ККМ: 001 [13:37:59]line ФМ: 0000000000871754 [13:37:59]line ФД: 191774 [13:37:59]line ФПД: 207200325977966 [13:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133812&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191774&fm=207200325977966&tin=02508201610067®Number=0000000000091776&sum=50000 [13:37:59]OFD Sender: Processing packet 191774 [packets to send 75, broken 74] [13:37:59]ProducePacketName [13:37:59]name=ofd_packets/00191774 [13:37:59]OFD Sender: To server: pG, [13:37:59]CommunicateWithHost lk.salyk.kg:30040 [13:37:59]ConnectInit lk.salyk.kg [13:37:59]written 0, free lines is 4095 [13:37:59]Connected sock=10 [13:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E6 C6 04 01 99 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 C4 F0 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E ED 02 00 35 04 06 00 BC 72 95 D3 C7 6E 32 C6 BC C2 AB AD 3B 2D [13:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C6 31 47 00 0F 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1E ED 02 00 F4 03 04 00 8F 95 1C 67 B6 04 01 00 00 47 96 2B EE 8E 37 5C 80 [13:37:59]CommunicateWithHost err = 0 [13:37:59]CheckOFDResponse [13:37:59]1017 (14) - 77093643461234 [13:37:59]1041 (16) - 0000000000871754 [13:37:59]1040 (4) - 191774 [13:37:59]1012 (4) - 26.10.2024 07:09 [13:37:59]1206 (1) - 0 [13:37:59]OFD Sender: Remove packet 191774 [13:37:59]ProducePacketName [13:37:59]name=ofd_packets/00191774 [13:37:59]NVStorageDeleteData [13:37:59]Write to MH i2c: 01 00 00 E0 04 E4 [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 B2 0C A9 [13:37:59]RasterBufferAndPrint [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]line [13:37:59]written 0, free lines is 3254 [13:37:59]MH_Cut [13:37:59]Write to MH i2c: D1 01 00 E7 04 01 BD [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 01 00 [13:37:59]MH_I2C_Read... [13:37:59]Read from MH i2c: D1 01 00 E7 04 00 BC [13:37:59]Write to MH i2c: 01 00 00 E8 04 EC [13:37:59]Write i2c OK [13:37:59]MH_I2C_Read... [13:38:00]OFD Sender: No OFD packet to send [13:38:00]*** Cut start [13:38:00]*** Partial cut [13:38:00]*** CUTSNS_PIN = 1 [13:38:00]*** CUTSNS_PIN = 0 [13:38:01]*** Brake cut motor [13:38:01]Read from MH i2c: 01 [13:38:01]MH_I2C_Read... [13:38:01]*** Stop cut motor [13:38:01]*** Cut end [13:38:01]Read from MH i2c: 01 07 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [13:38:01]process_action close_receipt done [13:38:01]requested_data is exist [13:38:01]produce_requested_data [13:38:01]requested_item fm.sn is exist - process it [13:38:01]wFMCommunicate request_size=4 [13:38:01]MH_SAM_APDU [13:38:01]CAPDU: 80 11 00 00 [13:38:01]Write to MH i2c: E2 08 00 E9 04 80 11 00 00 00 00 00 00 67 [13:38:01]Write i2c OK [13:38:01]MH_I2C_Read... [13:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:01]Read from MH i2c: E2 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 17 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 17 00 E9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [13:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:38:01]wFMCommunicate OK [13:38:01]requested_item fd.num is exist - process it [13:38:01]SAM_PROTO_GetFieldsCounters [13:38:01]wFMCommunicate request_size=4 [13:38:01]MH_SAM_APDU [13:38:01]CAPDU: 80 13 00 00 [13:38:01]Write to MH i2c: E2 08 00 EA 04 80 13 00 00 00 00 00 00 6A [13:38:01]Write i2c OK [13:38:01]MH_I2C_Read... [13:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:01]Read from MH i2c: E2 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 62 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 62 00 EA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [13:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:01]wFMCommunicate OK [13:38:01]SAM_PROTO_GetFieldsCounters done [13:38:01]requested_item shift.num is exist - process it [13:38:01]requested_item shift.opened is exist - process it [13:38:01]req_shift_opened [13:38:01]FM_GetShiftState [13:38:01]SAM_PROTO_GetShiftState [13:38:01]wFMCommunicate request_size=4 [13:38:01]MH_SAM_APDU [13:38:01]CAPDU: 80 13 01 00 [13:38:01]Write to MH i2c: E2 08 00 EB 04 80 13 01 00 00 00 00 00 6C [13:38:01]Write i2c OK [13:38:01]MH_I2C_Read... [13:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:01]Read from MH i2c: E2 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 0E 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 0E 00 EB 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E5 [13:38:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:38:01]wFMCommunicate OK [13:38:01]SAM_PROTO_GetShiftState done [13:38:01]FM_GetShiftState done [13:38:01]req_shift_opened done [13:38:01]requested_item shift.open_date is exist - process it [13:38:01]req_shift_open_date [13:38:01]req_shift_open_date done [13:38:01]produce_requested_data done [13:38:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191774,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:38:01]process_action_free close_receipt [13:38:01]json_value_free [13:38:01]json_value_free done [13:38:01]process_json_proto returns [13:38:01]Send response to host [13:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191774,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:38:01]free response buf [13:38:01]execute_script done [13:38:01]execute_script returns [13:38:01]free content buf [13:38:01]Sock 9.Close socket [13:38:01]Sock 9.Thread stoped [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:37]accept exits with 8 [13:39:37]New connection [13:39:37]New thread 3066961252 created [13:39:37]Thread 3066817892 joined [13:39:37]Waiting for new connection... [13:39:37] Sock 8.Parse request [13:39:37]Sock 8.Check first char [13:39:37]Sock 8.First char is OK [13:39:37]request: POST /json_proto HTTP/1.0 [13:39:37]Method: POST [13:39:37]URL: /json_proto [13:39:37]Method is POST - this is cgi request [13:39:37]url: /json_proto [13:39:37]query_string will be loaded in cgi processing [13:39:37]execute_cgi json_proto POST (null) [13:39:37]execute_cgi path=json_proto method=POST [13:39:37]POST find Content-Length [13:39:37]Host: 172.17.63.131:8080 [13:39:37]Content-Length: 676 [13:39:37]Content-Type: application/json [13:39:37] [13:39:37]POST finish read [13:39:37]Found Content-Length = 676 [13:39:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:37]execute_script... [13:39: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)31080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:37]POST & json_proto [13:39:37]process_json_proto [13:39:37]json parsed OK: [13:39:37]protocol is kg_v1.0 [13:39:37]action value=close_receipt [13:39:37]process_action close_receipt [13:39:37]cmd_close_receipt [13:39:37]MH_GetDate [13:39:37]Write to MH i2c: F0 00 00 EC 04 DF [13:39:37]Write i2c OK [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: F0 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: F0 09 00 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: F0 09 00 EC 04 00 28 F1 1C 67 22 05 6E 64 7D [13:39:37]GetLastDocTimeStamp 1729949892 [13:39:37]current date 1729949992 [13:39:37]FM_GetShiftState [13:39:37]SAM_PROTO_GetShiftState [13:39:37]wFMCommunicate request_size=4 [13:39:37]MH_SAM_APDU [13:39:37]CAPDU: 80 13 01 00 [13:39:37]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [13:39:37]Write i2c OK [13:39:37]MH_I2C_Read... [13:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:37]Read from MH i2c: E2 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: E2 0E 00 [13:39:37]MH_I2C_Read... [13:39:37]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E7 [13:39:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:39:37]wFMCommunicate OK [13:39:37]SAM_PROTO_GetShiftState done [13:39:37]FM_GetShiftState done [13:39:37]opened in 1729902770 [13:39:37]opened+sec_in_day 1729989170 [13:39:37]quantity*price = 40006 [13:39:37]sum+1 = 40007 [13:39:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 138 26.10.2024 13:39 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191775 ФПД: 45121162852744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191775&fm=45121162852744&tin=02508201610067®Number=0000000000091776&sum=40000 [13:39:39]StoreToDocumentArchive [13:39:39]shift 541 fd 191775 [13:39:39]save to /storage/0541/doc_00191775 [13:39:39]save last doc name /storage/0541/doc_00191775 to /storage/kkm_last_doc_name [13:39:39]save OK [13:39:39]Clear old archive folders... [13:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:39]tlvbuf is 016257A0 [13:39:39]SAM_PROTO_ClearQueue [13:39:39]wFMCommunicate request_size=4 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 09 00 00 [13:39:39]Write to MH i2c: E2 08 00 FA 04 80 09 00 00 00 00 00 00 70 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 FA 04 00 90 00 72 [13:39:39]RAPDU: 90 00 [13:39:39]wFMCommunicate OK [13:39:39]SAM_PROTO_ClearQueue done [13:39:39]KKMCreateOFDPacket [13:39:39]OFDProtocolAddRootSTLVToBuf [13:39:39]FM_MakeSignedData [13:39:39]FM_MakeSignedData [13:39:39]SAM_PROTO_SignData [13:39:39]wFMCommunicate request_size=4 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 0D 01 02 [13:39:39]Write to MH i2c: E2 08 00 FB 04 80 0D 01 02 00 00 00 00 78 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 FB 04 00 90 00 73 [13:39:39]RAPDU: 90 00 [13:39:39]wFMCommunicate OK [13:39:39]wFMCommunicate request_size=255 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F ED 02 00 35 04 06 00 29 [13:39:39]Write to MH i2c: E2 02 01 FC 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F ED 02 00 35 04 06 00 29 00 00 57 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [13:39:39]RAPDU: 90 00 [13:39:39]wFMCommunicate OK [13:39:39]wFMCommunicate request_size=10 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 0D 02 02 05 09 96 E2 39 88 [13:39:39]Write to MH i2c: E2 0D 00 FD 04 80 0D 02 02 05 00 09 96 E2 39 88 00 00 C7 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [13:39:39]RAPDU: 90 00 [13:39:39]wFMCommunicate OK [13:39:39]wFMCommunicate request_size=4 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 0D 03 02 [13:39:39]Write to MH i2c: E2 08 00 FE 04 80 0D 03 02 00 00 00 00 7D [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 0B 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 0B 00 FE 04 00 BA 9D 76 A1 D2 D9 E1 F2 90 00 6A [13:39:39]RAPDU: BA 9D 76 A1 D2 D9 E1 F2 90 00 [13:39:39]wFMCommunicate OK [13:39:39]SAM_PROTO_SignData done [13:39:39]FM_MakeSignedData done [13:39:39]CreateOFDProtocolMessage [13:39:39]wFMCommunicate request_size=4 [13:39:39]MH_SAM_APDU [13:39:39]CAPDU: 80 11 00 00 [13:39:39]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:39]Read from MH i2c: E2 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 17 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [13:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:39:39]wFMCommunicate OK [13:39:39]CreateOFDProtocolMessage done [13:39:39]OFDSenderStorePacket 191775 [13:39:39]StoreOFDPacket docnum=191775 [13:39:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 4E 07 01 C9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F ED 02 00 35 04 06 00 29 09 96 E2 39 88 BA 9D 76 A1 D2 D9 E1 F2 [13:39:39]CheckFolder [13:39:39]dirname=/storage/ofd_packets [13:39:39]CheckFolder done [13:39:39]ProducePacketName [13:39:39]name=ofd_packets/00191775 [13:39:39]NVStorageSaveData ofd_packets/00191775 [13:39:39]File name is /storage/ofd_packets/00191775 [13:39:39]Write 301 bytes [13:39:39]NVStorageSaveData done [13:39:39]OFDSenderStorePacket done [13:39:39]KKMCreateOFDPacket done [13:39:39]NVStorageSaveData kkm_last_timestamp [13:39:39]File name is /storage/kkm_last_timestamp [13:39:39]Write 4 bytes [13:39:39]NVStorageSaveData done [13:39:39]ExternCall_PrintAddStr [13:39:39]wPrintStart [13:39:39]Write to MH i2c: 01 00 00 00 05 05 [13:39:39]Write i2c OK [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: 01 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: 01 07 00 [13:39:39]MH_I2C_Read... [13:39:39]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 FF 0F 1A [13:39:39]RasterBufferAndPrint [13:39:39]line Счет N : (1)31080 [13:39:39]line ИНН: 02508201610067 [13:39:39]line Контрольно-Кассовый Чек [13:39:39]line ПРОДАЖА [13:39:39]line ТРК (МРК, ГНК) : 12 [13:39:39]line Товар: 2710124130 [13:39:39]line Аи-92-К-5 [13:39:39]line 5.980 * 66.90 [13:39:39]line = 400.06 [13:39:39]line НДС 12% НСП 1% [13:39:39]line > о реализуемом товаре [13:39:39]line ОКРУГЛЕНИЕ: -0.06 [13:39:39]line ИТОГО: 400.00 [13:39:39]line Внесено: 400.00 [13:39:39]line СДАЧА: 0.00 [13:39:39]line НСП 1% : 3.54 [13:39:39]line НДС 12% : 42.48 [13:39:39]line Наличными: 400.00 [13:39:39]line Безнал.: 0.00 [13:39:39]line Место: АЗС № 170 "Партнер Нефть" [13:39:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:39:39]line СНО: Общий режим [13:39:39]line Чек 138 26.10.2024 13:39 [13:39:39]line Смена: 541 ФФД: 1.0 [13:39:39]line ЗНМ: 0300000110 [13:39:39]line РНМ: 0000000000091776 [13:39:39]line Версия ККМ: 001 [13:39:39]line ФМ: 0000000000871754 [13:39:39]line ФД: 191775 [13:39:39]line ФПД: 45121162852744 [13:39:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T133952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191775&fm=45121162852744&tin=02508201610067®Number=0000000000091776&sum=40000 [13:39:39]OFD Sender: Processing packet 191775 [packets to send 75, broken 74] [13:39:39]ProducePacketName [13:39:39]name=ofd_packets/00191775 [13:39:39]OFD Sender: To server: pG, [13:39:39]CommunicateWithHost lk.salyk.kg:30040 [13:39:39]ConnectInit lk.salyk.kg [13:39:39]written 0, free lines is 4095 [13:39:40]Connected sock=10 [13:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 4E 07 01 C9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 28 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F ED 02 00 35 04 06 00 29 09 96 E2 39 88 BA 9D 76 A1 D2 D9 E1 F2 [13:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F0 75 47 00 A3 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 1F ED 02 00 F4 03 04 00 F3 95 1C 67 B6 04 01 00 00 46 5B 9A D7 BA 78 E3 A0 [13:39:40]CommunicateWithHost err = 0 [13:39:40]CheckOFDResponse [13:39:40]1017 (14) - 77093643461234 [13:39:40]1041 (16) - 0000000000871754 [13:39:40]1040 (4) - 191775 [13:39:40]1012 (4) - 26.10.2024 07:10 [13:39:40]1206 (1) - 0 [13:39:40]OFD Sender: Remove packet 191775 [13:39:40]ProducePacketName [13:39:40]name=ofd_packets/00191775 [13:39:40]NVStorageDeleteData [13:39:40]Write to MH i2c: 01 00 00 2B 05 30 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: 01 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: 01 07 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 AF 0C F2 [13:39:40]RasterBufferAndPrint [13:39:40]line [13:39:40]line [13:39:40]line [13:39:40]line [13:39:40]line [13:39:40]written 0, free lines is 3253 [13:39:40]MH_Cut [13:39:40]Write to MH i2c: D1 01 00 32 05 01 09 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: D1 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: D1 01 00 [13:39:40]MH_I2C_Read... [13:39:40]Read from MH i2c: D1 01 00 32 05 00 08 [13:39:40]Write to MH i2c: 01 00 00 33 05 38 [13:39:40]Write i2c OK [13:39:40]MH_I2C_Read... [13:39:40]OFD Sender: No OFD packet to send [13:39:41]*** Cut start [13:39:41]*** Partial cut [13:39:41]*** CUTSNS_PIN = 1 [13:39:41]*** CUTSNS_PIN = 0 [13:39:41]*** Brake cut motor [13:39:41]Read from MH i2c: 01 [13:39:41]MH_I2C_Read... [13:39:41]*** Stop cut motor [13:39:41]*** Cut end [13:39:41]Read from MH i2c: 01 07 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [13:39:41]process_action close_receipt done [13:39:41]requested_data is exist [13:39:41]produce_requested_data [13:39:41]requested_item fm.sn is exist - process it [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 11 00 00 [13:39:41]Write to MH i2c: E2 08 00 34 05 80 11 00 00 00 00 00 00 B3 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:41]Read from MH i2c: E2 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 17 00 [13:39:41]MH_I2C_Read... [13:39:41]Read from MH i2c: E2 17 00 34 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [13:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:39:41]wFMCommunicate OK [13:39:41]requested_item fd.num is exist - process it [13:39:41]SAM_PROTO_GetFieldsCounters [13:39:41]wFMCommunicate request_size=4 [13:39:41]MH_SAM_APDU [13:39:41]CAPDU: 80 13 00 00 [13:39:41]Write to MH i2c: E2 08 00 35 05 80 13 00 00 00 00 00 00 B6 [13:39:41]Write i2c OK [13:39:41]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 62 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 62 00 35 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [13:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 1F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:42]wFMCommunicate OK [13:39:42]SAM_PROTO_GetFieldsCounters done [13:39:42]requested_item shift.num is exist - process it [13:39:42]requested_item shift.opened is exist - process it [13:39:42]req_shift_opened [13:39:42]FM_GetShiftState [13:39:42]SAM_PROTO_GetShiftState [13:39:42]wFMCommunicate request_size=4 [13:39:42]MH_SAM_APDU [13:39:42]CAPDU: 80 13 01 00 [13:39:42]Write to MH i2c: E2 08 00 36 05 80 13 01 00 00 00 00 00 B8 [13:39:42]Write i2c OK [13:39:42]MH_I2C_Read... [13:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:42]Read from MH i2c: E2 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 0E 00 [13:39:42]MH_I2C_Read... [13:39:42]Read from MH i2c: E2 0E 00 36 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 31 [13:39:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:39:42]wFMCommunicate OK [13:39:42]SAM_PROTO_GetShiftState done [13:39:42]FM_GetShiftState done [13:39:42]req_shift_opened done [13:39:42]requested_item shift.open_date is exist - process it [13:39:42]req_shift_open_date [13:39:42]req_shift_open_date done [13:39:42]produce_requested_data done [13:39:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191775,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:39:42]process_action_free close_receipt [13:39:42]json_value_free [13:39:42]json_value_free done [13:39:42]process_json_proto returns [13:39:42]Send response to host [13:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191775,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:39:42]free response buf [13:39:42]execute_script done [13:39:42]execute_script returns [13:39:42]free content buf [13:39:42]Sock 8.Close socket [13:39:42]Sock 8.Thread stoped [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]accept exits with 9 [13:41:45]New connection [13:41:45]New thread 3066817892 created [13:41:45]Thread 3066961252 joined [13:41:45]Waiting for new connection... [13:41:45] Sock 9.Parse request [13:41:45]Sock 9.Check first char [13:41:45]Sock 9.First char is OK [13:41:45]request: POST /json_proto HTTP/1.0 [13:41:45]Method: POST [13:41:45]URL: /json_proto [13:41:45]Method is POST - this is cgi request [13:41:45]url: /json_proto [13:41:45]query_string will be loaded in cgi processing [13:41:45]execute_cgi json_proto POST (null) [13:41:45]execute_cgi path=json_proto method=POST [13:41:45]POST find Content-Length [13:41:45]Host: 172.17.63.131:8080 [13:41:45]Content-Length: 862 [13:41:45]Content-Type: application/json [13:41:45] [13:41:45]POST finish read [13:41:45]Found Content-Length = 862 [13:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:45]execute_script... [13:41: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)31081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:45]POST & json_proto [13:41:45]process_json_proto [13:41:45]json parsed OK: [13:41:45]protocol is kg_v1.0 [13:41:45]action value=close_receipt [13:41:45]process_action close_receipt [13:41:45]cmd_close_receipt [13:41:45]MH_GetDate [13:41:45]Write to MH i2c: F0 00 00 37 05 2B [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 09 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: F0 09 00 37 05 00 A8 F1 1C 67 22 05 6E 64 49 [13:41:45]GetLastDocTimeStamp 1729949992 [13:41:45]current date 1729950120 [13:41:45]FM_GetShiftState [13:41:45]SAM_PROTO_GetShiftState [13:41:45]wFMCommunicate request_size=4 [13:41:45]MH_SAM_APDU [13:41:45]CAPDU: 80 13 01 00 [13:41:45]Write to MH i2c: E2 08 00 38 05 80 13 01 00 00 00 00 00 BA [13:41:45]Write i2c OK [13:41:45]MH_I2C_Read... [13:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:45]Read from MH i2c: E2 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 [13:41:45]MH_I2C_Read... [13:41:45]Read from MH i2c: E2 0E 00 38 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 33 [13:41:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:41:45]wFMCommunicate OK [13:41:45]SAM_PROTO_GetShiftState done [13:41:45]FM_GetShiftState done [13:41:45]opened in 1729902770 [13:41:45]opened+sec_in_day 1729989170 [13:41:45]quantity*price = 20003 [13:41:45]sum+1 = 20004 [13:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 139 26.10.2024 13:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191776 ФПД: 270772676579397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191776&fm=270772676579397&tin=02508201610067®Number=0000000000091776&sum=20003 [13:41:46]StoreToDocumentArchive [13:41:46]shift 541 fd 191776 [13:41:46]save to /storage/0541/doc_00191776 [13:41:46]save last doc name /storage/0541/doc_00191776 to /storage/kkm_last_doc_name [13:41:46]save OK [13:41:46]Clear old archive folders... [13:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:46]tlvbuf is 01A76990 [13:41:46]SAM_PROTO_ClearQueue [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 09 00 00 [13:41:46]Write to MH i2c: E2 08 00 45 05 80 09 00 00 00 00 00 00 BC [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]SAM_PROTO_ClearQueue done [13:41:46]KKMCreateOFDPacket [13:41:46]OFDProtocolAddRootSTLVToBuf [13:41:46]FM_MakeSignedData [13:41:46]FM_MakeSignedData [13:41:46]SAM_PROTO_SignData [13:41:46]wFMCommunicate request_size=4 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 0D 01 02 [13:41:46]Write to MH i2c: E2 08 00 46 05 80 0D 01 02 00 00 00 00 C4 [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:46]Read from MH i2c: E2 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 [13:41:46]MH_I2C_Read... [13:41:46]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [13:41:46]RAPDU: 90 00 [13:41:46]wFMCommunicate OK [13:41:46]wFMCommunicate request_size=255 [13:41:46]MH_SAM_APDU [13:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A8 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 ED 02 00 35 04 06 00 F6 [13:41:46]Write to MH i2c: E2 02 01 47 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A8 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 ED 02 00 35 04 06 00 F6 00 00 EB [13:41:46]Write i2c OK [13:41:46]MH_I2C_Read... [13:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:47]Read from MH i2c: E2 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 03 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [13:41:47]RAPDU: 90 00 [13:41:47]wFMCommunicate OK [13:41:47]wFMCommunicate request_size=10 [13:41:47]MH_SAM_APDU [13:41:47]CAPDU: 80 0D 02 02 05 44 2D 33 D0 45 [13:41:47]Write to MH i2c: E2 0D 00 48 05 80 0D 02 02 05 00 44 2D 33 D0 45 00 00 8A [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:47]Read from MH i2c: E2 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 03 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [13:41:47]RAPDU: 90 00 [13:41:47]wFMCommunicate OK [13:41:47]wFMCommunicate request_size=4 [13:41:47]MH_SAM_APDU [13:41:47]CAPDU: 80 0D 03 02 [13:41:47]Write to MH i2c: E2 08 00 49 05 80 0D 03 02 00 00 00 00 C9 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:47]Read from MH i2c: E2 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 0B 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 0B 00 49 05 00 1F DC 08 3E ED 33 B0 7A 90 00 55 [13:41:47]RAPDU: 1F DC 08 3E ED 33 B0 7A 90 00 [13:41:47]wFMCommunicate OK [13:41:47]SAM_PROTO_SignData done [13:41:47]FM_MakeSignedData done [13:41:47]CreateOFDProtocolMessage [13:41:47]wFMCommunicate request_size=4 [13:41:47]MH_SAM_APDU [13:41:47]CAPDU: 80 11 00 00 [13:41:47]Write to MH i2c: E2 08 00 4A 05 80 11 00 00 00 00 00 00 C9 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:47]Read from MH i2c: E2 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 17 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: E2 17 00 4A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [13:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:47]wFMCommunicate OK [13:41:47]CreateOFDProtocolMessage done [13:41:47]OFDSenderStorePacket 191776 [13:41:47]StoreOFDPacket docnum=191776 [13:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 1B 07 01 42 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A8 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 ED 02 00 35 04 06 00 F6 44 2D 33 D0 45 1F DC 08 3E ED 33 B0 7A [13:41:47]CheckFolder [13:41:47]dirname=/storage/ofd_packets [13:41:47]CheckFolder done [13:41:47]ProducePacketName [13:41:47]name=ofd_packets/00191776 [13:41:47]NVStorageSaveData ofd_packets/00191776 [13:41:47]File name is /storage/ofd_packets/00191776 [13:41:47]Write 301 bytes [13:41:47]NVStorageSaveData done [13:41:47]OFDSenderStorePacket done [13:41:47]KKMCreateOFDPacket done [13:41:47]NVStorageSaveData kkm_last_timestamp [13:41:47]File name is /storage/kkm_last_timestamp [13:41:47]Write 4 bytes [13:41:47]NVStorageSaveData done [13:41:47]ExternCall_PrintAddStr [13:41:47]wPrintStart [13:41:47]Write to MH i2c: 01 00 00 4B 05 50 [13:41:47]Write i2c OK [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 07 00 [13:41:47]MH_I2C_Read... [13:41:47]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [13:41:47]RasterBufferAndPrint [13:41:47]line Счет N : (1)31081 [13:41:47]line ИНН: 02508201610067 [13:41:47]line Контрольно-Кассовый Чек [13:41:47]line ПРОДАЖА [13:41:47]line ТРК (МРК, ГНК) : 21 [13:41:47]line Товар: 2710124130 [13:41:47]line Аи-92-К-5 [13:41:47]line 2.990 * 66.90 [13:41:47]line = 200.03 [13:41:47]line НДС 12% НСП 1% [13:41:47]line > о реализуемом товаре [13:41:47]line ИТОГО: 200.03 [13:41:47]line НСП 1% : 1.77 [13:41:47]line НДС 12% : 21.24 [13:41:47]line Наличными: 0.00 [13:41:47]line Безнал.: 200.03 [13:41:47]line Место: АЗС № 170 "Партнер Нефть" [13:41:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:41:47]line СНО: Общий режим [13:41:47]line Чек 139 26.10.2024 13:42 [13:41:47]line Смена: 541 ФФД: 1.0 [13:41:47]line ЗНМ: 0300000110 [13:41:47]line РНМ: 0000000000091776 [13:41:47]line Версия ККМ: 001 [13:41:47]line Платежная система: Кыргызкоммерцбанк [13:41:47]line ФМ: 0000000000871754 [13:41:47]line ФД: 191776 [13:41:47]line ФПД: 270772676579397 [13:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134200&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191776&fm=270772676579397&tin=02508201610067®Number=0000000000091776&sum=20003 [13:41:47]OFD Sender: Processing packet 191776 [packets to send 75, broken 74] [13:41:47]ProducePacketName [13:41:47]name=ofd_packets/00191776 [13:41:47]OFD Sender: To server: pG, [13:41:47]CommunicateWithHost lk.salyk.kg:30040 [13:41:47]ConnectInit lk.salyk.kg [13:41:47]written 0, free lines is 4095 [13:41:47]Connected sock=10 [13:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 1B 07 01 42 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 A8 F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 ED 02 00 35 04 06 00 F6 44 2D 33 D0 45 1F DC 08 3E ED 33 B0 7A [13:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 01 6A 47 00 4B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 20 ED 02 00 F4 03 04 00 73 96 1C 67 B6 04 01 00 00 63 F3 80 69 9B 8A C6 1A [13:41:47]CommunicateWithHost err = 0 [13:41:47]CheckOFDResponse [13:41:47]1017 (14) - 77093643461234 [13:41:47]1041 (16) - 0000000000871754 [13:41:47]1040 (4) - 191776 [13:41:47]1012 (4) - 26.10.2024 07:12 [13:41:47]1206 (1) - 0 [13:41:47]OFD Sender: Remove packet 191776 [13:41:47]ProducePacketName [13:41:47]name=ofd_packets/00191776 [13:41:47]NVStorageDeleteData [13:41:48]Write to MH i2c: 01 00 00 75 05 7A [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 CD 0C 5A [13:41:48]RasterBufferAndPrint [13:41:48]line [13:41:48]line [13:41:48]line [13:41:48]line [13:41:48]line [13:41:48]written 0, free lines is 3282 [13:41:48]MH_Cut [13:41:48]Write to MH i2c: D1 01 00 7C 05 01 53 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: D1 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: D1 01 00 [13:41:48]MH_I2C_Read... [13:41:48]Read from MH i2c: D1 01 00 7C 05 00 52 [13:41:48]Write to MH i2c: 01 00 00 7D 05 82 [13:41:48]Write i2c OK [13:41:48]MH_I2C_Read... [13:41:48]OFD Sender: No OFD packet to send [13:41:48]*** Cut start [13:41:48]*** Partial cut [13:41:48]*** CUTSNS_PIN = 1 [13:41:48]*** CUTSNS_PIN = 0 [13:41:49]*** Brake cut motor [13:41:49]Read from MH i2c: 01 [13:41:49]MH_I2C_Read... [13:41:49]*** Stop cut motor [13:41:49]*** Cut end [13:41:49]Read from MH i2c: 01 07 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [13:41:49]process_action close_receipt done [13:41:49]requested_data is exist [13:41:49]produce_requested_data [13:41:49]requested_item fm.sn is exist - process it [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 11 00 00 [13:41:49]Write to MH i2c: E2 08 00 7E 05 80 11 00 00 00 00 00 00 FD [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 17 00 7E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 50 [13:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:49]wFMCommunicate OK [13:41:49]requested_item fd.num is exist - process it [13:41:49]SAM_PROTO_GetFieldsCounters [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 13 00 00 [13:41:49]Write to MH i2c: E2 08 00 7F 05 80 13 00 00 00 00 00 00 00 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 62 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 62 00 7F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 20 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_GetFieldsCounters done [13:41:49]requested_item shift.num is exist - process it [13:41:49]requested_item shift.opened is exist - process it [13:41:49]req_shift_opened [13:41:49]FM_GetShiftState [13:41:49]SAM_PROTO_GetShiftState [13:41:49]wFMCommunicate request_size=4 [13:41:49]MH_SAM_APDU [13:41:49]CAPDU: 80 13 01 00 [13:41:49]Write to MH i2c: E2 08 00 80 05 80 13 01 00 00 00 00 00 02 [13:41:49]Write i2c OK [13:41:49]MH_I2C_Read... [13:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:49]Read from MH i2c: E2 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 [13:41:49]MH_I2C_Read... [13:41:49]Read from MH i2c: E2 0E 00 80 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7B [13:41:49]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:41:49]wFMCommunicate OK [13:41:49]SAM_PROTO_GetShiftState done [13:41:49]FM_GetShiftState done [13:41:49]req_shift_opened done [13:41:49]requested_item shift.open_date is exist - process it [13:41:49]req_shift_open_date [13:41:49]req_shift_open_date done [13:41:49]produce_requested_data done [13:41:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191776,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:41:49]process_action_free close_receipt [13:41:49]json_value_free [13:41:49]json_value_free done [13:41:49]process_json_proto returns [13:41:49]Send response to host [13:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191776,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:41:49]free response buf [13:41:49]execute_script done [13:41:49]execute_script returns [13:41:49]free content buf [13:41:49]Sock 9.Close socket [13:41:49]Sock 9.Thread stoped [13:41:51]accept exits with 8 [13:41:51]New connection [13:41:51]New thread 3066961252 created [13:41:51]Thread 3066817892 joined [13:41:51]Waiting for new connection... [13:41:51] Sock 8.Parse request [13:41:51]Sock 8.Check first char [13:41:51]Sock 8.First char is OK [13:41:51]request: POST /json_proto HTTP/1.0 [13:41:51]Method: POST [13:41:51]URL: /json_proto [13:41:51]Method is POST - this is cgi request [13:41:51]url: /json_proto [13:41:51]query_string will be loaded in cgi processing [13:41:51]execute_cgi json_proto POST (null) [13:41:51]execute_cgi path=json_proto method=POST [13:41:51]POST find Content-Length [13:41:51]Host: 172.17.63.131:8080 [13:41:51]Content-Length: 676 [13:41:51]Content-Type: application/json [13:41:51] [13:41:51]POST finish read [13:41:51]Found Content-Length = 676 [13:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:51]execute_script... [13:41:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:51]POST & json_proto [13:41:51]process_json_proto [13:41:51]json parsed OK: [13:41:51]protocol is kg_v1.0 [13:41:51]action value=close_receipt [13:41:51]process_action close_receipt [13:41:51]cmd_close_receipt [13:41:51]MH_GetDate [13:41:51]Write to MH i2c: F0 00 00 81 05 75 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 09 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: F0 09 00 81 05 00 AE F1 1C 67 22 05 6E 64 99 [13:41:51]GetLastDocTimeStamp 1729950120 [13:41:51]current date 1729950126 [13:41:51]FM_GetShiftState [13:41:51]SAM_PROTO_GetShiftState [13:41:51]wFMCommunicate request_size=4 [13:41:51]MH_SAM_APDU [13:41:51]CAPDU: 80 13 01 00 [13:41:51]Write to MH i2c: E2 08 00 82 05 80 13 01 00 00 00 00 00 04 [13:41:51]Write i2c OK [13:41:51]MH_I2C_Read... [13:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:51]Read from MH i2c: E2 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 [13:41:51]MH_I2C_Read... [13:41:51]Read from MH i2c: E2 0E 00 82 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7D [13:41:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:41:51]wFMCommunicate OK [13:41:51]SAM_PROTO_GetShiftState done [13:41:51]FM_GetShiftState done [13:41:51]opened in 1729902770 [13:41:51]opened+sec_in_day 1729989170 [13:41:51]quantity*price = 25020 [13:41:51]sum+1 = 25022 [13:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 140 26.10.2024 13:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191777 ФПД: 5046792638454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191777&fm=5046792638454&tin=02508201610067®Number=0000000000091776&sum=25000 [13:41:52]StoreToDocumentArchive [13:41:52]shift 541 fd 191777 [13:41:52]save to /storage/0541/doc_00191777 [13:41:52]save last doc name /storage/0541/doc_00191777 to /storage/kkm_last_doc_name [13:41:52]save OK [13:41:52]Clear old archive folders... [13:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:52]tlvbuf is 01960DC0 [13:41:52]SAM_PROTO_ClearQueue [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 09 00 00 [13:41:52]Write to MH i2c: E2 08 00 8F 05 80 09 00 00 00 00 00 00 06 [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_ClearQueue done [13:41:52]KKMCreateOFDPacket [13:41:52]OFDProtocolAddRootSTLVToBuf [13:41:52]FM_MakeSignedData [13:41:52]FM_MakeSignedData [13:41:52]SAM_PROTO_SignData [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 0D 01 02 [13:41:52]Write to MH i2c: E2 08 00 90 05 80 0D 01 02 00 00 00 00 0E [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [13:41:52]RAPDU: 90 00 [13:41:52]wFMCommunicate OK [13:41:52]wFMCommunicate request_size=255 [13:41:52]MH_SAM_APDU [13:41: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 ED 02 00 35 04 06 00 04 [13:41:52]Write to MH i2c: E2 02 01 91 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 ED 02 00 35 04 06 00 04 00 00 5C [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]wFMCommunicate request_size=10 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 02 02 05 97 0C 48 4F F6 [13:41:53]Write to MH i2c: E2 0D 00 92 05 80 0D 02 02 05 00 97 0C 48 4F F6 00 00 4B [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 03 02 [13:41:53]Write to MH i2c: E2 08 00 93 05 80 0D 03 02 00 00 00 00 13 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0B 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0B 00 93 05 00 C5 2C B1 E3 30 2C 9C 4C 90 00 DD [13:41:53]RAPDU: C5 2C B1 E3 30 2C 9C 4C 90 00 [13:41:53]wFMCommunicate OK [13:41:53]SAM_PROTO_SignData done [13:41:53]FM_MakeSignedData done [13:41:53]CreateOFDProtocolMessage [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 11 00 00 [13:41:53]Write to MH i2c: E2 08 00 94 05 80 11 00 00 00 00 00 00 13 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 17 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 17 00 94 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 66 [13:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:53]wFMCommunicate OK [13:41:53]CreateOFDProtocolMessage done [13:41:53]OFDSenderStorePacket 191777 [13:41:53]StoreOFDPacket docnum=191777 [13:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 19 07 01 8C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 ED 02 00 35 04 06 00 04 97 0C 48 4F F6 C5 2C B1 E3 30 2C 9C 4C [13:41:53]CheckFolder [13:41:53]dirname=/storage/ofd_packets [13:41:53]CheckFolder done [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00191777 [13:41:53]NVStorageSaveData ofd_packets/00191777 [13:41:53]File name is /storage/ofd_packets/00191777 [13:41:53]Write 301 bytes [13:41:53]NVStorageSaveData done [13:41:53]OFDSenderStorePacket done [13:41:53]KKMCreateOFDPacket done [13:41:53]NVStorageSaveData kkm_last_timestamp [13:41:53]File name is /storage/kkm_last_timestamp [13:41:53]Write 4 bytes [13:41:53]NVStorageSaveData done [13:41:53]ExternCall_PrintAddStr [13:41:53]wPrintStart [13:41:53]Write to MH i2c: 01 00 00 95 05 9A [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [13:41:53]RasterBufferAndPrint [13:41:53]line Счет N : (1)31082 [13:41:53]line ИНН: 02508201610067 [13:41:53]line Контрольно-Кассовый Чек [13:41:53]line ПРОДАЖА [13:41:53]line ТРК (МРК, ГНК) : 12 [13:41:53]line Товар: 2710124130 [13:41:53]line Аи-92-К-5 [13:41:53]line 3.740 * 66.90 [13:41:53]line = 250.21 [13:41:53]line НДС 12% НСП 1% [13:41:53]line > о реализуемом товаре [13:41:53]line ОКРУГЛЕНИЕ: -0.21 [13:41:53]line ИТОГО: 250.00 [13:41:53]line Внесено: 250.00 [13:41:53]line СДАЧА: 0.00 [13:41:53]line НСП 1% : 2.21 [13:41:53]line НДС 12% : 26.57 [13:41:53]line Наличными: 250.00 [13:41:53]line Безнал.: 0.00 [13:41:53]line Место: АЗС № 170 "Партнер Нефть" [13:41:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:41:53]line СНО: Общий режим [13:41:53]line Чек 140 26.10.2024 13:42 [13:41:53]line Смена: 541 ФФД: 1.0 [13:41:53]line ЗНМ: 0300000110 [13:41:53]line РНМ: 0000000000091776 [13:41:53]line Версия ККМ: 001 [13:41:53]line ФМ: 0000000000871754 [13:41:53]line ФД: 191777 [13:41:53]line ФПД: 5046792638454 [13:41:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191777&fm=5046792638454&tin=02508201610067®Number=0000000000091776&sum=25000 [13:41:53]written 0, free lines is 4095 [13:41:53]OFD Sender: Processing packet 191777 [packets to send 75, broken 74] [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00191777 [13:41:53]OFD Sender: To server: pG, [13:41:53]CommunicateWithHost lk.salyk.kg:30040 [13:41:53]ConnectInit lk.salyk.kg [13:41:53]Connected sock=10 [13:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4D 19 07 01 8C 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AE F1 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 ED 02 00 35 04 06 00 04 97 0C 48 4F F6 C5 2C B1 E3 30 2C 9C 4C [13:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 88 2F 47 00 D5 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 21 ED 02 00 F4 03 04 00 79 96 1C 67 B6 04 01 00 00 6F D3 1E BF 92 6A 4D 88 [13:41:53]CommunicateWithHost err = 0 [13:41:53]CheckOFDResponse [13:41:53]1017 (14) - 77093643461234 [13:41:53]1041 (16) - 0000000000871754 [13:41:53]1040 (4) - 191777 [13:41:53]1012 (4) - 26.10.2024 07:12 [13:41:53]1206 (1) - 0 [13:41:53]OFD Sender: Remove packet 191777 [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00191777 [13:41:53]NVStorageDeleteData [13:41:53]Write to MH i2c: 01 00 00 C0 05 C5 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 BB 0C 93 [13:41:53]RasterBufferAndPrint [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]line [13:41:53]written 0, free lines is 3272 [13:41:53]MH_Cut [13:41:53]Write to MH i2c: D1 01 00 C7 05 01 9E [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 01 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: D1 01 00 C7 05 00 9D [13:41:53]Write to MH i2c: 01 00 00 C8 05 CD [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:54]OFD Sender: No OFD packet to send [13:41:54]*** Cut start [13:41:54]*** Partial cut [13:41:54]*** CUTSNS_PIN = 1 [13:41:54]*** CUTSNS_PIN = 0 [13:41:54]*** Brake cut motor [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]*** Stop cut motor [13:41:55]*** Cut end [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [13:41:55]process_action close_receipt done [13:41:55]requested_data is exist [13:41:55]produce_requested_data [13:41:55]requested_item fm.sn is exist - process it [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 11 00 00 [13:41:55]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9B [13:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:41:55]wFMCommunicate OK [13:41:55]requested_item fd.num is exist - process it [13:41:55]SAM_PROTO_GetFieldsCounters [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 00 00 [13:41:55]Write to MH i2c: E2 08 00 CA 05 80 13 00 00 00 00 00 00 4B [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 62 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 62 00 CA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 21 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:55]wFMCommunicate OK [13:41:55]SAM_PROTO_GetFieldsCounters done [13:41:55]requested_item shift.num is exist - process it [13:41:55]requested_item shift.opened is exist - process it [13:41:55]req_shift_opened [13:41:55]FM_GetShiftState [13:41:55]SAM_PROTO_GetShiftState [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 01 00 [13:41:55]Write to MH i2c: E2 08 00 CB 05 80 13 01 00 00 00 00 00 4D [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 CB 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C6 [13:41:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:41:55]wFMCommunicate OK [13:41:55]SAM_PROTO_GetShiftState done [13:41:55]FM_GetShiftState done [13:41:55]req_shift_opened done [13:41:55]requested_item shift.open_date is exist - process it [13:41:55]req_shift_open_date [13:41:55]req_shift_open_date done [13:41:55]produce_requested_data done [13:41:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191777,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:41:55]process_action_free close_receipt [13:41:55]json_value_free [13:41:55]json_value_free done [13:41:55]process_json_proto returns [13:41:55]Send response to host [13:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191777,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:41:55]free response buf [13:41:55]execute_script done [13:41:55]execute_script returns [13:41:55]free content buf [13:41:55]Sock 8.Close socket [13:41:55]Sock 8.Thread stoped [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:36]accept exits with 9 [13:43:36]New connection [13:43:36]New thread 3066817892 created [13:43:36]Thread 3066961252 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 9.Parse request [13:43:36]Sock 9.Check first char [13:43:36]Sock 9.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.63.131:8080 [13:43:36]Content-Length: 676 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 676 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]execute_script... [13:43: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)31083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]POST & json_proto [13:43:36]process_json_proto [13:43:36]json parsed OK: [13:43:36]protocol is kg_v1.0 [13:43:36]action value=close_receipt [13:43:36]process_action close_receipt [13:43:36]cmd_close_receipt [13:43:36]MH_GetDate [13:43:36]Write to MH i2c: F0 00 00 CC 05 C0 [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: F0 09 00 CC 05 00 16 F2 1C 67 22 05 6E 64 4D [13:43:36]GetLastDocTimeStamp 1729950126 [13:43:36]current date 1729950230 [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C8 [13:43:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetShiftState done [13:43:36]FM_GetShiftState done [13:43:36]opened in 1729902770 [13:43:36]opened+sec_in_day 1729989170 [13:43:36]quantity*price = 50041 [13:43:36]sum+1 = 50042 [13:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 141 26.10.2024 13:43 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191778 ФПД: 219424252852082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191778&fm=219424252852082&tin=02508201610067®Number=0000000000091776&sum=50000 [13:43:37]StoreToDocumentArchive [13:43:37]shift 541 fd 191778 [13:43:37]save to /storage/0541/doc_00191778 [13:43:37]save last doc name /storage/0541/doc_00191778 to /storage/kkm_last_doc_name [13:43:37]save OK [13:43:37]Clear old archive folders... [13:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:37]tlvbuf is 017F1A90 [13:43:37]SAM_PROTO_ClearQueue [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 09 00 00 [13:43:37]Write to MH i2c: E2 08 00 DA 05 80 09 00 00 00 00 00 00 51 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_ClearQueue done [13:43:37]KKMCreateOFDPacket [13:43:37]OFDProtocolAddRootSTLVToBuf [13:43:37]FM_MakeSignedData [13:43:37]FM_MakeSignedData [13:43:37]SAM_PROTO_SignData [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 01 02 [13:43:37]Write to MH i2c: E2 08 00 DB 05 80 0D 01 02 00 00 00 00 59 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=255 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 17 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 ED 02 00 35 04 06 00 C7 [13:43:37]Write to MH i2c: E2 02 01 DC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 17 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 ED 02 00 35 04 06 00 C7 00 00 FD [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=10 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 02 02 05 90 B0 A5 77 72 [13:43:37]Write to MH i2c: E2 0D 00 DD 05 80 0D 02 02 05 00 90 B0 A5 77 72 00 00 34 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [13:43:37]RAPDU: 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 0D 03 02 [13:43:37]Write to MH i2c: E2 08 00 DE 05 80 0D 03 02 00 00 00 00 5E [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0B 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 0B 00 DE 05 00 64 D0 9D ED 7F 75 A4 3F 90 00 F4 [13:43:37]RAPDU: 64 D0 9D ED 7F 75 A4 3F 90 00 [13:43:37]wFMCommunicate OK [13:43:37]SAM_PROTO_SignData done [13:43:37]FM_MakeSignedData done [13:43:37]CreateOFDProtocolMessage [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 11 00 00 [13:43:37]Write to MH i2c: E2 08 00 DF 05 80 11 00 00 00 00 00 00 5E [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 17 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 17 00 DF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [13:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:43:37]wFMCommunicate OK [13:43:37]CreateOFDProtocolMessage done [13:43:37]OFDSenderStorePacket 191778 [13:43:37]StoreOFDPacket docnum=191778 [13:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB C6 07 01 DA BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 17 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 ED 02 00 35 04 06 00 C7 90 B0 A5 77 72 64 D0 9D ED 7F 75 A4 3F [13:43:37]CheckFolder [13:43:37]dirname=/storage/ofd_packets [13:43:37]CheckFolder done [13:43:37]ProducePacketName [13:43:37]name=ofd_packets/00191778 [13:43:37]NVStorageSaveData ofd_packets/00191778 [13:43:37]File name is /storage/ofd_packets/00191778 [13:43:37]Write 301 bytes [13:43:37]NVStorageSaveData done [13:43:37]OFDSenderStorePacket done [13:43:37]KKMCreateOFDPacket done [13:43:37]NVStorageSaveData kkm_last_timestamp [13:43:37]File name is /storage/kkm_last_timestamp [13:43:37]Write 4 bytes [13:43:37]NVStorageSaveData done [13:43:37]ExternCall_PrintAddStr [13:43:37]wPrintStart [13:43:37]Write to MH i2c: 01 00 00 E0 05 E5 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: 01 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: 01 07 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [13:43:37]RasterBufferAndPrint [13:43:37]line Счет N : (1)31083 [13:43:37]line ИНН: 02508201610067 [13:43:37]line Контрольно-Кассовый Чек [13:43:37]line ПРОДАЖА [13:43:37]line ТРК (МРК, ГНК) : 21 [13:43:37]line Товар: 2710124130 [13:43:37]line Аи-92-К-5 [13:43:37]line 7.480 * 66.90 [13:43:37]line = 500.41 [13:43:37]line НДС 12% НСП 1% [13:43:37]line > о реализуемом товаре [13:43:37]line ОКРУГЛЕНИЕ: -0.41 [13:43:37]line ИТОГО: 500.00 [13:43:37]line Внесено: 500.00 [13:43:37]line СДАЧА: 0.00 [13:43:37]line НСП 1% : 4.43 [13:43:37]line НДС 12% : 53.14 [13:43:37]line Наличными: 500.00 [13:43:37]line Безнал.: 0.00 [13:43:37]line Место: АЗС № 170 "Партнер Нефть" [13:43:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:43:37]line СНО: Общий режим [13:43:37]line Чек 141 26.10.2024 13:43 [13:43:37]line Смена: 541 ФФД: 1.0 [13:43:37]line ЗНМ: 0300000110 [13:43:37]line РНМ: 0000000000091776 [13:43:37]line Версия ККМ: 001 [13:43:37]line ФМ: 0000000000871754 [13:43:37]line ФД: 191778 [13:43:37]line ФПД: 219424252852082 [13:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134351&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191778&fm=219424252852082&tin=02508201610067®Number=0000000000091776&sum=50000 [13:43:38]OFD Sender: Processing packet 191778 [packets to send 75, broken 74] [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00191778 [13:43:38]OFD Sender: To server: pG, [13:43:38]CommunicateWithHost lk.salyk.kg:30040 [13:43:38]ConnectInit lk.salyk.kg [13:43:38]written 0, free lines is 4095 [13:43:38]Connected sock=11 [13:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CB C6 07 01 DA BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 17 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 ED 02 00 35 04 06 00 C7 90 B0 A5 77 72 64 D0 9D ED 7F 75 A4 3F [13:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DB F1 47 00 DF 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 22 ED 02 00 F4 03 04 00 E2 96 1C 67 B6 04 01 00 00 E1 1F F9 03 72 F6 C8 BF [13:43:38]CommunicateWithHost err = 0 [13:43:38]CheckOFDResponse [13:43:38]1017 (14) - 77093643461234 [13:43:38]1041 (16) - 0000000000871754 [13:43:38]1040 (4) - 191778 [13:43:38]1012 (4) - 26.10.2024 07:14 [13:43:38]1206 (1) - 0 [13:43:38]OFD Sender: Remove packet 191778 [13:43:38]ProducePacketName [13:43:38]name=ofd_packets/00191778 [13:43:38]NVStorageDeleteData [13:43:38]Write to MH i2c: 01 00 00 0B 06 11 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 C3 0C E7 [13:43:38]RasterBufferAndPrint [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]line [13:43:38]written 0, free lines is 3272 [13:43:38]MH_Cut [13:43:38]Write to MH i2c: D1 01 00 12 06 01 EA [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 01 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: D1 01 00 12 06 00 E9 [13:43:38]Write to MH i2c: 01 00 00 13 06 19 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:39]OFD Sender: No OFD packet to send [13:43:39]*** Cut start [13:43:39]*** Partial cut [13:43:39]*** CUTSNS_PIN = 1 [13:43:39]*** CUTSNS_PIN = 0 [13:43:39]*** Brake cut motor [13:43:40]Read from MH i2c: 01 [13:43:40]MH_I2C_Read... [13:43:40]*** Stop cut motor [13:43:40]*** Cut end [13:43:40]Read from MH i2c: 01 07 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: 01 07 00 13 06 00 00 00 00 00 FF 0F 2E [13:43:40]process_action close_receipt done [13:43:40]requested_data is exist [13:43:40]produce_requested_data [13:43:40]requested_item fm.sn is exist - process it [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 11 00 00 [13:43:40]Write to MH i2c: E2 08 00 14 06 80 11 00 00 00 00 00 00 94 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 17 00 14 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E7 [13:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:43:40]wFMCommunicate OK [13:43:40]requested_item fd.num is exist - process it [13:43:40]SAM_PROTO_GetFieldsCounters [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 00 00 [13:43:40]Write to MH i2c: E2 08 00 15 06 80 13 00 00 00 00 00 00 97 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 62 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 62 00 15 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [13:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 22 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetFieldsCounters done [13:43:40]requested_item shift.num is exist - process it [13:43:40]requested_item shift.opened is exist - process it [13:43:40]req_shift_opened [13:43:40]FM_GetShiftState [13:43:40]SAM_PROTO_GetShiftState [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 01 00 [13:43:40]Write to MH i2c: E2 08 00 16 06 80 13 01 00 00 00 00 00 99 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 0E 00 16 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 12 [13:43:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetShiftState done [13:43:40]FM_GetShiftState done [13:43:40]req_shift_opened done [13:43:40]requested_item shift.open_date is exist - process it [13:43:40]req_shift_open_date [13:43:40]req_shift_open_date done [13:43:40]produce_requested_data done [13:43:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191778,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:43:40]process_action_free close_receipt [13:43:40]json_value_free [13:43:40]json_value_free done [13:43:40]process_json_proto returns [13:43:40]Send response to host [13:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191778,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:43:40]free response buf [13:43:40]execute_script done [13:43:40]execute_script returns [13:43:40]free content buf [13:43:40]Sock 9.Close socket [13:43:40]Sock 9.Thread stoped [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:11]accept exits with 8 [13:44:11]New connection [13:44:11]New thread 3066961252 created [13:44:11]Thread 3066817892 joined [13:44:11]Waiting for new connection... [13:44:11] Sock 8.Parse request [13:44:11]Sock 8.Check first char [13:44:11]Sock 8.First char is OK [13:44:11]request: POST /json_proto HTTP/1.0 [13:44:11]Method: POST [13:44:11]URL: /json_proto [13:44:11]Method is POST - this is cgi request [13:44:11]url: /json_proto [13:44:11]query_string will be loaded in cgi processing [13:44:11]execute_cgi json_proto POST (null) [13:44:11]execute_cgi path=json_proto method=POST [13:44:11]POST find Content-Length [13:44:11]Host: 172.17.63.131:8080 [13:44:11]Content-Length: 676 [13:44:11]Content-Type: application/json [13:44:11] [13:44:11]POST finish read [13:44:11]Found Content-Length = 676 [13:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:11]execute_script... [13:44: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)31084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:11]POST & json_proto [13:44:11]process_json_proto [13:44:11]json parsed OK: [13:44:11]protocol is kg_v1.0 [13:44:11]action value=close_receipt [13:44:11]process_action close_receipt [13:44:11]cmd_close_receipt [13:44:11]MH_GetDate [13:44:11]Write to MH i2c: F0 00 00 17 06 0C [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 09 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: F0 09 00 17 06 00 3A F2 1C 67 22 05 6E 64 BD [13:44:11]GetLastDocTimeStamp 1729950231 [13:44:11]current date 1729950266 [13:44:11]FM_GetShiftState [13:44:11]SAM_PROTO_GetShiftState [13:44:11]wFMCommunicate request_size=4 [13:44:11]MH_SAM_APDU [13:44:11]CAPDU: 80 13 01 00 [13:44:11]Write to MH i2c: E2 08 00 18 06 80 13 01 00 00 00 00 00 9B [13:44:11]Write i2c OK [13:44:11]MH_I2C_Read... [13:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:11]Read from MH i2c: E2 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 0E 00 [13:44:11]MH_I2C_Read... [13:44:11]Read from MH i2c: E2 0E 00 18 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 14 [13:44:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:44:11]wFMCommunicate OK [13:44:11]SAM_PROTO_GetShiftState done [13:44:11]FM_GetShiftState done [13:44:11]opened in 1729902770 [13:44:11]opened+sec_in_day 1729989170 [13:44:11]quantity*price = 50041 [13:44:11]sum+1 = 50042 [13:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 142 26.10.2024 13:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191779 ФПД: 134399961261255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191779&fm=134399961261255&tin=02508201610067®Number=0000000000091776&sum=50000 [13:44:13]StoreToDocumentArchive [13:44:13]shift 541 fd 191779 [13:44:13]save to /storage/0541/doc_00191779 [13:44:13]save last doc name /storage/0541/doc_00191779 to /storage/kkm_last_doc_name [13:44:13]save OK [13:44:13]Clear old archive folders... [13:44:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:13]tlvbuf is 018DC5F0 [13:44:13]SAM_PROTO_ClearQueue [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 09 00 00 [13:44:13]Write to MH i2c: E2 08 00 25 06 80 09 00 00 00 00 00 00 9D [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_ClearQueue done [13:44:13]KKMCreateOFDPacket [13:44:13]OFDProtocolAddRootSTLVToBuf [13:44:13]FM_MakeSignedData [13:44:13]FM_MakeSignedData [13:44:13]SAM_PROTO_SignData [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 01 02 [13:44:13]Write to MH i2c: E2 08 00 26 06 80 0D 01 02 00 00 00 00 A5 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=255 [13:44:13]MH_SAM_APDU [13:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3A F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 ED 02 00 35 04 06 00 7A [13:44:13]Write to MH i2c: E2 02 01 27 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3A F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 ED 02 00 35 04 06 00 7A 00 00 21 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=10 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 02 02 05 3C 6D F2 E4 C7 [13:44:13]Write to MH i2c: E2 0D 00 28 06 80 0D 02 02 05 00 3C 6D F2 E4 C7 00 00 F8 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 03 00 28 06 00 90 00 A2 [13:44:13]RAPDU: 90 00 [13:44:13]wFMCommunicate OK [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 0D 03 02 [13:44:13]Write to MH i2c: E2 08 00 29 06 80 0D 03 02 00 00 00 00 AA [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 0B 00 29 06 00 27 E8 A5 86 49 5D 8B 07 90 00 1D [13:44:13]RAPDU: 27 E8 A5 86 49 5D 8B 07 90 00 [13:44:13]wFMCommunicate OK [13:44:13]SAM_PROTO_SignData done [13:44:13]FM_MakeSignedData done [13:44:13]CreateOFDProtocolMessage [13:44:13]wFMCommunicate request_size=4 [13:44:13]MH_SAM_APDU [13:44:13]CAPDU: 80 11 00 00 [13:44:13]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:13]Read from MH i2c: E2 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [13:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:13]wFMCommunicate OK [13:44:13]CreateOFDProtocolMessage done [13:44:13]OFDSenderStorePacket 191779 [13:44:13]StoreOFDPacket docnum=191779 [13:44:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 E5 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3A F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 ED 02 00 35 04 06 00 7A 3C 6D F2 E4 C7 27 E8 A5 86 49 5D 8B 07 [13:44:13]CheckFolder [13:44:13]dirname=/storage/ofd_packets [13:44:13]CheckFolder done [13:44:13]ProducePacketName [13:44:13]name=ofd_packets/00191779 [13:44:13]NVStorageSaveData ofd_packets/00191779 [13:44:13]File name is /storage/ofd_packets/00191779 [13:44:13]Write 301 bytes [13:44:13]NVStorageSaveData done [13:44:13]OFDSenderStorePacket done [13:44:13]KKMCreateOFDPacket done [13:44:13]NVStorageSaveData kkm_last_timestamp [13:44:13]File name is /storage/kkm_last_timestamp [13:44:13]Write 4 bytes [13:44:13]NVStorageSaveData done [13:44:13]ExternCall_PrintAddStr [13:44:13]wPrintStart [13:44:13]Write to MH i2c: 01 00 00 2B 06 31 [13:44:13]Write i2c OK [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 [13:44:13]MH_I2C_Read... [13:44:13]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [13:44:13]RasterBufferAndPrint [13:44:13]line Счет N : (1)31084 [13:44:13]line ИНН: 02508201610067 [13:44:13]line Контрольно-Кассовый Чек [13:44:13]line ПРОДАЖА [13:44:13]line ТРК (МРК, ГНК) : 21 [13:44:13]line Товар: 2710124130 [13:44:13]line Аи-92-К-5 [13:44:13]line 7.480 * 66.90 [13:44:13]line = 500.41 [13:44:13]line НДС 12% НСП 1% [13:44:13]line > о реализуемом товаре [13:44:13]line ОКРУГЛЕНИЕ: -0.41 [13:44:13]line ИТОГО: 500.00 [13:44:13]line Внесено: 500.00 [13:44:13]line СДАЧА: 0.00 [13:44:13]line НСП 1% : 4.43 [13:44:13]line НДС 12% : 53.14 [13:44:13]line Наличными: 500.00 [13:44:13]line Безнал.: 0.00 [13:44:13]line Место: АЗС № 170 "Партнер Нефть" [13:44:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:44:13]line СНО: Общий режим [13:44:13]line Чек 142 26.10.2024 13:44 [13:44:13]line Смена: 541 ФФД: 1.0 [13:44:13]line ЗНМ: 0300000110 [13:44:13]line РНМ: 0000000000091776 [13:44:13]line Версия ККМ: 001 [13:44:13]line ФМ: 0000000000871754 [13:44:13]line ФД: 191779 [13:44:13]line ФПД: 134399961261255 [13:44:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191779&fm=134399961261255&tin=02508201610067®Number=0000000000091776&sum=50000 [13:44:13]OFD Sender: Processing packet 191779 [packets to send 75, broken 74] [13:44:13]ProducePacketName [13:44:13]name=ofd_packets/00191779 [13:44:13]OFD Sender: To server: pG, [13:44:13]CommunicateWithHost lk.salyk.kg:30040 [13:44:13]ConnectInit lk.salyk.kg [13:44:13]written 0, free lines is 4095 [13:44:14]Connected sock=10 [13:44:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 E5 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 3A F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 ED 02 00 35 04 06 00 7A 3C 6D F2 E4 C7 27 E8 A5 86 49 5D 8B 07 [13:44:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 83 E8 47 00 47 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 23 ED 02 00 F4 03 04 00 05 97 1C 67 B6 04 01 00 00 7A 14 87 D2 30 5D 2B 7A [13:44:14]CommunicateWithHost err = 0 [13:44:14]CheckOFDResponse [13:44:14]1017 (14) - 77093643461234 [13:44:14]1041 (16) - 0000000000871754 [13:44:14]1040 (4) - 191779 [13:44:14]1012 (4) - 26.10.2024 07:15 [13:44:14]1206 (1) - 0 [13:44:14]OFD Sender: Remove packet 191779 [13:44:14]ProducePacketName [13:44:14]name=ofd_packets/00191779 [13:44:14]NVStorageDeleteData [13:44:14]Write to MH i2c: 01 00 00 56 06 5C [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 C0 0C 2F [13:44:14]RasterBufferAndPrint [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]line [13:44:14]written 0, free lines is 3273 [13:44:14]MH_Cut [13:44:14]Write to MH i2c: D1 01 00 5D 06 01 35 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 [13:44:14]MH_I2C_Read... [13:44:14]Read from MH i2c: D1 01 00 5D 06 00 34 [13:44:14]Write to MH i2c: 01 00 00 5E 06 64 [13:44:14]Write i2c OK [13:44:14]MH_I2C_Read... [13:44:14]OFD Sender: No OFD packet to send [13:44:15]*** Cut start [13:44:15]*** Partial cut [13:44:15]*** CUTSNS_PIN = 1 [13:44:15]*** CUTSNS_PIN = 0 [13:44:15]*** Brake cut motor [13:44:15]Read from MH i2c: 01 [13:44:15]MH_I2C_Read... [13:44:15]*** Stop cut motor [13:44:15]*** Cut end [13:44:15]Read from MH i2c: 01 07 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: 01 07 00 5E 06 00 00 00 00 00 FF 0F 79 [13:44:15]process_action close_receipt done [13:44:15]requested_data is exist [13:44:15]produce_requested_data [13:44:15]requested_item fm.sn is exist - process it [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 11 00 00 [13:44:15]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:15]Read from MH i2c: E2 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 [13:44:15]MH_I2C_Read... [13:44:15]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [13:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:44:15]wFMCommunicate OK [13:44:15]requested_item fd.num is exist - process it [13:44:15]SAM_PROTO_GetFieldsCounters [13:44:15]wFMCommunicate request_size=4 [13:44:15]MH_SAM_APDU [13:44:15]CAPDU: 80 13 00 00 [13:44:15]Write to MH i2c: E2 08 00 60 06 80 13 00 00 00 00 00 00 E2 [13:44:15]Write i2c OK [13:44:15]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 62 00 60 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [13:44:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 23 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetFieldsCounters done [13:44:16]requested_item shift.num is exist - process it [13:44:16]requested_item shift.opened is exist - process it [13:44:16]req_shift_opened [13:44:16]FM_GetShiftState [13:44:16]SAM_PROTO_GetShiftState [13:44:16]wFMCommunicate request_size=4 [13:44:16]MH_SAM_APDU [13:44:16]CAPDU: 80 13 01 00 [13:44:16]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [13:44:16]Write i2c OK [13:44:16]MH_I2C_Read... [13:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:16]Read from MH i2c: E2 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 [13:44:16]MH_I2C_Read... [13:44:16]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5D [13:44:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:44:16]wFMCommunicate OK [13:44:16]SAM_PROTO_GetShiftState done [13:44:16]FM_GetShiftState done [13:44:16]req_shift_opened done [13:44:16]requested_item shift.open_date is exist - process it [13:44:16]req_shift_open_date [13:44:16]req_shift_open_date done [13:44:16]produce_requested_data done [13:44:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191779,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:44:16]process_action_free close_receipt [13:44:16]json_value_free [13:44:16]json_value_free done [13:44:16]process_json_proto returns [13:44:16]Send response to host [13:44:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191779,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:44:16]free response buf [13:44:16]execute_script done [13:44:16]execute_script returns [13:44:16]free content buf [13:44:16]Sock 8.Close socket [13:44:16]Sock 8.Thread stoped [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]accept exits with 9 [13:45:39]New connection [13:45:39]New thread 3066817892 created [13:45:39]Thread 3066961252 joined [13:45:39]Waiting for new connection... [13:45:39] Sock 9.Parse request [13:45:39]Sock 9.Check first char [13:45:39]Sock 9.First char is OK [13:45:39]request: POST /json_proto HTTP/1.0 [13:45:39]Method: POST [13:45:39]URL: /json_proto [13:45:39]Method is POST - this is cgi request [13:45:39]url: /json_proto [13:45:39]query_string will be loaded in cgi processing [13:45:39]execute_cgi json_proto POST (null) [13:45:39]execute_cgi path=json_proto method=POST [13:45:39]POST find Content-Length [13:45:39]Host: 172.17.63.131:8080 [13:45:39]Content-Length: 673 [13:45:39]Content-Type: application/json [13:45:39] [13:45:39]POST finish read [13:45:39]Found Content-Length = 673 [13:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:39]execute_script... [13:45:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:39]POST & json_proto [13:45:39]process_json_proto [13:45:39]json parsed OK: [13:45:39]protocol is kg_v1.0 [13:45:39]action value=close_receipt [13:45:39]process_action close_receipt [13:45:39]cmd_close_receipt [13:45:39]MH_GetDate [13:45:39]Write to MH i2c: F0 00 00 62 06 57 [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 09 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: F0 09 00 62 06 00 92 F2 1C 67 22 05 6E 64 60 [13:45:39]GetLastDocTimeStamp 1729950266 [13:45:39]current date 1729950354 [13:45:39]FM_GetShiftState [13:45:39]SAM_PROTO_GetShiftState [13:45:39]wFMCommunicate request_size=4 [13:45:39]MH_SAM_APDU [13:45:39]CAPDU: 80 13 01 00 [13:45:39]Write to MH i2c: E2 08 00 63 06 80 13 01 00 00 00 00 00 E6 [13:45:39]Write i2c OK [13:45:39]MH_I2C_Read... [13:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:39]Read from MH i2c: E2 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: E2 0E 00 [13:45:39]MH_I2C_Read... [13:45:39]Read from MH i2c: E2 0E 00 63 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5F [13:45:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:45:39]wFMCommunicate OK [13:45:39]SAM_PROTO_GetShiftState done [13:45:39]FM_GetShiftState done [13:45:39]opened in 1729902770 [13:45:39]opened+sec_in_day 1729989170 [13:45:39]quantity*price = 50063 [13:45:39]sum+1 = 50064 [13:45:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 143 26.10.2024 13:45 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191780 ФПД: 157705777427957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191780&fm=157705777427957&tin=02508201610067®Number=0000000000091776&sum=50000 [13:45:40]StoreToDocumentArchive [13:45:40]shift 541 fd 191780 [13:45:40]save to /storage/0541/doc_00191780 [13:45:40]save last doc name /storage/0541/doc_00191780 to /storage/kkm_last_doc_name [13:45:40]save OK [13:45:40]Clear old archive folders... [13:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:40]tlvbuf is 01960CB0 [13:45:40]SAM_PROTO_ClearQueue [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 09 00 00 [13:45:40]Write to MH i2c: E2 08 00 70 06 80 09 00 00 00 00 00 00 E8 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [13:45:40]RAPDU: 90 00 [13:45:40]wFMCommunicate OK [13:45:40]SAM_PROTO_ClearQueue done [13:45:40]KKMCreateOFDPacket [13:45:40]OFDProtocolAddRootSTLVToBuf [13:45:40]FM_MakeSignedData [13:45:40]FM_MakeSignedData [13:45:40]SAM_PROTO_SignData [13:45:40]wFMCommunicate request_size=4 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 0D 01 02 [13:45:40]Write to MH i2c: E2 08 00 71 06 80 0D 01 02 00 00 00 00 F0 [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:40]Read from MH i2c: E2 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 [13:45:40]MH_I2C_Read... [13:45:40]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [13:45:40]RAPDU: 90 00 [13:45:40]wFMCommunicate OK [13:45:40]wFMCommunicate request_size=255 [13:45:40]MH_SAM_APDU [13:45:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 92 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 ED 02 00 35 04 06 00 8F 6E BC D7 [13:45:40]Write to MH i2c: E2 02 01 72 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 92 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 ED 02 00 35 04 06 00 8F 6E BC D7 00 00 5A [13:45:40]Write i2c OK [13:45:40]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:41]Read from MH i2c: E2 03 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [13:45:41]RAPDU: 90 00 [13:45:41]wFMCommunicate OK [13:45:41]wFMCommunicate request_size=7 [13:45:41]MH_SAM_APDU [13:45:41]CAPDU: 80 0D 02 02 02 B5 F5 [13:45:41]Write to MH i2c: E2 0A 00 73 06 80 0D 02 02 02 00 B5 F5 00 00 A1 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 03 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 03 00 73 06 00 90 00 ED [13:45:41]RAPDU: 90 00 [13:45:41]wFMCommunicate OK [13:45:41]wFMCommunicate request_size=4 [13:45:41]MH_SAM_APDU [13:45:41]CAPDU: 80 0D 03 02 [13:45:41]Write to MH i2c: E2 08 00 74 06 80 0D 03 02 00 00 00 00 F5 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 0B 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 0B 00 74 06 00 98 76 98 AD 6F 06 F1 CD 90 00 7C [13:45:41]RAPDU: 98 76 98 AD 6F 06 F1 CD 90 00 [13:45:41]wFMCommunicate OK [13:45:41]SAM_PROTO_SignData done [13:45:41]FM_MakeSignedData done [13:45:41]CreateOFDProtocolMessage [13:45:41]wFMCommunicate request_size=4 [13:45:41]MH_SAM_APDU [13:45:41]CAPDU: 80 11 00 00 [13:45:41]Write to MH i2c: E2 08 00 75 06 80 11 00 00 00 00 00 00 F5 [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:41]Read from MH i2c: E2 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 17 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: E2 17 00 75 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [13:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:41]wFMCommunicate OK [13:45:41]CreateOFDProtocolMessage done [13:45:41]OFDSenderStorePacket 191780 [13:45:41]StoreOFDPacket docnum=191780 [13:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1D A2 04 01 47 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 92 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 ED 02 00 35 04 06 00 8F 6E BC D7 B5 F5 98 76 98 AD 6F 06 F1 CD [13:45:41]CheckFolder [13:45:41]dirname=/storage/ofd_packets [13:45:41]CheckFolder done [13:45:41]ProducePacketName [13:45:41]name=ofd_packets/00191780 [13:45:41]NVStorageSaveData ofd_packets/00191780 [13:45:41]File name is /storage/ofd_packets/00191780 [13:45:41]Write 298 bytes [13:45:41]NVStorageSaveData done [13:45:41]OFDSenderStorePacket done [13:45:41]KKMCreateOFDPacket done [13:45:41]NVStorageSaveData kkm_last_timestamp [13:45:41]File name is /storage/kkm_last_timestamp [13:45:41]Write 4 bytes [13:45:41]NVStorageSaveData done [13:45:41]ExternCall_PrintAddStr [13:45:41]wPrintStart [13:45:41]Write to MH i2c: 01 00 00 76 06 7C [13:45:41]Write i2c OK [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 [13:45:41]MH_I2C_Read... [13:45:41]Read from MH i2c: 01 07 00 76 06 00 00 00 00 00 FF 0F 91 [13:45:41]RasterBufferAndPrint [13:45:41]line Счет N : (1)31085 [13:45:41]line ИНН: 02508201610067 [13:45:41]line Контрольно-Кассовый Чек [13:45:41]line ПРОДАЖА [13:45:41]line ТРК (МРК, ГНК) : 11 [13:45:41]line Товар: 2710194210 [13:45:41]line ДТ-К-5 [13:45:41]line 6.570 * 76.20 [13:45:41]line = 500.63 [13:45:41]line НДС 12% НСП 1% [13:45:41]line > о реализуемом товаре [13:45:41]line ОКРУГЛЕНИЕ: -0.63 [13:45:41]line ИТОГО: 500.00 [13:45:41]line Внесено: 500.00 [13:45:41]line СДАЧА: 0.00 [13:45:41]line НСП 1% : 4.43 [13:45:41]line НДС 12% : 53.16 [13:45:41]line Наличными: 500.00 [13:45:41]line Безнал.: 0.00 [13:45:41]line Место: АЗС № 170 "Партнер Нефть" [13:45:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:45:41]line СНО: Общий режим [13:45:41]line Чек 143 26.10.2024 13:45 [13:45:41]line Смена: 541 ФФД: 1.0 [13:45:41]line ЗНМ: 0300000110 [13:45:41]line РНМ: 0000000000091776 [13:45:41]line Версия ККМ: 001 [13:45:41]line ФМ: 0000000000871754 [13:45:41]line ФД: 191780 [13:45:41]line ФПД: 157705777427957 [13:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191780&fm=157705777427957&tin=02508201610067®Number=0000000000091776&sum=50000 [13:45:41]OFD Sender: Processing packet 191780 [packets to send 75, broken 74] [13:45:41]ProducePacketName [13:45:41]name=ofd_packets/00191780 [13:45:41]OFD Sender: To server: pG, [13:45:41]CommunicateWithHost lk.salyk.kg:30040 [13:45:41]ConnectInit lk.salyk.kg [13:45:41]written 0, free lines is 4095 [13:45:41]Connected sock=10 [13:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1D A2 04 01 47 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 92 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 ED 02 00 35 04 06 00 8F 6E BC D7 B5 F5 98 76 98 AD 6F 06 F1 CD [13:45:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 48 B6 47 00 8E E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 24 ED 02 00 F4 03 04 00 5D 97 1C 67 B6 04 01 00 00 2C 06 C3 32 E1 FE 3D 08 [13:45:42]CommunicateWithHost err = 0 [13:45:42]CheckOFDResponse [13:45:42]1017 (14) - 77093643461234 [13:45:42]1041 (16) - 0000000000871754 [13:45:42]1040 (4) - 191780 [13:45:42]1012 (4) - 26.10.2024 07:16 [13:45:42]1206 (1) - 0 [13:45:42]OFD Sender: Remove packet 191780 [13:45:42]ProducePacketName [13:45:42]name=ofd_packets/00191780 [13:45:42]NVStorageDeleteData [13:45:42]Write to MH i2c: 01 00 00 A1 06 A7 [13:45:42]Write i2c OK [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: 01 [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: 01 07 00 [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 C0 0C 7A [13:45:42]RasterBufferAndPrint [13:45:42]line [13:45:42]line [13:45:42]line [13:45:42]line [13:45:42]line [13:45:42]written 0, free lines is 3270 [13:45:42]MH_Cut [13:45:42]Write to MH i2c: D1 01 00 A8 06 01 80 [13:45:42]Write i2c OK [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: D1 [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: D1 01 00 [13:45:42]MH_I2C_Read... [13:45:42]Read from MH i2c: D1 01 00 A8 06 00 7F [13:45:42]Write to MH i2c: 01 00 00 A9 06 AF [13:45:42]Write i2c OK [13:45:42]MH_I2C_Read... [13:45:42]OFD Sender: No OFD packet to send [13:45:42]*** Cut start [13:45:42]*** Partial cut [13:45:42]*** CUTSNS_PIN = 1 [13:45:43]*** CUTSNS_PIN = 0 [13:45:43]*** Brake cut motor [13:45:43]Read from MH i2c: 01 [13:45:43]MH_I2C_Read... [13:45:43]*** Stop cut motor [13:45:43]*** Cut end [13:45:43]Read from MH i2c: 01 07 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: 01 07 00 A9 06 00 00 00 00 00 FF 0F C4 [13:45:43]process_action close_receipt done [13:45:43]requested_data is exist [13:45:43]produce_requested_data [13:45:43]requested_item fm.sn is exist - process it [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 11 00 00 [13:45:43]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 17 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7D [13:45:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:45:43]wFMCommunicate OK [13:45:43]requested_item fd.num is exist - process it [13:45:43]SAM_PROTO_GetFieldsCounters [13:45:43]wFMCommunicate request_size=4 [13:45:43]MH_SAM_APDU [13:45:43]CAPDU: 80 13 00 00 [13:45:43]Write to MH i2c: E2 08 00 AB 06 80 13 00 00 00 00 00 00 2D [13:45:43]Write i2c OK [13:45:43]MH_I2C_Read... [13:45:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:43]Read from MH i2c: E2 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 62 00 [13:45:43]MH_I2C_Read... [13:45:43]Read from MH i2c: E2 62 00 AB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:45:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 24 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:43]wFMCommunicate OK [13:45:43]SAM_PROTO_GetFieldsCounters done [13:45:43]requested_item shift.num is exist - process it [13:45:43]requested_item shift.opened is exist - process it [13:45:43]req_shift_opened [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 AC 06 80 13 01 00 00 00 00 00 2F [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 AC 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A8 [13:45:43]RAPDU: 09 00 01 B2 38 1C 67 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]req_shift_opened done [13:45:43]requested_item shift.open_date is exist - process it [13:45:43]req_shift_open_date [13:45:43]req_shift_open_date done [13:45:43]produce_requested_data done [13:45:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191780,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:45:43]process_action_free close_receipt [13:45:43]json_value_free [13:45:43]json_value_free done [13:45:43]process_json_proto returns [13:45:43]Send response to host [13:45:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191780,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:45:43]free response buf [13:45:43]execute_script done [13:45:43]execute_script returns [13:45:43]free content buf [13:45:43]Sock 9.Close socket [13:45:43]Sock 9.Thread stoped [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:45:59]accept exits with 8 [13:45:59]New connection [13:45:59]New thread 3066961252 created [13:45:59]Thread 3066817892 joined [13:45:59]Waiting for new connection... [13:45:59] Sock 8.Parse request [13:45:59]Sock 8.Check first char [13:45:59]Sock 8.First char is OK [13:45:59]request: POST /json_proto HTTP/1.0 [13:45:59]Method: POST [13:45:59]URL: /json_proto [13:45:59]Method is POST - this is cgi request [13:45:59]url: /json_proto [13:45:59]query_string will be loaded in cgi processing [13:45:59]execute_cgi json_proto POST (null) [13:45:59]execute_cgi path=json_proto method=POST [13:45:59]POST find Content-Length [13:45:59]Host: 172.17.63.131:8080 [13:45:59]Content-Length: 681 [13:45:59]Content-Type: application/json [13:45:59] [13:45:59]POST finish read [13:45:59]Found Content-Length = 681 [13:45:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:59]execute_script... [13:45: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)31086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.450, "sum" : 1100.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:59]POST & json_proto [13:45:59]process_json_proto [13:45:59]json parsed OK: [13:45:59]protocol is kg_v1.0 [13:45:59]action value=close_receipt [13:45:59]process_action close_receipt [13:45:59]cmd_close_receipt [13:45:59]MH_GetDate [13:45:59]Write to MH i2c: F0 00 00 AD 06 A2 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: F0 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: F0 09 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: F0 09 00 AD 06 00 A6 F2 1C 67 22 05 6E 64 BF [13:45:59]GetLastDocTimeStamp 1729950354 [13:45:59]current date 1729950374 [13:45:59]FM_GetShiftState [13:45:59]SAM_PROTO_GetShiftState [13:45:59]wFMCommunicate request_size=4 [13:45:59]MH_SAM_APDU [13:45:59]CAPDU: 80 13 01 00 [13:45:59]Write to MH i2c: E2 08 00 AE 06 80 13 01 00 00 00 00 00 31 [13:45:59]Write i2c OK [13:45:59]MH_I2C_Read... [13:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:59]Read from MH i2c: E2 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 0E 00 [13:45:59]MH_I2C_Read... [13:45:59]Read from MH i2c: E2 0E 00 AE 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AA [13:45:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:45:59]wFMCommunicate OK [13:45:59]SAM_PROTO_GetShiftState done [13:45:59]FM_GetShiftState done [13:45:59]opened in 1729902770 [13:45:59]opened+sec_in_day 1729989170 [13:45:59]quantity*price = 110050 [13:45:59]sum+1 = 110052 [13:45:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.87 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 144 26.10.2024 13:46 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191781 ФПД: 57104641914568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191781&fm=57104641914568&tin=02508201610067®Number=0000000000091776&sum=110000 [13:46:00]StoreToDocumentArchive [13:46:00]shift 541 fd 191781 [13:46:00]save to /storage/0541/doc_00191781 [13:46:00]save last doc name /storage/0541/doc_00191781 to /storage/kkm_last_doc_name [13:46:00]save OK [13:46:00]Clear old archive folders... [13:46:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:46:00]tlvbuf is 0178A360 [13:46:00]SAM_PROTO_ClearQueue [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 09 00 00 [13:46:00]Write to MH i2c: E2 08 00 BB 06 80 09 00 00 00 00 00 00 33 [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 03 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [13:46:00]RAPDU: 90 00 [13:46:00]wFMCommunicate OK [13:46:00]SAM_PROTO_ClearQueue done [13:46:00]KKMCreateOFDPacket [13:46:00]OFDProtocolAddRootSTLVToBuf [13:46:00]FM_MakeSignedData [13:46:00]FM_MakeSignedData [13:46:00]SAM_PROTO_SignData [13:46:00]wFMCommunicate request_size=4 [13:46:00]MH_SAM_APDU [13:46:00]CAPDU: 80 0D 01 02 [13:46:00]Write to MH i2c: E2 08 00 BC 06 80 0D 01 02 00 00 00 00 3B [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:46:00]Read from MH i2c: E2 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 03 00 [13:46:00]MH_I2C_Read... [13:46:00]Read from MH i2c: E2 03 00 BC 06 00 90 00 36 [13:46:00]RAPDU: 90 00 [13:46:00]wFMCommunicate OK [13:46:00]wFMCommunicate request_size=255 [13:46:00]MH_SAM_APDU [13:46: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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A6 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 ED 02 00 35 04 06 00 33 [13:46:00]Write to MH i2c: E2 02 01 BD 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A6 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 ED 02 00 35 04 06 00 33 00 00 0B [13:46:00]Write i2c OK [13:46:00]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 BD 06 00 90 00 37 [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]wFMCommunicate request_size=10 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 02 02 05 EF B5 E5 76 C8 [13:46:01]Write to MH i2c: E2 0D 00 BE 06 80 0D 02 02 05 00 EF B5 E5 76 C8 00 00 0F [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 03 00 BE 06 00 90 00 38 [13:46:01]RAPDU: 90 00 [13:46:01]wFMCommunicate OK [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 0D 03 02 [13:46:01]Write to MH i2c: E2 08 00 BF 06 80 0D 03 02 00 00 00 00 40 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0B 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 0B 00 BF 06 00 A5 BE 0B 68 84 67 32 ED 90 00 21 [13:46:01]RAPDU: A5 BE 0B 68 84 67 32 ED 90 00 [13:46:01]wFMCommunicate OK [13:46:01]SAM_PROTO_SignData done [13:46:01]FM_MakeSignedData done [13:46:01]CreateOFDProtocolMessage [13:46:01]wFMCommunicate request_size=4 [13:46:01]MH_SAM_APDU [13:46:01]CAPDU: 80 11 00 00 [13:46:01]Write to MH i2c: E2 08 00 C0 06 80 11 00 00 00 00 00 00 40 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:01]Read from MH i2c: E2 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 17 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: E2 17 00 C0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [13:46:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:46:01]wFMCommunicate OK [13:46:01]CreateOFDProtocolMessage done [13:46:01]OFDSenderStorePacket 191781 [13:46:01]StoreOFDPacket docnum=191781 [13:46:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 08 07 01 9B 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A6 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 ED 02 00 35 04 06 00 33 EF B5 E5 76 C8 A5 BE 0B 68 84 67 32 ED [13:46:01]CheckFolder [13:46:01]dirname=/storage/ofd_packets [13:46:01]CheckFolder done [13:46:01]ProducePacketName [13:46:01]name=ofd_packets/00191781 [13:46:01]NVStorageSaveData ofd_packets/00191781 [13:46:01]File name is /storage/ofd_packets/00191781 [13:46:01]Write 301 bytes [13:46:01]NVStorageSaveData done [13:46:01]OFDSenderStorePacket done [13:46:01]KKMCreateOFDPacket done [13:46:01]NVStorageSaveData kkm_last_timestamp [13:46:01]File name is /storage/kkm_last_timestamp [13:46:01]Write 4 bytes [13:46:01]NVStorageSaveData done [13:46:01]ExternCall_PrintAddStr [13:46:01]wPrintStart [13:46:01]Write to MH i2c: 01 00 00 C1 06 C7 [13:46:01]Write i2c OK [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: 01 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: 01 07 00 [13:46:01]MH_I2C_Read... [13:46:01]Read from MH i2c: 01 07 00 C1 06 00 00 00 00 00 FF 0F DC [13:46:01]RasterBufferAndPrint [13:46:01]line Счет N : (1)31086 [13:46:01]line ИНН: 02508201610067 [13:46:01]line Контрольно-Кассовый Чек [13:46:01]line ПРОДАЖА [13:46:01]line ТРК (МРК, ГНК) : 21 [13:46:01]line Товар: 2710124130 [13:46:01]line Аи-92-К-5 [13:46:01]line 16.450 * 66.90 [13:46:01]line = 1100.51 [13:46:01]line НДС 12% НСП 1% [13:46:01]line > о реализуемом товаре [13:46:01]line ОКРУГЛЕНИЕ: -0.51 [13:46:01]line ИТОГО: 1100.00 [13:46:01]line Внесено: 1100.00 [13:46:01]line СДАЧА: 0.00 [13:46:01]line НСП 1% : 9.74 [13:46:01]line НДС 12% : 116.87 [13:46:01]line Наличными: 1100.00 [13:46:01]line Безнал.: 0.00 [13:46:01]line Место: АЗС № 170 "Партнер Нефть" [13:46:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:46:01]line СНО: Общий режим [13:46:01]line Чек 144 26.10.2024 13:46 [13:46:01]line Смена: 541 ФФД: 1.0 [13:46:01]line ЗНМ: 0300000110 [13:46:01]line РНМ: 0000000000091776 [13:46:01]line Версия ККМ: 001 [13:46:01]line ФМ: 0000000000871754 [13:46:01]line ФД: 191781 [13:46:01]line ФПД: 57104641914568 [13:46:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134614&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191781&fm=57104641914568&tin=02508201610067®Number=0000000000091776&sum=110000 [13:46:01]OFD Sender: Processing packet 191781 [packets to send 75, broken 74] [13:46:01]ProducePacketName [13:46:01]name=ofd_packets/00191781 [13:46:01]OFD Sender: To server: pG, [13:46:01]CommunicateWithHost lk.salyk.kg:30040 [13:46:01]ConnectInit lk.salyk.kg [13:46:01]written 0, free lines is 4095 [13:46:01]Connected sock=10 [13:46:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 08 07 01 9B 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 42 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A6 F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 ED 02 00 35 04 06 00 33 EF B5 E5 76 C8 A5 BE 0B 68 84 67 32 ED [13:46:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FC FD 47 00 00 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 25 ED 02 00 F4 03 04 00 71 97 1C 67 B6 04 01 00 00 E3 E8 F3 DF 80 FF 11 9E [13:46:01]CommunicateWithHost err = 0 [13:46:01]CheckOFDResponse [13:46:01]1017 (14) - 77093643461234 [13:46:01]1041 (16) - 0000000000871754 [13:46:01]1040 (4) - 191781 [13:46:01]1012 (4) - 26.10.2024 07:17 [13:46:01]1206 (1) - 0 [13:46:01]OFD Sender: Remove packet 191781 [13:46:01]ProducePacketName [13:46:01]name=ofd_packets/00191781 [13:46:01]NVStorageDeleteData [13:46:02]Write to MH i2c: 01 00 00 EC 06 F2 [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 B5 0C BA [13:46:02]RasterBufferAndPrint [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]line [13:46:02]written 0, free lines is 3258 [13:46:02]MH_Cut [13:46:02]Write to MH i2c: D1 01 00 F3 06 01 CB [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 01 00 [13:46:02]MH_I2C_Read... [13:46:02]Read from MH i2c: D1 01 00 F3 06 00 CA [13:46:02]Write to MH i2c: 01 00 00 F4 06 FA [13:46:02]Write i2c OK [13:46:02]MH_I2C_Read... [13:46:02]OFD Sender: No OFD packet to send [13:46:02]*** Cut start [13:46:02]*** Partial cut [13:46:02]*** CUTSNS_PIN = 1 [13:46:02]*** CUTSNS_PIN = 0 [13:46:03]*** Brake cut motor [13:46:03]Read from MH i2c: 01 [13:46:03]MH_I2C_Read... [13:46:03]*** Stop cut motor [13:46:03]*** Cut end [13:46:03]Read from MH i2c: 01 07 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: 01 07 00 F4 06 00 00 00 00 00 FF 0F 0F [13:46:03]process_action close_receipt done [13:46:03]requested_data is exist [13:46:03]produce_requested_data [13:46:03]requested_item fm.sn is exist - process it [13:46:03]wFMCommunicate request_size=4 [13:46:03]MH_SAM_APDU [13:46:03]CAPDU: 80 11 00 00 [13:46:03]Write to MH i2c: E2 08 00 F5 06 80 11 00 00 00 00 00 00 75 [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:46:03]Read from MH i2c: E2 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 17 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 17 00 F5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C8 [13:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:46:03]wFMCommunicate OK [13:46:03]requested_item fd.num is exist - process it [13:46:03]SAM_PROTO_GetFieldsCounters [13:46:03]wFMCommunicate request_size=4 [13:46:03]MH_SAM_APDU [13:46:03]CAPDU: 80 13 00 00 [13:46:03]Write to MH i2c: E2 08 00 F6 06 80 13 00 00 00 00 00 00 78 [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:46:03]Read from MH i2c: E2 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 62 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 62 00 F6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [13:46:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 25 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:46:03]wFMCommunicate OK [13:46:03]SAM_PROTO_GetFieldsCounters done [13:46:03]requested_item shift.num is exist - process it [13:46:03]requested_item shift.opened is exist - process it [13:46:03]req_shift_opened [13:46:03]FM_GetShiftState [13:46:03]SAM_PROTO_GetShiftState [13:46:03]wFMCommunicate request_size=4 [13:46:03]MH_SAM_APDU [13:46:03]CAPDU: 80 13 01 00 [13:46:03]Write to MH i2c: E2 08 00 F7 06 80 13 01 00 00 00 00 00 7A [13:46:03]Write i2c OK [13:46:03]MH_I2C_Read... [13:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:46:03]Read from MH i2c: E2 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 0E 00 [13:46:03]MH_I2C_Read... [13:46:03]Read from MH i2c: E2 0E 00 F7 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F3 [13:46:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:46:03]wFMCommunicate OK [13:46:03]SAM_PROTO_GetShiftState done [13:46:03]FM_GetShiftState done [13:46:03]req_shift_opened done [13:46:03]requested_item shift.open_date is exist - process it [13:46:03]req_shift_open_date [13:46:03]req_shift_open_date done [13:46:03]produce_requested_data done [13:46:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191781,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:46:03]process_action_free close_receipt [13:46:03]json_value_free [13:46:03]json_value_free done [13:46:03]process_json_proto returns [13:46:03]Send response to host [13:46:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191781,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:46:03]free response buf [13:46:03]execute_script done [13:46:03]execute_script returns [13:46:03]free content buf [13:46:03]Sock 8.Close socket [13:46:03]Sock 8.Thread stoped [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:25]accept exits with 9 [13:47:25]New connection [13:47:25]New thread 3066817892 created [13:47:25]Thread 3066961252 joined [13:47:25]Waiting for new connection... [13:47:25] Sock 9.Parse request [13:47:25]Sock 9.Check first char [13:47:25]Sock 9.First char is OK [13:47:25]request: POST /json_proto HTTP/1.0 [13:47:25]Method: POST [13:47:25]URL: /json_proto [13:47:25]Method is POST - this is cgi request [13:47:25]url: /json_proto [13:47:25]query_string will be loaded in cgi processing [13:47:25]execute_cgi json_proto POST (null) [13:47:25]execute_cgi path=json_proto method=POST [13:47:25]POST find Content-Length [13:47:25]Host: 172.17.63.131:8080 [13:47:25]Content-Length: 681 [13:47:25]Content-Type: application/json [13:47:25] [13:47:25]POST finish read [13:47:25]Found Content-Length = 681 [13:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:25]execute_script... [13:47: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)31087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:25]POST & json_proto [13:47:25]process_json_proto [13:47:25]json parsed OK: [13:47:25]protocol is kg_v1.0 [13:47:25]action value=close_receipt [13:47:25]process_action close_receipt [13:47:25]cmd_close_receipt [13:47:25]MH_GetDate [13:47:25]Write to MH i2c: F0 00 00 F8 06 ED [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 09 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: F0 09 00 F8 06 00 FC F2 1C 67 22 05 6E 64 60 [13:47:25]GetLastDocTimeStamp 1729950374 [13:47:25]current date 1729950460 [13:47:25]FM_GetShiftState [13:47:25]SAM_PROTO_GetShiftState [13:47:25]wFMCommunicate request_size=4 [13:47:25]MH_SAM_APDU [13:47:25]CAPDU: 80 13 01 00 [13:47:25]Write to MH i2c: E2 08 00 F9 06 80 13 01 00 00 00 00 00 7C [13:47:25]Write i2c OK [13:47:25]MH_I2C_Read... [13:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:25]Read from MH i2c: E2 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 [13:47:25]MH_I2C_Read... [13:47:25]Read from MH i2c: E2 0E 00 F9 06 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F5 [13:47:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:47:25]wFMCommunicate OK [13:47:25]SAM_PROTO_GetShiftState done [13:47:25]FM_GetShiftState done [13:47:25]opened in 1729902770 [13:47:25]opened+sec_in_day 1729989170 [13:47:25]quantity*price = 100015 [13:47:25]sum+1 = 100017 [13:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 145 26.10.2024 13:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191782 ФПД: 258857651395182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134740&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191782&fm=258857651395182&tin=02508201610067®Number=0000000000091776&sum=100000 [13:47:27]StoreToDocumentArchive [13:47:27]shift 541 fd 191782 [13:47:27]save to /storage/0541/doc_00191782 [13:47:27]save last doc name /storage/0541/doc_00191782 to /storage/kkm_last_doc_name [13:47:27]save OK [13:47:27]Clear old archive folders... [13:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:27]tlvbuf is 01749000 [13:47:27]SAM_PROTO_ClearQueue [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 09 00 00 [13:47:27]Write to MH i2c: E2 08 00 06 07 80 09 00 00 00 00 00 00 7F [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]SAM_PROTO_ClearQueue done [13:47:27]KKMCreateOFDPacket [13:47:27]OFDProtocolAddRootSTLVToBuf [13:47:27]FM_MakeSignedData [13:47:27]FM_MakeSignedData [13:47:27]SAM_PROTO_SignData [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 01 02 [13:47:27]Write to MH i2c: E2 08 00 07 07 80 0D 01 02 00 00 00 00 87 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 07 07 00 90 00 82 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=255 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 FC F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 ED 02 00 35 04 06 00 EB [13:47:27]Write to MH i2c: E2 02 01 08 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 FC F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 ED 02 00 35 04 06 00 EB 00 00 36 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 08 07 00 90 00 83 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=10 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 02 02 05 6D FE 5B DA 6E [13:47:27]Write to MH i2c: E2 0D 00 09 07 80 0D 02 02 05 00 6D FE 5B DA 6E 00 00 A2 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 09 07 00 90 00 84 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 03 02 [13:47:27]Write to MH i2c: E2 08 00 0A 07 80 0D 03 02 00 00 00 00 8C [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 0B 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 0B 00 0A 07 00 CC 59 39 45 4A 0C BA 58 90 00 98 [13:47:27]RAPDU: CC 59 39 45 4A 0C BA 58 90 00 [13:47:27]wFMCommunicate OK [13:47:27]SAM_PROTO_SignData done [13:47:27]FM_MakeSignedData done [13:47:27]CreateOFDProtocolMessage [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 11 00 00 [13:47:27]Write to MH i2c: E2 08 00 0B 07 80 11 00 00 00 00 00 00 8C [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 17 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 17 00 0B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [13:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:47:27]wFMCommunicate OK [13:47:27]CreateOFDProtocolMessage done [13:47:27]OFDSenderStorePacket 191782 [13:47:27]StoreOFDPacket docnum=191782 [13:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA D7 07 01 CD D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 FC F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 ED 02 00 35 04 06 00 EB 6D FE 5B DA 6E CC 59 39 45 4A 0C BA 58 [13:47:27]CheckFolder [13:47:27]dirname=/storage/ofd_packets [13:47:27]CheckFolder done [13:47:27]ProducePacketName [13:47:27]name=ofd_packets/00191782 [13:47:27]NVStorageSaveData ofd_packets/00191782 [13:47:27]File name is /storage/ofd_packets/00191782 [13:47:27]Write 301 bytes [13:47:27]NVStorageSaveData done [13:47:27]OFDSenderStorePacket done [13:47:27]KKMCreateOFDPacket done [13:47:27]NVStorageSaveData kkm_last_timestamp [13:47:27]File name is /storage/kkm_last_timestamp [13:47:27]Write 4 bytes [13:47:27]NVStorageSaveData done [13:47:27]ExternCall_PrintAddStr [13:47:27]wPrintStart [13:47:27]Write to MH i2c: 01 00 00 0C 07 13 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 07 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: 01 07 00 0C 07 00 00 00 00 00 FF 0F 28 [13:47:27]RasterBufferAndPrint [13:47:27]line Счет N : (1)31087 [13:47:27]line ИНН: 02508201610067 [13:47:27]line Контрольно-Кассовый Чек [13:47:27]line ПРОДАЖА [13:47:27]line ТРК (МРК, ГНК) : 21 [13:47:27]line Товар: 2710124130 [13:47:27]line Аи-92-К-5 [13:47:27]line 14.950 * 66.90 [13:47:27]line = 1000.16 [13:47:27]line НДС 12% НСП 1% [13:47:27]line > о реализуемом товаре [13:47:27]line ОКРУГЛЕНИЕ: -0.16 [13:47:27]line ИТОГО: 1000.00 [13:47:27]line Внесено: 1000.00 [13:47:27]line СДАЧА: 0.00 [13:47:27]line НСП 1% : 8.85 [13:47:27]line НДС 12% : 106.21 [13:47:27]line Наличными: 1000.00 [13:47:27]line Безнал.: 0.00 [13:47:27]line Место: АЗС № 170 "Партнер Нефть" [13:47:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:47:27]line СНО: Общий режим [13:47:27]line Чек 145 26.10.2024 13:47 [13:47:27]line Смена: 541 ФФД: 1.0 [13:47:27]line ЗНМ: 0300000110 [13:47:27]line РНМ: 0000000000091776 [13:47:27]line Версия ККМ: 001 [13:47:27]line ФМ: 0000000000871754 [13:47:27]line ФД: 191782 [13:47:27]line ФПД: 258857651395182 [13:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134740&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191782&fm=258857651395182&tin=02508201610067®Number=0000000000091776&sum=100000 [13:47:27]OFD Sender: Processing packet 191782 [packets to send 75, broken 74] [13:47:27]ProducePacketName [13:47:27]name=ofd_packets/00191782 [13:47:27]OFD Sender: To server: pG, [13:47:27]CommunicateWithHost lk.salyk.kg:30040 [13:47:27]ConnectInit lk.salyk.kg [13:47:27]written 0, free lines is 4095 [13:47:28]Connected sock=10 [13:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA D7 07 01 CD D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 FC F2 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 ED 02 00 35 04 06 00 EB 6D FE 5B DA 6E CC 59 39 45 4A 0C BA 58 [13:47:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E7 4F 47 00 85 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 26 ED 02 00 F4 03 04 00 C7 97 1C 67 B6 04 01 00 00 91 72 2B 6B C3 72 3C 33 [13:47:28]CommunicateWithHost err = 0 [13:47:28]CheckOFDResponse [13:47:28]1017 (14) - 77093643461234 [13:47:28]1041 (16) - 0000000000871754 [13:47:28]1040 (4) - 191782 [13:47:28]1012 (4) - 26.10.2024 07:18 [13:47:28]1206 (1) - 0 [13:47:28]OFD Sender: Remove packet 191782 [13:47:28]ProducePacketName [13:47:28]name=ofd_packets/00191782 [13:47:28]NVStorageDeleteData [13:47:28]Write to MH i2c: 01 00 00 37 07 3E [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 C2 0C 13 [13:47:28]RasterBufferAndPrint [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]line [13:47:28]written 0, free lines is 3273 [13:47:28]MH_Cut [13:47:28]Write to MH i2c: D1 01 00 3E 07 01 17 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 01 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: D1 01 00 3E 07 00 16 [13:47:28]Write to MH i2c: 01 00 00 3F 07 46 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]OFD Sender: No OFD packet to send [13:47:29]*** Cut start [13:47:29]*** Partial cut [13:47:29]*** CUTSNS_PIN = 1 [13:47:29]*** CUTSNS_PIN = 0 [13:47:29]*** Brake cut motor [13:47:29]Read from MH i2c: 01 [13:47:29]MH_I2C_Read... [13:47:29]*** Stop cut motor [13:47:29]*** Cut end [13:47:29]Read from MH i2c: 01 07 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: 01 07 00 3F 07 00 00 00 00 00 FF 0F 5B [13:47:29]process_action close_receipt done [13:47:29]requested_data is exist [13:47:29]produce_requested_data [13:47:29]requested_item fm.sn is exist - process it [13:47:29]wFMCommunicate request_size=4 [13:47:29]MH_SAM_APDU [13:47:29]CAPDU: 80 11 00 00 [13:47:29]Write to MH i2c: E2 08 00 40 07 80 11 00 00 00 00 00 00 C1 [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:29]Read from MH i2c: E2 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 17 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: E2 17 00 40 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 14 [13:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:47:29]wFMCommunicate OK [13:47:29]requested_item fd.num is exist - process it [13:47:29]SAM_PROTO_GetFieldsCounters [13:47:29]wFMCommunicate request_size=4 [13:47:29]MH_SAM_APDU [13:47:29]CAPDU: 80 13 00 00 [13:47:29]Write to MH i2c: E2 08 00 41 07 80 13 00 00 00 00 00 00 C4 [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:30]Read from MH i2c: E2 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 62 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 62 00 41 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [13:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 26 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:30]wFMCommunicate OK [13:47:30]SAM_PROTO_GetFieldsCounters done [13:47:30]requested_item shift.num is exist - process it [13:47:30]requested_item shift.opened is exist - process it [13:47:30]req_shift_opened [13:47:30]FM_GetShiftState [13:47:30]SAM_PROTO_GetShiftState [13:47:30]wFMCommunicate request_size=4 [13:47:30]MH_SAM_APDU [13:47:30]CAPDU: 80 13 01 00 [13:47:30]Write to MH i2c: E2 08 00 42 07 80 13 01 00 00 00 00 00 C6 [13:47:30]Write i2c OK [13:47:30]MH_I2C_Read... [13:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:30]Read from MH i2c: E2 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 0E 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 0E 00 42 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3F [13:47:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:47:30]wFMCommunicate OK [13:47:30]SAM_PROTO_GetShiftState done [13:47:30]FM_GetShiftState done [13:47:30]req_shift_opened done [13:47:30]requested_item shift.open_date is exist - process it [13:47:30]req_shift_open_date [13:47:30]req_shift_open_date done [13:47:30]produce_requested_data done [13:47:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191782,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:47:30]process_action_free close_receipt [13:47:30]json_value_free [13:47:30]json_value_free done [13:47:30]process_json_proto returns [13:47:30]Send response to host [13:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191782,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:47:30]free response buf [13:47:30]execute_script done [13:47:30]execute_script returns [13:47:30]free content buf [13:47:30]Sock 9.Close socket [13:47:30]Sock 9.Thread stoped [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:02]accept exits with 8 [13:49:02]New connection [13:49:02]New thread 3066961252 created [13:49:02]Thread 3066817892 joined [13:49:02]Waiting for new connection... [13:49:02] Sock 8.Parse request [13:49:02]Sock 8.Check first char [13:49:02]Sock 8.First char is OK [13:49:02]request: POST /json_proto HTTP/1.0 [13:49:02]Method: POST [13:49:02]URL: /json_proto [13:49:02]Method is POST - this is cgi request [13:49:02]url: /json_proto [13:49:02]query_string will be loaded in cgi processing [13:49:02]execute_cgi json_proto POST (null) [13:49:02]execute_cgi path=json_proto method=POST [13:49:02]POST find Content-Length [13:49:02]Host: 172.17.63.131:8080 [13:49:02]Content-Length: 681 [13:49:02]Content-Type: application/json [13:49:02] [13:49:02]POST finish read [13:49:02]Found Content-Length = 681 [13:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:02]execute_script... [13:49:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:02]POST & json_proto [13:49:02]process_json_proto [13:49:02]json parsed OK: [13:49:02]protocol is kg_v1.0 [13:49:02]action value=close_receipt [13:49:02]process_action close_receipt [13:49:02]cmd_close_receipt [13:49:02]MH_GetDate [13:49:02]Write to MH i2c: F0 00 00 43 07 39 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: F0 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: F0 09 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: F0 09 00 43 07 00 5D F3 1C 67 22 05 6E 64 0E [13:49:02]GetLastDocTimeStamp 1729950460 [13:49:02]current date 1729950557 [13:49:02]FM_GetShiftState [13:49:02]SAM_PROTO_GetShiftState [13:49:02]wFMCommunicate request_size=4 [13:49:02]MH_SAM_APDU [13:49:02]CAPDU: 80 13 01 00 [13:49:02]Write to MH i2c: E2 08 00 44 07 80 13 01 00 00 00 00 00 C8 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:02]Read from MH i2c: E2 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 0E 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 0E 00 44 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 41 [13:49:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:49:02]wFMCommunicate OK [13:49:02]SAM_PROTO_GetShiftState done [13:49:02]FM_GetShiftState done [13:49:02]opened in 1729902770 [13:49:02]opened+sec_in_day 1729989170 [13:49:02]quantity*price = 100015 [13:49:02]sum+1 = 100017 [13:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 146 26.10.2024 13:49 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191783 ФПД: 29442165592061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191783&fm=29442165592061&tin=02508201610067®Number=0000000000091776&sum=100000 [13:49:03]StoreToDocumentArchive [13:49:03]shift 541 fd 191783 [13:49:03]save to /storage/0541/doc_00191783 [13:49:03]save last doc name /storage/0541/doc_00191783 to /storage/kkm_last_doc_name [13:49:03]save OK [13:49:03]Clear old archive folders... [13:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:03]tlvbuf is 0160BA40 [13:49:03]SAM_PROTO_ClearQueue [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 09 00 00 [13:49:03]Write to MH i2c: E2 08 00 51 07 80 09 00 00 00 00 00 00 CA [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [13:49:03]RAPDU: 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_ClearQueue done [13:49:03]KKMCreateOFDPacket [13:49:03]OFDProtocolAddRootSTLVToBuf [13:49:03]FM_MakeSignedData [13:49:03]FM_MakeSignedData [13:49:03]SAM_PROTO_SignData [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 0D 01 02 [13:49:03]Write to MH i2c: E2 08 00 52 07 80 0D 01 02 00 00 00 00 D2 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 52 07 00 90 00 CD [13:49:03]RAPDU: 90 00 [13:49:03]wFMCommunicate OK [13:49:03]wFMCommunicate request_size=255 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D F3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 ED 02 00 35 04 06 00 1A [13:49:03]Write to MH i2c: E2 02 01 53 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D F3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 ED 02 00 35 04 06 00 1A 00 00 14 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 53 07 00 90 00 CE [13:49:03]RAPDU: 90 00 [13:49:03]wFMCommunicate OK [13:49:03]wFMCommunicate request_size=10 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 0D 02 02 05 C7 09 D2 4F FD [13:49:03]Write to MH i2c: E2 0D 00 54 07 80 0D 02 02 05 00 C7 09 D2 4F FD 00 00 CD [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 03 00 54 07 00 90 00 CF [13:49:03]RAPDU: 90 00 [13:49:03]wFMCommunicate OK [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 0D 03 02 [13:49:03]Write to MH i2c: E2 08 00 55 07 80 0D 03 02 00 00 00 00 D7 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]OFD Sender: No OFD packet to send [13:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0B 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0B 00 55 07 00 B8 D0 6D 41 C0 7D E5 03 90 00 33 [13:49:03]RAPDU: B8 D0 6D 41 C0 7D E5 03 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_SignData done [13:49:03]FM_MakeSignedData done [13:49:03]CreateOFDProtocolMessage [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 11 00 00 [13:49:03]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:04]Read from MH i2c: E2 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 17 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [13:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:04]wFMCommunicate OK [13:49:04]CreateOFDProtocolMessage done [13:49:04]OFDSenderStorePacket 191783 [13:49:04]StoreOFDPacket docnum=191783 [13:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 31 07 01 2D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D F3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 ED 02 00 35 04 06 00 1A C7 09 D2 4F FD B8 D0 6D 41 C0 7D E5 03 [13:49:04]CheckFolder [13:49:04]dirname=/storage/ofd_packets [13:49:04]CheckFolder done [13:49:04]ProducePacketName [13:49:04]name=ofd_packets/00191783 [13:49:04]NVStorageSaveData ofd_packets/00191783 [13:49:04]File name is /storage/ofd_packets/00191783 [13:49:04]Write 301 bytes [13:49:04]NVStorageSaveData done [13:49:04]OFDSenderStorePacket done [13:49:04]KKMCreateOFDPacket done [13:49:04]NVStorageSaveData kkm_last_timestamp [13:49:04]File name is /storage/kkm_last_timestamp [13:49:04]Write 4 bytes [13:49:04]NVStorageSaveData done [13:49:04]ExternCall_PrintAddStr [13:49:04]wPrintStart [13:49:04]Write to MH i2c: 01 00 00 57 07 5E [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [13:49:04]RasterBufferAndPrint [13:49:04]line Счет N : (1)31088 [13:49:04]line ИНН: 02508201610067 [13:49:04]line Контрольно-Кассовый Чек [13:49:04]line ПРОДАЖА [13:49:04]line ТРК (МРК, ГНК) : 21 [13:49:04]line Товар: 2710124130 [13:49:04]line Аи-92-К-5 [13:49:04]line 14.950 * 66.90 [13:49:04]line = 1000.16 [13:49:04]line НДС 12% НСП 1% [13:49:04]line > о реализуемом товаре [13:49:04]line ОКРУГЛЕНИЕ: -0.16 [13:49:04]line ИТОГО: 1000.00 [13:49:04]line Внесено: 1000.00 [13:49:04]line СДАЧА: 0.00 [13:49:04]line НСП 1% : 8.85 [13:49:04]line НДС 12% : 106.21 [13:49:04]line Наличными: 1000.00 [13:49:04]line Безнал.: 0.00 [13:49:04]line Место: АЗС № 170 "Партнер Нефть" [13:49:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:49:04]line СНО: Общий режим [13:49:04]line Чек 146 26.10.2024 13:49 [13:49:04]line Смена: 541 ФФД: 1.0 [13:49:04]line ЗНМ: 0300000110 [13:49:04]line РНМ: 0000000000091776 [13:49:04]line Версия ККМ: 001 [13:49:04]line ФМ: 0000000000871754 [13:49:04]line ФД: 191783 [13:49:04]line ФПД: 29442165592061 [13:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T134917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191783&fm=29442165592061&tin=02508201610067®Number=0000000000091776&sum=100000 [13:49:04]OFD Sender: Processing packet 191783 [packets to send 75, broken 74] [13:49:04]ProducePacketName [13:49:04]name=ofd_packets/00191783 [13:49:04]OFD Sender: To server: pG, [13:49:04]CommunicateWithHost lk.salyk.kg:30040 [13:49:04]ConnectInit lk.salyk.kg [13:49:04]written 0, free lines is 4095 [13:49:04]Connected sock=10 [13:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED 31 07 01 2D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5D F3 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 ED 02 00 35 04 06 00 1A C7 09 D2 4F FD B8 D0 6D 41 C0 7D E5 03 [13:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 AF 47 00 DA AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 27 ED 02 00 F4 03 04 00 28 98 1C 67 B6 04 01 00 00 85 CF A2 F6 C5 45 A9 9F [13:49:04]CommunicateWithHost err = 0 [13:49:04]CheckOFDResponse [13:49:04]1017 (14) - 77093643461234 [13:49:04]1041 (16) - 0000000000871754 [13:49:04]1040 (4) - 191783 [13:49:04]1012 (4) - 26.10.2024 07:20 [13:49:04]1206 (1) - 0 [13:49:04]OFD Sender: Remove packet 191783 [13:49:04]ProducePacketName [13:49:04]name=ofd_packets/00191783 [13:49:04]NVStorageDeleteData [13:49:04]Write to MH i2c: 01 00 00 82 07 89 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 C1 0C 5D [13:49:04]RasterBufferAndPrint [13:49:04]line [13:49:04]line [13:49:04]line [13:49:04]line [13:49:04]line [13:49:04]written 0, free lines is 3272 [13:49:04]MH_Cut [13:49:04]Write to MH i2c: D1 01 00 89 07 01 62 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: D1 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: D1 01 00 [13:49:04]MH_I2C_Read... [13:49:04]Read from MH i2c: D1 01 00 89 07 00 61 [13:49:04]Write to MH i2c: 01 00 00 8A 07 91 [13:49:04]Write i2c OK [13:49:04]MH_I2C_Read... [13:49:05]OFD Sender: No OFD packet to send [13:49:05]*** Cut start [13:49:05]*** Partial cut [13:49:05]*** CUTSNS_PIN = 1 [13:49:05]*** CUTSNS_PIN = 0 [13:49:05]*** Brake cut motor [13:49:06]Read from MH i2c: 01 [13:49:06]MH_I2C_Read... [13:49:06]*** Stop cut motor [13:49:06]*** Cut end [13:49:06]Read from MH i2c: 01 07 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: 01 07 00 8A 07 00 00 00 00 00 FF 0F A6 [13:49:06]process_action close_receipt done [13:49:06]requested_data is exist [13:49:06]produce_requested_data [13:49:06]requested_item fm.sn is exist - process it [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 11 00 00 [13:49:06]Write to MH i2c: E2 08 00 8B 07 80 11 00 00 00 00 00 00 0C [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 17 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 17 00 8B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5F [13:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:49:06]wFMCommunicate OK [13:49:06]requested_item fd.num is exist - process it [13:49:06]SAM_PROTO_GetFieldsCounters [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 13 00 00 [13:49:06]Write to MH i2c: E2 08 00 8C 07 80 13 00 00 00 00 00 00 0F [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 62 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 62 00 8C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [13:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 27 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:06]wFMCommunicate OK [13:49:06]SAM_PROTO_GetFieldsCounters done [13:49:06]requested_item shift.num is exist - process it [13:49:06]requested_item shift.opened is exist - process it [13:49:06]req_shift_opened [13:49:06]FM_GetShiftState [13:49:06]SAM_PROTO_GetShiftState [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 13 01 00 [13:49:06]Write to MH i2c: E2 08 00 8D 07 80 13 01 00 00 00 00 00 11 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 0E 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 0E 00 8D 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8A [13:49:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:49:06]wFMCommunicate OK [13:49:06]SAM_PROTO_GetShiftState done [13:49:06]FM_GetShiftState done [13:49:06]req_shift_opened done [13:49:06]requested_item shift.open_date is exist - process it [13:49:06]req_shift_open_date [13:49:06]req_shift_open_date done [13:49:06]produce_requested_data done [13:49:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191783,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:49:06]process_action_free close_receipt [13:49:06]json_value_free [13:49:06]json_value_free done [13:49:06]process_json_proto returns [13:49:06]Send response to host [13:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191783,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:49:06]free response buf [13:49:06]execute_script done [13:49:06]execute_script returns [13:49:06]free content buf [13:49:06]Sock 8.Close socket [13:49:06]Sock 8.Thread stoped [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:23]accept exits with 9 [13:54:23]New connection [13:54:23]New thread 3066817892 created [13:54:23]Thread 3066961252 joined [13:54:23]Waiting for new connection... [13:54:23] Sock 9.Parse request [13:54:23]Sock 9.Check first char [13:54:23]Sock 9.First char is OK [13:54:23]request: POST /json_proto HTTP/1.0 [13:54:23]Method: POST [13:54:23]URL: /json_proto [13:54:23]Method is POST - this is cgi request [13:54:23]url: /json_proto [13:54:23]query_string will be loaded in cgi processing [13:54:23]execute_cgi json_proto POST (null) [13:54:23]execute_cgi path=json_proto method=POST [13:54:23]POST find Content-Length [13:54:23]Host: 172.17.63.131:8080 [13:54:23]Content-Length: 677 [13:54:23]Content-Type: application/json [13:54:23] [13:54:23]POST finish read [13:54:23]Found Content-Length = 677 [13:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:23]execute_script... [13:54: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)31089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:23]POST & json_proto [13:54:23]process_json_proto [13:54:23]json parsed OK: [13:54:23]protocol is kg_v1.0 [13:54:23]action value=close_receipt [13:54:23]process_action close_receipt [13:54:23]cmd_close_receipt [13:54:23]MH_GetDate [13:54:23]Write to MH i2c: F0 00 00 8E 07 84 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: F0 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: F0 09 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: F0 09 00 8E 07 00 9E F4 1C 67 22 05 6E 64 9B [13:54:23]GetLastDocTimeStamp 1729950557 [13:54:23]current date 1729950878 [13:54:23]FM_GetShiftState [13:54:23]SAM_PROTO_GetShiftState [13:54:23]wFMCommunicate request_size=4 [13:54:23]MH_SAM_APDU [13:54:23]CAPDU: 80 13 01 00 [13:54:23]Write to MH i2c: E2 08 00 8F 07 80 13 01 00 00 00 00 00 13 [13:54:23]Write i2c OK [13:54:23]MH_I2C_Read... [13:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:23]Read from MH i2c: E2 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0E 00 [13:54:23]MH_I2C_Read... [13:54:23]Read from MH i2c: E2 0E 00 8F 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8C [13:54:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:54:23]wFMCommunicate OK [13:54:23]SAM_PROTO_GetShiftState done [13:54:23]FM_GetShiftState done [13:54:23]opened in 1729902770 [13:54:23]opened+sec_in_day 1729989170 [13:54:23]quantity*price = 70044 [13:54:23]sum+1 = 70045 [13:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 147 26.10.2024 13:54 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191784 ФПД: 159645911895605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191784&fm=159645911895605&tin=02508201610067®Number=0000000000091776&sum=70000 [13:54:24]StoreToDocumentArchive [13:54:24]shift 541 fd 191784 [13:54:24]save to /storage/0541/doc_00191784 [13:54:24]save last doc name /storage/0541/doc_00191784 to /storage/kkm_last_doc_name [13:54:24]save OK [13:54:24]Clear old archive folders... [13:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:54:24]tlvbuf is 01831580 [13:54:24]SAM_PROTO_ClearQueue [13:54:24]wFMCommunicate request_size=4 [13:54:24]MH_SAM_APDU [13:54:24]CAPDU: 80 09 00 00 [13:54:24]Write to MH i2c: E2 08 00 9C 07 80 09 00 00 00 00 00 00 15 [13:54:24]Write i2c OK [13:54:24]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 9C 07 00 90 00 17 [13:54:25]RAPDU: 90 00 [13:54:25]wFMCommunicate OK [13:54:25]SAM_PROTO_ClearQueue done [13:54:25]KKMCreateOFDPacket [13:54:25]OFDProtocolAddRootSTLVToBuf [13:54:25]FM_MakeSignedData [13:54:25]FM_MakeSignedData [13:54:25]SAM_PROTO_SignData [13:54:25]wFMCommunicate request_size=4 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 0D 01 02 [13:54:25]Write to MH i2c: E2 08 00 9D 07 80 0D 01 02 00 00 00 00 1D [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 9D 07 00 90 00 18 [13:54:25]RAPDU: 90 00 [13:54:25]wFMCommunicate OK [13:54:25]wFMCommunicate request_size=255 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 9E F4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 ED 02 00 35 04 06 00 91 [13:54:25]Write to MH i2c: E2 02 01 9E 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 9E F4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 ED 02 00 35 04 06 00 91 00 00 30 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 9E 07 00 90 00 19 [13:54:25]RAPDU: 90 00 [13:54:25]wFMCommunicate OK [13:54:25]wFMCommunicate request_size=10 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 0D 02 02 05 32 75 DE 4E 35 [13:54:25]Write to MH i2c: E2 0D 00 9F 07 80 0D 02 02 05 00 32 75 DE 4E 35 00 00 32 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 03 00 9F 07 00 90 00 1A [13:54:25]RAPDU: 90 00 [13:54:25]wFMCommunicate OK [13:54:25]wFMCommunicate request_size=4 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 0D 03 02 [13:54:25]Write to MH i2c: E2 08 00 A0 07 80 0D 03 02 00 00 00 00 22 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 0B 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 0B 00 A0 07 00 F8 F1 12 E3 29 EE 94 21 90 00 CD [13:54:25]RAPDU: F8 F1 12 E3 29 EE 94 21 90 00 [13:54:25]wFMCommunicate OK [13:54:25]SAM_PROTO_SignData done [13:54:25]FM_MakeSignedData done [13:54:25]CreateOFDProtocolMessage [13:54:25]wFMCommunicate request_size=4 [13:54:25]MH_SAM_APDU [13:54:25]CAPDU: 80 11 00 00 [13:54:25]Write to MH i2c: E2 08 00 A1 07 80 11 00 00 00 00 00 00 22 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:25]Read from MH i2c: E2 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 17 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: E2 17 00 A1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [13:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:54:25]wFMCommunicate OK [13:54:25]CreateOFDProtocolMessage done [13:54:25]OFDSenderStorePacket 191784 [13:54:25]StoreOFDPacket docnum=191784 [13:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 68 07 01 EC 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 9E F4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 ED 02 00 35 04 06 00 91 32 75 DE 4E 35 F8 F1 12 E3 29 EE 94 21 [13:54:25]CheckFolder [13:54:25]dirname=/storage/ofd_packets [13:54:25]CheckFolder done [13:54:25]ProducePacketName [13:54:25]name=ofd_packets/00191784 [13:54:25]NVStorageSaveData ofd_packets/00191784 [13:54:25]File name is /storage/ofd_packets/00191784 [13:54:25]Write 301 bytes [13:54:25]NVStorageSaveData done [13:54:25]OFDSenderStorePacket done [13:54:25]KKMCreateOFDPacket done [13:54:25]NVStorageSaveData kkm_last_timestamp [13:54:25]File name is /storage/kkm_last_timestamp [13:54:25]Write 4 bytes [13:54:25]NVStorageSaveData done [13:54:25]ExternCall_PrintAddStr [13:54:25]wPrintStart [13:54:25]Write to MH i2c: 01 00 00 A2 07 A9 [13:54:25]Write i2c OK [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: 01 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: 01 07 00 [13:54:25]MH_I2C_Read... [13:54:25]Read from MH i2c: 01 07 00 A2 07 00 00 00 00 00 FF 0F BE [13:54:25]RasterBufferAndPrint [13:54:25]line Счет N : (1)31089 [13:54:25]line ИНН: 02508201610067 [13:54:25]line Контрольно-Кассовый Чек [13:54:25]line ПРОДАЖА [13:54:25]line ТРК (МРК, ГНК) : 12 [13:54:25]line Товар: 2710124130 [13:54:25]line Аи-92-К-5 [13:54:25]line 10.470 * 66.90 [13:54:25]line = 700.44 [13:54:25]line НДС 12% НСП 1% [13:54:25]line > о реализуемом товаре [13:54:25]line ОКРУГЛЕНИЕ: -0.44 [13:54:25]line ИТОГО: 700.00 [13:54:25]line Внесено: 700.00 [13:54:25]line СДАЧА: 0.00 [13:54:25]line НСП 1% : 6.20 [13:54:25]line НДС 12% : 74.38 [13:54:25]line Наличными: 700.00 [13:54:25]line Безнал.: 0.00 [13:54:25]line Место: АЗС № 170 "Партнер Нефть" [13:54:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:54:25]line СНО: Общий режим [13:54:25]line Чек 147 26.10.2024 13:54 [13:54:25]line Смена: 541 ФФД: 1.0 [13:54:25]line ЗНМ: 0300000110 [13:54:25]line РНМ: 0000000000091776 [13:54:25]line Версия ККМ: 001 [13:54:25]line ФМ: 0000000000871754 [13:54:25]line ФД: 191784 [13:54:25]line ФПД: 159645911895605 [13:54:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191784&fm=159645911895605&tin=02508201610067®Number=0000000000091776&sum=70000 [13:54:25]OFD Sender: Processing packet 191784 [packets to send 75, broken 74] [13:54:25]ProducePacketName [13:54:25]name=ofd_packets/00191784 [13:54:25]OFD Sender: To server: pG, [13:54:25]CommunicateWithHost lk.salyk.kg:30040 [13:54:25]ConnectInit lk.salyk.kg [13:54:25]written 0, free lines is 4095 [13:54:26]Connected sock=10 [13:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 50 68 07 01 EC 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 9E F4 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 ED 02 00 35 04 06 00 91 32 75 DE 4E 35 F8 F1 12 E3 29 EE 94 21 [13:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A2 28 47 00 3D 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 28 ED 02 00 F4 03 04 00 69 99 1C 67 B6 04 01 00 00 72 EF 74 4F 97 37 A9 9A [13:54:26]CommunicateWithHost err = 0 [13:54:26]CheckOFDResponse [13:54:26]1017 (14) - 77093643461234 [13:54:26]1041 (16) - 0000000000871754 [13:54:26]1040 (4) - 191784 [13:54:26]1012 (4) - 26.10.2024 07:25 [13:54:26]1206 (1) - 0 [13:54:26]OFD Sender: Remove packet 191784 [13:54:26]ProducePacketName [13:54:26]name=ofd_packets/00191784 [13:54:26]NVStorageDeleteData [13:54:26]Write to MH i2c: 01 00 00 CD 07 D4 [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: 01 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: 01 07 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: 01 07 00 CD 07 00 00 00 00 00 B5 0C 9C [13:54:26]RasterBufferAndPrint [13:54:26]line [13:54:26]line [13:54:26]line [13:54:26]line [13:54:26]line [13:54:26]written 0, free lines is 3259 [13:54:26]MH_Cut [13:54:26]Write to MH i2c: D1 01 00 D4 07 01 AD [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: D1 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: D1 01 00 [13:54:26]MH_I2C_Read... [13:54:26]Read from MH i2c: D1 01 00 D4 07 00 AC [13:54:26]Write to MH i2c: 01 00 00 D5 07 DC [13:54:26]Write i2c OK [13:54:26]MH_I2C_Read... [13:54:26]OFD Sender: No OFD packet to send [13:54:27]*** Cut start [13:54:27]*** Partial cut [13:54:27]*** CUTSNS_PIN = 1 [13:54:27]*** CUTSNS_PIN = 0 [13:54:27]*** Brake cut motor [13:54:27]Read from MH i2c: 01 [13:54:27]MH_I2C_Read... [13:54:27]*** Stop cut motor [13:54:27]*** Cut end [13:54:27]Read from MH i2c: 01 07 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: 01 07 00 D5 07 00 00 00 00 00 FF 0F F1 [13:54:27]process_action close_receipt done [13:54:27]requested_data is exist [13:54:27]produce_requested_data [13:54:27]requested_item fm.sn is exist - process it [13:54:27]wFMCommunicate request_size=4 [13:54:27]MH_SAM_APDU [13:54:27]CAPDU: 80 11 00 00 [13:54:27]Write to MH i2c: E2 08 00 D6 07 80 11 00 00 00 00 00 00 57 [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:27]Read from MH i2c: E2 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: E2 17 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: E2 17 00 D6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AA [13:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:54:27]wFMCommunicate OK [13:54:27]requested_item fd.num is exist - process it [13:54:27]SAM_PROTO_GetFieldsCounters [13:54:27]wFMCommunicate request_size=4 [13:54:27]MH_SAM_APDU [13:54:27]CAPDU: 80 13 00 00 [13:54:27]Write to MH i2c: E2 08 00 D7 07 80 13 00 00 00 00 00 00 5A [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:27]Read from MH i2c: E2 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: E2 62 00 [13:54:27]MH_I2C_Read... [13:54:27]Read from MH i2c: E2 62 00 D7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 28 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:27]wFMCommunicate OK [13:54:27]SAM_PROTO_GetFieldsCounters done [13:54:27]requested_item shift.num is exist - process it [13:54:27]requested_item shift.opened is exist - process it [13:54:27]req_shift_opened [13:54:27]FM_GetShiftState [13:54:27]SAM_PROTO_GetShiftState [13:54:27]wFMCommunicate request_size=4 [13:54:27]MH_SAM_APDU [13:54:27]CAPDU: 80 13 01 00 [13:54:27]Write to MH i2c: E2 08 00 D8 07 80 13 01 00 00 00 00 00 5C [13:54:27]Write i2c OK [13:54:27]MH_I2C_Read... [13:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:28]Read from MH i2c: E2 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 [13:54:28]MH_I2C_Read... [13:54:28]Read from MH i2c: E2 0E 00 D8 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D5 [13:54:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:54:28]wFMCommunicate OK [13:54:28]SAM_PROTO_GetShiftState done [13:54:28]FM_GetShiftState done [13:54:28]req_shift_opened done [13:54:28]requested_item shift.open_date is exist - process it [13:54:28]req_shift_open_date [13:54:28]req_shift_open_date done [13:54:28]produce_requested_data done [13:54:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191784,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:54:28]process_action_free close_receipt [13:54:28]json_value_free [13:54:28]json_value_free done [13:54:28]process_json_proto returns [13:54:28]Send response to host [13:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191784,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:54:28]free response buf [13:54:28]execute_script done [13:54:28]execute_script returns [13:54:28]free content buf [13:54:28]Sock 9.Close socket [13:54:28]Sock 9.Thread stoped [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:58:57]accept exits with 8 [13:58:57]New connection [13:58:57]New thread 3066961252 created [13:58:57]Thread 3066817892 joined [13:58:57]Waiting for new connection... [13:58:57] Sock 8.Parse request [13:58:57]Sock 8.Check first char [13:58:57]Sock 8.First char is OK [13:58:57]request: POST /json_proto HTTP/1.0 [13:58:57]Method: POST [13:58:57]URL: /json_proto [13:58:57]Method is POST - this is cgi request [13:58:57]url: /json_proto [13:58:57]query_string will be loaded in cgi processing [13:58:57]execute_cgi json_proto POST (null) [13:58:57]execute_cgi path=json_proto method=POST [13:58:57]POST find Content-Length [13:58:57]Host: 172.17.63.131:8080 [13:58:57]Content-Length: 983 [13:58:57]Content-Type: application/json [13:58:57] [13:58:57]POST finish read [13:58:57]Found Content-Length = 983 [13:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:57]execute_script... [13:58: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)31090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:57]POST & json_proto [13:58:57]process_json_proto [13:58:57]json parsed OK: [13:58:57]protocol is kg_v1.0 [13:58:57]action value=close_receipt [13:58:57]process_action close_receipt [13:58:57]cmd_close_receipt [13:58:57]MH_GetDate [13:58:57]Write to MH i2c: F0 00 00 D9 07 CF [13:58:57]Write i2c OK [13:58:57]MH_I2C_Read... [13:58:57]Read from MH i2c: F0 [13:58:57]MH_I2C_Read... [13:58:57]Read from MH i2c: F0 09 00 [13:58:57]MH_I2C_Read... [13:58:57]Read from MH i2c: F0 09 00 D9 07 00 B0 F5 1C 67 22 05 6E 64 F9 [13:58:57]GetLastDocTimeStamp 1729950878 [13:58:57]current date 1729951152 [13:58:57]FM_GetShiftState [13:58:57]SAM_PROTO_GetShiftState [13:58:57]wFMCommunicate request_size=4 [13:58:57]MH_SAM_APDU [13:58:57]CAPDU: 80 13 01 00 [13:58:57]Write to MH i2c: E2 08 00 DA 07 80 13 01 00 00 00 00 00 5E [13:58:57]Write i2c OK [13:58:57]MH_I2C_Read... [13:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:57]Read from MH i2c: E2 [13:58:57]MH_I2C_Read... [13:58:57]Read from MH i2c: E2 0E 00 [13:58:57]MH_I2C_Read... [13:58:57]Read from MH i2c: E2 0E 00 DA 07 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D7 [13:58:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:58:57]wFMCommunicate OK [13:58:57]SAM_PROTO_GetShiftState done [13:58:57]FM_GetShiftState done [13:58:57]opened in 1729902770 [13:58:57]opened+sec_in_day 1729989170 [13:58:57]quantity*price = 150054 [13:58:57]sum+1 = 150055 [13:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 148 26.10.2024 13:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191785 ФПД: 16730526999033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191785&fm=16730526999033&tin=02508201610067®Number=0000000000091776&sum=150000 [13:58:58]StoreToDocumentArchive [13:58:58]shift 541 fd 191785 [13:58:58]save to /storage/0541/doc_00191785 [13:58:58]save last doc name /storage/0541/doc_00191785 to /storage/kkm_last_doc_name [13:58:58]save OK [13:58:58]Clear old archive folders... [13:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:59]tlvbuf is 0183C610 [13:58:59]SAM_PROTO_ClearQueue [13:58:59]wFMCommunicate request_size=4 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 09 00 00 [13:58:59]Write to MH i2c: E2 08 00 E7 07 80 09 00 00 00 00 00 00 60 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [13:58:59]RAPDU: 90 00 [13:58:59]wFMCommunicate OK [13:58:59]SAM_PROTO_ClearQueue done [13:58:59]KKMCreateOFDPacket [13:58:59]OFDProtocolAddRootSTLVToBuf [13:58:59]FM_MakeSignedData [13:58:59]FM_MakeSignedData [13:58:59]SAM_PROTO_SignData [13:58:59]wFMCommunicate request_size=4 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 0D 01 02 [13:58:59]Write to MH i2c: E2 08 00 E8 07 80 0D 01 02 00 00 00 00 68 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 E8 07 00 90 00 63 [13:58:59]RAPDU: 90 00 [13:58:59]wFMCommunicate OK [13:58:59]wFMCommunicate request_size=255 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B0 F5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 ED 02 00 35 04 06 00 0F [13:58:59]Write to MH i2c: E2 02 01 E9 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B0 F5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 ED 02 00 35 04 06 00 0F 00 00 34 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 E9 07 00 90 00 64 [13:58:59]RAPDU: 90 00 [13:58:59]wFMCommunicate OK [13:58:59]wFMCommunicate request_size=10 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 0D 02 02 05 37 61 1E 61 F9 [13:58:59]Write to MH i2c: E2 0D 00 EA 07 80 0D 02 02 05 00 37 61 1E 61 F9 00 00 85 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 03 00 EA 07 00 90 00 65 [13:58:59]RAPDU: 90 00 [13:58:59]wFMCommunicate OK [13:58:59]wFMCommunicate request_size=4 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 0D 03 02 [13:58:59]Write to MH i2c: E2 08 00 EB 07 80 0D 03 02 00 00 00 00 6D [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 0B 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 0B 00 EB 07 00 9F FD 1A 30 58 B8 3F 7D 90 00 20 [13:58:59]RAPDU: 9F FD 1A 30 58 B8 3F 7D 90 00 [13:58:59]wFMCommunicate OK [13:58:59]SAM_PROTO_SignData done [13:58:59]FM_MakeSignedData done [13:58:59]CreateOFDProtocolMessage [13:58:59]wFMCommunicate request_size=4 [13:58:59]MH_SAM_APDU [13:58:59]CAPDU: 80 11 00 00 [13:58:59]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:59]Read from MH i2c: E2 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 17 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [13:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:58:59]wFMCommunicate OK [13:58:59]CreateOFDProtocolMessage done [13:58:59]OFDSenderStorePacket 191785 [13:58:59]StoreOFDPacket docnum=191785 [13:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 36 07 01 FC 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B0 F5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 ED 02 00 35 04 06 00 0F 37 61 1E 61 F9 9F FD 1A 30 58 B8 3F 7D [13:58:59]CheckFolder [13:58:59]dirname=/storage/ofd_packets [13:58:59]CheckFolder done [13:58:59]ProducePacketName [13:58:59]name=ofd_packets/00191785 [13:58:59]NVStorageSaveData ofd_packets/00191785 [13:58:59]File name is /storage/ofd_packets/00191785 [13:58:59]Write 301 bytes [13:58:59]NVStorageSaveData done [13:58:59]OFDSenderStorePacket done [13:58:59]KKMCreateOFDPacket done [13:58:59]NVStorageSaveData kkm_last_timestamp [13:58:59]File name is /storage/kkm_last_timestamp [13:58:59]Write 4 bytes [13:58:59]NVStorageSaveData done [13:58:59]ExternCall_PrintAddStr [13:58:59]wPrintStart [13:58:59]Write to MH i2c: 01 00 00 ED 07 F4 [13:58:59]Write i2c OK [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 07 00 [13:58:59]MH_I2C_Read... [13:58:59]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 FF 0F 09 [13:58:59]RasterBufferAndPrint [13:58:59]line Счет N : (1)31090 [13:58:59]line ИНН: 02508201610067 [13:58:59]line Контрольно-Кассовый Чек [13:58:59]line ПРОДАЖА [13:58:59]line ТРК (МРК, ГНК) : 21 [13:58:59]line Товар: 2710124130 [13:58:59]line Аи-92-К-5 [13:58:59]line 22.770 * 65.90 [13:58:59]line = 1500.54 [13:58:59]line НДС 12% НСП 1% [13:58:59]line > о реализуемом товаре [13:58:59]line ОКРУГЛЕНИЕ: -0.54 [13:58:59]line ИТОГО: 1500.00 [13:58:59]line Внесено: 1500.00 [13:58:59]line СДАЧА: 0.00 [13:58:59]line НСП 1% : 13.28 [13:58:59]line НДС 12% : 159.35 [13:58:59]line Наличными: 1500.00 [13:58:59]line Безнал.: 0.00 [13:58:59]line Место: АЗС № 170 "Партнер Нефть" [13:58:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [13:58:59]line СНО: Общий режим [13:58:59]line Чек 148 26.10.2024 13:59 [13:58:59]line Смена: 541 ФФД: 1.0 [13:58:59]line ЗНМ: 0300000110 [13:58:59]line РНМ: 0000000000091776 [13:58:59]line Версия ККМ: 001 [13:58:59]line [13:58:59]line Дисконтная программа [13:58:59]line АИ-92 [13:58:59]line номер 170 [13:58:59]line сэкономлено 22.77 сом [13:58:59]line ФМ: 0000000000871754 [13:58:59]line ФД: 191785 [13:58:59]line ФПД: 16730526999033 [13:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T135912&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191785&fm=16730526999033&tin=02508201610067®Number=0000000000091776&sum=150000 [13:58:59]OFD Sender: Processing packet 191785 [packets to send 75, broken 74] [13:58:59]ProducePacketName [13:58:59]name=ofd_packets/00191785 [13:58:59]OFD Sender: To server: pG, [13:58:59]CommunicateWithHost lk.salyk.kg:30040 [13:58:59]ConnectInit lk.salyk.kg [13:58:59]written 0, free lines is 4095 [13:58:59]Connected sock=10 [13:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 36 07 01 FC 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B0 F5 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 ED 02 00 35 04 06 00 0F 37 61 1E 61 F9 9F FD 1A 30 58 B8 3F 7D [13:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 3A 47 00 D1 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 29 ED 02 00 F4 03 04 00 7B 9A 1C 67 B6 04 01 00 00 57 36 DB 05 13 C1 CA F7 [13:59:00]CommunicateWithHost err = 0 [13:59:00]CheckOFDResponse [13:59:00]1017 (14) - 77093643461234 [13:59:00]1041 (16) - 0000000000871754 [13:59:00]1040 (4) - 191785 [13:59:00]1012 (4) - 26.10.2024 07:30 [13:59:00]1206 (1) - 0 [13:59:00]OFD Sender: Remove packet 191785 [13:59:00]ProducePacketName [13:59:00]name=ofd_packets/00191785 [13:59:00]NVStorageDeleteData [13:59:00]Write to MH i2c: 01 00 00 1D 08 25 [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: 01 07 00 1D 08 00 00 00 00 00 69 0C A1 [13:59:00]RasterBufferAndPrint [13:59:00]line [13:59:00]line [13:59:00]line [13:59:00]line [13:59:00]line [13:59:00]written 0, free lines is 3186 [13:59:00]MH_Cut [13:59:00]Write to MH i2c: D1 01 00 24 08 01 FE [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: D1 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: D1 01 00 [13:59:00]MH_I2C_Read... [13:59:00]Read from MH i2c: D1 01 00 24 08 00 FD [13:59:00]Write to MH i2c: 01 00 00 25 08 2D [13:59:00]Write i2c OK [13:59:00]MH_I2C_Read... [13:59:00]OFD Sender: No OFD packet to send [13:59:01]*** Cut start [13:59:01]*** Partial cut [13:59:01]*** CUTSNS_PIN = 1 [13:59:01]*** CUTSNS_PIN = 0 [13:59:01]*** Brake cut motor [13:59:01]Read from MH i2c: 01 [13:59:01]MH_I2C_Read... [13:59:01]*** Stop cut motor [13:59:01]*** Cut end [13:59:01]Read from MH i2c: 01 07 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: 01 07 00 25 08 00 00 00 00 00 FF 0F 42 [13:59:01]process_action close_receipt done [13:59:01]requested_data is exist [13:59:01]produce_requested_data [13:59:01]requested_item fm.sn is exist - process it [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 11 00 00 [13:59:01]Write to MH i2c: E2 08 00 26 08 80 11 00 00 00 00 00 00 A8 [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:01]Read from MH i2c: E2 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 17 00 [13:59:01]MH_I2C_Read... [13:59:01]Read from MH i2c: E2 17 00 26 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FB [13:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [13:59:01]wFMCommunicate OK [13:59:01]requested_item fd.num is exist - process it [13:59:01]SAM_PROTO_GetFieldsCounters [13:59:01]wFMCommunicate request_size=4 [13:59:01]MH_SAM_APDU [13:59:01]CAPDU: 80 13 00 00 [13:59:01]Write to MH i2c: E2 08 00 27 08 80 13 00 00 00 00 00 00 AB [13:59:01]Write i2c OK [13:59:01]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 62 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 62 00 27 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [13:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 29 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:02]wFMCommunicate OK [13:59:02]SAM_PROTO_GetFieldsCounters done [13:59:02]requested_item shift.num is exist - process it [13:59:02]requested_item shift.opened is exist - process it [13:59:02]req_shift_opened [13:59:02]FM_GetShiftState [13:59:02]SAM_PROTO_GetShiftState [13:59:02]wFMCommunicate request_size=4 [13:59:02]MH_SAM_APDU [13:59:02]CAPDU: 80 13 01 00 [13:59:02]Write to MH i2c: E2 08 00 28 08 80 13 01 00 00 00 00 00 AD [13:59:02]Write i2c OK [13:59:02]MH_I2C_Read... [13:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:02]Read from MH i2c: E2 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0E 00 [13:59:02]MH_I2C_Read... [13:59:02]Read from MH i2c: E2 0E 00 28 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [13:59:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [13:59:02]wFMCommunicate OK [13:59:02]SAM_PROTO_GetShiftState done [13:59:02]FM_GetShiftState done [13:59:02]req_shift_opened done [13:59:02]requested_item shift.open_date is exist - process it [13:59:02]req_shift_open_date [13:59:02]req_shift_open_date done [13:59:02]produce_requested_data done [13:59:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191785,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [13:59:02]process_action_free close_receipt [13:59:02]json_value_free [13:59:02]json_value_free done [13:59:02]process_json_proto returns [13:59:02]Send response to host [13:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191785,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [13:59:02]free response buf [13:59:02]execute_script done [13:59:02]execute_script returns [13:59:02]free content buf [13:59:02]Sock 8.Close socket [13:59:02]Sock 8.Thread stoped [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:16]accept exits with 9 [14:02:16]New connection [14:02:16]New thread 3066817892 created [14:02:16]Thread 3066961252 joined [14:02:16]Waiting for new connection... [14:02:16] Sock 9.Parse request [14:02:16]Sock 9.Check first char [14:02:16]Sock 9.First char is OK [14:02:16]request: POST /json_proto HTTP/1.0 [14:02:16]Method: POST [14:02:16]URL: /json_proto [14:02:16]Method is POST - this is cgi request [14:02:16]url: /json_proto [14:02:16]query_string will be loaded in cgi processing [14:02:16]execute_cgi json_proto POST (null) [14:02:16]execute_cgi path=json_proto method=POST [14:02:16]POST find Content-Length [14:02:16]Host: 172.17.63.131:8080 [14:02:16]Content-Length: 676 [14:02:16]Content-Type: application/json [14:02:16] [14:02:16]POST finish read [14:02:16]Found Content-Length = 676 [14:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:16]execute_script... [14:02: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)31091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:16]POST & json_proto [14:02:16]process_json_proto [14:02:16]json parsed OK: [14:02:16]protocol is kg_v1.0 [14:02:16]action value=close_receipt [14:02:16]process_action close_receipt [14:02:16]cmd_close_receipt [14:02:16]MH_GetDate [14:02:16]Write to MH i2c: F0 00 00 29 08 20 [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 09 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: F0 09 00 29 08 00 77 F6 1C 67 22 05 6E 64 12 [14:02:16]GetLastDocTimeStamp 1729951152 [14:02:16]current date 1729951351 [14:02:16]FM_GetShiftState [14:02:16]SAM_PROTO_GetShiftState [14:02:16]wFMCommunicate request_size=4 [14:02:16]MH_SAM_APDU [14:02:16]CAPDU: 80 13 01 00 [14:02:16]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [14:02:16]Write i2c OK [14:02:16]MH_I2C_Read... [14:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:16]Read from MH i2c: E2 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 [14:02:16]MH_I2C_Read... [14:02:16]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 28 [14:02:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:02:16]wFMCommunicate OK [14:02:16]SAM_PROTO_GetShiftState done [14:02:16]FM_GetShiftState done [14:02:16]opened in 1729902770 [14:02:16]opened+sec_in_day 1729989170 [14:02:16]quantity*price = 50041 [14:02:16]sum+1 = 50042 [14:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 149 26.10.2024 14:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191786 ФПД: 17084023503781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191786&fm=17084023503781&tin=02508201610067®Number=0000000000091776&sum=50000 [14:02:17]StoreToDocumentArchive [14:02:17]shift 541 fd 191786 [14:02:17]save to /storage/0541/doc_00191786 [14:02:17]save last doc name /storage/0541/doc_00191786 to /storage/kkm_last_doc_name [14:02:17]save OK [14:02:17]Clear old archive folders... [14:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:17]tlvbuf is 0172E3F0 [14:02:17]SAM_PROTO_ClearQueue [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 09 00 00 [14:02:17]Write to MH i2c: E2 08 00 37 08 80 09 00 00 00 00 00 00 B1 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [14:02:17]RAPDU: 90 00 [14:02:17]wFMCommunicate OK [14:02:17]SAM_PROTO_ClearQueue done [14:02:17]KKMCreateOFDPacket [14:02:17]OFDProtocolAddRootSTLVToBuf [14:02:17]FM_MakeSignedData [14:02:17]FM_MakeSignedData [14:02:17]SAM_PROTO_SignData [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 0D 01 02 [14:02:17]Write to MH i2c: E2 08 00 38 08 80 0D 01 02 00 00 00 00 B9 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [14:02:17]RAPDU: 90 00 [14:02:17]wFMCommunicate OK [14:02:17]wFMCommunicate request_size=255 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 77 F6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A ED 02 00 35 04 06 00 0F [14:02:17]Write to MH i2c: E2 02 01 39 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 77 F6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A ED 02 00 35 04 06 00 0F 00 00 19 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=10 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 02 02 05 89 AF 26 FB A5 [14:02:18]Write to MH i2c: E2 0D 00 3A 08 80 0D 02 02 05 00 89 AF 26 FB A5 00 00 C4 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 03 02 [14:02:18]Write to MH i2c: E2 08 00 3B 08 80 0D 03 02 00 00 00 00 BE [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 3B 08 00 98 8B 56 88 94 5F DB 92 90 00 20 [14:02:18]RAPDU: 98 8B 56 88 94 5F DB 92 90 00 [14:02:18]wFMCommunicate OK [14:02:18]SAM_PROTO_SignData done [14:02:18]FM_MakeSignedData done [14:02:18]CreateOFDProtocolMessage [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 11 00 00 [14:02:18]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [14:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:02:18]wFMCommunicate OK [14:02:18]CreateOFDProtocolMessage done [14:02:18]OFDSenderStorePacket 191786 [14:02:18]StoreOFDPacket docnum=191786 [14:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 E6 07 01 22 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 77 F6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A ED 02 00 35 04 06 00 0F 89 AF 26 FB A5 98 8B 56 88 94 5F DB 92 [14:02:18]CheckFolder [14:02:18]dirname=/storage/ofd_packets [14:02:18]CheckFolder done [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00191786 [14:02:18]NVStorageSaveData ofd_packets/00191786 [14:02:18]File name is /storage/ofd_packets/00191786 [14:02:18]Write 301 bytes [14:02:18]NVStorageSaveData done [14:02:18]OFDSenderStorePacket done [14:02:18]KKMCreateOFDPacket done [14:02:18]NVStorageSaveData kkm_last_timestamp [14:02:18]File name is /storage/kkm_last_timestamp [14:02:18]Write 4 bytes [14:02:18]NVStorageSaveData done [14:02:18]ExternCall_PrintAddStr [14:02:18]wPrintStart [14:02:18]Write to MH i2c: 01 00 00 3D 08 45 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 3D 08 00 00 00 00 00 FF 0F 5A [14:02:18]RasterBufferAndPrint [14:02:18]line Счет N : (1)31091 [14:02:18]line ИНН: 02508201610067 [14:02:18]line Контрольно-Кассовый Чек [14:02:18]line ПРОДАЖА [14:02:18]line ТРК (МРК, ГНК) : 21 [14:02:18]line Товар: 2710124130 [14:02:18]line Аи-92-К-5 [14:02:18]line 7.480 * 66.90 [14:02:18]line = 500.41 [14:02:18]line НДС 12% НСП 1% [14:02:18]line > о реализуемом товаре [14:02:18]line ОКРУГЛЕНИЕ: -0.41 [14:02:18]line ИТОГО: 500.00 [14:02:18]line Внесено: 500.00 [14:02:18]line СДАЧА: 0.00 [14:02:18]line НСП 1% : 4.43 [14:02:18]line НДС 12% : 53.14 [14:02:18]line Наличными: 500.00 [14:02:18]line Безнал.: 0.00 [14:02:18]line Место: АЗС № 170 "Партнер Нефть" [14:02:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:02:18]line СНО: Общий режим [14:02:18]line Чек 149 26.10.2024 14:02 [14:02:18]line Смена: 541 ФФД: 1.0 [14:02:18]line ЗНМ: 0300000110 [14:02:18]line РНМ: 0000000000091776 [14:02:18]line Версия ККМ: 001 [14:02:18]line ФМ: 0000000000871754 [14:02:18]line ФД: 191786 [14:02:18]line ФПД: 17084023503781 [14:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191786&fm=17084023503781&tin=02508201610067®Number=0000000000091776&sum=50000 [14:02:18]OFD Sender: Processing packet 191786 [packets to send 75, broken 74] [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00191786 [14:02:18]OFD Sender: To server: pG, [14:02:18]CommunicateWithHost lk.salyk.kg:30040 [14:02:18]ConnectInit lk.salyk.kg [14:02:18]written 0, free lines is 4095 [14:02:18]Connected sock=10 [14:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 90 E6 07 01 22 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 77 F6 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A ED 02 00 35 04 06 00 0F 89 AF 26 FB A5 98 8B 56 88 94 5F DB 92 [14:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 13 88 47 00 62 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2A ED 02 00 F4 03 04 00 42 9B 1C 67 B6 04 01 00 00 BB D9 80 79 C2 A9 FE 54 [14:02:19]CommunicateWithHost err = 0 [14:02:19]CheckOFDResponse [14:02:19]1017 (14) - 77093643461234 [14:02:19]1041 (16) - 0000000000871754 [14:02:19]1040 (4) - 191786 [14:02:19]1012 (4) - 26.10.2024 07:33 [14:02:19]1206 (1) - 0 [14:02:19]OFD Sender: Remove packet 191786 [14:02:19]ProducePacketName [14:02:19]name=ofd_packets/00191786 [14:02:19]NVStorageDeleteData [14:02:19]Write to MH i2c: 01 00 00 68 08 70 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 BC 0C 3F [14:02:19]RasterBufferAndPrint [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]written 0, free lines is 3267 [14:02:19]MH_Cut [14:02:19]Write to MH i2c: D1 01 00 6F 08 01 49 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 6F 08 00 48 [14:02:19]Write to MH i2c: 01 00 00 70 08 78 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]OFD Sender: No OFD packet to send [14:02:20]*** Cut start [14:02:20]*** Partial cut [14:02:20]*** CUTSNS_PIN = 1 [14:02:20]*** CUTSNS_PIN = 0 [14:02:20]*** Brake cut motor [14:02:20]Read from MH i2c: 01 [14:02:20]MH_I2C_Read... [14:02:20]*** Stop cut motor [14:02:20]*** Cut end [14:02:20]Read from MH i2c: 01 07 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: 01 07 00 70 08 00 00 00 00 00 FF 0F 8D [14:02:20]process_action close_receipt done [14:02:20]requested_data is exist [14:02:20]produce_requested_data [14:02:20]requested_item fm.sn is exist - process it [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 11 00 00 [14:02:20]Write to MH i2c: E2 08 00 71 08 80 11 00 00 00 00 00 00 F3 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 17 00 71 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [14:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:02:20]wFMCommunicate OK [14:02:20]requested_item fd.num is exist - process it [14:02:20]SAM_PROTO_GetFieldsCounters [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 13 00 00 [14:02:20]Write to MH i2c: E2 08 00 72 08 80 13 00 00 00 00 00 00 F6 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 62 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 62 00 72 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:20]wFMCommunicate OK [14:02:20]SAM_PROTO_GetFieldsCounters done [14:02:20]requested_item shift.num is exist - process it [14:02:20]requested_item shift.opened is exist - process it [14:02:20]req_shift_opened [14:02:20]FM_GetShiftState [14:02:20]SAM_PROTO_GetShiftState [14:02:20]wFMCommunicate request_size=4 [14:02:20]MH_SAM_APDU [14:02:20]CAPDU: 80 13 01 00 [14:02:20]Write to MH i2c: E2 08 00 73 08 80 13 01 00 00 00 00 00 F8 [14:02:20]Write i2c OK [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 [14:02:20]MH_I2C_Read... [14:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:20]Read from MH i2c: E2 0E 00 [14:02:20]MH_I2C_Read... [14:02:20]Read from MH i2c: E2 0E 00 73 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 71 [14:02:20]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:02:20]wFMCommunicate OK [14:02:20]SAM_PROTO_GetShiftState done [14:02:20]FM_GetShiftState done [14:02:20]req_shift_opened done [14:02:20]requested_item shift.open_date is exist - process it [14:02:20]req_shift_open_date [14:02:20]req_shift_open_date done [14:02:20]produce_requested_data done [14:02:20]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191786,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:02:20]process_action_free close_receipt [14:02:20]json_value_free [14:02:20]json_value_free done [14:02:20]process_json_proto returns [14:02:20]Send response to host [14:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191786,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:02:20]free response buf [14:02:20]execute_script done [14:02:20]execute_script returns [14:02:20]free content buf [14:02:20]Sock 9.Close socket [14:02:20]Sock 9.Thread stoped [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 [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:07]accept exits with 8 [14:06:07]New connection [14:06:07]New thread 3066961252 created [14:06:07]Thread 3066817892 joined [14:06:07]Waiting for new connection... [14:06:07] Sock 8.Parse request [14:06:07]Sock 8.Check first char [14:06:07]Sock 8.First char is OK [14:06:07]request: POST /json_proto HTTP/1.0 [14:06:07]Method: POST [14:06:07]URL: /json_proto [14:06:07]Method is POST - this is cgi request [14:06:07]url: /json_proto [14:06:07]query_string will be loaded in cgi processing [14:06:07]execute_cgi json_proto POST (null) [14:06:07]execute_cgi path=json_proto method=POST [14:06:07]POST find Content-Length [14:06:07]Host: 172.17.63.131:8080 [14:06:07]Content-Length: 676 [14:06:07]Content-Type: application/json [14:06:07] [14:06:07]POST finish read [14:06:07]Found Content-Length = 676 [14:06:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:07]execute_script... [14:06:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:07]POST & json_proto [14:06:07]process_json_proto [14:06:07]json parsed OK: [14:06:07]protocol is kg_v1.0 [14:06:07]action value=close_receipt [14:06:07]process_action close_receipt [14:06:07]cmd_close_receipt [14:06:07]MH_GetDate [14:06:07]Write to MH i2c: F0 00 00 74 08 6B [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: F0 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: F0 09 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: F0 09 00 74 08 00 5E F7 1C 67 22 05 6E 64 45 [14:06:07]GetLastDocTimeStamp 1729951351 [14:06:07]current date 1729951582 [14:06:07]FM_GetShiftState [14:06:07]SAM_PROTO_GetShiftState [14:06:07]wFMCommunicate request_size=4 [14:06:07]MH_SAM_APDU [14:06:07]CAPDU: 80 13 01 00 [14:06:07]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [14:06:07]Write i2c OK [14:06:07]MH_I2C_Read... [14:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:07]Read from MH i2c: E2 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 0E 00 [14:06:07]MH_I2C_Read... [14:06:07]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [14:06:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:06:07]wFMCommunicate OK [14:06:07]SAM_PROTO_GetShiftState done [14:06:07]FM_GetShiftState done [14:06:07]opened in 1729902770 [14:06:07]opened+sec_in_day 1729989170 [14:06:07]quantity*price = 50041 [14:06:07]sum+1 = 50042 [14:06:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 150 26.10.2024 14:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191787 ФПД: 263935039893728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191787&fm=263935039893728&tin=02508201610067®Number=0000000000091776&sum=50000 [14:06:08]StoreToDocumentArchive [14:06:08]shift 541 fd 191787 [14:06:08]save to /storage/0541/doc_00191787 [14:06:08]save last doc name /storage/0541/doc_00191787 to /storage/kkm_last_doc_name [14:06:08]save OK [14:06:08]Clear old archive folders... [14:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:08]tlvbuf is 019D2C30 [14:06:08]SAM_PROTO_ClearQueue [14:06:08]wFMCommunicate request_size=4 [14:06:08]MH_SAM_APDU [14:06:08]CAPDU: 80 09 00 00 [14:06:08]Write to MH i2c: E2 08 00 82 08 80 09 00 00 00 00 00 00 FC [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:08]Read from MH i2c: E2 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 03 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [14:06:08]RAPDU: 90 00 [14:06:08]wFMCommunicate OK [14:06:08]SAM_PROTO_ClearQueue done [14:06:08]KKMCreateOFDPacket [14:06:08]OFDProtocolAddRootSTLVToBuf [14:06:08]FM_MakeSignedData [14:06:08]FM_MakeSignedData [14:06:08]SAM_PROTO_SignData [14:06:08]wFMCommunicate request_size=4 [14:06:08]MH_SAM_APDU [14:06:08]CAPDU: 80 0D 01 02 [14:06:08]Write to MH i2c: E2 08 00 83 08 80 0D 01 02 00 00 00 00 04 [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:08]Read from MH i2c: E2 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 03 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [14:06:08]RAPDU: 90 00 [14:06:08]wFMCommunicate OK [14:06:08]wFMCommunicate request_size=255 [14:06:08]MH_SAM_APDU [14:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5E F7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B ED 02 00 35 04 06 00 F0 [14:06:08]Write to MH i2c: E2 02 01 84 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5E F7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B ED 02 00 35 04 06 00 F0 00 00 2F [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=10 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 02 02 05 0C 2A 4B F0 E0 [14:06:09]Write to MH i2c: E2 0D 00 85 08 80 0D 02 02 05 00 0C 2A 4B F0 E0 00 00 62 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 03 02 [14:06:09]Write to MH i2c: E2 08 00 86 08 80 0D 03 02 00 00 00 00 09 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0B 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 0B 00 86 08 00 78 E3 13 63 43 2B AF 16 90 00 0E [14:06:09]RAPDU: 78 E3 13 63 43 2B AF 16 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_SignData done [14:06:09]FM_MakeSignedData done [14:06:09]CreateOFDProtocolMessage [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 11 00 00 [14:06:09]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [14:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:09]wFMCommunicate OK [14:06:09]CreateOFDProtocolMessage done [14:06:09]OFDSenderStorePacket 191787 [14:06:09]StoreOFDPacket docnum=191787 [14:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 12 07 01 90 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5E F7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B ED 02 00 35 04 06 00 F0 0C 2A 4B F0 E0 78 E3 13 63 43 2B AF 16 [14:06:09]CheckFolder [14:06:09]dirname=/storage/ofd_packets [14:06:09]CheckFolder done [14:06:09]ProducePacketName [14:06:09]name=ofd_packets/00191787 [14:06:09]NVStorageSaveData ofd_packets/00191787 [14:06:09]File name is /storage/ofd_packets/00191787 [14:06:09]Write 301 bytes [14:06:09]NVStorageSaveData done [14:06:09]OFDSenderStorePacket done [14:06:09]KKMCreateOFDPacket done [14:06:09]NVStorageSaveData kkm_last_timestamp [14:06:09]File name is /storage/kkm_last_timestamp [14:06:09]Write 4 bytes [14:06:09]NVStorageSaveData done [14:06:09]ExternCall_PrintAddStr [14:06:09]wPrintStart [14:06:09]Write to MH i2c: 01 00 00 88 08 90 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 07 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 FF 0F A5 [14:06:09]RasterBufferAndPrint [14:06:09]line Счет N : (1)31092 [14:06:09]line ИНН: 02508201610067 [14:06:09]line Контрольно-Кассовый Чек [14:06:09]line ПРОДАЖА [14:06:09]line ТРК (МРК, ГНК) : 21 [14:06:09]line Товар: 2710124130 [14:06:09]line Аи-92-К-5 [14:06:09]line 7.480 * 66.90 [14:06:09]line = 500.41 [14:06:09]line НДС 12% НСП 1% [14:06:09]line > о реализуемом товаре [14:06:09]line ОКРУГЛЕНИЕ: -0.41 [14:06:09]line ИТОГО: 500.00 [14:06:09]line Внесено: 500.00 [14:06:09]line СДАЧА: 0.00 [14:06:09]line НСП 1% : 4.43 [14:06:09]line НДС 12% : 53.14 [14:06:09]line Наличными: 500.00 [14:06:09]line Безнал.: 0.00 [14:06:09]line Место: АЗС № 170 "Партнер Нефть" [14:06:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:06:09]line СНО: Общий режим [14:06:09]line Чек 150 26.10.2024 14:06 [14:06:09]line Смена: 541 ФФД: 1.0 [14:06:09]line ЗНМ: 0300000110 [14:06:09]line РНМ: 0000000000091776 [14:06:09]line Версия ККМ: 001 [14:06:09]line ФМ: 0000000000871754 [14:06:09]line ФД: 191787 [14:06:09]line ФПД: 263935039893728 [14:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T140622&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191787&fm=263935039893728&tin=02508201610067®Number=0000000000091776&sum=50000 [14:06:09]OFD Sender: Processing packet 191787 [packets to send 75, broken 74] [14:06:09]ProducePacketName [14:06:09]name=ofd_packets/00191787 [14:06:09]OFD Sender: To server: pG, [14:06:09]CommunicateWithHost lk.salyk.kg:30040 [14:06:09]ConnectInit lk.salyk.kg [14:06:09]written 0, free lines is 4095 [14:06:09]Connected sock=10 [14:06:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6D 12 07 01 90 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 5E F7 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B ED 02 00 35 04 06 00 F0 0C 2A 4B F0 E0 78 E3 13 63 43 2B AF 16 [14:06:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9D A5 47 00 1D CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2B ED 02 00 F4 03 04 00 29 9C 1C 67 B6 04 01 00 00 2B CC FD 55 2B D5 C7 EB [14:06:09]CommunicateWithHost err = 0 [14:06:09]CheckOFDResponse [14:06:09]1017 (14) - 77093643461234 [14:06:09]1041 (16) - 0000000000871754 [14:06:09]1040 (4) - 191787 [14:06:09]1012 (4) - 26.10.2024 07:37 [14:06:09]1206 (1) - 0 [14:06:09]OFD Sender: Remove packet 191787 [14:06:09]ProducePacketName [14:06:09]name=ofd_packets/00191787 [14:06:09]NVStorageDeleteData [14:06:09]Write to MH i2c: 01 00 00 B3 08 BB [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 07 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 C0 0C 8E [14:06:09]RasterBufferAndPrint [14:06:09]line [14:06:09]line [14:06:09]line [14:06:09]line [14:06:09]line [14:06:09]written 0, free lines is 3273 [14:06:10]MH_Cut [14:06:10]Write to MH i2c: D1 01 00 BA 08 01 94 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 BA 08 00 93 [14:06:10]Write to MH i2c: 01 00 00 BB 08 C3 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]OFD Sender: No OFD packet to send [14:06:10]*** Cut start [14:06:10]*** Partial cut [14:06:10]*** CUTSNS_PIN = 1 [14:06:10]*** CUTSNS_PIN = 0 [14:06:11]*** Brake cut motor [14:06:11]Read from MH i2c: 01 [14:06:11]MH_I2C_Read... [14:06:11]*** Stop cut motor [14:06:11]*** Cut end [14:06:11]Read from MH i2c: 01 07 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: 01 07 00 BB 08 00 00 00 00 00 FF 0F D8 [14:06:11]process_action close_receipt done [14:06:11]requested_data is exist [14:06:11]produce_requested_data [14:06:11]requested_item fm.sn is exist - process it [14:06:11]wFMCommunicate request_size=4 [14:06:11]MH_SAM_APDU [14:06:11]CAPDU: 80 11 00 00 [14:06:11]Write to MH i2c: E2 08 00 BC 08 80 11 00 00 00 00 00 00 3E [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:11]Read from MH i2c: E2 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 17 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 17 00 BC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [14:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:06:11]wFMCommunicate OK [14:06:11]requested_item fd.num is exist - process it [14:06:11]SAM_PROTO_GetFieldsCounters [14:06:11]wFMCommunicate request_size=4 [14:06:11]MH_SAM_APDU [14:06:11]CAPDU: 80 13 00 00 [14:06:11]Write to MH i2c: E2 08 00 BD 08 80 13 00 00 00 00 00 00 41 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:11]Read from MH i2c: E2 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 62 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 62 00 BD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:06:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:11]wFMCommunicate OK [14:06:11]SAM_PROTO_GetFieldsCounters done [14:06:11]requested_item shift.num is exist - process it [14:06:11]requested_item shift.opened is exist - process it [14:06:11]req_shift_opened [14:06:11]FM_GetShiftState [14:06:11]SAM_PROTO_GetShiftState [14:06:11]wFMCommunicate request_size=4 [14:06:11]MH_SAM_APDU [14:06:11]CAPDU: 80 13 01 00 [14:06:11]Write to MH i2c: E2 08 00 BE 08 80 13 01 00 00 00 00 00 43 [14:06:11]Write i2c OK [14:06:11]MH_I2C_Read... [14:06:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:11]Read from MH i2c: E2 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 0E 00 [14:06:11]MH_I2C_Read... [14:06:11]Read from MH i2c: E2 0E 00 BE 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BC [14:06:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:06:11]wFMCommunicate OK [14:06:11]SAM_PROTO_GetShiftState done [14:06:11]FM_GetShiftState done [14:06:11]req_shift_opened done [14:06:11]requested_item shift.open_date is exist - process it [14:06:11]req_shift_open_date [14:06:11]req_shift_open_date done [14:06:11]produce_requested_data done [14:06:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191787,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:06:11]process_action_free close_receipt [14:06:11]json_value_free [14:06:11]json_value_free done [14:06:11]process_json_proto returns [14:06:11]Send response to host [14:06:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191787,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:06:11]free response buf [14:06:11]execute_script done [14:06:11]execute_script returns [14:06:11]free content buf [14:06:11]Sock 8.Close socket [14:06:11]Sock 8.Thread stoped [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:13]accept exits with 9 [14:10:13]New connection [14:10:13]New thread 3066817892 created [14:10:13]Thread 3066961252 joined [14:10:13]Waiting for new connection... [14:10:13] Sock 9.Parse request [14:10:13]Sock 9.Check first char [14:10:13]Sock 9.First char is OK [14:10:13]request: POST /json_proto HTTP/1.0 [14:10:13]Method: POST [14:10:13]URL: /json_proto [14:10:13]Method is POST - this is cgi request [14:10:13]url: /json_proto [14:10:13]query_string will be loaded in cgi processing [14:10:13]execute_cgi json_proto POST (null) [14:10:13]execute_cgi path=json_proto method=POST [14:10:13]POST find Content-Length [14:10:13]Host: 172.17.63.131:8080 [14:10:13]Content-Length: 862 [14:10:13]Content-Type: application/json [14:10:13] [14:10:13]POST finish read [14:10:13]Found Content-Length = 862 [14:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:13]execute_script... [14:10: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)31093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:13]POST & json_proto [14:10:13]process_json_proto [14:10:13]json parsed OK: [14:10:13]protocol is kg_v1.0 [14:10:13]action value=close_receipt [14:10:13]process_action close_receipt [14:10:13]cmd_close_receipt [14:10:13]MH_GetDate [14:10:13]Write to MH i2c: F0 00 00 BF 08 B6 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 09 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: F0 09 00 BF 08 00 54 F8 1C 67 22 05 6E 64 87 [14:10:13]GetLastDocTimeStamp 1729951582 [14:10:13]current date 1729951828 [14:10:13]FM_GetShiftState [14:10:13]SAM_PROTO_GetShiftState [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 13 01 00 [14:10:13]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [14:10:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:10:13]wFMCommunicate OK [14:10:13]SAM_PROTO_GetShiftState done [14:10:13]FM_GetShiftState done [14:10:13]opened in 1729902770 [14:10:13]opened+sec_in_day 1729989170 [14:10:13]quantity*price = 50041 [14:10:13]sum+1 = 50042 [14:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 151 26.10.2024 14:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191788 ФПД: 112864114122235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191788&fm=112864114122235&tin=02508201610067®Number=0000000000091776&sum=50041 [14:10:14]StoreToDocumentArchive [14:10:14]shift 541 fd 191788 [14:10:14]save to /storage/0541/doc_00191788 [14:10:14]save last doc name /storage/0541/doc_00191788 to /storage/kkm_last_doc_name [14:10:14]save OK [14:10:14]Clear old archive folders... [14:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:14]tlvbuf is 017F1A90 [14:10:14]SAM_PROTO_ClearQueue [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 09 00 00 [14:10:14]Write to MH i2c: E2 08 00 CD 08 80 09 00 00 00 00 00 00 47 [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 03 00 CD 08 00 90 00 49 [14:10:14]RAPDU: 90 00 [14:10:14]wFMCommunicate OK [14:10:14]SAM_PROTO_ClearQueue done [14:10:14]KKMCreateOFDPacket [14:10:14]OFDProtocolAddRootSTLVToBuf [14:10:14]FM_MakeSignedData [14:10:14]FM_MakeSignedData [14:10:14]SAM_PROTO_SignData [14:10:14]wFMCommunicate request_size=4 [14:10:14]MH_SAM_APDU [14:10:14]CAPDU: 80 0D 01 02 [14:10:14]Write to MH i2c: E2 08 00 CE 08 80 0D 01 02 00 00 00 00 4F [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=255 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C ED 02 00 35 04 06 00 66 [14:10:15]Write to MH i2c: E2 02 01 CF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C ED 02 00 35 04 06 00 66 00 00 3B [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=10 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 02 02 05 A6 39 6E 1D FB [14:10:15]Write to MH i2c: E2 0D 00 D0 08 80 0D 02 02 05 00 A6 39 6E 1D FB 00 00 C1 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [14:10:15]RAPDU: 90 00 [14:10:15]wFMCommunicate OK [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 0D 03 02 [14:10:15]Write to MH i2c: E2 08 00 D1 08 80 0D 03 02 00 00 00 00 54 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 0B 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 0B 00 D1 08 00 D6 EC EC 9B D0 10 0D AD 90 00 38 [14:10:15]RAPDU: D6 EC EC 9B D0 10 0D AD 90 00 [14:10:15]wFMCommunicate OK [14:10:15]SAM_PROTO_SignData done [14:10:15]FM_MakeSignedData done [14:10:15]CreateOFDProtocolMessage [14:10:15]wFMCommunicate request_size=4 [14:10:15]MH_SAM_APDU [14:10:15]CAPDU: 80 11 00 00 [14:10:15]Write to MH i2c: E2 08 00 D2 08 80 11 00 00 00 00 00 00 54 [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:15]Read from MH i2c: E2 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 17 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: E2 17 00 D2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [14:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:10:15]wFMCommunicate OK [14:10:15]CreateOFDProtocolMessage done [14:10:15]OFDSenderStorePacket 191788 [14:10:15]StoreOFDPacket docnum=191788 [14:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 29 07 01 68 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C ED 02 00 35 04 06 00 66 A6 39 6E 1D FB D6 EC EC 9B D0 10 0D AD [14:10:15]CheckFolder [14:10:15]dirname=/storage/ofd_packets [14:10:15]CheckFolder done [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00191788 [14:10:15]NVStorageSaveData ofd_packets/00191788 [14:10:15]File name is /storage/ofd_packets/00191788 [14:10:15]Write 301 bytes [14:10:15]NVStorageSaveData done [14:10:15]OFDSenderStorePacket done [14:10:15]KKMCreateOFDPacket done [14:10:15]NVStorageSaveData kkm_last_timestamp [14:10:15]File name is /storage/kkm_last_timestamp [14:10:15]Write 4 bytes [14:10:15]NVStorageSaveData done [14:10:15]ExternCall_PrintAddStr [14:10:15]wPrintStart [14:10:15]Write to MH i2c: 01 00 00 D3 08 DB [14:10:15]Write i2c OK [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 [14:10:15]MH_I2C_Read... [14:10:15]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 FF 0F F0 [14:10:15]RasterBufferAndPrint [14:10:15]line Счет N : (1)31093 [14:10:15]line ИНН: 02508201610067 [14:10:15]line Контрольно-Кассовый Чек [14:10:15]line ПРОДАЖА [14:10:15]line ТРК (МРК, ГНК) : 21 [14:10:15]line Товар: 2710124130 [14:10:15]line Аи-92-К-5 [14:10:15]line 7.480 * 66.90 [14:10:15]line = 500.41 [14:10:15]line НДС 12% НСП 1% [14:10:15]line > о реализуемом товаре [14:10:15]line ИТОГО: 500.41 [14:10:15]line НСП 1% : 4.43 [14:10:15]line НДС 12% : 53.14 [14:10:15]line Наличными: 0.00 [14:10:15]line Безнал.: 500.41 [14:10:15]line Место: АЗС № 170 "Партнер Нефть" [14:10:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:10:15]line СНО: Общий режим [14:10:15]line Чек 151 26.10.2024 14:10 [14:10:15]line Смена: 541 ФФД: 1.0 [14:10:15]line ЗНМ: 0300000110 [14:10:15]line РНМ: 0000000000091776 [14:10:15]line Версия ККМ: 001 [14:10:15]line Платежная система: Кыргызкоммерцбанк [14:10:15]line ФМ: 0000000000871754 [14:10:15]line ФД: 191788 [14:10:15]line ФПД: 112864114122235 [14:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141028&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191788&fm=112864114122235&tin=02508201610067®Number=0000000000091776&sum=50041 [14:10:15]OFD Sender: Processing packet 191788 [packets to send 75, broken 74] [14:10:15]ProducePacketName [14:10:15]name=ofd_packets/00191788 [14:10:15]OFD Sender: To server: pG, [14:10:15]CommunicateWithHost lk.salyk.kg:30040 [14:10:15]ConnectInit lk.salyk.kg [14:10:15]written 0, free lines is 4095 [14:10:15]Connected sock=10 [14:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 29 07 01 68 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 54 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C ED 02 00 35 04 06 00 66 A6 39 6E 1D FB D6 EC EC 9B D0 10 0D AD [14:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D EF 47 00 74 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2C ED 02 00 F4 03 04 00 1F 9D 1C 67 B6 04 01 00 00 9A CD 1D 69 07 81 29 52 [14:10:16]CommunicateWithHost err = 0 [14:10:16]CheckOFDResponse [14:10:16]1017 (14) - 77093643461234 [14:10:16]1041 (16) - 0000000000871754 [14:10:16]1040 (4) - 191788 [14:10:16]1012 (4) - 26.10.2024 07:41 [14:10:16]1206 (1) - 0 [14:10:16]OFD Sender: Remove packet 191788 [14:10:16]ProducePacketName [14:10:16]name=ofd_packets/00191788 [14:10:16]NVStorageDeleteData [14:10:16]Write to MH i2c: 01 00 00 FD 08 05 [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 07 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: 01 07 00 FD 08 00 00 00 00 00 CC 0C E4 [14:10:16]RasterBufferAndPrint [14:10:16]line [14:10:16]line [14:10:16]line [14:10:16]line [14:10:16]line [14:10:16]written 0, free lines is 3283 [14:10:16]MH_Cut [14:10:16]Write to MH i2c: D1 01 00 04 09 01 DF [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: D1 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: D1 01 00 [14:10:16]MH_I2C_Read... [14:10:16]Read from MH i2c: D1 01 00 04 09 00 DE [14:10:16]Write to MH i2c: 01 00 00 05 09 0E [14:10:16]Write i2c OK [14:10:16]MH_I2C_Read... [14:10:16]OFD Sender: No OFD packet to send [14:10:17]*** Cut start [14:10:17]*** Partial cut [14:10:17]*** CUTSNS_PIN = 1 [14:10:17]*** CUTSNS_PIN = 0 [14:10:17]*** Brake cut motor [14:10:17]Read from MH i2c: 01 [14:10:17]MH_I2C_Read... [14:10:17]*** Stop cut motor [14:10:17]*** Cut end [14:10:17]Read from MH i2c: 01 07 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: 01 07 00 05 09 00 00 00 00 00 FF 0F 23 [14:10:17]process_action close_receipt done [14:10:17]requested_data is exist [14:10:17]produce_requested_data [14:10:17]requested_item fm.sn is exist - process it [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 11 00 00 [14:10:17]Write to MH i2c: E2 08 00 06 09 80 11 00 00 00 00 00 00 89 [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 17 00 06 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [14:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:10:17]wFMCommunicate OK [14:10:17]requested_item fd.num is exist - process it [14:10:17]SAM_PROTO_GetFieldsCounters [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 00 00 [14:10:17]Write to MH i2c: E2 08 00 07 09 80 13 00 00 00 00 00 00 8C [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 62 00 07 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [14:10:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_GetFieldsCounters done [14:10:17]requested_item shift.num is exist - process it [14:10:17]requested_item shift.opened is exist - process it [14:10:17]req_shift_opened [14:10:17]FM_GetShiftState [14:10:17]SAM_PROTO_GetShiftState [14:10:17]wFMCommunicate request_size=4 [14:10:17]MH_SAM_APDU [14:10:17]CAPDU: 80 13 01 00 [14:10:17]Write to MH i2c: E2 08 00 08 09 80 13 01 00 00 00 00 00 8E [14:10:17]Write i2c OK [14:10:17]MH_I2C_Read... [14:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:17]Read from MH i2c: E2 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 [14:10:17]MH_I2C_Read... [14:10:17]Read from MH i2c: E2 0E 00 08 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 07 [14:10:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:10:17]wFMCommunicate OK [14:10:17]SAM_PROTO_GetShiftState done [14:10:17]FM_GetShiftState done [14:10:17]req_shift_opened done [14:10:17]requested_item shift.open_date is exist - process it [14:10:17]req_shift_open_date [14:10:17]req_shift_open_date done [14:10:17]produce_requested_data done [14:10:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191788,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:10:17]process_action_free close_receipt [14:10:17]json_value_free [14:10:17]json_value_free done [14:10:17]process_json_proto returns [14:10:17]Send response to host [14:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191788,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:10:17]free response buf [14:10:17]execute_script done [14:10:17]execute_script returns [14:10:17]free content buf [14:10:17]Sock 9.Close socket [14:10:17]Sock 9.Thread stoped [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:34]accept exits with 8 [14:10:34]New connection [14:10:34]New thread 3066961252 created [14:10:34]Thread 3066817892 joined [14:10:34]Waiting for new connection... [14:10:34] Sock 8.Parse request [14:10:34]Sock 8.Check first char [14:10:34]Sock 8.First char is OK [14:10:34]request: POST /json_proto HTTP/1.0 [14:10:34]Method: POST [14:10:34]URL: /json_proto [14:10:34]Method is POST - this is cgi request [14:10:34]url: /json_proto [14:10:34]query_string will be loaded in cgi processing [14:10:34]execute_cgi json_proto POST (null) [14:10:34]execute_cgi path=json_proto method=POST [14:10:34]POST find Content-Length [14:10:34]Host: 172.17.63.131:8080 [14:10:34]Content-Length: 681 [14:10:34]Content-Type: application/json [14:10:34] [14:10:34]POST finish read [14:10:34]Found Content-Length = 681 [14:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:34]execute_script... [14:10: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)31094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:34]POST & json_proto [14:10:34]process_json_proto [14:10:34]json parsed OK: [14:10:34]protocol is kg_v1.0 [14:10:34]action value=close_receipt [14:10:34]process_action close_receipt [14:10:34]cmd_close_receipt [14:10:34]MH_GetDate [14:10:34]Write to MH i2c: F0 00 00 09 09 01 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 09 00 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 09 00 09 09 00 69 F8 1C 67 22 05 6E 64 E7 [14:10:34]GetLastDocTimeStamp 1729951828 [14:10:34]current date 1729951849 [14:10:34]FM_GetShiftState [14:10:34]SAM_PROTO_GetShiftState [14:10:34]wFMCommunicate request_size=4 [14:10:34]MH_SAM_APDU [14:10:34]CAPDU: 80 13 01 00 [14:10:34]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 0E 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 09 [14:10:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:10:35]wFMCommunicate OK [14:10:35]SAM_PROTO_GetShiftState done [14:10:35]FM_GetShiftState done [14:10:35]opened in 1729902770 [14:10:35]opened+sec_in_day 1729989170 [14:10:35]quantity*price = 100015 [14:10:35]sum+1 = 100017 [14:10:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 152 26.10.2024 14:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191789 ФПД: 50565317458913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191789&fm=50565317458913&tin=02508201610067®Number=0000000000091776&sum=100000 [14:10:36]StoreToDocumentArchive [14:10:36]shift 541 fd 191789 [14:10:36]save to /storage/0541/doc_00191789 [14:10:36]save last doc name /storage/0541/doc_00191789 to /storage/kkm_last_doc_name [14:10:36]save OK [14:10:36]Clear old archive folders... [14:10:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:36]tlvbuf is 01B3AE00 [14:10:36]SAM_PROTO_ClearQueue [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 09 00 00 [14:10:36]Write to MH i2c: E2 08 00 17 09 80 09 00 00 00 00 00 00 92 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 17 09 00 90 00 94 [14:10:36]RAPDU: 90 00 [14:10:36]wFMCommunicate OK [14:10:36]SAM_PROTO_ClearQueue done [14:10:36]KKMCreateOFDPacket [14:10:36]OFDProtocolAddRootSTLVToBuf [14:10:36]FM_MakeSignedData [14:10:36]FM_MakeSignedData [14:10:36]SAM_PROTO_SignData [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 0D 01 02 [14:10:36]Write to MH i2c: E2 08 00 18 09 80 0D 01 02 00 00 00 00 9A [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 18 09 00 90 00 95 [14:10:36]RAPDU: 90 00 [14:10:36]wFMCommunicate OK [14:10:36]wFMCommunicate request_size=255 [14:10:36]MH_SAM_APDU [14:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 69 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D ED 02 00 35 04 06 00 2D [14:10:36]Write to MH i2c: E2 02 01 19 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 69 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D ED 02 00 35 04 06 00 2D 00 00 0C [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [14:10:36]RAPDU: 90 00 [14:10:36]wFMCommunicate OK [14:10:36]wFMCommunicate request_size=10 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 0D 02 02 05 FD 27 C8 FB E1 [14:10:36]Write to MH i2c: E2 0D 00 1A 09 80 0D 02 02 05 00 FD 27 C8 FB E1 00 00 6F [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [14:10:36]RAPDU: 90 00 [14:10:36]wFMCommunicate OK [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 0D 03 02 [14:10:36]Write to MH i2c: E2 08 00 1B 09 80 0D 03 02 00 00 00 00 9F [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0B 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 0B 00 1B 09 00 19 96 27 D0 ED E2 D1 00 90 00 E6 [14:10:36]RAPDU: 19 96 27 D0 ED E2 D1 00 90 00 [14:10:36]wFMCommunicate OK [14:10:36]SAM_PROTO_SignData done [14:10:36]FM_MakeSignedData done [14:10:36]CreateOFDProtocolMessage [14:10:36]wFMCommunicate request_size=4 [14:10:36]MH_SAM_APDU [14:10:36]CAPDU: 80 11 00 00 [14:10:36]Write to MH i2c: E2 08 00 1C 09 80 11 00 00 00 00 00 00 9F [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:36]Read from MH i2c: E2 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 17 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: E2 17 00 1C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [14:10:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:10:36]wFMCommunicate OK [14:10:36]CreateOFDProtocolMessage done [14:10:36]OFDSenderStorePacket 191789 [14:10:36]StoreOFDPacket docnum=191789 [14:10:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 20 07 01 4F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 69 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D ED 02 00 35 04 06 00 2D FD 27 C8 FB E1 19 96 27 D0 ED E2 D1 00 [14:10:36]CheckFolder [14:10:36]dirname=/storage/ofd_packets [14:10:36]CheckFolder done [14:10:36]ProducePacketName [14:10:36]name=ofd_packets/00191789 [14:10:36]NVStorageSaveData ofd_packets/00191789 [14:10:36]File name is /storage/ofd_packets/00191789 [14:10:36]Write 301 bytes [14:10:36]NVStorageSaveData done [14:10:36]OFDSenderStorePacket done [14:10:36]KKMCreateOFDPacket done [14:10:36]NVStorageSaveData kkm_last_timestamp [14:10:36]File name is /storage/kkm_last_timestamp [14:10:36]Write 4 bytes [14:10:36]NVStorageSaveData done [14:10:36]ExternCall_PrintAddStr [14:10:36]wPrintStart [14:10:36]Write to MH i2c: 01 00 00 1D 09 26 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 07 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 07 00 1D 09 00 00 00 00 00 FF 0F 3B [14:10:36]RasterBufferAndPrint [14:10:36]line Счет N : (1)31094 [14:10:36]line ИНН: 02508201610067 [14:10:36]line Контрольно-Кассовый Чек [14:10:36]line ПРОДАЖА [14:10:36]line ТРК (МРК, ГНК) : 12 [14:10:36]line Товар: 2710124130 [14:10:36]line Аи-92-К-5 [14:10:36]line 14.950 * 66.90 [14:10:36]line = 1000.16 [14:10:36]line НДС 12% НСП 1% [14:10:36]line > о реализуемом товаре [14:10:36]line ОКРУГЛЕНИЕ: -0.16 [14:10:36]line ИТОГО: 1000.00 [14:10:36]line Внесено: 1000.00 [14:10:36]line СДАЧА: 0.00 [14:10:36]line НСП 1% : 8.85 [14:10:36]line НДС 12% : 106.21 [14:10:36]line Наличными: 1000.00 [14:10:36]line Безнал.: 0.00 [14:10:36]line Место: АЗС № 170 "Партнер Нефть" [14:10:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:10:36]line СНО: Общий режим [14:10:36]line Чек 152 26.10.2024 14:10 [14:10:36]line Смена: 541 ФФД: 1.0 [14:10:36]line ЗНМ: 0300000110 [14:10:36]line РНМ: 0000000000091776 [14:10:36]line Версия ККМ: 001 [14:10:36]line ФМ: 0000000000871754 [14:10:36]line ФД: 191789 [14:10:36]line ФПД: 50565317458913 [14:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191789&fm=50565317458913&tin=02508201610067®Number=0000000000091776&sum=100000 [14:10:37]OFD Sender: Processing packet 191789 [packets to send 75, broken 74] [14:10:37]ProducePacketName [14:10:37]name=ofd_packets/00191789 [14:10:37]OFD Sender: To server: pG, [14:10:37]CommunicateWithHost lk.salyk.kg:30040 [14:10:37]ConnectInit lk.salyk.kg [14:10:37]written 0, free lines is 4095 [14:10:37]Connected sock=10 [14:10:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D4 20 07 01 4F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 69 F8 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D ED 02 00 35 04 06 00 2D FD 27 C8 FB E1 19 96 27 D0 ED E2 D1 00 [14:10:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 2C 47 00 CB A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2D ED 02 00 F4 03 04 00 34 9D 1C 67 B6 04 01 00 00 51 21 0E 7E 75 03 A8 D7 [14:10:37]CommunicateWithHost err = 0 [14:10:37]CheckOFDResponse [14:10:37]1017 (14) - 77093643461234 [14:10:37]1041 (16) - 0000000000871754 [14:10:37]1040 (4) - 191789 [14:10:37]1012 (4) - 26.10.2024 07:41 [14:10:37]1206 (1) - 0 [14:10:37]OFD Sender: Remove packet 191789 [14:10:37]ProducePacketName [14:10:37]name=ofd_packets/00191789 [14:10:37]NVStorageDeleteData [14:10:37]Write to MH i2c: 01 00 00 48 09 51 [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: 01 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: 01 07 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: 01 07 00 48 09 00 00 00 00 00 AF 0C 13 [14:10:37]RasterBufferAndPrint [14:10:37]line [14:10:37]line [14:10:37]line [14:10:37]line [14:10:37]line [14:10:37]written 0, free lines is 3253 [14:10:37]MH_Cut [14:10:37]Write to MH i2c: D1 01 00 4F 09 01 2A [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: D1 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: D1 01 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: D1 01 00 4F 09 00 29 [14:10:37]Write to MH i2c: 01 00 00 50 09 59 [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]OFD Sender: No OFD packet to send [14:10:38]*** Cut start [14:10:38]*** Partial cut [14:10:38]*** CUTSNS_PIN = 1 [14:10:38]*** CUTSNS_PIN = 0 [14:10:38]*** Brake cut motor [14:10:38]Read from MH i2c: 01 [14:10:38]MH_I2C_Read... [14:10:38]*** Stop cut motor [14:10:38]*** Cut end [14:10:38]Read from MH i2c: 01 07 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 50 09 00 00 00 00 00 FF 0F 6E [14:10:38]process_action close_receipt done [14:10:38]requested_data is exist [14:10:38]produce_requested_data [14:10:38]requested_item fm.sn is exist - process it [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 11 00 00 [14:10:38]Write to MH i2c: E2 08 00 51 09 80 11 00 00 00 00 00 00 D4 [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 17 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 17 00 51 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [14:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:10:39]wFMCommunicate OK [14:10:39]requested_item fd.num is exist - process it [14:10:39]SAM_PROTO_GetFieldsCounters [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 13 00 00 [14:10:39]Write to MH i2c: E2 08 00 52 09 80 13 00 00 00 00 00 00 D7 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 62 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 62 00 52 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [14:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:39]wFMCommunicate OK [14:10:39]SAM_PROTO_GetFieldsCounters done [14:10:39]requested_item shift.num is exist - process it [14:10:39]requested_item shift.opened is exist - process it [14:10:39]req_shift_opened [14:10:39]FM_GetShiftState [14:10:39]SAM_PROTO_GetShiftState [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 13 01 00 [14:10:39]Write to MH i2c: E2 08 00 53 09 80 13 01 00 00 00 00 00 D9 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0E 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0E 00 53 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 52 [14:10:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:10:39]wFMCommunicate OK [14:10:39]SAM_PROTO_GetShiftState done [14:10:39]FM_GetShiftState done [14:10:39]req_shift_opened done [14:10:39]requested_item shift.open_date is exist - process it [14:10:39]req_shift_open_date [14:10:39]req_shift_open_date done [14:10:39]produce_requested_data done [14:10:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191789,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:10:39]process_action_free close_receipt [14:10:39]json_value_free [14:10:39]json_value_free done [14:10:39]process_json_proto returns [14:10:39]Send response to host [14:10:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191789,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:10:39]free response buf [14:10:39]execute_script done [14:10:39]execute_script returns [14:10:39]free content buf [14:10:39]Sock 8.Close socket [14:10:39]Sock 8.Thread stoped [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:11]accept exits with 9 [14:14:11]New connection [14:14:11]New thread 3066817892 created [14:14:11]Thread 3066961252 joined [14:14:11]Waiting for new connection... [14:14:11] Sock 9.Parse request [14:14:11]Sock 9.Check first char [14:14:11]Sock 9.First char is OK [14:14:11]request: POST /json_proto HTTP/1.0 [14:14:11]Method: POST [14:14:11]URL: /json_proto [14:14:11]Method is POST - this is cgi request [14:14:11]url: /json_proto [14:14:11]query_string will be loaded in cgi processing [14:14:11]execute_cgi json_proto POST (null) [14:14:11]execute_cgi path=json_proto method=POST [14:14:11]POST find Content-Length [14:14:11]Host: 172.17.63.131:8080 [14:14:11]Content-Length: 676 [14:14:11]Content-Type: application/json [14:14:11] [14:14:11]POST finish read [14:14:11]Found Content-Length = 676 [14:14:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.420, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:11]execute_script... [14:14: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)31095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.420, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:11]POST & json_proto [14:14:11]process_json_proto [14:14:11]json parsed OK: [14:14:11]protocol is kg_v1.0 [14:14:11]action value=close_receipt [14:14:11]process_action close_receipt [14:14:11]cmd_close_receipt [14:14:11]MH_GetDate [14:14:11]Write to MH i2c: F0 00 00 54 09 4C [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 09 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 09 00 54 09 00 42 F9 1C 67 22 05 6E 64 0C [14:14:11]GetLastDocTimeStamp 1729951849 [14:14:11]current date 1729952066 [14:14:11]FM_GetShiftState [14:14:11]SAM_PROTO_GetShiftState [14:14:11]wFMCommunicate request_size=4 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 13 01 00 [14:14:11]Write to MH i2c: E2 08 00 55 09 80 13 01 00 00 00 00 00 DB [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0E 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0E 00 55 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 54 [14:14:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:14:11]wFMCommunicate OK [14:14:11]SAM_PROTO_GetShiftState done [14:14:11]FM_GetShiftState done [14:14:11]opened in 1729902770 [14:14:11]opened+sec_in_day 1729989170 [14:14:11]quantity*price = 63019 [14:14:11]sum+1 = 63021 [14:14:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 630.00 Внесено: 700.00 СДАЧА: 70.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 153 26.10.2024 14:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191790 ФПД: 165371700319760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191790&fm=165371700319760&tin=02508201610067®Number=0000000000091776&sum=63000 [14:14:12]StoreToDocumentArchive [14:14:12]shift 541 fd 191790 [14:14:12]save to /storage/0541/doc_00191790 [14:14:12]save last doc name /storage/0541/doc_00191790 to /storage/kkm_last_doc_name [14:14:12]save OK [14:14:12]Clear old archive folders... [14:14:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:12]tlvbuf is 01A76940 [14:14:12]SAM_PROTO_ClearQueue [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 09 00 00 [14:14:12]Write to MH i2c: E2 08 00 62 09 80 09 00 00 00 00 00 00 DD [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 62 09 00 90 00 DF [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]SAM_PROTO_ClearQueue done [14:14:12]KKMCreateOFDPacket [14:14:12]OFDProtocolAddRootSTLVToBuf [14:14:12]FM_MakeSignedData [14:14:12]FM_MakeSignedData [14:14:12]SAM_PROTO_SignData [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 01 02 [14:14:12]Write to MH i2c: E2 08 00 63 09 80 0D 01 02 00 00 00 00 E5 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=255 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 42 F9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E ED 02 00 35 04 06 00 96 [14:14:12]Write to MH i2c: E2 02 01 64 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 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 42 F9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E ED 02 00 35 04 06 00 96 00 00 F5 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=10 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 02 02 05 67 99 74 16 10 [14:14:12]Write to MH i2c: E2 0D 00 65 09 80 0D 02 02 05 00 67 99 74 16 10 00 00 8C [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 03 02 [14:14:12]Write to MH i2c: E2 08 00 66 09 80 0D 03 02 00 00 00 00 EA [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 0B 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 0B 00 66 09 00 32 A5 87 B4 BC 51 E8 EB 90 00 DD [14:14:12]RAPDU: 32 A5 87 B4 BC 51 E8 EB 90 00 [14:14:12]wFMCommunicate OK [14:14:12]SAM_PROTO_SignData done [14:14:12]FM_MakeSignedData done [14:14:12]CreateOFDProtocolMessage [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 11 00 00 [14:14:12]Write to MH i2c: E2 08 00 67 09 80 11 00 00 00 00 00 00 EA [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 17 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 17 00 67 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [14:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:14:12]wFMCommunicate OK [14:14:12]CreateOFDProtocolMessage done [14:14:12]OFDSenderStorePacket 191790 [14:14:12]StoreOFDPacket docnum=191790 [14:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 A5 07 01 38 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 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 42 F9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E ED 02 00 35 04 06 00 96 67 99 74 16 10 32 A5 87 B4 BC 51 E8 EB [14:14:12]CheckFolder [14:14:12]dirname=/storage/ofd_packets [14:14:12]CheckFolder done [14:14:12]ProducePacketName [14:14:12]name=ofd_packets/00191790 [14:14:12]NVStorageSaveData ofd_packets/00191790 [14:14:12]File name is /storage/ofd_packets/00191790 [14:14:12]Write 301 bytes [14:14:12]NVStorageSaveData done [14:14:12]OFDSenderStorePacket done [14:14:12]KKMCreateOFDPacket done [14:14:12]NVStorageSaveData kkm_last_timestamp [14:14:12]File name is /storage/kkm_last_timestamp [14:14:12]Write 4 bytes [14:14:12]NVStorageSaveData done [14:14:12]ExternCall_PrintAddStr [14:14:12]wPrintStart [14:14:12]Write to MH i2c: 01 00 00 68 09 71 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 68 09 00 00 00 00 00 FF 0F 86 [14:14:12]RasterBufferAndPrint [14:14:12]line Счет N : (1)31095 [14:14:12]line ИНН: 02508201610067 [14:14:12]line Контрольно-Кассовый Чек [14:14:12]line ПРОДАЖА [14:14:12]line ТРК (МРК, ГНК) : 21 [14:14:12]line Товар: 2710124130 [14:14:12]line Аи-92-К-5 [14:14:12]line 9.420 * 66.90 [14:14:12]line = 630.20 [14:14:12]line НДС 12% НСП 1% [14:14:12]line > о реализуемом товаре [14:14:12]line ОКРУГЛЕНИЕ: -0.20 [14:14:12]line ИТОГО: 630.00 [14:14:12]line Внесено: 700.00 [14:14:12]line СДАЧА: 70.00 [14:14:12]line НСП 1% : 5.58 [14:14:12]line НДС 12% : 66.92 [14:14:12]line Наличными: 630.00 [14:14:12]line Безнал.: 0.00 [14:14:12]line Место: АЗС № 170 "Партнер Нефть" [14:14:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:14:12]line СНО: Общий режим [14:14:12]line Чек 153 26.10.2024 14:14 [14:14:12]line Смена: 541 ФФД: 1.0 [14:14:12]line ЗНМ: 0300000110 [14:14:12]line РНМ: 0000000000091776 [14:14:12]line Версия ККМ: 001 [14:14:12]line ФМ: 0000000000871754 [14:14:12]line ФД: 191790 [14:14:12]line ФПД: 165371700319760 [14:14:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191790&fm=165371700319760&tin=02508201610067®Number=0000000000091776&sum=63000 [14:14:13]written 0, free lines is 4095 [14:14:13]OFD Sender: Processing packet 191790 [packets to send 75, broken 74] [14:14:13]ProducePacketName [14:14:13]name=ofd_packets/00191790 [14:14:13]OFD Sender: To server: pG, [14:14:13]CommunicateWithHost lk.salyk.kg:30040 [14:14:13]ConnectInit lk.salyk.kg [14:14:13]int [14:14:13]Write to MH i2c: 01 00 00 7A 09 83 [14:14:13]*** FLAG_PRN_PAP2 set [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: DD [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: DD [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: DD 01 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: DD 01 00 [14:14:13]answer for other command [DD] [14:14:13]MH Int Process stopped [14:14:13]Read from MH i2c: DD 01 00 7A 09 05 65 [14:14:13]answer with wrong packet_num 097A - expected 097B [14:14:13]process_action_free close_receipt [14:14:13]json_value_free [14:14:13]json_value_free done [14:14:13]process_json_proto returns [14:14:13]Send response to host [14:14:13]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [14:14:13]free response buf [14:14:13]execute_script done [14:14:13]execute_script returns [14:14:13]free content buf [14:14:13]Sock 9.Close socket [14:14:13]Sock 9.Thread stoped [14:14:13]Connected sock=10 [14:14:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 A5 07 01 38 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 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 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 42 F9 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2E ED 02 00 35 04 06 00 96 67 99 74 16 10 32 A5 87 B4 BC 51 E8 EB [14:14:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E2 97 47 00 8A 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 31 37 35 34 10 04 04 00 2E ED 02 00 F4 03 04 00 0C 9E 1C 67 B6 04 01 00 00 17 BE 4E 37 7D F4 8C C2 [14:14:13]CommunicateWithHost err = 0 [14:14:13]CheckOFDResponse [14:14:13]1017 (14) - 77093643461234 [14:14:13]1041 (16) - 0000000000871754 [14:14:13]1040 (4) - 191790 [14:14:13]1012 (4) - 26.10.2024 07:45 [14:14:13]1206 (1) - 0 [14:14:13]OFD Sender: Remove packet 191790 [14:14:13]ProducePacketName [14:14:13]name=ofd_packets/00191790 [14:14:13]NVStorageDeleteData [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:37]*** FLAG_PRN_PAP1 set [14:18:39]OFD Sender: No OFD packet to send [14:18:43]*** FLAG_PRN_PAP1 reset [14:18:43]*** FLAG_PRN_PAP2 reset [14:18:44]OFD Sender: No OFD packet to send [14:18:45]*** FLAG_PRN_PAP1 set [14:18:45]*** FLAG_PRN_PAP1 reset [14:18:45]*** FLAG_PRN_PAP1 set [14:18:45]*** FLAG_PRN_PAP2 set [14:18:45]*** FLAG_PRN_PAP2 reset [14:18:45]*** FLAG_PRN_PAP1 reset [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:00]accept exits with 8 [14:19:00]New connection [14:19:00]New thread 3066961252 created [14:19:00]Thread 3066817892 joined [14:19:00]Waiting for new connection... [14:19:00] Sock 8.Parse request [14:19:00]Sock 8.Check first char [14:19:00]Sock 8.First char is OK [14:19:00]request: POST /json_proto HTTP/1.0 [14:19:00]Method: POST [14:19:00]URL: /json_proto [14:19:00]Method is POST - this is cgi request [14:19:00]url: /json_proto [14:19:00]query_string will be loaded in cgi processing [14:19:00]execute_cgi json_proto POST (null) [14:19:00]execute_cgi path=json_proto method=POST [14:19:00]POST find Content-Length [14:19:00]Host: 172.17.63.131:8080 [14:19:00]Content-Length: 215 [14:19:00]Content-Type: application/json [14:19:00] [14:19:00]POST finish read [14:19:00]Found Content-Length = 215 [14:19:00]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:19:00]execute_script... [14:19:00]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:19:00]POST & json_proto [14:19:00]process_json_proto [14:19:00]json parsed OK: [14:19:00]protocol is kg_v1.0 [14:19:00]action value=get_value [14:19:00]process_action get_value [14:19:00]cmd_get_value [14:19:00]process_action get_value done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item kkm.sn is exist - process it [14:19:00]requested_item kkm.ver is exist - process it [14:19:00]requested_item fm.sn is exist - process it [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 11 00 00 [14:19:00]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [14:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:19:00]wFMCommunicate OK [14:19:00]requested_item fd.num is exist - process it [14:19:00]SAM_PROTO_GetFieldsCounters [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 00 00 [14:19:00]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:19:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetFieldsCounters done [14:19:00]requested_item shift.num is exist - process it [14:19:00]requested_item shift.opened is exist - process it [14:19:00]req_shift_opened [14:19:00]FM_GetShiftState [14:19:00]SAM_PROTO_GetShiftState [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 01 00 [14:19:00]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:00]Read from MH i2c: E2 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7D [14:19:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:19:00]wFMCommunicate OK [14:19:00]SAM_PROTO_GetShiftState done [14:19:00]FM_GetShiftState done [14:19:00]req_shift_opened done [14:19:00]requested_item shift.open_date is exist - process it [14:19:00]req_shift_open_date [14:19:00]req_shift_open_date done [14:19:00]produce_requested_data done [14:19:00]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191790,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:19:00]process_action_free get_value [14:19:00]json_value_free [14:19:00]json_value_free done [14:19:00]process_json_proto returns [14:19:00]Send response to host [14:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191790,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:19:00]free response buf [14:19:00]execute_script done [14:19:00]execute_script returns [14:19:00]free content buf [14:19:00]Sock 8.Close socket [14:19:00]Sock 8.Thread stoped [14:19:00]accept exits with 6 [14:19:00]New connection [14:19:00]New thread 3066817892 created [14:19:00]Thread 3066961252 joined [14:19:00]Waiting for new connection... [14:19:00] Sock 6.Parse request [14:19:00]Sock 6.Check first char [14:19:00]Sock 6.First char is OK [14:19:00]request: POST /json_proto HTTP/1.0 [14:19:00]Method: POST [14:19:00]URL: /json_proto [14:19:00]Method is POST - this is cgi request [14:19:00]url: /json_proto [14:19:00]query_string will be loaded in cgi processing [14:19:00]execute_cgi json_proto POST (null) [14:19:00]execute_cgi path=json_proto method=POST [14:19:00]POST find Content-Length [14:19:00]Host: 172.17.63.131:8080 [14:19:00]Content-Length: 331 [14:19:00]Content-Type: application/json [14:19:00] [14:19:00]POST finish read [14:19:00]Found Content-Length = 331 [14:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:19:00]execute_script... [14:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:19:00]POST & json_proto [14:19:00]process_json_proto [14:19:00]json parsed OK: [14:19:00]protocol is kg_v1.0 [14:19:00]action value=get_value [14:19:00]process_action get_value [14:19:00]cmd_get_value [14:19:00]process_action get_value done [14:19:00]requested_data is exist [14:19:00]produce_requested_data [14:19:00]requested_item fm.sale.total is exist - process it [14:19:00]SAM_PROTO_GetFMData [14:19:00]wFMCommunicate request_size=4 [14:19:00]MH_SAM_APDU [14:19:00]CAPDU: 80 13 03 00 [14:19:00]Write to MH i2c: E2 08 00 7F 09 80 13 03 00 00 00 00 00 07 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 7F 09 00 C1 04 85 04 BD 04 6E 04 04 00 F4 E8 02 00 69 04 A3 00 6F 04 04 00 EA E8 02 00 B1 04 05 00 93 46 F8 B3 03 70 04 05 00 08 44 E8 86 03 72 04 04 00 8B 02 10 2D 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 4A 28 B5 64 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 85 41 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 65 [14:19:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 F4 E8 02 00 69 04 A3 00 6F 04 04 00 EA E8 02 00 B1 04 05 00 93 46 F8 B3 03 70 04 05 00 08 44 E8 86 03 72 04 04 00 8B 02 10 2D 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 4A 28 B5 64 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 85 41 64 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [14:19:01]wFMCommunicate OK [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 17 00 00 [14:19:01]Write to MH i2c: E2 08 00 80 09 80 17 00 00 00 00 00 00 09 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 80 09 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1A [14:19:01]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:19:01]wFMCommunicate OK [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 17 00 00 [14:19:01]Write to MH i2c: E2 08 00 81 09 80 17 00 00 00 00 00 00 0A [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 FD 00 81 09 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AA [14:19:01]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:19:01]wFMCommunicate OK [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 17 00 00 [14:19:01]Write to MH i2c: E2 08 00 82 09 80 17 00 00 00 00 00 00 0B [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 FD 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 FD 00 82 09 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 90 [14:19:02]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:19:02]wFMCommunicate OK [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 17 00 00 [14:19:02]Write to MH i2c: E2 08 00 83 09 80 17 00 00 00 00 00 00 0C [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 DE 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 DE 00 83 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB [14:19:02]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:02]wFMCommunicate OK [14:19:02]SAM_PROTO_GetFMData done [14:19:02]requested_item fm.sale_refund.total is exist - process it [14:19:02]requested_item fm.buy.total is exist - process it [14:19:02]requested_item shift.sale.total is exist - process it [14:19:02]SAM_PROTO_GetShiftData [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 13 02 00 [14:19:02]Write to MH i2c: E2 08 00 84 09 80 13 02 00 00 00 00 00 0B [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 FD 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 FD 00 84 09 00 AF 04 AA 04 AB 04 6E 04 04 00 99 00 00 00 69 04 9C 00 6F 04 04 00 99 00 00 00 B1 04 03 00 C5 37 B0 70 04 03 00 DC 35 A7 72 04 03 00 E9 01 09 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C B8 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 5F 8F 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 89 [14:19:02]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 99 00 00 00 69 04 9C 00 6F 04 04 00 99 00 00 00 B1 04 03 00 C5 37 B0 70 04 03 00 DC 35 A7 72 04 03 00 E9 01 09 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6C B8 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 5F 8F 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:19:02]wFMCommunicate OK [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 17 00 00 [14:19:02]Write to MH i2c: E2 08 00 85 09 80 17 00 00 00 00 00 00 0E [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 85 09 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 27 [14:19:03]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:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 17 00 00 [14:19:03]Write to MH i2c: E2 08 00 86 09 80 17 00 00 00 00 00 00 0F [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 86 09 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C3 [14:19:03]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:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 17 00 00 [14:19:03]Write to MH i2c: E2 08 00 87 09 80 17 00 00 00 00 00 00 10 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 FD 00 87 09 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 8E [14:19:03]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:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 17 00 00 [14:19:03]Write to MH i2c: E2 08 00 88 09 80 17 00 00 00 00 00 00 11 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 CC 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 CC 00 88 09 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 F2 [14:19:04]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:19:04]wFMCommunicate OK [14:19:04]SAM_PROTO_GetShiftData done [14:19:04]requested_item shift.sale.total_cash is exist - process it [14:19:04]requested_item shift.sale_refund.total is exist - process it [14:19:04]requested_item shift.sale_refund.total_cash is exist - process it [14:19:04]requested_item shift.buy.total is exist - process it [14:19:04]requested_item shift.buy.total_cash is exist - process it [14:19:04]produce_requested_data done [14:19:04]produce_requested_data return {"fm.sale.total":159042945.47,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":115486.13,"shift.sale.total_cash":109583.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:19:04]process_action_free get_value [14:19:04]json_value_free [14:19:04]json_value_free done [14:19:04]process_json_proto returns [14:19:04]Send response to host [14:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159042945.47,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":115486.13,"shift.sale.total_cash":109583.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:19:04]free response buf [14:19:04]execute_script done [14:19:04]execute_script returns [14:19:04]free content buf [14:19:04]Sock 6.Close socket [14:19:04]Sock 6.Thread stoped [14:19:04]accept exits with 5 [14:19:04]New connection [14:19:04]New thread 3066961252 created [14:19:04]Thread 3066817892 joined [14:19:04]Waiting for new connection... [14:19:04] Sock 5.Parse request [14:19:04]Sock 5.Check first char [14:19:04]Sock 5.First char is OK [14:19:04]request: POST /json_proto HTTP/1.0 [14:19:04]Method: POST [14:19:04]URL: /json_proto [14:19:04]Method is POST - this is cgi request [14:19:04]url: /json_proto [14:19:04]query_string will be loaded in cgi processing [14:19:04]execute_cgi json_proto POST (null) [14:19:04]execute_cgi path=json_proto method=POST [14:19:04]POST find Content-Length [14:19:04]Host: 172.17.63.131:8080 [14:19:04]Content-Length: 144 [14:19:04]Content-Type: application/json [14:19:04] [14:19:04]POST finish read [14:19:04]Found Content-Length = 144 [14:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:19:04]execute_script... [14:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [14:19:04]POST & json_proto [14:19:04]process_json_proto [14:19:04]json parsed OK: [14:19:04]protocol is kg_v1.0 [14:19:04]action value=print_doc [14:19:04]process_action print_doc [14:19:04]ExternCall_PrintAddStr [14:19:04]wPrintStart [14:19:04]Write to MH i2c: 01 00 00 89 09 92 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 89 09 00 00 00 00 00 FF 0F A7 [14:19:04]RasterBufferAndPrint [14:19:04]line Счет N : (1)31095 [14:19:04]line ИНН: 02508201610067 [14:19:04]line Контрольно-Кассовый Чек [14:19:04]line ПРОДАЖА [14:19:04]line ТРК (МРК, ГНК) : 21 [14:19:04]line Товар: 2710124130 [14:19:04]line Аи-92-К-5 [14:19:04]line 9.420 * 66.90 [14:19:04]line = 630.20 [14:19:04]line НДС 12% НСП 1% [14:19:04]line > о реализуемом товаре [14:19:04]line ОКРУГЛЕНИЕ: -0.20 [14:19:04]line ИТОГО: 630.00 [14:19:04]line Внесено: 700.00 [14:19:04]line СДАЧА: 70.00 [14:19:04]line НСП 1% : 5.58 [14:19:04]line НДС 12% : 66.92 [14:19:04]line Наличными: 630.00 [14:19:04]line Безнал.: 0.00 [14:19:04]line Место: АЗС № 170 "Партнер Нефть" [14:19:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:19:04]line СНО: Общий режим [14:19:04]line Чек 153 26.10.2024 14:14 [14:19:04]line Смена: 541 ФФД: 1.0 [14:19:04]line ЗНМ: 0300000110 [14:19:04]line РНМ: 0000000000091776 [14:19:04]line Версия ККМ: 001 [14:19:04]line ФМ: 0000000000871754 [14:19:04]line ФД: 191790 [14:19:04]line ФПД: 165371700319760 [14:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141426&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191790&fm=165371700319760&tin=02508201610067®Number=0000000000091776&sum=63000 [14:19:04]written 0, free lines is 4095 [14:19:04]OFD Sender: No OFD packet to send [14:19:04]Write to MH i2c: 01 00 00 B4 09 BD [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 B9 0C 89 [14:19:04]RasterBufferAndPrint [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]line [14:19:04]written 0, free lines is 3276 [14:19:04]MH_Cut [14:19:04]Write to MH i2c: D1 01 00 BB 09 01 96 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 01 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: D1 01 00 BB 09 00 95 [14:19:04]Write to MH i2c: 01 00 00 BC 09 C5 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:05]*** Cut start [14:19:05]*** Partial cut [14:19:05]*** CUTSNS_PIN = 1 [14:19:05]*** CUTSNS_PIN = 0 [14:19:05]*** Brake cut motor [14:19:06]Read from MH i2c: 01 [14:19:06]MH_I2C_Read... [14:19:06]*** Stop cut motor [14:19:06]*** Cut end [14:19:06]Read from MH i2c: 01 07 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FF 0F DA [14:19:06]process_action print_doc done [14:19:06]requested_data is exist [14:19:06]produce_requested_data [14:19:06]produce_requested_data return (null) [14:19:06]process_action_free print_doc [14:19:06]json_value_free [14:19:06]json_value_free done [14:19:06]process_json_proto returns [14:19:06]Send response to host [14:19:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:19:06]free response buf [14:19:06]execute_script done [14:19:06]execute_script returns [14:19:06]free content buf [14:19:06]Sock 5.Close socket [14:19:06]Sock 5.Thread stoped [14:19:06]accept exits with 6 [14:19:06]New connection [14:19:06]New thread 3066817892 created [14:19:06]Thread 3066961252 joined [14:19:06]Waiting for new connection... [14:19:06] Sock 6.Parse request [14:19:06]Sock 6.Check first char [14:19:06]Sock 6.First char is OK [14:19:06]request: POST /json_proto HTTP/1.0 [14:19:06]Method: POST [14:19:06]URL: /json_proto [14:19:06]Method is POST - this is cgi request [14:19:06]url: /json_proto [14:19:06]query_string will be loaded in cgi processing [14:19:06]execute_cgi json_proto POST (null) [14:19:06]execute_cgi path=json_proto method=POST [14:19:06]POST find Content-Length [14:19:06]Host: 172.17.63.131:8080 [14:19:06]Content-Length: 681 [14:19:06]Content-Type: application/json [14:19:06] [14:19:06]POST finish read [14:19:06]Found Content-Length = 681 [14:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:06]execute_script... [14:19: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)31096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:06]POST & json_proto [14:19:06]process_json_proto [14:19:06]json parsed OK: [14:19:06]protocol is kg_v1.0 [14:19:06]action value=close_receipt [14:19:06]process_action close_receipt [14:19:06]cmd_close_receipt [14:19:06]MH_GetDate [14:19:06]Write to MH i2c: F0 00 00 BD 09 B5 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 09 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: F0 09 00 BD 09 00 69 FA 1C 67 22 05 6E 64 9D [14:19:06]GetLastDocTimeStamp 1729952066 [14:19:06]current date 1729952361 [14:19:06]FM_GetShiftState [14:19:06]SAM_PROTO_GetShiftState [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 13 01 00 [14:19:06]Write to MH i2c: E2 08 00 BE 09 80 13 01 00 00 00 00 00 44 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 0E 00 BE 09 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BD [14:19:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:19:06]wFMCommunicate OK [14:19:06]SAM_PROTO_GetShiftState done [14:19:06]FM_GetShiftState done [14:19:06]opened in 1729902770 [14:19:06]opened+sec_in_day 1729989170 [14:19:06]quantity*price = 100015 [14:19:06]sum+1 = 100017 [14:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 154 26.10.2024 14:19 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191791 ФПД: 215128563833277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141921&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191791&fm=215128563833277&tin=02508201610067®Number=0000000000091776&sum=100000 [14:19:07]StoreToDocumentArchive [14:19:07]shift 541 fd 191791 [14:19:07]save to /storage/0541/doc_00191791 [14:19:07]save last doc name /storage/0541/doc_00191791 to /storage/kkm_last_doc_name [14:19:07]save OK [14:19:07]Clear old archive folders... [14:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:07]tlvbuf is 01693640 [14:19:07]SAM_PROTO_ClearQueue [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 09 00 00 [14:19:07]Write to MH i2c: E2 08 00 CB 09 80 09 00 00 00 00 00 00 46 [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_ClearQueue done [14:19:07]KKMCreateOFDPacket [14:19:07]OFDProtocolAddRootSTLVToBuf [14:19:07]FM_MakeSignedData [14:19:07]FM_MakeSignedData [14:19:07]SAM_PROTO_SignData [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 0D 01 02 [14:19:07]Write to MH i2c: E2 08 00 CC 09 80 0D 01 02 00 00 00 00 4E [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 03 00 CC 09 00 90 00 49 [14:19:07]RAPDU: 90 00 [14:19:07]wFMCommunicate OK [14:19:07]wFMCommunicate request_size=255 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 69 FA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F ED 02 00 35 04 06 00 C3 [14:19:07]Write to MH i2c: E2 02 01 CD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 69 FA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F ED 02 00 35 04 06 00 C3 00 00 5C [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 CD 09 00 90 00 4A [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]wFMCommunicate request_size=10 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 0D 02 02 05 A8 85 A0 D9 BD [14:19:08]Write to MH i2c: E2 0D 00 CE 09 80 0D 02 02 05 00 A8 85 A0 D9 BD 00 00 BE [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 0D 03 02 [14:19:08]Write to MH i2c: E2 08 00 CF 09 80 0D 03 02 00 00 00 00 53 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0B 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 0B 00 CF 09 00 B6 E6 07 67 C2 7B 45 3D 90 00 1D [14:19:08]RAPDU: B6 E6 07 67 C2 7B 45 3D 90 00 [14:19:08]wFMCommunicate OK [14:19:08]SAM_PROTO_SignData done [14:19:08]FM_MakeSignedData done [14:19:08]CreateOFDProtocolMessage [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 11 00 00 [14:19:08]Write to MH i2c: E2 08 00 D0 09 80 11 00 00 00 00 00 00 53 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 17 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 17 00 D0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [14:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:19:08]wFMCommunicate OK [14:19:08]CreateOFDProtocolMessage done [14:19:08]OFDSenderStorePacket 191791 [14:19:08]StoreOFDPacket docnum=191791 [14:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 90 07 01 42 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 69 FA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F ED 02 00 35 04 06 00 C3 A8 85 A0 D9 BD B6 E6 07 67 C2 7B 45 3D [14:19:08]CheckFolder [14:19:08]dirname=/storage/ofd_packets [14:19:08]CheckFolder done [14:19:08]ProducePacketName [14:19:08]name=ofd_packets/00191791 [14:19:08]NVStorageSaveData ofd_packets/00191791 [14:19:08]File name is /storage/ofd_packets/00191791 [14:19:08]Write 301 bytes [14:19:08]NVStorageSaveData done [14:19:08]OFDSenderStorePacket done [14:19:08]KKMCreateOFDPacket done [14:19:08]NVStorageSaveData kkm_last_timestamp [14:19:08]File name is /storage/kkm_last_timestamp [14:19:08]Write 4 bytes [14:19:08]NVStorageSaveData done [14:19:08]ExternCall_PrintAddStr [14:19:08]wPrintStart [14:19:08]Write to MH i2c: 01 00 00 D1 09 DA [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: 01 07 00 D1 09 00 00 00 00 00 FF 0F EF [14:19:08]RasterBufferAndPrint [14:19:08]line Счет N : (1)31096 [14:19:08]line ИНН: 02508201610067 [14:19:08]line Контрольно-Кассовый Чек [14:19:08]line ПРОДАЖА [14:19:08]line ТРК (МРК, ГНК) : 12 [14:19:08]line Товар: 2710124130 [14:19:08]line Аи-92-К-5 [14:19:08]line 14.950 * 66.90 [14:19:08]line = 1000.16 [14:19:08]line НДС 12% НСП 1% [14:19:08]line > о реализуемом товаре [14:19:08]line ОКРУГЛЕНИЕ: -0.16 [14:19:08]line ИТОГО: 1000.00 [14:19:08]line Внесено: 1000.00 [14:19:08]line СДАЧА: 0.00 [14:19:08]line НСП 1% : 8.85 [14:19:08]line НДС 12% : 106.21 [14:19:08]line Наличными: 1000.00 [14:19:08]line Безнал.: 0.00 [14:19:08]line Место: АЗС № 170 "Партнер Нефть" [14:19:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:19:08]line СНО: Общий режим [14:19:08]line Чек 154 26.10.2024 14:19 [14:19:08]line Смена: 541 ФФД: 1.0 [14:19:08]line ЗНМ: 0300000110 [14:19:08]line РНМ: 0000000000091776 [14:19:08]line Версия ККМ: 001 [14:19:08]line ФМ: 0000000000871754 [14:19:08]line ФД: 191791 [14:19:08]line ФПД: 215128563833277 [14:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T141921&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191791&fm=215128563833277&tin=02508201610067®Number=0000000000091776&sum=100000 [14:19:08]written 0, free lines is 4095 [14:19:08]OFD Sender: Processing packet 191791 [packets to send 75, broken 74] [14:19:08]ProducePacketName [14:19:08]name=ofd_packets/00191791 [14:19:08]OFD Sender: To server: pG, [14:19:08]CommunicateWithHost lk.salyk.kg:30040 [14:19:08]ConnectInit lk.salyk.kg [14:19:08]Connected sock=8 [14:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 90 07 01 42 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 69 FA 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F ED 02 00 35 04 06 00 C3 A8 85 A0 D9 BD B6 E6 07 67 C2 7B 45 3D [14:19:09]Write to MH i2c: 01 00 00 FC 09 05 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 FC 09 00 00 00 00 00 D3 0C EB [14:19:09]RasterBufferAndPrint [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 30 E3 47 00 17 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 2F ED 02 00 F4 03 04 00 34 9F 1C 67 B6 04 01 00 00 DB 07 F5 CF 65 CB 0E 10 [14:19:09]CommunicateWithHost err = 0 [14:19:09]CheckOFDResponse [14:19:09]1017 (14) - 77093643461234 [14:19:09]1041 (16) - 0000000000871754 [14:19:09]1040 (4) - 191791 [14:19:09]1012 (4) - 26.10.2024 07:50 [14:19:09]1206 (1) - 0 [14:19:09]OFD Sender: Remove packet 191791 [14:19:09]ProducePacketName [14:19:09]name=ofd_packets/00191791 [14:19:09]NVStorageDeleteData [14:19:09]written 0, free lines is 3328 [14:19:09]MH_Cut [14:19:09]Write to MH i2c: D1 01 00 03 0A 01 DF [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 01 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 01 00 03 0A 00 DE [14:19:09]Write to MH i2c: 01 00 00 04 0A 0E [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]OFD Sender: No OFD packet to send [14:19:09]*** Cut start [14:19:09]*** Partial cut [14:19:09]*** CUTSNS_PIN = 1 [14:19:09]*** CUTSNS_PIN = 0 [14:19:10]*** Brake cut motor [14:19:10]Read from MH i2c: 01 [14:19:10]MH_I2C_Read... [14:19:10]*** Stop cut motor [14:19:10]*** Cut end [14:19:10]Read from MH i2c: 01 07 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: 01 07 00 04 0A 00 00 00 00 00 FF 0F 23 [14:19:10]process_action close_receipt done [14:19:10]requested_data is exist [14:19:10]produce_requested_data [14:19:10]requested_item fm.sn is exist - process it [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 11 00 00 [14:19:10]Write to MH i2c: E2 08 00 05 0A 80 11 00 00 00 00 00 00 89 [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 17 00 05 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [14:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:19:10]wFMCommunicate OK [14:19:10]requested_item fd.num is exist - process it [14:19:10]SAM_PROTO_GetFieldsCounters [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 00 00 [14:19:10]Write to MH i2c: E2 08 00 06 0A 80 13 00 00 00 00 00 00 8C [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 62 00 06 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [14:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 2F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetFieldsCounters done [14:19:10]requested_item shift.num is exist - process it [14:19:10]requested_item shift.opened is exist - process it [14:19:10]req_shift_opened [14:19:10]FM_GetShiftState [14:19:10]SAM_PROTO_GetShiftState [14:19:10]wFMCommunicate request_size=4 [14:19:10]MH_SAM_APDU [14:19:10]CAPDU: 80 13 01 00 [14:19:10]Write to MH i2c: E2 08 00 07 0A 80 13 01 00 00 00 00 00 8E [14:19:10]Write i2c OK [14:19:10]MH_I2C_Read... [14:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:10]Read from MH i2c: E2 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 [14:19:10]MH_I2C_Read... [14:19:10]Read from MH i2c: E2 0E 00 07 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 07 [14:19:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:19:10]wFMCommunicate OK [14:19:10]SAM_PROTO_GetShiftState done [14:19:10]FM_GetShiftState done [14:19:10]req_shift_opened done [14:19:10]requested_item shift.open_date is exist - process it [14:19:10]req_shift_open_date [14:19:10]req_shift_open_date done [14:19:10]produce_requested_data done [14:19:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191791,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:19:10]process_action_free close_receipt [14:19:10]json_value_free [14:19:10]json_value_free done [14:19:10]process_json_proto returns [14:19:10]Send response to host [14:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191791,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:19:10]free response buf [14:19:10]execute_script done [14:19:10]execute_script returns [14:19:10]free content buf [14:19:10]Sock 6.Close socket [14:19:10]Sock 6.Thread stoped [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]accept exits with 5 [14:22:09]New connection [14:22:09]New thread 3066961252 created [14:22:09]Thread 3066817892 joined [14:22:09]Waiting for new connection... [14:22:09] Sock 5.Parse request [14:22:09]Sock 5.Check first char [14:22:09]Sock 5.First char is OK [14:22:09]request: POST /json_proto HTTP/1.0 [14:22:09]Method: POST [14:22:09]URL: /json_proto [14:22:09]Method is POST - this is cgi request [14:22:09]url: /json_proto [14:22:09]query_string will be loaded in cgi processing [14:22:09]execute_cgi json_proto POST (null) [14:22:09]execute_cgi path=json_proto method=POST [14:22:09]POST find Content-Length [14:22:09]Host: 172.17.63.131:8080 [14:22:09]Content-Length: 983 [14:22:09]Content-Type: application/json [14:22:09] [14:22:09]POST finish read [14:22:09]Found Content-Length = 983 [14:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [14:22:09]execute_script... [14:22: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)31097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.250, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.25 \u0441\u043E\u043C", "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" ] } } [14:22:09]POST & json_proto [14:22:09]process_json_proto [14:22:09]json parsed OK: [14:22:09]protocol is kg_v1.0 [14:22:09]action value=close_receipt [14:22:09]process_action close_receipt [14:22:09]cmd_close_receipt [14:22:09]MH_GetDate [14:22:09]Write to MH i2c: F0 00 00 08 0A 01 [14:22:09]Write i2c OK [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 09 00 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: F0 09 00 08 0A 00 20 FB 1C 67 22 05 6E 64 A1 [14:22:09]GetLastDocTimeStamp 1729952361 [14:22:09]current date 1729952544 [14:22:09]FM_GetShiftState [14:22:09]SAM_PROTO_GetShiftState [14:22:09]wFMCommunicate request_size=4 [14:22:09]MH_SAM_APDU [14:22:09]CAPDU: 80 13 01 00 [14:22:09]Write to MH i2c: E2 08 00 09 0A 80 13 01 00 00 00 00 00 90 [14:22:09]Write i2c OK [14:22:09]MH_I2C_Read... [14:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:09]Read from MH i2c: E2 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: E2 0E 00 [14:22:09]MH_I2C_Read... [14:22:09]Read from MH i2c: E2 0E 00 09 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 09 [14:22:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:22:09]wFMCommunicate OK [14:22:09]SAM_PROTO_GetShiftState done [14:22:09]FM_GetShiftState done [14:22:09]opened in 1729902770 [14:22:09]opened+sec_in_day 1729989170 [14:22:09]quantity*price = 140037 [14:22:09]sum+1 = 140039 [14:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 155 26.10.2024 14:22 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 21.25 сом ФМ: 0000000000871754 ФД: 191792 ФПД: 66941041261806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191792&fm=66941041261806&tin=02508201610067®Number=0000000000091776&sum=140000 [14:22:10]StoreToDocumentArchive [14:22:10]shift 541 fd 191792 [14:22:10]save to /storage/0541/doc_00191792 [14:22:10]save last doc name /storage/0541/doc_00191792 to /storage/kkm_last_doc_name [14:22:10]save OK [14:22:10]Clear old archive folders... [14:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:22:10]tlvbuf is 0160B2A0 [14:22:10]SAM_PROTO_ClearQueue [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 09 00 00 [14:22:10]Write to MH i2c: E2 08 00 16 0A 80 09 00 00 00 00 00 00 92 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]SAM_PROTO_ClearQueue done [14:22:10]KKMCreateOFDPacket [14:22:10]OFDProtocolAddRootSTLVToBuf [14:22:10]FM_MakeSignedData [14:22:10]FM_MakeSignedData [14:22:10]SAM_PROTO_SignData [14:22:10]wFMCommunicate request_size=4 [14:22:10]MH_SAM_APDU [14:22:10]CAPDU: 80 0D 01 02 [14:22:10]Write to MH i2c: E2 08 00 17 0A 80 0D 01 02 00 00 00 00 9A [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:10]Read from MH i2c: E2 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 [14:22:10]MH_I2C_Read... [14:22:10]Read from MH i2c: E2 03 00 17 0A 00 90 00 95 [14:22:10]RAPDU: 90 00 [14:22:10]wFMCommunicate OK [14:22:10]wFMCommunicate request_size=255 [14:22:10]MH_SAM_APDU [14:22: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 02 53 00 00 00 00 00 37 04 06 00 BE 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 9B 00 00 00 F4 03 04 00 20 FB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 ED 02 00 35 04 06 00 3C [14:22:10]Write to MH i2c: E2 02 01 18 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 02 53 00 00 00 00 00 37 04 06 00 BE 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 9B 00 00 00 F4 03 04 00 20 FB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 ED 02 00 35 04 06 00 3C 00 00 E7 [14:22:10]Write i2c OK [14:22:10]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 18 0A 00 90 00 96 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]wFMCommunicate request_size=10 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 0D 02 02 05 E1 EC FC 3C EE [14:22:11]Write to MH i2c: E2 0D 00 19 0A 80 0D 02 02 05 00 E1 EC FC 3C EE 00 00 9A [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [14:22:11]RAPDU: 90 00 [14:22:11]wFMCommunicate OK [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 0D 03 02 [14:22:11]Write to MH i2c: E2 08 00 1A 0A 80 0D 03 02 00 00 00 00 9F [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0B 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 0B 00 1A 0A 00 28 33 DE D1 D8 BB 3C AA 90 00 23 [14:22:11]RAPDU: 28 33 DE D1 D8 BB 3C AA 90 00 [14:22:11]wFMCommunicate OK [14:22:11]SAM_PROTO_SignData done [14:22:11]FM_MakeSignedData done [14:22:11]CreateOFDProtocolMessage [14:22:11]wFMCommunicate request_size=4 [14:22:11]MH_SAM_APDU [14:22:11]CAPDU: 80 11 00 00 [14:22:11]Write to MH i2c: E2 08 00 1B 0A 80 11 00 00 00 00 00 00 9F [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:11]Read from MH i2c: E2 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: E2 17 00 1B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [14:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:22:11]wFMCommunicate OK [14:22:11]CreateOFDProtocolMessage done [14:22:11]OFDSenderStorePacket 191792 [14:22:11]StoreOFDPacket docnum=191792 [14:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 C4 07 01 AD 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 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 9B 00 00 00 F4 03 04 00 20 FB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 ED 02 00 35 04 06 00 3C E1 EC FC 3C EE 28 33 DE D1 D8 BB 3C AA [14:22:11]CheckFolder [14:22:11]dirname=/storage/ofd_packets [14:22:11]CheckFolder done [14:22:11]ProducePacketName [14:22:11]name=ofd_packets/00191792 [14:22:11]NVStorageSaveData ofd_packets/00191792 [14:22:11]File name is /storage/ofd_packets/00191792 [14:22:11]Write 301 bytes [14:22:11]NVStorageSaveData done [14:22:11]OFDSenderStorePacket done [14:22:11]KKMCreateOFDPacket done [14:22:11]NVStorageSaveData kkm_last_timestamp [14:22:11]File name is /storage/kkm_last_timestamp [14:22:11]Write 4 bytes [14:22:11]NVStorageSaveData done [14:22:11]ExternCall_PrintAddStr [14:22:11]wPrintStart [14:22:11]Write to MH i2c: 01 00 00 1C 0A 26 [14:22:11]Write i2c OK [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 [14:22:11]MH_I2C_Read... [14:22:11]Read from MH i2c: 01 07 00 1C 0A 00 00 00 00 00 FF 0F 3B [14:22:11]RasterBufferAndPrint [14:22:11]line Счет N : (1)31097 [14:22:11]line ИНН: 02508201610067 [14:22:11]line Контрольно-Кассовый Чек [14:22:11]line ПРОДАЖА [14:22:11]line ТРК (МРК, ГНК) : 12 [14:22:11]line Товар: 2710124130 [14:22:11]line Аи-92-К-5 [14:22:11]line 21.250 * 65.90 [14:22:11]line = 1400.38 [14:22:11]line НДС 12% НСП 1% [14:22:11]line > о реализуемом товаре [14:22:11]line ОКРУГЛЕНИЕ: -0.38 [14:22:11]line ИТОГО: 1400.00 [14:22:11]line Внесено: 1400.00 [14:22:11]line СДАЧА: 0.00 [14:22:11]line НСП 1% : 12.39 [14:22:11]line НДС 12% : 148.71 [14:22:11]line Наличными: 1400.00 [14:22:11]line Безнал.: 0.00 [14:22:11]line Место: АЗС № 170 "Партнер Нефть" [14:22:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:22:11]line СНО: Общий режим [14:22:11]line Чек 155 26.10.2024 14:22 [14:22:11]line Смена: 541 ФФД: 1.0 [14:22:11]line ЗНМ: 0300000110 [14:22:11]line РНМ: 0000000000091776 [14:22:11]line Версия ККМ: 001 [14:22:11]line [14:22:11]line Дисконтная программа [14:22:11]line АИ-92 [14:22:11]line номер 170 [14:22:11]line сэкономлено 21.25 сом [14:22:11]line ФМ: 0000000000871754 [14:22:11]line ФД: 191792 [14:22:11]line ФПД: 66941041261806 [14:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142224&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191792&fm=66941041261806&tin=02508201610067®Number=0000000000091776&sum=140000 [14:22:11]OFD Sender: Processing packet 191792 [packets to send 75, broken 74] [14:22:11]ProducePacketName [14:22:11]name=ofd_packets/00191792 [14:22:11]OFD Sender: To server: pG, [14:22:11]CommunicateWithHost lk.salyk.kg:30040 [14:22:11]ConnectInit lk.salyk.kg [14:22:11]written 0, free lines is 4095 [14:22:11]Connected sock=8 [14:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 C4 07 01 AD 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 53 00 00 00 00 00 37 04 06 00 BE 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 9B 00 00 00 F4 03 04 00 20 FB 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 ED 02 00 35 04 06 00 3C E1 EC FC 3C EE 28 33 DE D1 D8 BB 3C AA [14:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 0A 47 00 96 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 30 ED 02 00 F4 03 04 00 EB 9F 1C 67 B6 04 01 00 00 AE 97 58 35 C2 B0 25 BE [14:22:12]CommunicateWithHost err = 0 [14:22:12]CheckOFDResponse [14:22:12]1017 (14) - 77093643461234 [14:22:12]1041 (16) - 0000000000871754 [14:22:12]1040 (4) - 191792 [14:22:12]1012 (4) - 26.10.2024 07:53 [14:22:12]1206 (1) - 0 [14:22:12]OFD Sender: Remove packet 191792 [14:22:12]ProducePacketName [14:22:12]name=ofd_packets/00191792 [14:22:12]NVStorageDeleteData [14:22:12]Write to MH i2c: 01 00 00 4C 0A 56 [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 62 0C CB [14:22:12]RasterBufferAndPrint [14:22:12]line [14:22:12]line [14:22:12]line [14:22:12]line [14:22:12]line [14:22:12]written 0, free lines is 3177 [14:22:12]MH_Cut [14:22:12]Write to MH i2c: D1 01 00 53 0A 01 2F [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: D1 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: D1 01 00 [14:22:12]MH_I2C_Read... [14:22:12]Read from MH i2c: D1 01 00 53 0A 00 2E [14:22:12]Write to MH i2c: 01 00 00 54 0A 5E [14:22:12]Write i2c OK [14:22:12]MH_I2C_Read... [14:22:12]OFD Sender: No OFD packet to send [14:22:13]*** Cut start [14:22:13]*** Partial cut [14:22:13]*** CUTSNS_PIN = 1 [14:22:13]*** CUTSNS_PIN = 0 [14:22:13]*** Brake cut motor [14:22:13]Read from MH i2c: 01 [14:22:13]MH_I2C_Read... [14:22:13]*** Stop cut motor [14:22:13]*** Cut end [14:22:13]Read from MH i2c: 01 07 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 FF 0F 73 [14:22:13]process_action close_receipt done [14:22:13]requested_data is exist [14:22:13]produce_requested_data [14:22:13]requested_item fm.sn is exist - process it [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 11 00 00 [14:22:13]Write to MH i2c: E2 08 00 55 0A 80 11 00 00 00 00 00 00 D9 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 55 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [14:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:22:13]wFMCommunicate OK [14:22:13]requested_item fd.num is exist - process it [14:22:13]SAM_PROTO_GetFieldsCounters [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 00 00 [14:22:13]Write to MH i2c: E2 08 00 56 0A 80 13 00 00 00 00 00 00 DC [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 56 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [14:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 30 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetFieldsCounters done [14:22:13]requested_item shift.num is exist - process it [14:22:13]requested_item shift.opened is exist - process it [14:22:13]req_shift_opened [14:22:13]FM_GetShiftState [14:22:13]SAM_PROTO_GetShiftState [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 01 00 [14:22:13]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 57 [14:22:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]SAM_PROTO_GetShiftState done [14:22:14]FM_GetShiftState done [14:22:14]req_shift_opened done [14:22:14]requested_item shift.open_date is exist - process it [14:22:14]req_shift_open_date [14:22:14]req_shift_open_date done [14:22:14]produce_requested_data done [14:22:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191792,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:22:14]process_action_free close_receipt [14:22:14]json_value_free [14:22:14]json_value_free done [14:22:14]process_json_proto returns [14:22:14]Send response to host [14:22:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191792,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:22:14]free response buf [14:22:14]execute_script done [14:22:14]execute_script returns [14:22:14]free content buf [14:22:14]Sock 5.Close socket [14:22:14]Sock 5.Thread stoped [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:31]accept exits with 6 [14:26:31]New connection [14:26:31]New thread 3066817892 created [14:26:31]Thread 3066961252 joined [14:26:31]Waiting for new connection... [14:26:31] Sock 6.Parse request [14:26:31]Sock 6.Check first char [14:26:31]Sock 6.First char is OK [14:26:31]request: POST /json_proto HTTP/1.0 [14:26:31]Method: POST [14:26:31]URL: /json_proto [14:26:31]Method is POST - this is cgi request [14:26:31]url: /json_proto [14:26:31]query_string will be loaded in cgi processing [14:26:31]execute_cgi json_proto POST (null) [14:26:31]execute_cgi path=json_proto method=POST [14:26:31]POST find Content-Length [14:26:31]Host: 172.17.63.131:8080 [14:26:31]Content-Length: 977 [14:26:31]Content-Type: application/json [14:26:31] [14:26:31]POST finish read [14:26:31]Found Content-Length = 977 [14:26:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31098", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [14:26:31]execute_script... [14:26: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)31098", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [14:26:31]POST & json_proto [14:26:31]process_json_proto [14:26:31]json parsed OK: [14:26:31]protocol is kg_v1.0 [14:26:31]action value=close_receipt [14:26:31]process_action close_receipt [14:26:31]cmd_close_receipt [14:26:31]MH_GetDate [14:26:31]Write to MH i2c: F0 00 00 58 0A 51 [14:26:31]Write i2c OK [14:26:31]MH_I2C_Read... [14:26:31]Read from MH i2c: F0 [14:26:31]MH_I2C_Read... [14:26:31]Read from MH i2c: F0 09 00 [14:26:31]MH_I2C_Read... [14:26:31]Read from MH i2c: F0 09 00 58 0A 00 26 FC 1C 67 22 05 6E 64 F8 [14:26:31]GetLastDocTimeStamp 1729952544 [14:26:31]current date 1729952806 [14:26:31]FM_GetShiftState [14:26:31]SAM_PROTO_GetShiftState [14:26:31]wFMCommunicate request_size=4 [14:26:31]MH_SAM_APDU [14:26:31]CAPDU: 80 13 01 00 [14:26:31]Write to MH i2c: E2 08 00 59 0A 80 13 01 00 00 00 00 00 E0 [14:26:31]Write i2c OK [14:26:31]MH_I2C_Read... [14:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:31]Read from MH i2c: E2 [14:26:31]MH_I2C_Read... [14:26:31]Read from MH i2c: E2 0E 00 [14:26:31]MH_I2C_Read... [14:26:31]Read from MH i2c: E2 0E 00 59 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 59 [14:26:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:26:31]wFMCommunicate OK [14:26:31]SAM_PROTO_GetShiftState done [14:26:31]FM_GetShiftState done [14:26:31]opened in 1729902770 [14:26:31]opened+sec_in_day 1729989170 [14:26:31]quantity*price = 500004 [14:26:31]sum+1 = 500006 [14:26:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 156 26.10.2024 14:26 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 66.49 сом ФМ: 0000000000871754 ФД: 191793 ФПД: 197521243698306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191793&fm=197521243698306&tin=02508201610067®Number=0000000000091776&sum=500000 [14:26:32]StoreToDocumentArchive [14:26:32]shift 541 fd 191793 [14:26:32]save to /storage/0541/doc_00191793 [14:26:32]save last doc name /storage/0541/doc_00191793 to /storage/kkm_last_doc_name [14:26:32]save OK [14:26:32]Clear old archive folders... [14:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:26:32]tlvbuf is 015D8AE0 [14:26:32]SAM_PROTO_ClearQueue [14:26:32]wFMCommunicate request_size=4 [14:26:32]MH_SAM_APDU [14:26:32]CAPDU: 80 09 00 00 [14:26:32]Write to MH i2c: E2 08 00 66 0A 80 09 00 00 00 00 00 00 E2 [14:26:32]Write i2c OK [14:26:32]MH_I2C_Read... [14:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:32]Read from MH i2c: E2 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 03 00 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [14:26:32]RAPDU: 90 00 [14:26:32]wFMCommunicate OK [14:26:32]SAM_PROTO_ClearQueue done [14:26:32]KKMCreateOFDPacket [14:26:32]OFDProtocolAddRootSTLVToBuf [14:26:32]FM_MakeSignedData [14:26:32]FM_MakeSignedData [14:26:32]SAM_PROTO_SignData [14:26:32]wFMCommunicate request_size=4 [14:26:32]MH_SAM_APDU [14:26:32]CAPDU: 80 0D 01 02 [14:26:32]Write to MH i2c: E2 08 00 67 0A 80 0D 01 02 00 00 00 00 EA [14:26:32]Write i2c OK [14:26:32]MH_I2C_Read... [14:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:32]Read from MH i2c: E2 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 03 00 [14:26:32]MH_I2C_Read... [14:26:32]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [14:26:32]RAPDU: 90 00 [14:26:32]wFMCommunicate OK [14:26:32]wFMCommunicate request_size=255 [14:26:32]MH_SAM_APDU [14:26:32]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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 9C 00 00 00 F4 03 04 00 26 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 ED 02 00 35 04 06 00 B3 A4 FF 90 [14:26:32]Write to MH i2c: E2 02 01 68 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 9C 00 00 00 F4 03 04 00 26 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 ED 02 00 35 04 06 00 B3 A4 FF 90 00 00 DD [14:26:32]Write i2c OK [14:26:32]MH_I2C_Read... [14:26:32]OFD Sender: No OFD packet to send [14:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]wFMCommunicate request_size=7 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 02 02 02 F4 82 [14:26:33]Write to MH i2c: E2 0A 00 69 0A 80 0D 02 02 02 00 F4 82 00 00 67 [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [14:26:33]RAPDU: 90 00 [14:26:33]wFMCommunicate OK [14:26:33]wFMCommunicate request_size=4 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 0D 03 02 [14:26:33]Write to MH i2c: E2 08 00 6A 0A 80 0D 03 02 00 00 00 00 EF [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 0B 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 0B 00 6A 0A 00 B2 8C AE 66 D3 EF 72 20 90 00 96 [14:26:33]RAPDU: B2 8C AE 66 D3 EF 72 20 90 00 [14:26:33]wFMCommunicate OK [14:26:33]SAM_PROTO_SignData done [14:26:33]FM_MakeSignedData done [14:26:33]CreateOFDProtocolMessage [14:26:33]wFMCommunicate request_size=4 [14:26:33]MH_SAM_APDU [14:26:33]CAPDU: 80 11 00 00 [14:26:33]Write to MH i2c: E2 08 00 6B 0A 80 11 00 00 00 00 00 00 EF [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:33]Read from MH i2c: E2 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 17 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: E2 17 00 6B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [14:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:33]wFMCommunicate OK [14:26:33]CreateOFDProtocolMessage done [14:26:33]OFDSenderStorePacket 191793 [14:26:33]StoreOFDPacket docnum=191793 [14:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E 17 04 01 56 42 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 9C 00 00 00 F4 03 04 00 26 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 ED 02 00 35 04 06 00 B3 A4 FF 90 F4 82 B2 8C AE 66 D3 EF 72 20 [14:26:33]CheckFolder [14:26:33]dirname=/storage/ofd_packets [14:26:33]CheckFolder done [14:26:33]ProducePacketName [14:26:33]name=ofd_packets/00191793 [14:26:33]NVStorageSaveData ofd_packets/00191793 [14:26:33]File name is /storage/ofd_packets/00191793 [14:26:33]Write 298 bytes [14:26:33]NVStorageSaveData done [14:26:33]OFDSenderStorePacket done [14:26:33]KKMCreateOFDPacket done [14:26:33]NVStorageSaveData kkm_last_timestamp [14:26:33]File name is /storage/kkm_last_timestamp [14:26:33]Write 4 bytes [14:26:33]NVStorageSaveData done [14:26:33]ExternCall_PrintAddStr [14:26:33]wPrintStart [14:26:33]Write to MH i2c: 01 00 00 6C 0A 76 [14:26:33]Write i2c OK [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: 01 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: 01 07 00 [14:26:33]MH_I2C_Read... [14:26:33]Read from MH i2c: 01 07 00 6C 0A 00 00 00 00 00 FF 0F 8B [14:26:33]RasterBufferAndPrint [14:26:33]line Счет N : (1)31098 [14:26:33]line ИНН: 02508201610067 [14:26:33]line Контрольно-Кассовый Чек [14:26:33]line ПРОДАЖА [14:26:33]line ТРК (МРК, ГНК) : 22 [14:26:33]line Товар: 2710194210 [14:26:33]line ДТ-К-5 [14:26:33]line 66.490 * 75.20 [14:26:33]line = 5000.05 [14:26:33]line НДС 12% НСП 1% [14:26:33]line > о реализуемом товаре [14:26:33]line ОКРУГЛЕНИЕ: -0.05 [14:26:33]line ИТОГО: 5000.00 [14:26:33]line Внесено: 5000.00 [14:26:33]line СДАЧА: 0.00 [14:26:33]line НСП 1% : 44.25 [14:26:33]line НДС 12% : 530.98 [14:26:33]line Наличными: 5000.00 [14:26:33]line Безнал.: 0.00 [14:26:33]line Место: АЗС № 170 "Партнер Нефть" [14:26:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:26:33]line СНО: Общий режим [14:26:33]line Чек 156 26.10.2024 14:26 [14:26:33]line Смена: 541 ФФД: 1.0 [14:26:33]line ЗНМ: 0300000110 [14:26:33]line РНМ: 0000000000091776 [14:26:33]line Версия ККМ: 001 [14:26:33]line [14:26:33]line Дисконтная программа [14:26:33]line ДТ [14:26:33]line номер 170 [14:26:33]line сэкономлено 66.49 сом [14:26:33]line ФМ: 0000000000871754 [14:26:33]line ФД: 191793 [14:26:33]line ФПД: 197521243698306 [14:26:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191793&fm=197521243698306&tin=02508201610067®Number=0000000000091776&sum=500000 [14:26:33]OFD Sender: Processing packet 191793 [packets to send 75, broken 74] [14:26:33]ProducePacketName [14:26:33]name=ofd_packets/00191793 [14:26:33]OFD Sender: To server: pG, [14:26:33]CommunicateWithHost lk.salyk.kg:30040 [14:26:33]written 0, free lines is 4095 [14:26:33]ConnectInit lk.salyk.kg [14:26:33]Connected sock=8 [14:26:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 5E 17 04 01 56 42 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 9C 00 00 00 F4 03 04 00 26 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 ED 02 00 35 04 06 00 B3 A4 FF 90 F4 82 B2 8C AE 66 D3 EF 72 20 [14:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 68 27 47 00 53 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 31 ED 02 00 F4 03 04 00 F1 A0 1C 67 B6 04 01 00 00 AA 3E 81 CF D5 D2 D4 40 [14:26:33]CommunicateWithHost err = 0 [14:26:33]CheckOFDResponse [14:26:33]1017 (14) - 77093643461234 [14:26:33]1041 (16) - 0000000000871754 [14:26:33]1040 (4) - 191793 [14:26:33]1012 (4) - 26.10.2024 07:57 [14:26:33]1206 (1) - 0 [14:26:33]OFD Sender: Remove packet 191793 [14:26:33]ProducePacketName [14:26:33]name=ofd_packets/00191793 [14:26:33]NVStorageDeleteData [14:26:34]Write to MH i2c: 01 00 00 9C 0A A6 [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: 01 07 00 9C 0A 00 00 00 00 00 61 0C 1A [14:26:34]RasterBufferAndPrint [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]line [14:26:34]written 0, free lines is 3176 [14:26:34]MH_Cut [14:26:34]Write to MH i2c: D1 01 00 A3 0A 01 7F [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 01 00 [14:26:34]MH_I2C_Read... [14:26:34]Read from MH i2c: D1 01 00 A3 0A 00 7E [14:26:34]Write to MH i2c: 01 00 00 A4 0A AE [14:26:34]Write i2c OK [14:26:34]MH_I2C_Read... [14:26:34]OFD Sender: No OFD packet to send [14:26:34]*** Cut start [14:26:34]*** Partial cut [14:26:34]*** CUTSNS_PIN = 1 [14:26:35]*** CUTSNS_PIN = 0 [14:26:35]*** Brake cut motor [14:26:35]Read from MH i2c: 01 [14:26:35]MH_I2C_Read... [14:26:35]*** Stop cut motor [14:26:35]*** Cut end [14:26:35]Read from MH i2c: 01 07 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: 01 07 00 A4 0A 00 00 00 00 00 FF 0F C3 [14:26:35]process_action close_receipt done [14:26:35]requested_data is exist [14:26:35]produce_requested_data [14:26:35]requested_item fm.sn is exist - process it [14:26:35]wFMCommunicate request_size=4 [14:26:35]MH_SAM_APDU [14:26:35]CAPDU: 80 11 00 00 [14:26:35]Write to MH i2c: E2 08 00 A5 0A 80 11 00 00 00 00 00 00 29 [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:35]Read from MH i2c: E2 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 17 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 17 00 A5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [14:26:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:26:35]wFMCommunicate OK [14:26:35]requested_item fd.num is exist - process it [14:26:35]SAM_PROTO_GetFieldsCounters [14:26:35]wFMCommunicate request_size=4 [14:26:35]MH_SAM_APDU [14:26:35]CAPDU: 80 13 00 00 [14:26:35]Write to MH i2c: E2 08 00 A6 0A 80 13 00 00 00 00 00 00 2C [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:35]Read from MH i2c: E2 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 62 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 62 00 A6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:26:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 31 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:35]wFMCommunicate OK [14:26:35]SAM_PROTO_GetFieldsCounters done [14:26:35]requested_item shift.num is exist - process it [14:26:35]requested_item shift.opened is exist - process it [14:26:35]req_shift_opened [14:26:35]FM_GetShiftState [14:26:35]SAM_PROTO_GetShiftState [14:26:35]wFMCommunicate request_size=4 [14:26:35]MH_SAM_APDU [14:26:35]CAPDU: 80 13 01 00 [14:26:35]Write to MH i2c: E2 08 00 A7 0A 80 13 01 00 00 00 00 00 2E [14:26:35]Write i2c OK [14:26:35]MH_I2C_Read... [14:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:35]Read from MH i2c: E2 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 0E 00 [14:26:35]MH_I2C_Read... [14:26:35]Read from MH i2c: E2 0E 00 A7 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A7 [14:26:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:26:35]wFMCommunicate OK [14:26:35]SAM_PROTO_GetShiftState done [14:26:35]FM_GetShiftState done [14:26:35]req_shift_opened done [14:26:35]requested_item shift.open_date is exist - process it [14:26:35]req_shift_open_date [14:26:35]req_shift_open_date done [14:26:35]produce_requested_data done [14:26:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191793,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:26:35]process_action_free close_receipt [14:26:35]json_value_free [14:26:35]json_value_free done [14:26:35]process_json_proto returns [14:26:35]Send response to host [14:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191793,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:26:35]free response buf [14:26:35]execute_script done [14:26:35]execute_script returns [14:26:35]free content buf [14:26:35]Sock 6.Close socket [14:26:35]Sock 6.Thread stoped [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:46]accept exits with 5 [14:27:46]New connection [14:27:46]New thread 3066961252 created [14:27:46]Thread 3066817892 joined [14:27:46]Waiting for new connection... [14:27:46] Sock 5.Parse request [14:27:46]Sock 5.Check first char [14:27:46]Sock 5.First char is OK [14:27:46]request: POST /json_proto HTTP/1.0 [14:27:46]Method: POST [14:27:46]URL: /json_proto [14:27:46]Method is POST - this is cgi request [14:27:46]url: /json_proto [14:27:46]query_string will be loaded in cgi processing [14:27:46]execute_cgi json_proto POST (null) [14:27:46]execute_cgi path=json_proto method=POST [14:27:46]POST find Content-Length [14:27:46]Host: 172.17.63.131:8080 [14:27:46]Content-Length: 862 [14:27:46]Content-Type: application/json [14:27:46] [14:27:46]POST finish read [14:27:46]Found Content-Length = 862 [14:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:46]execute_script... [14:27: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)31099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 650.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:46]POST & json_proto [14:27:46]process_json_proto [14:27:46]json parsed OK: [14:27:46]protocol is kg_v1.0 [14:27:46]action value=close_receipt [14:27:46]process_action close_receipt [14:27:46]cmd_close_receipt [14:27:46]MH_GetDate [14:27:46]Write to MH i2c: F0 00 00 A8 0A A1 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: F0 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: F0 09 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: F0 09 00 A8 0A 00 71 FC 1C 67 22 05 6E 64 93 [14:27:46]GetLastDocTimeStamp 1729952806 [14:27:46]current date 1729952881 [14:27:46]FM_GetShiftState [14:27:46]SAM_PROTO_GetShiftState [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 01 00 [14:27:46]Write to MH i2c: E2 08 00 A9 0A 80 13 01 00 00 00 00 00 30 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 A9 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A9 [14:27:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetShiftState done [14:27:46]FM_GetShiftState done [14:27:46]opened in 1729902770 [14:27:46]opened+sec_in_day 1729989170 [14:27:46]quantity*price = 65026 [14:27:46]sum+1 = 65028 [14:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.27 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 0.00 Безнал.: 650.27 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 157 26.10.2024 14:28 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191794 ФПД: 61419761283648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191794&fm=61419761283648&tin=02508201610067®Number=0000000000091776&sum=65027 [14:27:47]StoreToDocumentArchive [14:27:47]shift 541 fd 191794 [14:27:47]save to /storage/0541/doc_00191794 [14:27:47]save last doc name /storage/0541/doc_00191794 to /storage/kkm_last_doc_name [14:27:47]save OK [14:27:47]Clear old archive folders... [14:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:47]tlvbuf is 0183C0B0 [14:27:47]SAM_PROTO_ClearQueue [14:27:47]wFMCommunicate request_size=4 [14:27:47]MH_SAM_APDU [14:27:47]CAPDU: 80 09 00 00 [14:27:47]Write to MH i2c: E2 08 00 B6 0A 80 09 00 00 00 00 00 00 32 [14:27:47]Write i2c OK [14:27:47]MH_I2C_Read... [14:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:47]Read from MH i2c: E2 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 03 00 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 03 00 B6 0A 00 90 00 34 [14:27:47]RAPDU: 90 00 [14:27:47]wFMCommunicate OK [14:27:47]SAM_PROTO_ClearQueue done [14:27:47]KKMCreateOFDPacket [14:27:47]OFDProtocolAddRootSTLVToBuf [14:27:47]FM_MakeSignedData [14:27:47]FM_MakeSignedData [14:27:47]SAM_PROTO_SignData [14:27:47]wFMCommunicate request_size=4 [14:27:47]MH_SAM_APDU [14:27:47]CAPDU: 80 0D 01 02 [14:27:47]Write to MH i2c: E2 08 00 B7 0A 80 0D 01 02 00 00 00 00 3A [14:27:47]Write i2c OK [14:27:47]MH_I2C_Read... [14:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:47]Read from MH i2c: E2 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 03 00 [14:27:47]MH_I2C_Read... [14:27:47]Read from MH i2c: E2 03 00 B7 0A 00 90 00 35 [14:27:47]RAPDU: 90 00 [14:27:47]wFMCommunicate OK [14:27:47]wFMCommunicate request_size=255 [14:27:47]MH_SAM_APDU [14:27: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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 ED 02 00 35 04 06 00 37 [14:27:47]Write to MH i2c: E2 02 01 B8 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 ED 02 00 35 04 06 00 37 00 00 FD [14:27:47]Write i2c OK [14:27:47]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 B8 0A 00 90 00 36 [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]wFMCommunicate request_size=10 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 0D 02 02 05 DC 67 0D B2 40 [14:27:48]Write to MH i2c: E2 0D 00 B9 0A 80 0D 02 02 05 00 DC 67 0D B2 40 00 00 89 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 03 00 B9 0A 00 90 00 37 [14:27:48]RAPDU: 90 00 [14:27:48]wFMCommunicate OK [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 0D 03 02 [14:27:48]Write to MH i2c: E2 08 00 BA 0A 80 0D 03 02 00 00 00 00 3F [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0B 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 0B 00 BA 0A 00 69 7E 57 34 13 FC 83 FE 90 00 42 [14:27:48]RAPDU: 69 7E 57 34 13 FC 83 FE 90 00 [14:27:48]wFMCommunicate OK [14:27:48]SAM_PROTO_SignData done [14:27:48]FM_MakeSignedData done [14:27:48]CreateOFDProtocolMessage [14:27:48]wFMCommunicate request_size=4 [14:27:48]MH_SAM_APDU [14:27:48]CAPDU: 80 11 00 00 [14:27:48]Write to MH i2c: E2 08 00 BB 0A 80 11 00 00 00 00 00 00 3F [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:48]Read from MH i2c: E2 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: E2 17 00 BB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [14:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:27:48]wFMCommunicate OK [14:27:48]CreateOFDProtocolMessage done [14:27:48]OFDSenderStorePacket 191794 [14:27:48]StoreOFDPacket docnum=191794 [14:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 ED 07 01 1F 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 ED 02 00 35 04 06 00 37 DC 67 0D B2 40 69 7E 57 34 13 FC 83 FE [14:27:48]CheckFolder [14:27:48]dirname=/storage/ofd_packets [14:27:48]CheckFolder done [14:27:48]ProducePacketName [14:27:48]name=ofd_packets/00191794 [14:27:48]NVStorageSaveData ofd_packets/00191794 [14:27:48]File name is /storage/ofd_packets/00191794 [14:27:48]Write 301 bytes [14:27:48]NVStorageSaveData done [14:27:48]OFDSenderStorePacket done [14:27:48]KKMCreateOFDPacket done [14:27:48]NVStorageSaveData kkm_last_timestamp [14:27:48]File name is /storage/kkm_last_timestamp [14:27:48]Write 4 bytes [14:27:48]NVStorageSaveData done [14:27:48]ExternCall_PrintAddStr [14:27:48]wPrintStart [14:27:48]Write to MH i2c: 01 00 00 BC 0A C6 [14:27:48]Write i2c OK [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 07 00 [14:27:48]MH_I2C_Read... [14:27:48]Read from MH i2c: 01 07 00 BC 0A 00 00 00 00 00 FF 0F DB [14:27:48]RasterBufferAndPrint [14:27:48]line Счет N : (1)31099 [14:27:48]line ИНН: 02508201610067 [14:27:48]line Контрольно-Кассовый Чек [14:27:48]line ПРОДАЖА [14:27:48]line ТРК (МРК, ГНК) : 21 [14:27:48]line Товар: 2710124130 [14:27:48]line Аи-92-К-5 [14:27:48]line 9.720 * 66.90 [14:27:48]line = 650.27 [14:27:48]line НДС 12% НСП 1% [14:27:48]line > о реализуемом товаре [14:27:48]line ИТОГО: 650.27 [14:27:48]line НСП 1% : 5.75 [14:27:48]line НДС 12% : 69.05 [14:27:48]line Наличными: 0.00 [14:27:48]line Безнал.: 650.27 [14:27:48]line Место: АЗС № 170 "Партнер Нефть" [14:27:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:27:48]line СНО: Общий режим [14:27:48]line Чек 157 26.10.2024 14:28 [14:27:48]line Смена: 541 ФФД: 1.0 [14:27:48]line ЗНМ: 0300000110 [14:27:48]line РНМ: 0000000000091776 [14:27:48]line Версия ККМ: 001 [14:27:48]line Платежная система: Кыргызкоммерцбанк [14:27:48]line ФМ: 0000000000871754 [14:27:48]line ФД: 191794 [14:27:48]line ФПД: 61419761283648 [14:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191794&fm=61419761283648&tin=02508201610067®Number=0000000000091776&sum=65027 [14:27:48]written 0, free lines is 4095 [14:27:48]OFD Sender: Processing packet 191794 [packets to send 75, broken 74] [14:27:48]ProducePacketName [14:27:48]name=ofd_packets/00191794 [14:27:48]OFD Sender: To server: pG, [14:27:48]CommunicateWithHost lk.salyk.kg:30040 [14:27:48]ConnectInit lk.salyk.kg [14:27:48]Connected sock=8 [14:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 62 ED 07 01 1F 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 FE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 32 ED 02 00 35 04 06 00 37 DC 67 0D B2 40 69 7E 57 34 13 FC 83 FE [14:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FB 60 47 00 44 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 31 37 35 34 10 04 04 00 32 ED 02 00 F4 03 04 00 3C A1 1C 67 B6 04 01 00 00 A2 20 A8 9D B5 16 34 7F [14:27:48]CommunicateWithHost err = 0 [14:27:48]CheckOFDResponse [14:27:48]1017 (14) - 77093643461234 [14:27:48]1041 (16) - 0000000000871754 [14:27:48]1040 (4) - 191794 [14:27:48]1012 (4) - 26.10.2024 07:58 [14:27:48]1206 (1) - 0 [14:27:48]OFD Sender: Remove packet 191794 [14:27:48]ProducePacketName [14:27:48]name=ofd_packets/00191794 [14:27:48]NVStorageDeleteData [14:27:49]Write to MH i2c: 01 00 00 E6 0A F0 [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 07 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 D9 0C DC [14:27:49]RasterBufferAndPrint [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]line [14:27:49]written 0, free lines is 3297 [14:27:49]MH_Cut [14:27:49]Write to MH i2c: D1 01 00 ED 0A 01 C9 [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 01 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: D1 01 00 ED 0A 00 C8 [14:27:49]Write to MH i2c: 01 00 00 EE 0A F8 [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]OFD Sender: No OFD packet to send [14:27:49]*** Cut start [14:27:49]*** Partial cut [14:27:49]*** CUTSNS_PIN = 1 [14:27:49]*** CUTSNS_PIN = 0 [14:27:50]*** Brake cut motor [14:27:50]Read from MH i2c: 01 [14:27:50]MH_I2C_Read... [14:27:50]*** Stop cut motor [14:27:50]*** Cut end [14:27:50]Read from MH i2c: 01 07 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [14:27:50]process_action close_receipt done [14:27:50]requested_data is exist [14:27:50]produce_requested_data [14:27:50]requested_item fm.sn is exist - process it [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 11 00 00 [14:27:50]Write to MH i2c: E2 08 00 EF 0A 80 11 00 00 00 00 00 00 73 [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 17 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 17 00 EF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [14:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:27:50]wFMCommunicate OK [14:27:50]requested_item fd.num is exist - process it [14:27:50]SAM_PROTO_GetFieldsCounters [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 13 00 00 [14:27:50]Write to MH i2c: E2 08 00 F0 0A 80 13 00 00 00 00 00 00 76 [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 62 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 62 00 F0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 32 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:50]wFMCommunicate OK [14:27:50]SAM_PROTO_GetFieldsCounters done [14:27:50]requested_item shift.num is exist - process it [14:27:50]requested_item shift.opened is exist - process it [14:27:50]req_shift_opened [14:27:50]FM_GetShiftState [14:27:50]SAM_PROTO_GetShiftState [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 13 01 00 [14:27:50]Write to MH i2c: E2 08 00 F1 0A 80 13 01 00 00 00 00 00 78 [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 0E 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 0E 00 F1 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F1 [14:27:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:27:50]wFMCommunicate OK [14:27:50]SAM_PROTO_GetShiftState done [14:27:50]FM_GetShiftState done [14:27:50]req_shift_opened done [14:27:50]requested_item shift.open_date is exist - process it [14:27:50]req_shift_open_date [14:27:50]req_shift_open_date done [14:27:50]produce_requested_data done [14:27:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191794,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:27:50]process_action_free close_receipt [14:27:50]json_value_free [14:27:50]json_value_free done [14:27:50]process_json_proto returns [14:27:50]Send response to host [14:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191794,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:27:50]free response buf [14:27:50]execute_script done [14:27:50]execute_script returns [14:27:50]free content buf [14:27:50]Sock 5.Close socket [14:27:50]Sock 5.Thread stoped [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:36]accept exits with 6 [14:29:36]New connection [14:29:36]New thread 3066817892 created [14:29:36]Thread 3066961252 joined [14:29:36]Waiting for new connection... [14:29:36] Sock 6.Parse request [14:29:36]Sock 6.Check first char [14:29:36]Sock 6.First char is OK [14:29:36]request: POST /json_proto HTTP/1.0 [14:29:36]Method: POST [14:29:36]URL: /json_proto [14:29:36]Method is POST - this is cgi request [14:29:36]url: /json_proto [14:29:36]query_string will be loaded in cgi processing [14:29:36]execute_cgi json_proto POST (null) [14:29:36]execute_cgi path=json_proto method=POST [14:29:36]POST find Content-Length [14:29:36]Host: 172.17.63.131:8080 [14:29:36]Content-Length: 681 [14:29:36]Content-Type: application/json [14:29:36] [14:29:36]POST finish read [14:29:36]Found Content-Length = 681 [14:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:36]execute_script... [14:29:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:36]POST & json_proto [14:29:36]process_json_proto [14:29:36]json parsed OK: [14:29:36]protocol is kg_v1.0 [14:29:36]action value=close_receipt [14:29:36]process_action close_receipt [14:29:36]cmd_close_receipt [14:29:36]MH_GetDate [14:29:36]Write to MH i2c: F0 00 00 F2 0A EB [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: F0 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: F0 09 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: F0 09 00 F2 0A 00 DF FC 1C 67 22 05 6E 64 4B [14:29:36]GetLastDocTimeStamp 1729952881 [14:29:36]current date 1729952991 [14:29:36]FM_GetShiftState [14:29:36]SAM_PROTO_GetShiftState [14:29:36]wFMCommunicate request_size=4 [14:29:36]MH_SAM_APDU [14:29:36]CAPDU: 80 13 01 00 [14:29:36]Write to MH i2c: E2 08 00 F3 0A 80 13 01 00 00 00 00 00 7A [14:29:36]Write i2c OK [14:29:36]MH_I2C_Read... [14:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:36]Read from MH i2c: E2 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 0E 00 [14:29:36]MH_I2C_Read... [14:29:36]Read from MH i2c: E2 0E 00 F3 0A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F3 [14:29:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:29:36]wFMCommunicate OK [14:29:36]SAM_PROTO_GetShiftState done [14:29:36]FM_GetShiftState done [14:29:36]opened in 1729902770 [14:29:36]opened+sec_in_day 1729989170 [14:29:36]quantity*price = 100015 [14:29:36]sum+1 = 100017 [14:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 158 26.10.2024 14:29 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191795 ФПД: 47116741084831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191795&fm=47116741084831&tin=02508201610067®Number=0000000000091776&sum=100000 [14:29:37]StoreToDocumentArchive [14:29:37]shift 541 fd 191795 [14:29:37]save to /storage/0541/doc_00191795 [14:29:37]save last doc name /storage/0541/doc_00191795 to /storage/kkm_last_doc_name [14:29:37]save OK [14:29:37]Clear old archive folders... [14:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:37]tlvbuf is 019D5010 [14:29:37]SAM_PROTO_ClearQueue [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 09 00 00 [14:29:37]Write to MH i2c: E2 08 00 00 0B 80 09 00 00 00 00 00 00 7D [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 03 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 03 00 00 0B 00 90 00 7F [14:29:37]RAPDU: 90 00 [14:29:37]wFMCommunicate OK [14:29:37]SAM_PROTO_ClearQueue done [14:29:37]KKMCreateOFDPacket [14:29:37]OFDProtocolAddRootSTLVToBuf [14:29:37]FM_MakeSignedData [14:29:37]FM_MakeSignedData [14:29:37]SAM_PROTO_SignData [14:29:37]wFMCommunicate request_size=4 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 0D 01 02 [14:29:37]Write to MH i2c: E2 08 00 01 0B 80 0D 01 02 00 00 00 00 85 [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:37]Read from MH i2c: E2 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 03 00 [14:29:37]MH_I2C_Read... [14:29:37]Read from MH i2c: E2 03 00 01 0B 00 90 00 80 [14:29:37]RAPDU: 90 00 [14:29:37]wFMCommunicate OK [14:29:37]wFMCommunicate request_size=255 [14:29:37]MH_SAM_APDU [14:29:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 DF FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 ED 02 00 35 04 06 00 2A [14:29:37]Write to MH i2c: E2 02 01 02 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 DF FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 ED 02 00 35 04 06 00 2A 00 00 7A [14:29:37]Write i2c OK [14:29:37]MH_I2C_Read... [14:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:38]Read from MH i2c: E2 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 03 00 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 03 00 02 0B 00 90 00 81 [14:29:38]RAPDU: 90 00 [14:29:38]wFMCommunicate OK [14:29:38]wFMCommunicate request_size=10 [14:29:38]MH_SAM_APDU [14:29:38]CAPDU: 80 0D 02 02 05 DA 38 9D 86 9F [14:29:38]Write to MH i2c: E2 0D 00 03 0B 80 0D 02 02 05 00 DA 38 9D 86 9F 00 00 66 [14:29:38]Write i2c OK [14:29:38]MH_I2C_Read... [14:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:38]Read from MH i2c: E2 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 03 00 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [14:29:38]RAPDU: 90 00 [14:29:38]wFMCommunicate OK [14:29:38]wFMCommunicate request_size=4 [14:29:38]MH_SAM_APDU [14:29:38]CAPDU: 80 0D 03 02 [14:29:38]Write to MH i2c: E2 08 00 04 0B 80 0D 03 02 00 00 00 00 8A [14:29:38]Write i2c OK [14:29:38]MH_I2C_Read... [14:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:38]Read from MH i2c: E2 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 0B 00 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 0B 00 04 0B 00 D7 E1 A8 9F 38 E6 51 18 90 00 11 [14:29:38]RAPDU: D7 E1 A8 9F 38 E6 51 18 90 00 [14:29:38]wFMCommunicate OK [14:29:38]SAM_PROTO_SignData done [14:29:38]FM_MakeSignedData done [14:29:38]CreateOFDProtocolMessage [14:29:38]wFMCommunicate request_size=4 [14:29:38]MH_SAM_APDU [14:29:38]CAPDU: 80 11 00 00 [14:29:38]Write to MH i2c: E2 08 00 05 0B 80 11 00 00 00 00 00 00 8A [14:29:38]Write i2c OK [14:29:38]MH_I2C_Read... [14:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:38]Read from MH i2c: E2 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 17 00 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: E2 17 00 05 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [14:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:38]wFMCommunicate OK [14:29:38]CreateOFDProtocolMessage done [14:29:38]OFDSenderStorePacket 191795 [14:29:38]StoreOFDPacket docnum=191795 [14:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 49 07 01 79 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 DF FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 ED 02 00 35 04 06 00 2A DA 38 9D 86 9F D7 E1 A8 9F 38 E6 51 18 [14:29:38]CheckFolder [14:29:38]dirname=/storage/ofd_packets [14:29:38]CheckFolder done [14:29:38]ProducePacketName [14:29:38]name=ofd_packets/00191795 [14:29:38]NVStorageSaveData ofd_packets/00191795 [14:29:38]File name is /storage/ofd_packets/00191795 [14:29:38]Write 301 bytes [14:29:38]NVStorageSaveData done [14:29:38]OFDSenderStorePacket done [14:29:38]KKMCreateOFDPacket done [14:29:38]NVStorageSaveData kkm_last_timestamp [14:29:38]File name is /storage/kkm_last_timestamp [14:29:38]Write 4 bytes [14:29:38]NVStorageSaveData done [14:29:38]ExternCall_PrintAddStr [14:29:38]wPrintStart [14:29:38]Write to MH i2c: 01 00 00 06 0B 11 [14:29:38]OFD Sender: Processing packet 191795 [packets to send 75, broken 74] [14:29:38]ProducePacketName [14:29:38]name=ofd_packets/00191795 [14:29:38]OFD Sender: To server: pG, [14:29:38]CommunicateWithHost lk.salyk.kg:30040 [14:29:38]ConnectInit lk.salyk.kg [14:29:38]Write i2c OK [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: 01 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: 01 07 00 [14:29:38]MH_I2C_Read... [14:29:38]Read from MH i2c: 01 07 00 06 0B 00 00 00 00 00 FF 0F 26 [14:29:38]RasterBufferAndPrint [14:29:38]line Счет N : (1)31101 [14:29:38]line ИНН: 02508201610067 [14:29:38]line Контрольно-Кассовый Чек [14:29:38]line ПРОДАЖА [14:29:38]line ТРК (МРК, ГНК) : 21 [14:29:38]line Товар: 2710124130 [14:29:38]line Аи-92-К-5 [14:29:38]line 14.950 * 66.90 [14:29:38]line = 1000.16 [14:29:38]line НДС 12% НСП 1% [14:29:38]line > о реализуемом товаре [14:29:38]line ОКРУГЛЕНИЕ: -0.16 [14:29:38]line ИТОГО: 1000.00 [14:29:38]line Внесено: 1000.00 [14:29:38]line СДАЧА: 0.00 [14:29:38]line НСП 1% : 8.85 [14:29:38]line НДС 12% : 106.21 [14:29:38]line Наличными: 1000.00 [14:29:38]line Безнал.: 0.00 [14:29:38]line Место: АЗС № 170 "Партнер Нефть" [14:29:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:29:38]line СНО: Общий режим [14:29:38]line Чек 158 26.10.2024 14:29 [14:29:38]line Смена: 541 ФФД: 1.0 [14:29:38]line ЗНМ: 0300000110 [14:29:38]line РНМ: 0000000000091776 [14:29:38]line Версия ККМ: 001 [14:29:38]line ФМ: 0000000000871754 [14:29:38]line ФД: 191795 [14:29:38]line ФПД: 47116741084831 [14:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T142951&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191795&fm=47116741084831&tin=02508201610067®Number=0000000000091776&sum=100000 [14:29:38]Connected sock=5 [14:29:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 49 07 01 79 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 DF FC 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 ED 02 00 35 04 06 00 2A DA 38 9D 86 9F D7 E1 A8 9F 38 E6 51 18 [14:29:38]written 0, free lines is 4095 [14:29:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 ED 3B 47 00 A9 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 33 ED 02 00 F4 03 04 00 AA A1 1C 67 B6 04 01 00 00 98 60 86 B8 2A 98 4C F5 [14:29:38]CommunicateWithHost err = 0 [14:29:38]CheckOFDResponse [14:29:38]1017 (14) - 77093643461234 [14:29:38]1041 (16) - 0000000000871754 [14:29:38]1040 (4) - 191795 [14:29:38]1012 (4) - 26.10.2024 08:00 [14:29:38]1206 (1) - 0 [14:29:38]OFD Sender: Remove packet 191795 [14:29:38]ProducePacketName [14:29:38]name=ofd_packets/00191795 [14:29:38]NVStorageDeleteData [14:29:39]Write to MH i2c: 01 00 00 31 0B 3C [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 07 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: 01 07 00 31 0B 00 00 00 00 00 B0 0C FF [14:29:39]RasterBufferAndPrint [14:29:39]line [14:29:39]line [14:29:39]line [14:29:39]line [14:29:39]line [14:29:39]written 0, free lines is 3255 [14:29:39]MH_Cut [14:29:39]Write to MH i2c: D1 01 00 38 0B 01 15 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: D1 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: D1 01 00 [14:29:39]MH_I2C_Read... [14:29:39]Read from MH i2c: D1 01 00 38 0B 00 14 [14:29:39]Write to MH i2c: 01 00 00 39 0B 44 [14:29:39]Write i2c OK [14:29:39]MH_I2C_Read... [14:29:39]OFD Sender: No OFD packet to send [14:29:39]*** Cut start [14:29:39]*** Partial cut [14:29:39]*** CUTSNS_PIN = 1 [14:29:39]*** CUTSNS_PIN = 0 [14:29:40]*** Brake cut motor [14:29:40]Read from MH i2c: 01 [14:29:40]MH_I2C_Read... [14:29:40]*** Stop cut motor [14:29:40]*** Cut end [14:29:40]Read from MH i2c: 01 07 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [14:29:40]process_action close_receipt done [14:29:40]requested_data is exist [14:29:40]produce_requested_data [14:29:40]requested_item fm.sn is exist - process it [14:29:40]wFMCommunicate request_size=4 [14:29:40]MH_SAM_APDU [14:29:40]CAPDU: 80 11 00 00 [14:29:40]Write to MH i2c: E2 08 00 3A 0B 80 11 00 00 00 00 00 00 BF [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:40]Read from MH i2c: E2 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 17 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 17 00 3A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [14:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:29:40]wFMCommunicate OK [14:29:40]requested_item fd.num is exist - process it [14:29:40]SAM_PROTO_GetFieldsCounters [14:29:40]wFMCommunicate request_size=4 [14:29:40]MH_SAM_APDU [14:29:40]CAPDU: 80 13 00 00 [14:29:40]Write to MH i2c: E2 08 00 3B 0B 80 13 00 00 00 00 00 00 C2 [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:40]Read from MH i2c: E2 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 62 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 62 00 3B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:29:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 33 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:40]wFMCommunicate OK [14:29:40]SAM_PROTO_GetFieldsCounters done [14:29:40]requested_item shift.num is exist - process it [14:29:40]requested_item shift.opened is exist - process it [14:29:40]req_shift_opened [14:29:40]FM_GetShiftState [14:29:40]SAM_PROTO_GetShiftState [14:29:40]wFMCommunicate request_size=4 [14:29:40]MH_SAM_APDU [14:29:40]CAPDU: 80 13 01 00 [14:29:40]Write to MH i2c: E2 08 00 3C 0B 80 13 01 00 00 00 00 00 C4 [14:29:40]Write i2c OK [14:29:40]MH_I2C_Read... [14:29:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:40]Read from MH i2c: E2 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 0E 00 [14:29:40]MH_I2C_Read... [14:29:40]Read from MH i2c: E2 0E 00 3C 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3D [14:29:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:29:40]wFMCommunicate OK [14:29:40]SAM_PROTO_GetShiftState done [14:29:40]FM_GetShiftState done [14:29:40]req_shift_opened done [14:29:40]requested_item shift.open_date is exist - process it [14:29:40]req_shift_open_date [14:29:40]req_shift_open_date done [14:29:40]produce_requested_data done [14:29:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191795,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:29:40]process_action_free close_receipt [14:29:40]json_value_free [14:29:40]json_value_free done [14:29:40]process_json_proto returns [14:29:40]Send response to host [14:29:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191795,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:29:40]free response buf [14:29:40]execute_script done [14:29:40]execute_script returns [14:29:40]free content buf [14:29:40]Sock 6.Close socket [14:29:40]Sock 6.Thread stoped [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:17]accept exits with 8 [14:30:17]New connection [14:30:17]New thread 3066961252 created [14:30:17]Thread 3066817892 joined [14:30:17]Waiting for new connection... [14:30:17] Sock 8.Parse request [14:30:17]Sock 8.Check first char [14:30:17]Sock 8.First char is OK [14:30:17]request: POST /json_proto HTTP/1.0 [14:30:17]Method: POST [14:30:17]URL: /json_proto [14:30:17]Method is POST - this is cgi request [14:30:17]url: /json_proto [14:30:17]query_string will be loaded in cgi processing [14:30:17]execute_cgi json_proto POST (null) [14:30:17]execute_cgi path=json_proto method=POST [14:30:17]POST find Content-Length [14:30:17]Host: 172.17.63.131:8080 [14:30:17]Content-Length: 977 [14:30:17]Content-Type: application/json [14:30:17] [14:30:17]POST finish read [14:30:17]Found Content-Length = 977 [14:30:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31100", "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" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:17]execute_script... [14:30: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)31100", "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" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:17]POST & json_proto [14:30:17]process_json_proto [14:30:17]json parsed OK: [14:30:17]protocol is kg_v1.0 [14:30:17]action value=close_receipt [14:30:17]process_action close_receipt [14:30:17]cmd_close_receipt [14:30:17]MH_GetDate [14:30:17]Write to MH i2c: F0 00 00 3D 0B 37 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 09 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: F0 09 00 3D 0B 00 08 FD 1C 67 22 05 6E 64 C1 [14:30:17]GetLastDocTimeStamp 1729952991 [14:30:17]current date 1729953032 [14:30:17]FM_GetShiftState [14:30:17]SAM_PROTO_GetShiftState [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 13 01 00 [14:30:17]Write to MH i2c: E2 08 00 3E 0B 80 13 01 00 00 00 00 00 C6 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0E 00 3E 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3F [14:30:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_GetShiftState done [14:30:17]FM_GetShiftState done [14:30:17]opened in 1729902770 [14:30:17]opened+sec_in_day 1729989170 [14:30:17]quantity*price = 450072 [14:30:17]sum+1 = 450073 [14:30:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 159 26.10.2024 14:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 59.85 сом ФМ: 0000000000871754 ФД: 191796 ФПД: 177656537061333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191796&fm=177656537061333&tin=02508201610067®Number=0000000000091776&sum=450000 [14:30:18]StoreToDocumentArchive [14:30:18]shift 541 fd 191796 [14:30:18]save to /storage/0541/doc_00191796 [14:30:18]save last doc name /storage/0541/doc_00191796 to /storage/kkm_last_doc_name [14:30:18]save OK [14:30:18]Clear old archive folders... [14:30:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:18]tlvbuf is 017F1410 [14:30:18]SAM_PROTO_ClearQueue [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 09 00 00 [14:30:18]Write to MH i2c: E2 08 00 4B 0B 80 09 00 00 00 00 00 00 C8 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 4B 0B 00 90 00 CA [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_ClearQueue done [14:30:18]KKMCreateOFDPacket [14:30:18]OFDProtocolAddRootSTLVToBuf [14:30:18]FM_MakeSignedData [14:30:18]FM_MakeSignedData [14:30:18]SAM_PROTO_SignData [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 01 02 [14:30:18]Write to MH i2c: E2 08 00 4C 0B 80 0D 01 02 00 00 00 00 D0 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=255 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 ED 02 00 35 04 06 00 A1 93 E2 C8 [14:30:18]Write to MH i2c: E2 02 01 4D 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 ED 02 00 35 04 06 00 A1 93 E2 C8 00 00 16 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=7 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 02 02 02 97 D5 [14:30:18]Write to MH i2c: E2 0A 00 4E 0B 80 0D 02 02 02 00 97 D5 00 00 43 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [14:30:18]RAPDU: 90 00 [14:30:18]wFMCommunicate OK [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 0D 03 02 [14:30:18]Write to MH i2c: E2 08 00 4F 0B 80 0D 03 02 00 00 00 00 D5 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0B 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0B 00 4F 0B 00 F7 8F 98 38 47 31 BC 9C 90 00 FC [14:30:18]RAPDU: F7 8F 98 38 47 31 BC 9C 90 00 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_SignData done [14:30:18]FM_MakeSignedData done [14:30:18]CreateOFDProtocolMessage [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 11 00 00 [14:30:18]Write to MH i2c: E2 08 00 50 0B 80 11 00 00 00 00 00 00 D5 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 50 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [14:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:18]wFMCommunicate OK [14:30:18]CreateOFDProtocolMessage done [14:30:18]OFDSenderStorePacket 191796 [14:30:18]StoreOFDPacket docnum=191796 [14:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6F 0E 04 01 3A CD 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 ED 02 00 35 04 06 00 A1 93 E2 C8 97 D5 F7 8F 98 38 47 31 BC 9C [14:30:18]CheckFolder [14:30:18]dirname=/storage/ofd_packets [14:30:18]CheckFolder done [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00191796 [14:30:18]NVStorageSaveData ofd_packets/00191796 [14:30:18]File name is /storage/ofd_packets/00191796 [14:30:18]Write 298 bytes [14:30:18]NVStorageSaveData done [14:30:18]OFDSenderStorePacket done [14:30:18]KKMCreateOFDPacket done [14:30:18]NVStorageSaveData kkm_last_timestamp [14:30:18]File name is /storage/kkm_last_timestamp [14:30:18]Write 4 bytes [14:30:18]NVStorageSaveData done [14:30:18]ExternCall_PrintAddStr [14:30:18]wPrintStart [14:30:18]Write to MH i2c: 01 00 00 51 0B 5C [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 FF 0F 71 [14:30:18]RasterBufferAndPrint [14:30:18]line Счет N : (1)31100 [14:30:19]line ИНН: 02508201610067 [14:30:19]line Контрольно-Кассовый Чек [14:30:19]line ПРОДАЖА [14:30:19]line ТРК (МРК, ГНК) : 22 [14:30:19]line Товар: 2710194210 [14:30:19]line ДТ-К-5 [14:30:19]line 59.850 * 75.20 [14:30:19]line = 4500.72 [14:30:19]line НДС 12% НСП 1% [14:30:19]line > о реализуемом товаре [14:30:19]line ОКРУГЛЕНИЕ: -0.72 [14:30:19]line ИТОГО: 4500.00 [14:30:19]line Внесено: 4500.00 [14:30:19]line СДАЧА: 0.00 [14:30:19]line НСП 1% : 39.83 [14:30:19]line НДС 12% : 477.95 [14:30:19]line Наличными: 4500.00 [14:30:19]line Безнал.: 0.00 [14:30:19]line Место: АЗС № 170 "Партнер Нефть" [14:30:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:30:19]line СНО: Общий режим [14:30:19]line Чек 159 26.10.2024 14:30 [14:30:19]line Смена: 541 ФФД: 1.0 [14:30:19]line ЗНМ: 0300000110 [14:30:19]line РНМ: 0000000000091776 [14:30:19]line Версия ККМ: 001 [14:30:19]line [14:30:19]line Дисконтная программа [14:30:19]line ДТ [14:30:19]line номер 170 [14:30:19]line сэкономлено 59.85 сом [14:30:19]line ФМ: 0000000000871754 [14:30:19]line ФД: 191796 [14:30:19]line ФПД: 177656537061333 [14:30:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191796&fm=177656537061333&tin=02508201610067®Number=0000000000091776&sum=450000 [14:30:19]written 0, free lines is 4095 [14:30:19]OFD Sender: Processing packet 191796 [packets to send 75, broken 74] [14:30:19]ProducePacketName [14:30:19]name=ofd_packets/00191796 [14:30:19]OFD Sender: To server: pG, [14:30:19]CommunicateWithHost lk.salyk.kg:30040 [14:30:19]ConnectInit lk.salyk.kg [14:30:19]Connected sock=6 [14:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6F 0E 04 01 3A CD 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 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 08 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 ED 02 00 35 04 06 00 A1 93 E2 C8 97 D5 F7 8F 98 38 47 31 BC 9C [14:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E3 99 47 00 13 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 34 ED 02 00 F4 03 04 00 D3 A1 1C 67 B6 04 01 00 00 EB 3C DD 10 04 FD 00 84 [14:30:19]CommunicateWithHost err = 0 [14:30:19]CheckOFDResponse [14:30:19]1017 (14) - 77093643461234 [14:30:19]1041 (16) - 0000000000871754 [14:30:19]1040 (4) - 191796 [14:30:19]1012 (4) - 26.10.2024 08:01 [14:30:19]1206 (1) - 0 [14:30:19]OFD Sender: Remove packet 191796 [14:30:19]ProducePacketName [14:30:19]name=ofd_packets/00191796 [14:30:19]NVStorageDeleteData [14:30:19]Write to MH i2c: 01 00 00 81 0B 8C [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 81 0B 00 00 00 00 00 6D 0C 0C [14:30:19]RasterBufferAndPrint [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]line [14:30:19]written 0, free lines is 3187 [14:30:19]MH_Cut [14:30:19]Write to MH i2c: D1 01 00 88 0B 01 65 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 01 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: D1 01 00 88 0B 00 64 [14:30:19]Write to MH i2c: 01 00 00 89 0B 94 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:20]OFD Sender: No OFD packet to send [14:30:20]*** Cut start [14:30:20]*** Partial cut [14:30:20]*** CUTSNS_PIN = 1 [14:30:20]*** CUTSNS_PIN = 0 [14:30:21]*** Brake cut motor [14:30:21]Read from MH i2c: 01 [14:30:21]MH_I2C_Read... [14:30:21]*** Stop cut motor [14:30:21]*** Cut end [14:30:21]Read from MH i2c: 01 07 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: 01 07 00 89 0B 00 00 00 00 00 FF 0F A9 [14:30:21]process_action close_receipt done [14:30:21]requested_data is exist [14:30:21]produce_requested_data [14:30:21]requested_item fm.sn is exist - process it [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 11 00 00 [14:30:21]Write to MH i2c: E2 08 00 8A 0B 80 11 00 00 00 00 00 00 0F [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 17 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 17 00 8A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [14:30:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:21]wFMCommunicate OK [14:30:21]requested_item fd.num is exist - process it [14:30:21]SAM_PROTO_GetFieldsCounters [14:30:21]wFMCommunicate request_size=4 [14:30:21]MH_SAM_APDU [14:30:21]CAPDU: 80 13 00 00 [14:30:21]Write to MH i2c: E2 08 00 8B 0B 80 13 00 00 00 00 00 00 12 [14:30:21]Write i2c OK [14:30:21]MH_I2C_Read... [14:30:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:21]Read from MH i2c: E2 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 62 00 [14:30:21]MH_I2C_Read... [14:30:21]Read from MH i2c: E2 62 00 8B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14:30:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 34 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:21]wFMCommunicate OK [14:30:21]SAM_PROTO_GetFieldsCounters done [14:30:21]requested_item shift.num is exist - process it [14:30:21]requested_item shift.opened is exist - process it [14:30:21]req_shift_opened [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 8C 0B 80 13 01 00 00 00 00 00 14 [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 8C 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8D [14:30:21]RAPDU: 09 00 01 B2 38 1C 67 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]req_shift_opened done [14:30:21]requested_item shift.open_date is exist - process it [14:30:21]req_shift_open_date [14:30:21]req_shift_open_date done [14:30:21]produce_requested_data done [14:30:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191796,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:30:21]process_action_free close_receipt [14:30:21]json_value_free [14:30:21]json_value_free done [14:30:21]process_json_proto returns [14:30:21]Send response to host [14:30:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191796,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:30:21]free response buf [14:30:21]execute_script done [14:30:21]execute_script returns [14:30:21]free content buf [14:30:21]Sock 8.Close socket [14:30:21]Sock 8.Thread stoped [14:30:21]accept exits with 5 [14:30:21]New connection [14:30:21]New thread 3066817892 created [14:30:21]Thread 3066961252 joined [14:30:21]Waiting for new connection... [14:30:21] Sock 5.Parse request [14:30:21]Sock 5.Check first char [14:30:21]Sock 5.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.63.131:8080 [14:30:21]Content-Length: 681 [14:30:21]Content-Type: application/json [14:30:21] [14:30:21]POST finish read [14:30:21]Found Content-Length = 681 [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)31102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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)31102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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 8D 0B 87 [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 8D 0B 00 0C FD 1C 67 22 05 6E 64 15 [14:30:21]GetLastDocTimeStamp 1729953032 [14:30:21]current date 1729953036 [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 8E 0B 80 13 01 00 00 00 00 00 16 [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 8E 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8F [14:30:21]RAPDU: 09 00 01 B2 38 1C 67 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 1729902770 [14:30:21]opened+sec_in_day 1729989170 [14:30:21]quantity*price = 100015 [14:30:21]sum+1 = 100017 [14:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 160 26.10.2024 14:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191797 ФПД: 86414119462695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143036&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191797&fm=86414119462695&tin=02508201610067®Number=0000000000091776&sum=100000 [14:30:23]StoreToDocumentArchive [14:30:23]shift 541 fd 191797 [14:30:23]save to /storage/0541/doc_00191797 [14:30:23]save last doc name /storage/0541/doc_00191797 to /storage/kkm_last_doc_name [14:30:23]save OK [14:30:23]Clear old archive folders... [14:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:23]tlvbuf is 01745010 [14:30:23]SAM_PROTO_ClearQueue [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 09 00 00 [14:30:23]Write to MH i2c: E2 08 00 9B 0B 80 09 00 00 00 00 00 00 18 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]SAM_PROTO_ClearQueue done [14:30:23]KKMCreateOFDPacket [14:30:23]OFDProtocolAddRootSTLVToBuf [14:30:23]FM_MakeSignedData [14:30:23]FM_MakeSignedData [14:30:23]SAM_PROTO_SignData [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 01 02 [14:30:23]Write to MH i2c: E2 08 00 9C 0B 80 0D 01 02 00 00 00 00 20 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=255 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0C FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 ED 02 00 35 04 06 00 4E [14:30:23]Write to MH i2c: E2 02 01 9D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0C FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 ED 02 00 35 04 06 00 4E 00 00 6B [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=10 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 02 02 05 97 DA E4 E7 27 [14:30:23]Write to MH i2c: E2 0D 00 9E 0B 80 0D 02 02 05 00 97 DA E4 E7 27 00 00 90 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 03 02 [14:30:23]Write to MH i2c: E2 08 00 9F 0B 80 0D 03 02 00 00 00 00 25 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0B 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0B 00 9F 0B 00 B4 63 E7 75 93 B0 6C 02 90 00 4A [14:30:23]RAPDU: B4 63 E7 75 93 B0 6C 02 90 00 [14:30:23]wFMCommunicate OK [14:30:23]SAM_PROTO_SignData done [14:30:23]FM_MakeSignedData done [14:30:23]CreateOFDProtocolMessage [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 11 00 00 [14:30:23]Write to MH i2c: E2 08 00 A0 0B 80 11 00 00 00 00 00 00 25 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:24]Read from MH i2c: E2 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: E2 17 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: E2 17 00 A0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 78 [14:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:24]wFMCommunicate OK [14:30:24]CreateOFDProtocolMessage done [14:30:24]OFDSenderStorePacket 191797 [14:30:24]StoreOFDPacket docnum=191797 [14:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 2B 07 01 C6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0C FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 ED 02 00 35 04 06 00 4E 97 DA E4 E7 27 B4 63 E7 75 93 B0 6C 02 [14:30:24]CheckFolder [14:30:24]dirname=/storage/ofd_packets [14:30:24]CheckFolder done [14:30:24]ProducePacketName [14:30:24]name=ofd_packets/00191797 [14:30:24]NVStorageSaveData ofd_packets/00191797 [14:30:24]File name is /storage/ofd_packets/00191797 [14:30:24]Write 301 bytes [14:30:24]NVStorageSaveData done [14:30:24]OFDSenderStorePacket done [14:30:24]KKMCreateOFDPacket done [14:30:24]NVStorageSaveData kkm_last_timestamp [14:30:24]File name is /storage/kkm_last_timestamp [14:30:24]Write 4 bytes [14:30:24]NVStorageSaveData done [14:30:24]ExternCall_PrintAddStr [14:30:24]wPrintStart [14:30:24]Write to MH i2c: 01 00 00 A1 0B AC [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [14:30:24]RasterBufferAndPrint [14:30:24]line Счет N : (1)31102 [14:30:24]line ИНН: 02508201610067 [14:30:24]line Контрольно-Кассовый Чек [14:30:24]line ПРОДАЖА [14:30:24]line ТРК (МРК, ГНК) : 12 [14:30:24]line Товар: 2710124130 [14:30:24]line Аи-92-К-5 [14:30:24]line 14.950 * 66.90 [14:30:24]line = 1000.16 [14:30:24]line НДС 12% НСП 1% [14:30:24]line > о реализуемом товаре [14:30:24]line ОКРУГЛЕНИЕ: -0.16 [14:30:24]line ИТОГО: 1000.00 [14:30:24]line Внесено: 1000.00 [14:30:24]line СДАЧА: 0.00 [14:30:24]line НСП 1% : 8.85 [14:30:24]line НДС 12% : 106.21 [14:30:24]line Наличными: 1000.00 [14:30:24]line Безнал.: 0.00 [14:30:24]line Место: АЗС № 170 "Партнер Нефть" [14:30:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:30:24]line СНО: Общий режим [14:30:24]line Чек 160 26.10.2024 14:30 [14:30:24]line Смена: 541 ФФД: 1.0 [14:30:24]line ЗНМ: 0300000110 [14:30:24]line РНМ: 0000000000091776 [14:30:24]line Версия ККМ: 001 [14:30:24]line ФМ: 0000000000871754 [14:30:24]line ФД: 191797 [14:30:24]line ФПД: 86414119462695 [14:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143036&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191797&fm=86414119462695&tin=02508201610067®Number=0000000000091776&sum=100000 [14:30:24]written 0, free lines is 4095 [14:30:24]OFD Sender: Processing packet 191797 [packets to send 75, broken 74] [14:30:24]ProducePacketName [14:30:24]name=ofd_packets/00191797 [14:30:24]OFD Sender: To server: pG, [14:30:24]CommunicateWithHost lk.salyk.kg:30040 [14:30:24]ConnectInit lk.salyk.kg [14:30:24]Connected sock=8 [14:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AD 2B 07 01 C6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 0C FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 ED 02 00 35 04 06 00 4E 97 DA E4 E7 27 B4 63 E7 75 93 B0 6C 02 [14:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D8 64 47 00 06 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 35 ED 02 00 F4 03 04 00 D8 A1 1C 67 B6 04 01 00 00 EE EA A9 2A 1F B7 2C C0 [14:30:24]CommunicateWithHost err = 0 [14:30:24]CheckOFDResponse [14:30:24]1017 (14) - 77093643461234 [14:30:24]1041 (16) - 0000000000871754 [14:30:24]1040 (4) - 191797 [14:30:24]1012 (4) - 26.10.2024 08:01 [14:30:24]1206 (1) - 0 [14:30:24]OFD Sender: Remove packet 191797 [14:30:24]ProducePacketName [14:30:24]name=ofd_packets/00191797 [14:30:24]NVStorageDeleteData [14:30:24]Write to MH i2c: 01 00 00 CC 0B D7 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 BF 0C A9 [14:30:24]RasterBufferAndPrint [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]written 0, free lines is 3274 [14:30:24]MH_Cut [14:30:24]Write to MH i2c: D1 01 00 D3 0B 01 B0 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 01 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 01 00 D3 0B 00 AF [14:30:24]Write to MH i2c: 01 00 00 D4 0B DF [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:25]OFD Sender: No OFD packet to send [14:30:25]*** Cut start [14:30:25]*** Partial cut [14:30:25]*** CUTSNS_PIN = 1 [14:30:25]*** CUTSNS_PIN = 0 [14:30:25]*** 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 D4 0B 00 00 00 00 00 FF 0F F4 [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 D5 0B 80 11 00 00 00 00 00 00 5A [14:30:25]Write i2c OK [14:30:25]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [14:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:30:26]wFMCommunicate OK [14:30:26]requested_item fd.num is exist - process it [14:30:26]SAM_PROTO_GetFieldsCounters [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 13 00 00 [14:30:26]Write to MH i2c: E2 08 00 D6 0B 80 13 00 00 00 00 00 00 5D [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 62 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 62 00 D6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [14:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 35 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_GetFieldsCounters done [14:30:26]requested_item shift.num is exist - process it [14:30:26]requested_item shift.opened is exist - process it [14:30:26]req_shift_opened [14:30:26]FM_GetShiftState [14:30:26]SAM_PROTO_GetShiftState [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 13 01 00 [14:30:26]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:26]Read from MH i2c: E2 0E 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D8 [14:30:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_GetShiftState done [14:30:26]FM_GetShiftState done [14:30:26]req_shift_opened done [14:30:26]requested_item shift.open_date is exist - process it [14:30:26]req_shift_open_date [14:30:26]req_shift_open_date done [14:30:26]produce_requested_data done [14:30:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191797,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:30:26]process_action_free close_receipt [14:30:26]json_value_free [14:30:26]json_value_free done [14:30:26]process_json_proto returns [14:30:26]Send response to host [14:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191797,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:30:26]free response buf [14:30:26]execute_script done [14:30:26]execute_script returns [14:30:26]free content buf [14:30:26]Sock 5.Close socket [14:30:26]Sock 5.Thread stoped [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:33]accept exits with 6 [14:31:33]New connection [14:31:33]New thread 3066961252 created [14:31:33]Thread 3066817892 joined [14:31:33]Waiting for new connection... [14:31:33] Sock 6.Parse request [14:31:33]Sock 6.Check first char [14:31:33]Sock 6.First char is OK [14:31:33]request: POST /json_proto HTTP/1.0 [14:31:33]Method: POST [14:31:33]URL: /json_proto [14:31:33]Method is POST - this is cgi request [14:31:33]url: /json_proto [14:31:33]query_string will be loaded in cgi processing [14:31:33]execute_cgi json_proto POST (null) [14:31:33]execute_cgi path=json_proto method=POST [14:31:33]POST find Content-Length [14:31:33]Host: 172.17.63.131:8080 [14:31:33]Content-Length: 676 [14:31:33]Content-Type: application/json [14:31:33] [14:31:33]POST finish read [14:31:33]Found Content-Length = 676 [14:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:33]execute_script... [14:31:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:33]POST & json_proto [14:31:33]process_json_proto [14:31:33]json parsed OK: [14:31:33]protocol is kg_v1.0 [14:31:33]action value=close_receipt [14:31:33]process_action close_receipt [14:31:33]cmd_close_receipt [14:31:33]MH_GetDate [14:31:33]Write to MH i2c: F0 00 00 D8 0B D2 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: F0 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: F0 09 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: F0 09 00 D8 0B 00 54 FD 1C 67 22 05 6E 64 A8 [14:31:33]GetLastDocTimeStamp 1729953036 [14:31:33]current date 1729953108 [14:31:33]FM_GetShiftState [14:31:33]SAM_PROTO_GetShiftState [14:31:33]wFMCommunicate request_size=4 [14:31:33]MH_SAM_APDU [14:31:33]CAPDU: 80 13 01 00 [14:31:33]Write to MH i2c: E2 08 00 D9 0B 80 13 01 00 00 00 00 00 61 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 D9 0B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DA [14:31:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_GetShiftState done [14:31:33]FM_GetShiftState done [14:31:33]opened in 1729902770 [14:31:33]opened+sec_in_day 1729989170 [14:31:33]quantity*price = 30038 [14:31:33]sum+1 = 30039 [14:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 161 26.10.2024 14:31 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191798 ФПД: 148643876480308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143148&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191798&fm=148643876480308&tin=02508201610067®Number=0000000000091776&sum=30000 [14:31:35]StoreToDocumentArchive [14:31:35]shift 541 fd 191798 [14:31:35]save to /storage/0541/doc_00191798 [14:31:35]save last doc name /storage/0541/doc_00191798 to /storage/kkm_last_doc_name [14:31:35]save OK [14:31:35]Clear old archive folders... [14:31:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:35]tlvbuf is 016CE6A0 [14:31:35]SAM_PROTO_ClearQueue [14:31:35]wFMCommunicate request_size=4 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 09 00 00 [14:31:35]Write to MH i2c: E2 08 00 E6 0B 80 09 00 00 00 00 00 00 63 [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [14:31:35]RAPDU: 90 00 [14:31:35]wFMCommunicate OK [14:31:35]SAM_PROTO_ClearQueue done [14:31:35]KKMCreateOFDPacket [14:31:35]OFDProtocolAddRootSTLVToBuf [14:31:35]FM_MakeSignedData [14:31:35]FM_MakeSignedData [14:31:35]SAM_PROTO_SignData [14:31:35]wFMCommunicate request_size=4 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 0D 01 02 [14:31:35]Write to MH i2c: E2 08 00 E7 0B 80 0D 01 02 00 00 00 00 6B [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [14:31:35]RAPDU: 90 00 [14:31:35]wFMCommunicate OK [14:31:35]wFMCommunicate request_size=255 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 54 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 ED 02 00 35 04 06 00 87 [14:31:35]Write to MH i2c: E2 02 01 E8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 54 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 ED 02 00 35 04 06 00 87 00 00 33 [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [14:31:35]RAPDU: 90 00 [14:31:35]wFMCommunicate OK [14:31:35]wFMCommunicate request_size=10 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 0D 02 02 05 30 D9 74 A5 34 [14:31:35]Write to MH i2c: E2 0D 00 E9 0B 80 0D 02 02 05 00 30 D9 74 A5 34 00 00 CE [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [14:31:35]RAPDU: 90 00 [14:31:35]wFMCommunicate OK [14:31:35]wFMCommunicate request_size=4 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 0D 03 02 [14:31:35]Write to MH i2c: E2 08 00 EA 0B 80 0D 03 02 00 00 00 00 70 [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 0B 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 0B 00 EA 0B 00 67 C0 6B B5 5C A3 D4 00 90 00 8B [14:31:35]RAPDU: 67 C0 6B B5 5C A3 D4 00 90 00 [14:31:35]wFMCommunicate OK [14:31:35]SAM_PROTO_SignData done [14:31:35]FM_MakeSignedData done [14:31:35]CreateOFDProtocolMessage [14:31:35]wFMCommunicate request_size=4 [14:31:35]MH_SAM_APDU [14:31:35]CAPDU: 80 11 00 00 [14:31:35]Write to MH i2c: E2 08 00 EB 0B 80 11 00 00 00 00 00 00 70 [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:35]Read from MH i2c: E2 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 17 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: E2 17 00 EB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [14:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:31:35]wFMCommunicate OK [14:31:35]CreateOFDProtocolMessage done [14:31:35]OFDSenderStorePacket 191798 [14:31:35]StoreOFDPacket docnum=191798 [14:31:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 63 F4 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 54 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 ED 02 00 35 04 06 00 87 30 D9 74 A5 34 67 C0 6B B5 5C A3 D4 00 [14:31:35]CheckFolder [14:31:35]dirname=/storage/ofd_packets [14:31:35]CheckFolder done [14:31:35]ProducePacketName [14:31:35]name=ofd_packets/00191798 [14:31:35]NVStorageSaveData ofd_packets/00191798 [14:31:35]File name is /storage/ofd_packets/00191798 [14:31:35]Write 301 bytes [14:31:35]NVStorageSaveData done [14:31:35]OFDSenderStorePacket done [14:31:35]KKMCreateOFDPacket done [14:31:35]NVStorageSaveData kkm_last_timestamp [14:31:35]File name is /storage/kkm_last_timestamp [14:31:35]Write 4 bytes [14:31:35]NVStorageSaveData done [14:31:35]ExternCall_PrintAddStr [14:31:35]wPrintStart [14:31:35]Write to MH i2c: 01 00 00 EC 0B F7 [14:31:35]Write i2c OK [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: 01 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: 01 07 00 [14:31:35]MH_I2C_Read... [14:31:35]Read from MH i2c: 01 07 00 EC 0B 00 00 00 00 00 FF 0F 0C [14:31:35]RasterBufferAndPrint [14:31:35]line Счет N : (1)31103 [14:31:35]line ИНН: 02508201610067 [14:31:35]line Контрольно-Кассовый Чек [14:31:35]line ПРОДАЖА [14:31:35]line ТРК (МРК, ГНК) : 21 [14:31:35]line Товар: 2710124130 [14:31:35]line Аи-92-К-5 [14:31:35]line 4.490 * 66.90 [14:31:35]line = 300.38 [14:31:35]line НДС 12% НСП 1% [14:31:35]line > о реализуемом товаре [14:31:35]line ОКРУГЛЕНИЕ: -0.38 [14:31:35]line ИТОГО: 300.00 [14:31:35]line Внесено: 300.00 [14:31:35]line СДАЧА: 0.00 [14:31:35]line НСП 1% : 2.66 [14:31:35]line НДС 12% : 31.90 [14:31:35]line Наличными: 300.00 [14:31:35]line Безнал.: 0.00 [14:31:35]line Место: АЗС № 170 "Партнер Нефть" [14:31:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:31:35]line СНО: Общий режим [14:31:35]line Чек 161 26.10.2024 14:31 [14:31:35]line Смена: 541 ФФД: 1.0 [14:31:35]line ЗНМ: 0300000110 [14:31:35]line РНМ: 0000000000091776 [14:31:35]line Версия ККМ: 001 [14:31:35]line ФМ: 0000000000871754 [14:31:35]line ФД: 191798 [14:31:35]line ФПД: 148643876480308 [14:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143148&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191798&fm=148643876480308&tin=02508201610067®Number=0000000000091776&sum=30000 [14:31:35]OFD Sender: Processing packet 191798 [packets to send 75, broken 74] [14:31:35]ProducePacketName [14:31:35]name=ofd_packets/00191798 [14:31:35]OFD Sender: To server: pG, [14:31:35]CommunicateWithHost lk.salyk.kg:30040 [14:31:35]ConnectInit lk.salyk.kg [14:31:35]written 0, free lines is 4095 [14:31:36]Connected sock=8 [14:31:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 63 F4 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 54 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 ED 02 00 35 04 06 00 87 30 D9 74 A5 34 67 C0 6B B5 5C A3 D4 00 [14:31:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3D 06 47 00 47 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 36 ED 02 00 F4 03 04 00 1F A2 1C 67 B6 04 01 00 00 34 34 66 6B D2 B9 46 A3 [14:31:36]CommunicateWithHost err = 0 [14:31:36]CheckOFDResponse [14:31:36]1017 (14) - 77093643461234 [14:31:36]1041 (16) - 0000000000871754 [14:31:36]1040 (4) - 191798 [14:31:36]1012 (4) - 26.10.2024 08:02 [14:31:36]1206 (1) - 0 [14:31:36]OFD Sender: Remove packet 191798 [14:31:36]ProducePacketName [14:31:36]name=ofd_packets/00191798 [14:31:36]NVStorageDeleteData [14:31:36]Write to MH i2c: 01 00 00 17 0C 23 [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: 01 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: 01 07 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: 01 07 00 17 0C 00 00 00 00 00 C6 0C FC [14:31:36]RasterBufferAndPrint [14:31:36]line [14:31:36]line [14:31:36]line [14:31:36]line [14:31:36]line [14:31:36]written 0, free lines is 3279 [14:31:36]MH_Cut [14:31:36]Write to MH i2c: D1 01 00 1E 0C 01 FC [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: D1 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: D1 01 00 [14:31:36]MH_I2C_Read... [14:31:36]Read from MH i2c: D1 01 00 1E 0C 00 FB [14:31:36]Write to MH i2c: 01 00 00 1F 0C 2B [14:31:36]Write i2c OK [14:31:36]MH_I2C_Read... [14:31:36]OFD Sender: No OFD packet to send [14:31:37]*** Cut start [14:31:37]*** Partial cut [14:31:37]*** CUTSNS_PIN = 1 [14:31:37]*** CUTSNS_PIN = 0 [14:31:37]*** Brake cut motor [14:31:37]Read from MH i2c: 01 [14:31:37]MH_I2C_Read... [14:31:37]*** Stop cut motor [14:31:37]*** Cut end [14:31:37]Read from MH i2c: 01 07 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: 01 07 00 1F 0C 00 00 00 00 00 FF 0F 40 [14:31:37]process_action close_receipt done [14:31:37]requested_data is exist [14:31:37]produce_requested_data [14:31:37]requested_item fm.sn is exist - process it [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 11 00 00 [14:31:37]Write to MH i2c: E2 08 00 20 0C 80 11 00 00 00 00 00 00 A6 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 17 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 17 00 20 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [14:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:31:37]wFMCommunicate OK [14:31:37]requested_item fd.num is exist - process it [14:31:37]SAM_PROTO_GetFieldsCounters [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 13 00 00 [14:31:37]Write to MH i2c: E2 08 00 21 0C 80 13 00 00 00 00 00 00 A9 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 62 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 62 00 21 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [14:31:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 36 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:38]wFMCommunicate OK [14:31:38]SAM_PROTO_GetFieldsCounters done [14:31:38]requested_item shift.num is exist - process it [14:31:38]requested_item shift.opened is exist - process it [14:31:38]req_shift_opened [14:31:38]FM_GetShiftState [14:31:38]SAM_PROTO_GetShiftState [14:31:38]wFMCommunicate request_size=4 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 13 01 00 [14:31:38]Write to MH i2c: E2 08 00 22 0C 80 13 01 00 00 00 00 00 AB [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 0E 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 0E 00 22 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 24 [14:31:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:31:38]wFMCommunicate OK [14:31:38]SAM_PROTO_GetShiftState done [14:31:38]FM_GetShiftState done [14:31:38]req_shift_opened done [14:31:38]requested_item shift.open_date is exist - process it [14:31:38]req_shift_open_date [14:31:38]req_shift_open_date done [14:31:38]produce_requested_data done [14:31:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191798,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:31:38]process_action_free close_receipt [14:31:38]json_value_free [14:31:38]json_value_free done [14:31:38]process_json_proto returns [14:31:38]Send response to host [14:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191798,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:31:38]free response buf [14:31:38]execute_script done [14:31:38]execute_script returns [14:31:38]free content buf [14:31:38]Sock 6.Close socket [14:31:38]Sock 6.Thread stoped [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:25]accept exits with 5 [14:32:25]New connection [14:32:25]New thread 3066817892 created [14:32:25]Thread 3066961252 joined [14:32:25]Waiting for new connection... [14:32:25] Sock 5.Parse request [14:32:25]Sock 5.Check first char [14:32:25]Sock 5.First char is OK [14:32:25]request: POST /json_proto HTTP/1.0 [14:32:25]Method: POST [14:32:25]URL: /json_proto [14:32:25]Method is POST - this is cgi request [14:32:25]url: /json_proto [14:32:25]query_string will be loaded in cgi processing [14:32:25]execute_cgi json_proto POST (null) [14:32:25]execute_cgi path=json_proto method=POST [14:32:25]POST find Content-Length [14:32:25]Host: 172.17.63.131:8080 [14:32:25]Content-Length: 676 [14:32:25]Content-Type: application/json [14:32:25] [14:32:25]POST finish read [14:32:25]Found Content-Length = 676 [14:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:25]execute_script... [14:32:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:25]POST & json_proto [14:32:25]process_json_proto [14:32:25]json parsed OK: [14:32:25]protocol is kg_v1.0 [14:32:25]action value=close_receipt [14:32:25]process_action close_receipt [14:32:25]cmd_close_receipt [14:32:25]MH_GetDate [14:32:25]Write to MH i2c: F0 00 00 23 0C 1E [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: F0 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: F0 09 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: F0 09 00 23 0C 00 88 FD 1C 67 22 05 6E 64 28 [14:32:25]GetLastDocTimeStamp 1729953108 [14:32:25]current date 1729953160 [14:32:25]FM_GetShiftState [14:32:25]SAM_PROTO_GetShiftState [14:32:25]wFMCommunicate request_size=4 [14:32:25]MH_SAM_APDU [14:32:25]CAPDU: 80 13 01 00 [14:32:25]Write to MH i2c: E2 08 00 24 0C 80 13 01 00 00 00 00 00 AD [14:32:25]Write i2c OK [14:32:25]MH_I2C_Read... [14:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:25]Read from MH i2c: E2 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 [14:32:25]MH_I2C_Read... [14:32:25]Read from MH i2c: E2 0E 00 24 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [14:32:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:32:25]wFMCommunicate OK [14:32:25]SAM_PROTO_GetShiftState done [14:32:25]FM_GetShiftState done [14:32:25]opened in 1729902770 [14:32:25]opened+sec_in_day 1729989170 [14:32:25]quantity*price = 50041 [14:32:25]sum+1 = 50042 [14:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 162 26.10.2024 14:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191799 ФПД: 169141977992495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191799&fm=169141977992495&tin=02508201610067®Number=0000000000091776&sum=50000 [14:32:26]StoreToDocumentArchive [14:32:26]shift 541 fd 191799 [14:32:26]save to /storage/0541/doc_00191799 [14:32:26]save last doc name /storage/0541/doc_00191799 to /storage/kkm_last_doc_name [14:32:26]save OK [14:32:26]Clear old archive folders... [14:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:26]tlvbuf is 016EB0F0 [14:32:26]SAM_PROTO_ClearQueue [14:32:26]wFMCommunicate request_size=4 [14:32:26]MH_SAM_APDU [14:32:26]CAPDU: 80 09 00 00 [14:32:26]Write to MH i2c: E2 08 00 31 0C 80 09 00 00 00 00 00 00 AF [14:32:26]Write i2c OK [14:32:26]MH_I2C_Read... [14:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:26]Read from MH i2c: E2 [14:32:26]MH_I2C_Read... [14:32:26]Read from MH i2c: E2 03 00 [14:32:26]MH_I2C_Read... [14:32:26]Read from MH i2c: E2 03 00 31 0C 00 90 00 B1 [14:32:26]RAPDU: 90 00 [14:32:26]wFMCommunicate OK [14:32:26]SAM_PROTO_ClearQueue done [14:32:26]KKMCreateOFDPacket [14:32:26]OFDProtocolAddRootSTLVToBuf [14:32:26]FM_MakeSignedData [14:32:26]FM_MakeSignedData [14:32:26]SAM_PROTO_SignData [14:32:26]wFMCommunicate request_size=4 [14:32:26]MH_SAM_APDU [14:32:26]CAPDU: 80 0D 01 02 [14:32:26]Write to MH i2c: E2 08 00 32 0C 80 0D 01 02 00 00 00 00 B7 [14:32:26]Write i2c OK [14:32:26]MH_I2C_Read... [14:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:26]Read from MH i2c: E2 [14:32:26]MH_I2C_Read... [14:32:26]Read from MH i2c: E2 03 00 [14:32:26]MH_I2C_Read... [14:32:26]Read from MH i2c: E2 03 00 32 0C 00 90 00 B2 [14:32:26]RAPDU: 90 00 [14:32:26]wFMCommunicate OK [14:32:26]wFMCommunicate request_size=255 [14:32:26]MH_SAM_APDU [14:32:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 ED 02 00 35 04 06 00 99 [14:32:26]Write to MH i2c: E2 02 01 33 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 ED 02 00 35 04 06 00 99 00 00 D3 [14:32:26]Write i2c OK [14:32:26]MH_I2C_Read... [14:32:26]OFD Sender: No OFD packet to send [14:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:27]Read from MH i2c: E2 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 03 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 03 00 33 0C 00 90 00 B3 [14:32:27]RAPDU: 90 00 [14:32:27]wFMCommunicate OK [14:32:27]wFMCommunicate request_size=10 [14:32:27]MH_SAM_APDU [14:32:27]CAPDU: 80 0D 02 02 05 D5 6F 83 CD 2F [14:32:27]Write to MH i2c: E2 0D 00 34 0C 80 0D 02 02 05 00 D5 6F 83 CD 2F 00 00 87 [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:27]Read from MH i2c: E2 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 03 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 03 00 34 0C 00 90 00 B4 [14:32:27]RAPDU: 90 00 [14:32:27]wFMCommunicate OK [14:32:27]wFMCommunicate request_size=4 [14:32:27]MH_SAM_APDU [14:32:27]CAPDU: 80 0D 03 02 [14:32:27]Write to MH i2c: E2 08 00 35 0C 80 0D 03 02 00 00 00 00 BC [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:27]Read from MH i2c: E2 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 0B 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 0B 00 35 0C 00 B8 64 07 C1 F5 61 99 D4 90 00 64 [14:32:27]RAPDU: B8 64 07 C1 F5 61 99 D4 90 00 [14:32:27]wFMCommunicate OK [14:32:27]SAM_PROTO_SignData done [14:32:27]FM_MakeSignedData done [14:32:27]CreateOFDProtocolMessage [14:32:27]wFMCommunicate request_size=4 [14:32:27]MH_SAM_APDU [14:32:27]CAPDU: 80 11 00 00 [14:32:27]Write to MH i2c: E2 08 00 36 0C 80 11 00 00 00 00 00 00 BC [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:27]Read from MH i2c: E2 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 17 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: E2 17 00 36 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [14:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:27]wFMCommunicate OK [14:32:27]CreateOFDProtocolMessage done [14:32:27]OFDSenderStorePacket 191799 [14:32:27]StoreOFDPacket docnum=191799 [14:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A5 F7 07 01 BE 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 ED 02 00 35 04 06 00 99 D5 6F 83 CD 2F B8 64 07 C1 F5 61 99 D4 [14:32:27]CheckFolder [14:32:27]dirname=/storage/ofd_packets [14:32:27]CheckFolder done [14:32:27]ProducePacketName [14:32:27]name=ofd_packets/00191799 [14:32:27]NVStorageSaveData ofd_packets/00191799 [14:32:27]File name is /storage/ofd_packets/00191799 [14:32:27]Write 301 bytes [14:32:27]NVStorageSaveData done [14:32:27]OFDSenderStorePacket done [14:32:27]KKMCreateOFDPacket done [14:32:27]NVStorageSaveData kkm_last_timestamp [14:32:27]File name is /storage/kkm_last_timestamp [14:32:27]Write 4 bytes [14:32:27]NVStorageSaveData done [14:32:27]ExternCall_PrintAddStr [14:32:27]wPrintStart [14:32:27]Write to MH i2c: 01 00 00 37 0C 43 [14:32:27]Write i2c OK [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: 01 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: 01 07 00 [14:32:27]MH_I2C_Read... [14:32:27]Read from MH i2c: 01 07 00 37 0C 00 00 00 00 00 FF 0F 58 [14:32:27]RasterBufferAndPrint [14:32:27]line Счет N : (1)31104 [14:32:27]line ИНН: 02508201610067 [14:32:27]line Контрольно-Кассовый Чек [14:32:27]line ПРОДАЖА [14:32:27]line ТРК (МРК, ГНК) : 21 [14:32:27]line Товар: 2710124130 [14:32:27]line Аи-92-К-5 [14:32:27]line 7.480 * 66.90 [14:32:27]line = 500.41 [14:32:27]line НДС 12% НСП 1% [14:32:27]line > о реализуемом товаре [14:32:27]line ОКРУГЛЕНИЕ: -0.41 [14:32:27]line ИТОГО: 500.00 [14:32:27]line Внесено: 500.00 [14:32:27]line СДАЧА: 0.00 [14:32:27]line НСП 1% : 4.43 [14:32:27]line НДС 12% : 53.14 [14:32:27]line Наличными: 500.00 [14:32:27]line Безнал.: 0.00 [14:32:27]line Место: АЗС № 170 "Партнер Нефть" [14:32:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:32:27]line СНО: Общий режим [14:32:27]line Чек 162 26.10.2024 14:32 [14:32:27]line Смена: 541 ФФД: 1.0 [14:32:27]line ЗНМ: 0300000110 [14:32:27]line РНМ: 0000000000091776 [14:32:27]line Версия ККМ: 001 [14:32:27]line ФМ: 0000000000871754 [14:32:27]line ФД: 191799 [14:32:27]line ФПД: 169141977992495 [14:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143240&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191799&fm=169141977992495&tin=02508201610067®Number=0000000000091776&sum=50000 [14:32:27]OFD Sender: Processing packet 191799 [packets to send 75, broken 74] [14:32:27]ProducePacketName [14:32:27]name=ofd_packets/00191799 [14:32:27]OFD Sender: To server: pG, [14:32:27]CommunicateWithHost lk.salyk.kg:30040 [14:32:27]ConnectInit lk.salyk.kg [14:32:27]written 0, free lines is 4095 [14:32:27]Connected sock=8 [14:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A5 F7 07 01 BE 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 ED 02 00 35 04 06 00 99 D5 6F 83 CD 2F B8 64 07 C1 F5 61 99 D4 [14:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 28 61 47 00 5A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 37 ED 02 00 F4 03 04 00 53 A2 1C 67 B6 04 01 00 00 E8 C2 A2 89 19 72 94 14 [14:32:27]CommunicateWithHost err = 0 [14:32:27]CheckOFDResponse [14:32:27]1017 (14) - 77093643461234 [14:32:27]1041 (16) - 0000000000871754 [14:32:27]1040 (4) - 191799 [14:32:27]1012 (4) - 26.10.2024 08:03 [14:32:27]1206 (1) - 0 [14:32:27]OFD Sender: Remove packet 191799 [14:32:27]ProducePacketName [14:32:27]name=ofd_packets/00191799 [14:32:27]NVStorageDeleteData [14:32:28]Write to MH i2c: 01 00 00 62 0C 6E [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: 01 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: 01 07 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 BE 0C 3F [14:32:28]RasterBufferAndPrint [14:32:28]line [14:32:28]line [14:32:28]line [14:32:28]line [14:32:28]line [14:32:28]written 0, free lines is 3268 [14:32:28]MH_Cut [14:32:28]Write to MH i2c: D1 01 00 69 0C 01 47 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: D1 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: D1 01 00 [14:32:28]MH_I2C_Read... [14:32:28]Read from MH i2c: D1 01 00 69 0C 00 46 [14:32:28]Write to MH i2c: 01 00 00 6A 0C 76 [14:32:28]Write i2c OK [14:32:28]MH_I2C_Read... [14:32:28]OFD Sender: No OFD packet to send [14:32:28]*** Cut start [14:32:28]*** Partial cut [14:32:28]*** CUTSNS_PIN = 1 [14:32:28]*** CUTSNS_PIN = 0 [14:32:29]*** Brake cut motor [14:32:29]Read from MH i2c: 01 [14:32:29]MH_I2C_Read... [14:32:29]*** Stop cut motor [14:32:29]*** Cut end [14:32:29]Read from MH i2c: 01 07 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FF 0F 8B [14:32:29]process_action close_receipt done [14:32:29]requested_data is exist [14:32:29]produce_requested_data [14:32:29]requested_item fm.sn is exist - process it [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 11 00 00 [14:32:29]Write to MH i2c: E2 08 00 6B 0C 80 11 00 00 00 00 00 00 F1 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 17 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 17 00 6B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [14:32:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:32:29]wFMCommunicate OK [14:32:29]requested_item fd.num is exist - process it [14:32:29]SAM_PROTO_GetFieldsCounters [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 13 00 00 [14:32:29]Write to MH i2c: E2 08 00 6C 0C 80 13 00 00 00 00 00 00 F4 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 62 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 62 00 6C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [14:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 37 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:29]wFMCommunicate OK [14:32:29]SAM_PROTO_GetFieldsCounters done [14:32:29]requested_item shift.num is exist - process it [14:32:29]requested_item shift.opened is exist - process it [14:32:29]req_shift_opened [14:32:29]FM_GetShiftState [14:32:29]SAM_PROTO_GetShiftState [14:32:29]wFMCommunicate request_size=4 [14:32:29]MH_SAM_APDU [14:32:29]CAPDU: 80 13 01 00 [14:32:29]Write to MH i2c: E2 08 00 6D 0C 80 13 01 00 00 00 00 00 F6 [14:32:29]Write i2c OK [14:32:29]MH_I2C_Read... [14:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:29]Read from MH i2c: E2 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 0E 00 [14:32:29]MH_I2C_Read... [14:32:29]Read from MH i2c: E2 0E 00 6D 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6F [14:32:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:32:29]wFMCommunicate OK [14:32:29]SAM_PROTO_GetShiftState done [14:32:29]FM_GetShiftState done [14:32:29]req_shift_opened done [14:32:29]requested_item shift.open_date is exist - process it [14:32:29]req_shift_open_date [14:32:29]req_shift_open_date done [14:32:29]produce_requested_data done [14:32:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191799,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:32:29]process_action_free close_receipt [14:32:29]json_value_free [14:32:29]json_value_free done [14:32:29]process_json_proto returns [14:32:29]Send response to host [14:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191799,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:32:29]free response buf [14:32:29]execute_script done [14:32:29]execute_script returns [14:32:29]free content buf [14:32:29]Sock 5.Close socket [14:32:29]Sock 5.Thread stoped [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:44]accept exits with 6 [14:33:44]New connection [14:33:44]New thread 3066961252 created [14:33:44]Thread 3066817892 joined [14:33:44]Waiting for new connection... [14:33:44] Sock 6.Parse request [14:33:44]Sock 6.Check first char [14:33:44]Sock 6.First char is OK [14:33:44]request: POST /json_proto HTTP/1.0 [14:33:44]Method: POST [14:33:44]URL: /json_proto [14:33:44]Method is POST - this is cgi request [14:33:44]url: /json_proto [14:33:44]query_string will be loaded in cgi processing [14:33:44]execute_cgi json_proto POST (null) [14:33:44]execute_cgi path=json_proto method=POST [14:33:44]POST find Content-Length [14:33:44]Host: 172.17.63.131:8080 [14:33:44]Content-Length: 676 [14:33:44]Content-Type: application/json [14:33:44] [14:33:44]POST finish read [14:33:44]Found Content-Length = 676 [14:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:44]execute_script... [14:33: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)31106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:44]POST & json_proto [14:33:44]process_json_proto [14:33:44]json parsed OK: [14:33:44]protocol is kg_v1.0 [14:33:44]action value=close_receipt [14:33:44]process_action close_receipt [14:33:44]cmd_close_receipt [14:33:44]MH_GetDate [14:33:44]Write to MH i2c: F0 00 00 6E 0C 69 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: F0 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: F0 09 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: F0 09 00 6E 0C 00 D7 FD 1C 67 22 05 6E 64 C2 [14:33:44]GetLastDocTimeStamp 1729953160 [14:33:44]current date 1729953239 [14:33:44]FM_GetShiftState [14:33:44]SAM_PROTO_GetShiftState [14:33:44]wFMCommunicate request_size=4 [14:33:44]MH_SAM_APDU [14:33:44]CAPDU: 80 13 01 00 [14:33:44]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [14:33:44]Write i2c OK [14:33:44]MH_I2C_Read... [14:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:44]Read from MH i2c: E2 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 [14:33:44]MH_I2C_Read... [14:33:44]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 71 [14:33:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:33:44]wFMCommunicate OK [14:33:44]SAM_PROTO_GetShiftState done [14:33:44]FM_GetShiftState done [14:33:44]opened in 1729902770 [14:33:44]opened+sec_in_day 1729989170 [14:33:44]quantity*price = 20003 [14:33:44]sum+1 = 20004 [14:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 163 26.10.2024 14:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191800 ФПД: 232805010640324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191800&fm=232805010640324&tin=02508201610067®Number=0000000000091776&sum=20000 [14:33:45]StoreToDocumentArchive [14:33:45]shift 541 fd 191800 [14:33:45]save to /storage/0541/doc_00191800 [14:33:45]save last doc name /storage/0541/doc_00191800 to /storage/kkm_last_doc_name [14:33:45]save OK [14:33:45]Clear old archive folders... [14:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:45]tlvbuf is 01A94070 [14:33:45]SAM_PROTO_ClearQueue [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 09 00 00 [14:33:45]Write to MH i2c: E2 08 00 7C 0C 80 09 00 00 00 00 00 00 FA [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 7C 0C 00 90 00 FC [14:33:45]RAPDU: 90 00 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_ClearQueue done [14:33:45]KKMCreateOFDPacket [14:33:45]OFDProtocolAddRootSTLVToBuf [14:33:45]FM_MakeSignedData [14:33:45]FM_MakeSignedData [14:33:45]SAM_PROTO_SignData [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 0D 01 02 [14:33:45]Write to MH i2c: E2 08 00 7D 0C 80 0D 01 02 00 00 00 00 02 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 7D 0C 00 90 00 FD [14:33:45]RAPDU: 90 00 [14:33:45]wFMCommunicate OK [14:33:45]wFMCommunicate request_size=255 [14:33:45]MH_SAM_APDU [14:33: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D7 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 ED 02 00 35 04 06 00 D3 [14:33:45]Write to MH i2c: E2 02 01 7E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D7 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 ED 02 00 35 04 06 00 D3 00 00 6B [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 7E 0C 00 90 00 FE [14:33:45]RAPDU: 90 00 [14:33:45]wFMCommunicate OK [14:33:45]wFMCommunicate request_size=10 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 0D 02 02 05 BC 23 F6 0D C4 [14:33:45]Write to MH i2c: E2 0D 00 7F 0C 80 0D 02 02 05 00 BC 23 F6 0D C4 00 00 B5 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 03 00 7F 0C 00 90 00 FF [14:33:45]RAPDU: 90 00 [14:33:45]wFMCommunicate OK [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 0D 03 02 [14:33:45]Write to MH i2c: E2 08 00 80 0C 80 0D 03 02 00 00 00 00 07 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:45]Read from MH i2c: E2 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0B 00 [14:33:45]MH_I2C_Read... [14:33:45]Read from MH i2c: E2 0B 00 80 0C 00 30 F8 D0 C8 47 06 51 87 90 00 ED [14:33:45]RAPDU: 30 F8 D0 C8 47 06 51 87 90 00 [14:33:45]wFMCommunicate OK [14:33:45]SAM_PROTO_SignData done [14:33:45]FM_MakeSignedData done [14:33:45]CreateOFDProtocolMessage [14:33:45]wFMCommunicate request_size=4 [14:33:45]MH_SAM_APDU [14:33:45]CAPDU: 80 11 00 00 [14:33:45]Write to MH i2c: E2 08 00 81 0C 80 11 00 00 00 00 00 00 07 [14:33:45]Write i2c OK [14:33:45]MH_I2C_Read... [14:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:46]Read from MH i2c: E2 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: E2 17 00 81 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [14:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:33:46]wFMCommunicate OK [14:33:46]CreateOFDProtocolMessage done [14:33:46]OFDSenderStorePacket 191800 [14:33:46]StoreOFDPacket docnum=191800 [14:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 BA 07 01 7F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D7 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 ED 02 00 35 04 06 00 D3 BC 23 F6 0D C4 30 F8 D0 C8 47 06 51 87 [14:33:46]CheckFolder [14:33:46]dirname=/storage/ofd_packets [14:33:46]CheckFolder done [14:33:46]ProducePacketName [14:33:46]name=ofd_packets/00191800 [14:33:46]NVStorageSaveData ofd_packets/00191800 [14:33:46]File name is /storage/ofd_packets/00191800 [14:33:46]Write 301 bytes [14:33:46]NVStorageSaveData done [14:33:46]OFDSenderStorePacket done [14:33:46]KKMCreateOFDPacket done [14:33:46]NVStorageSaveData kkm_last_timestamp [14:33:46]File name is /storage/kkm_last_timestamp [14:33:46]Write 4 bytes [14:33:46]NVStorageSaveData done [14:33:46]ExternCall_PrintAddStr [14:33:46]wPrintStart [14:33:46]Write to MH i2c: 01 00 00 82 0C 8E [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 82 0C 00 00 00 00 00 FF 0F A3 [14:33:46]RasterBufferAndPrint [14:33:46]line Счет N : (1)31106 [14:33:46]line ИНН: 02508201610067 [14:33:46]line Контрольно-Кассовый Чек [14:33:46]line ПРОДАЖА [14:33:46]line ТРК (МРК, ГНК) : 21 [14:33:46]line Товар: 2710124130 [14:33:46]line Аи-92-К-5 [14:33:46]line 2.990 * 66.90 [14:33:46]line = 200.03 [14:33:46]line НДС 12% НСП 1% [14:33:46]line > о реализуемом товаре [14:33:46]line ОКРУГЛЕНИЕ: -0.03 [14:33:46]line ИТОГО: 200.00 [14:33:46]line Внесено: 200.00 [14:33:46]line СДАЧА: 0.00 [14:33:46]line НСП 1% : 1.77 [14:33:46]line НДС 12% : 21.24 [14:33:46]line Наличными: 200.00 [14:33:46]line Безнал.: 0.00 [14:33:46]line Место: АЗС № 170 "Партнер Нефть" [14:33:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:33:46]line СНО: Общий режим [14:33:46]line Чек 163 26.10.2024 14:33 [14:33:46]line Смена: 541 ФФД: 1.0 [14:33:46]line ЗНМ: 0300000110 [14:33:46]line РНМ: 0000000000091776 [14:33:46]line Версия ККМ: 001 [14:33:46]line ФМ: 0000000000871754 [14:33:46]line ФД: 191800 [14:33:46]line ФПД: 232805010640324 [14:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143359&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191800&fm=232805010640324&tin=02508201610067®Number=0000000000091776&sum=20000 [14:33:46]OFD Sender: Processing packet 191800 [packets to send 75, broken 74] [14:33:46]ProducePacketName [14:33:46]name=ofd_packets/00191800 [14:33:46]OFD Sender: To server: pG, [14:33:46]CommunicateWithHost lk.salyk.kg:30040 [14:33:46]ConnectInit lk.salyk.kg [14:33:46]written 0, free lines is 4095 [14:33:46]Connected sock=8 [14:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 BA 07 01 7F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 D7 FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 ED 02 00 35 04 06 00 D3 BC 23 F6 0D C4 30 F8 D0 C8 47 06 51 87 [14:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C7 74 47 00 C3 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 38 ED 02 00 F4 03 04 00 A2 A2 1C 67 B6 04 01 00 00 65 F1 36 5F 7B 43 7D ED [14:33:46]CommunicateWithHost err = 0 [14:33:46]CheckOFDResponse [14:33:46]1017 (14) - 77093643461234 [14:33:46]1041 (16) - 0000000000871754 [14:33:46]1040 (4) - 191800 [14:33:46]1012 (4) - 26.10.2024 08:04 [14:33:46]1206 (1) - 0 [14:33:46]OFD Sender: Remove packet 191800 [14:33:46]ProducePacketName [14:33:46]name=ofd_packets/00191800 [14:33:46]NVStorageDeleteData [14:33:46]Write to MH i2c: 01 00 00 AD 0C B9 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: 01 07 00 AD 0C 00 00 00 00 00 C0 0C 8C [14:33:46]RasterBufferAndPrint [14:33:46]line [14:33:46]line [14:33:46]line [14:33:46]line [14:33:46]line [14:33:46]written 0, free lines is 3270 [14:33:46]MH_Cut [14:33:46]Write to MH i2c: D1 01 00 B4 0C 01 92 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: D1 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: D1 01 00 [14:33:46]MH_I2C_Read... [14:33:46]Read from MH i2c: D1 01 00 B4 0C 00 91 [14:33:46]Write to MH i2c: 01 00 00 B5 0C C1 [14:33:46]Write i2c OK [14:33:46]MH_I2C_Read... [14:33:47]OFD Sender: No OFD packet to send [14:33:47]*** Cut start [14:33:47]*** Partial cut [14:33:47]*** CUTSNS_PIN = 1 [14:33:47]*** CUTSNS_PIN = 0 [14:33:47]*** Brake cut motor [14:33:48]Read from MH i2c: 01 [14:33:48]MH_I2C_Read... [14:33:48]*** Stop cut motor [14:33:48]*** Cut end [14:33:48]Read from MH i2c: 01 07 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 FF 0F D6 [14:33:48]process_action close_receipt done [14:33:48]requested_data is exist [14:33:48]produce_requested_data [14:33:48]requested_item fm.sn is exist - process it [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 11 00 00 [14:33:48]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 17 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [14:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:33:48]wFMCommunicate OK [14:33:48]requested_item fd.num is exist - process it [14:33:48]SAM_PROTO_GetFieldsCounters [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 13 00 00 [14:33:48]Write to MH i2c: E2 08 00 B7 0C 80 13 00 00 00 00 00 00 3F [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 62 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 62 00 B7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [14:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 38 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:48]wFMCommunicate OK [14:33:48]SAM_PROTO_GetFieldsCounters done [14:33:48]requested_item shift.num is exist - process it [14:33:48]requested_item shift.opened is exist - process it [14:33:48]req_shift_opened [14:33:48]FM_GetShiftState [14:33:48]SAM_PROTO_GetShiftState [14:33:48]wFMCommunicate request_size=4 [14:33:48]MH_SAM_APDU [14:33:48]CAPDU: 80 13 01 00 [14:33:48]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [14:33:48]Write i2c OK [14:33:48]MH_I2C_Read... [14:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:48]Read from MH i2c: E2 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 0E 00 [14:33:48]MH_I2C_Read... [14:33:48]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BA [14:33:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:33:48]wFMCommunicate OK [14:33:48]SAM_PROTO_GetShiftState done [14:33:48]FM_GetShiftState done [14:33:48]req_shift_opened done [14:33:48]requested_item shift.open_date is exist - process it [14:33:48]req_shift_open_date [14:33:48]req_shift_open_date done [14:33:48]produce_requested_data done [14:33:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191800,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:33:48]process_action_free close_receipt [14:33:48]json_value_free [14:33:48]json_value_free done [14:33:48]process_json_proto returns [14:33:48]Send response to host [14:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191800,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:33:48]free response buf [14:33:48]execute_script done [14:33:48]execute_script returns [14:33:48]free content buf [14:33:48]Sock 6.Close socket [14:33:48]Sock 6.Thread stoped [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:06]accept exits with 5 [14:34:06]New connection [14:34:06]New thread 3066817892 created [14:34:06]Thread 3066961252 joined [14:34:06]Waiting for new connection... [14:34:06] Sock 5.Parse request [14:34:06]Sock 5.Check first char [14:34:06]Sock 5.First char is OK [14:34:06]request: POST /json_proto HTTP/1.0 [14:34:06]Method: POST [14:34:06]URL: /json_proto [14:34:06]Method is POST - this is cgi request [14:34:06]url: /json_proto [14:34:06]query_string will be loaded in cgi processing [14:34:06]execute_cgi json_proto POST (null) [14:34:06]execute_cgi path=json_proto method=POST [14:34:06]POST find Content-Length [14:34:06]Host: 172.17.63.131:8080 [14:34:06]Content-Length: 676 [14:34:06]Content-Type: application/json [14:34:06] [14:34:06]POST finish read [14:34:06]Found Content-Length = 676 [14:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.360, "sum" : 291.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:06]execute_script... [14:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.360, "sum" : 291.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 291.00, "payments": [ { "type": 0, "sum" : 291.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:06]POST & json_proto [14:34:06]process_json_proto [14:34:06]json parsed OK: [14:34:06]protocol is kg_v1.0 [14:34:06]action value=close_receipt [14:34:06]process_action close_receipt [14:34:06]cmd_close_receipt [14:34:06]MH_GetDate [14:34:06]Write to MH i2c: F0 00 00 B9 0C B4 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: F0 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: F0 09 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: F0 09 00 B9 0C 00 ED FD 1C 67 22 05 6E 64 23 [14:34:06]GetLastDocTimeStamp 1729953239 [14:34:06]current date 1729953261 [14:34:06]FM_GetShiftState [14:34:06]SAM_PROTO_GetShiftState [14:34:06]wFMCommunicate request_size=4 [14:34:06]MH_SAM_APDU [14:34:06]CAPDU: 80 13 01 00 [14:34:06]Write to MH i2c: E2 08 00 BA 0C 80 13 01 00 00 00 00 00 43 [14:34:06]Write i2c OK [14:34:06]MH_I2C_Read... [14:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:06]Read from MH i2c: E2 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0E 00 [14:34:06]MH_I2C_Read... [14:34:06]Read from MH i2c: E2 0E 00 BA 0C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BC [14:34:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:34:06]wFMCommunicate OK [14:34:06]SAM_PROTO_GetShiftState done [14:34:06]FM_GetShiftState done [14:34:06]opened in 1729902770 [14:34:06]opened+sec_in_day 1729989170 [14:34:06]quantity*price = 29168 [14:34:06]sum+1 = 29169 [14:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 291.00 Внесено: 300.00 СДАЧА: 9.00 НСП 1% : 2.58 НДС 12% : 30.97 Наличными: 291.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 164 26.10.2024 14:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191801 ФПД: 40367898996941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191801&fm=40367898996941&tin=02508201610067®Number=0000000000091776&sum=29100 [14:34:07]StoreToDocumentArchive [14:34:07]shift 541 fd 191801 [14:34:07]save to /storage/0541/doc_00191801 [14:34:07]save last doc name /storage/0541/doc_00191801 to /storage/kkm_last_doc_name [14:34:07]save OK [14:34:07]Clear old archive folders... [14:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:07]tlvbuf is 017E2290 [14:34:07]SAM_PROTO_ClearQueue [14:34:07]wFMCommunicate request_size=4 [14:34:07]MH_SAM_APDU [14:34:07]CAPDU: 80 09 00 00 [14:34:07]Write to MH i2c: E2 08 00 C7 0C 80 09 00 00 00 00 00 00 45 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [14:34:07]RAPDU: 90 00 [14:34:07]wFMCommunicate OK [14:34:07]SAM_PROTO_ClearQueue done [14:34:07]KKMCreateOFDPacket [14:34:07]OFDProtocolAddRootSTLVToBuf [14:34:07]FM_MakeSignedData [14:34:07]FM_MakeSignedData [14:34:07]SAM_PROTO_SignData [14:34:07]wFMCommunicate request_size=4 [14:34:07]MH_SAM_APDU [14:34:07]CAPDU: 80 0D 01 02 [14:34:07]Write to MH i2c: E2 08 00 C8 0C 80 0D 01 02 00 00 00 00 4D [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [14:34:07]RAPDU: 90 00 [14:34:07]wFMCommunicate OK [14:34:07]wFMCommunicate request_size=255 [14:34:07]MH_SAM_APDU [14:34: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 08 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 ED FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 ED 02 00 35 04 06 00 24 [14:34:07]Write to MH i2c: E2 02 01 C9 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 08 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 ED FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 ED 02 00 35 04 06 00 24 00 00 F0 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [14:34:07]RAPDU: 90 00 [14:34:07]wFMCommunicate OK [14:34:07]wFMCommunicate request_size=10 [14:34:07]MH_SAM_APDU [14:34:07]CAPDU: 80 0D 02 02 05 B6 E2 47 B0 CD [14:34:07]Write to MH i2c: E2 0D 00 CA 0C 80 0D 02 02 05 00 B6 E2 47 B0 CD 00 00 B6 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [14:34:07]RAPDU: 90 00 [14:34:07]wFMCommunicate OK [14:34:07]wFMCommunicate request_size=4 [14:34:07]MH_SAM_APDU [14:34:07]CAPDU: 80 0D 03 02 [14:34:07]Write to MH i2c: E2 08 00 CB 0C 80 0D 03 02 00 00 00 00 52 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 0B 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 0B 00 CB 0C 00 A8 81 7A 41 85 AB F6 CF 90 00 2C [14:34:07]RAPDU: A8 81 7A 41 85 AB F6 CF 90 00 [14:34:07]wFMCommunicate OK [14:34:07]SAM_PROTO_SignData done [14:34:07]FM_MakeSignedData done [14:34:07]CreateOFDProtocolMessage [14:34:07]wFMCommunicate request_size=4 [14:34:07]MH_SAM_APDU [14:34:07]CAPDU: 80 11 00 00 [14:34:07]Write to MH i2c: E2 08 00 CC 0C 80 11 00 00 00 00 00 00 52 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:07]Read from MH i2c: E2 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 17 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: E2 17 00 CC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [14:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:07]wFMCommunicate OK [14:34:07]CreateOFDProtocolMessage done [14:34:07]OFDSenderStorePacket 191801 [14:34:07]StoreOFDPacket docnum=191801 [14:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 16 07 01 B6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 ED FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 ED 02 00 35 04 06 00 24 B6 E2 47 B0 CD A8 81 7A 41 85 AB F6 CF [14:34:07]CheckFolder [14:34:07]dirname=/storage/ofd_packets [14:34:07]CheckFolder done [14:34:07]ProducePacketName [14:34:07]name=ofd_packets/00191801 [14:34:07]NVStorageSaveData ofd_packets/00191801 [14:34:07]File name is /storage/ofd_packets/00191801 [14:34:07]Write 301 bytes [14:34:07]NVStorageSaveData done [14:34:07]OFDSenderStorePacket done [14:34:07]KKMCreateOFDPacket done [14:34:07]NVStorageSaveData kkm_last_timestamp [14:34:07]File name is /storage/kkm_last_timestamp [14:34:07]Write 4 bytes [14:34:07]NVStorageSaveData done [14:34:07]ExternCall_PrintAddStr [14:34:07]wPrintStart [14:34:07]Write to MH i2c: 01 00 00 CD 0C D9 [14:34:07]Write i2c OK [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 [14:34:07]MH_I2C_Read... [14:34:07]Read from MH i2c: 01 07 00 CD 0C 00 00 00 00 00 FF 0F EE [14:34:07]RasterBufferAndPrint [14:34:07]line Счет N : (1)31105 [14:34:07]line ИНН: 02508201610067 [14:34:07]line Контрольно-Кассовый Чек [14:34:07]line ПРОДАЖА [14:34:07]line ТРК (МРК, ГНК) : 12 [14:34:07]line Товар: 2710124130 [14:34:07]line Аи-92-К-5 [14:34:07]line 4.360 * 66.90 [14:34:07]line = 291.68 [14:34:07]line НДС 12% НСП 1% [14:34:07]line > о реализуемом товаре [14:34:07]line ОКРУГЛЕНИЕ: -0.68 [14:34:07]line ИТОГО: 291.00 [14:34:07]line Внесено: 300.00 [14:34:07]line СДАЧА: 9.00 [14:34:07]line НСП 1% : 2.58 [14:34:07]line НДС 12% : 30.97 [14:34:07]line Наличными: 291.00 [14:34:07]line Безнал.: 0.00 [14:34:07]line Место: АЗС № 170 "Партнер Нефть" [14:34:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:34:07]line СНО: Общий режим [14:34:07]line Чек 164 26.10.2024 14:34 [14:34:07]line Смена: 541 ФФД: 1.0 [14:34:07]line ЗНМ: 0300000110 [14:34:07]line РНМ: 0000000000091776 [14:34:07]line Версия ККМ: 001 [14:34:07]line ФМ: 0000000000871754 [14:34:07]line ФД: 191801 [14:34:07]line ФПД: 40367898996941 [14:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143421&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191801&fm=40367898996941&tin=02508201610067®Number=0000000000091776&sum=29100 [14:34:08]OFD Sender: Processing packet 191801 [packets to send 75, broken 74] [14:34:08]ProducePacketName [14:34:08]name=ofd_packets/00191801 [14:34:08]OFD Sender: To server: pG, [14:34:08]CommunicateWithHost lk.salyk.kg:30040 [14:34:08]ConnectInit lk.salyk.kg [14:34:08]written 0, free lines is 4095 [14:34:08]Connected sock=8 [14:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5A 16 07 01 B6 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0C 00 00 00 00 07 04 06 00 AC 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 ED FD 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 ED 02 00 35 04 06 00 24 B6 E2 47 B0 CD A8 81 7A 41 85 AB F6 CF [14:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 53 47 00 09 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 39 ED 02 00 F4 03 04 00 B8 A2 1C 67 B6 04 01 00 00 B4 A8 F3 3B E2 11 33 4F [14:34:08]CommunicateWithHost err = 0 [14:34:08]CheckOFDResponse [14:34:08]1017 (14) - 77093643461234 [14:34:08]1041 (16) - 0000000000871754 [14:34:08]1040 (4) - 191801 [14:34:08]1012 (4) - 26.10.2024 08:05 [14:34:08]1206 (1) - 0 [14:34:08]OFD Sender: Remove packet 191801 [14:34:08]ProducePacketName [14:34:08]name=ofd_packets/00191801 [14:34:08]NVStorageDeleteData [14:34:08]Write to MH i2c: 01 00 00 F8 0C 04 [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 07 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: 01 07 00 F8 0C 00 00 00 00 00 BE 0C D5 [14:34:08]RasterBufferAndPrint [14:34:08]line [14:34:08]line [14:34:08]line [14:34:08]line [14:34:08]line [14:34:08]written 0, free lines is 3268 [14:34:08]MH_Cut [14:34:08]Write to MH i2c: D1 01 00 FF 0C 01 DD [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: D1 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: D1 01 00 [14:34:08]MH_I2C_Read... [14:34:08]Read from MH i2c: D1 01 00 FF 0C 00 DC [14:34:08]Write to MH i2c: 01 00 00 00 0D 0D [14:34:08]Write i2c OK [14:34:08]MH_I2C_Read... [14:34:09]OFD Sender: No OFD packet to send [14:34:09]*** Cut start [14:34:09]*** Partial cut [14:34:09]*** CUTSNS_PIN = 1 [14:34:09]*** CUTSNS_PIN = 0 [14:34:09]*** Brake cut motor [14:34:10]Read from MH i2c: 01 [14:34:10]MH_I2C_Read... [14:34:10]*** Stop cut motor [14:34:10]*** Cut end [14:34:10]Read from MH i2c: 01 07 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 FF 0F 22 [14:34:10]process_action close_receipt done [14:34:10]requested_data is exist [14:34:10]produce_requested_data [14:34:10]requested_item fm.sn is exist - process it [14:34:10]wFMCommunicate request_size=4 [14:34:10]MH_SAM_APDU [14:34:10]CAPDU: 80 11 00 00 [14:34:10]Write to MH i2c: E2 08 00 01 0D 80 11 00 00 00 00 00 00 88 [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:10]Read from MH i2c: E2 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 17 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 17 00 01 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [14:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:34:10]wFMCommunicate OK [14:34:10]requested_item fd.num is exist - process it [14:34:10]SAM_PROTO_GetFieldsCounters [14:34:10]wFMCommunicate request_size=4 [14:34:10]MH_SAM_APDU [14:34:10]CAPDU: 80 13 00 00 [14:34:10]Write to MH i2c: E2 08 00 02 0D 80 13 00 00 00 00 00 00 8B [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:10]Read from MH i2c: E2 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 62 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 62 00 02 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [14:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 39 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:34:10]wFMCommunicate OK [14:34:10]SAM_PROTO_GetFieldsCounters done [14:34:10]requested_item shift.num is exist - process it [14:34:10]requested_item shift.opened is exist - process it [14:34:10]req_shift_opened [14:34:10]FM_GetShiftState [14:34:10]SAM_PROTO_GetShiftState [14:34:10]wFMCommunicate request_size=4 [14:34:10]MH_SAM_APDU [14:34:10]CAPDU: 80 13 01 00 [14:34:10]Write to MH i2c: E2 08 00 03 0D 80 13 01 00 00 00 00 00 8D [14:34:10]Write i2c OK [14:34:10]MH_I2C_Read... [14:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:10]Read from MH i2c: E2 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 0E 00 [14:34:10]MH_I2C_Read... [14:34:10]Read from MH i2c: E2 0E 00 03 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 06 [14:34:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:34:10]wFMCommunicate OK [14:34:10]SAM_PROTO_GetShiftState done [14:34:10]FM_GetShiftState done [14:34:10]req_shift_opened done [14:34:10]requested_item shift.open_date is exist - process it [14:34:10]req_shift_open_date [14:34:10]req_shift_open_date done [14:34:10]produce_requested_data done [14:34:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191801,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:34:10]process_action_free close_receipt [14:34:10]json_value_free [14:34:10]json_value_free done [14:34:10]process_json_proto returns [14:34:10]Send response to host [14:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191801,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:34:10]free response buf [14:34:10]execute_script done [14:34:10]execute_script returns [14:34:10]free content buf [14:34:10]Sock 5.Close socket [14:34:10]Sock 5.Thread stoped [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:42]accept exits with 6 [14:36:42]New connection [14:36:42]New thread 3066961252 created [14:36:42]Thread 3066817892 joined [14:36:42]Waiting for new connection... [14:36:42] Sock 6.Parse request [14:36:42]Sock 6.Check first char [14:36:42]Sock 6.First char is OK [14:36:42]request: POST /json_proto HTTP/1.0 [14:36:42]Method: POST [14:36:42]URL: /json_proto [14:36:42]Method is POST - this is cgi request [14:36:42]url: /json_proto [14:36:42]query_string will be loaded in cgi processing [14:36:42]execute_cgi json_proto POST (null) [14:36:42]execute_cgi path=json_proto method=POST [14:36:42]POST find Content-Length [14:36:42]Host: 172.17.63.131:8080 [14:36:42]Content-Length: 677 [14:36:42]Content-Type: application/json [14:36:42] [14:36:42]POST finish read [14:36:42]Found Content-Length = 677 [14:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:42]execute_script... [14:36:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:42]POST & json_proto [14:36:42]process_json_proto [14:36:42]json parsed OK: [14:36:42]protocol is kg_v1.0 [14:36:42]action value=close_receipt [14:36:42]process_action close_receipt [14:36:42]cmd_close_receipt [14:36:42]MH_GetDate [14:36:42]Write to MH i2c: F0 00 00 04 0D 00 [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 09 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: F0 09 00 04 0D 00 89 FE 1C 67 22 05 6E 64 0C [14:36:42]GetLastDocTimeStamp 1729953261 [14:36:42]current date 1729953417 [14:36:42]FM_GetShiftState [14:36:42]SAM_PROTO_GetShiftState [14:36:42]wFMCommunicate request_size=4 [14:36:42]MH_SAM_APDU [14:36:42]CAPDU: 80 13 01 00 [14:36:42]Write to MH i2c: E2 08 00 05 0D 80 13 01 00 00 00 00 00 8F [14:36:42]Write i2c OK [14:36:42]MH_I2C_Read... [14:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:42]Read from MH i2c: E2 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 [14:36:42]MH_I2C_Read... [14:36:42]Read from MH i2c: E2 0E 00 05 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [14:36:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:36:42]wFMCommunicate OK [14:36:42]SAM_PROTO_GetShiftState done [14:36:42]FM_GetShiftState done [14:36:42]opened in 1729902770 [14:36:42]opened+sec_in_day 1729989170 [14:36:42]quantity*price = 80012 [14:36:42]sum+1 = 80013 [14:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 165 26.10.2024 14:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191802 ФПД: 189544577528814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191802&fm=189544577528814&tin=02508201610067®Number=0000000000091776&sum=80000 [14:36:43]StoreToDocumentArchive [14:36:43]shift 541 fd 191802 [14:36:43]save to /storage/0541/doc_00191802 [14:36:43]save last doc name /storage/0541/doc_00191802 to /storage/kkm_last_doc_name [14:36:43]save OK [14:36:43]Clear old archive folders... [14:36:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:43]tlvbuf is 019D4F60 [14:36:43]SAM_PROTO_ClearQueue [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 09 00 00 [14:36:43]Write to MH i2c: E2 08 00 12 0D 80 09 00 00 00 00 00 00 91 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 12 0D 00 90 00 93 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]SAM_PROTO_ClearQueue done [14:36:43]KKMCreateOFDPacket [14:36:43]OFDProtocolAddRootSTLVToBuf [14:36:43]FM_MakeSignedData [14:36:43]FM_MakeSignedData [14:36:43]SAM_PROTO_SignData [14:36:43]wFMCommunicate request_size=4 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 01 02 [14:36:43]Write to MH i2c: E2 08 00 13 0D 80 0D 01 02 00 00 00 00 99 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 13 0D 00 90 00 94 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=255 [14:36:43]MH_SAM_APDU [14:36: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 89 FE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A ED 02 00 35 04 06 00 AC [14:36:43]Write to MH i2c: E2 02 01 14 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 89 FE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A ED 02 00 35 04 06 00 AC 00 00 BC [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:43]Read from MH i2c: E2 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 [14:36:43]MH_I2C_Read... [14:36:43]Read from MH i2c: E2 03 00 14 0D 00 90 00 95 [14:36:43]RAPDU: 90 00 [14:36:43]wFMCommunicate OK [14:36:43]wFMCommunicate request_size=10 [14:36:43]MH_SAM_APDU [14:36:43]CAPDU: 80 0D 02 02 05 63 C9 36 73 EE [14:36:43]Write to MH i2c: E2 0D 00 15 0D 80 0D 02 02 05 00 63 C9 36 73 EE 00 00 69 [14:36:43]Write i2c OK [14:36:43]MH_I2C_Read... [14:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [14:36:44]RAPDU: 90 00 [14:36:44]wFMCommunicate OK [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 0D 03 02 [14:36:44]Write to MH i2c: E2 08 00 16 0D 80 0D 03 02 00 00 00 00 9E [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0B 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 0B 00 16 0D 00 3A DB CB 40 F5 F0 E1 89 90 00 0E [14:36:44]RAPDU: 3A DB CB 40 F5 F0 E1 89 90 00 [14:36:44]wFMCommunicate OK [14:36:44]SAM_PROTO_SignData done [14:36:44]FM_MakeSignedData done [14:36:44]CreateOFDProtocolMessage [14:36:44]wFMCommunicate request_size=4 [14:36:44]MH_SAM_APDU [14:36:44]CAPDU: 80 11 00 00 [14:36:44]Write to MH i2c: E2 08 00 17 0D 80 11 00 00 00 00 00 00 9E [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:44]Read from MH i2c: E2 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: E2 17 00 17 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [14:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:36:44]wFMCommunicate OK [14:36:44]CreateOFDProtocolMessage done [14:36:44]OFDSenderStorePacket 191802 [14:36:44]StoreOFDPacket docnum=191802 [14:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED E9 07 01 37 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 89 FE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A ED 02 00 35 04 06 00 AC 63 C9 36 73 EE 3A DB CB 40 F5 F0 E1 89 [14:36:44]CheckFolder [14:36:44]dirname=/storage/ofd_packets [14:36:44]CheckFolder done [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00191802 [14:36:44]NVStorageSaveData ofd_packets/00191802 [14:36:44]File name is /storage/ofd_packets/00191802 [14:36:44]Write 301 bytes [14:36:44]NVStorageSaveData done [14:36:44]OFDSenderStorePacket done [14:36:44]KKMCreateOFDPacket done [14:36:44]NVStorageSaveData kkm_last_timestamp [14:36:44]File name is /storage/kkm_last_timestamp [14:36:44]Write 4 bytes [14:36:44]NVStorageSaveData done [14:36:44]ExternCall_PrintAddStr [14:36:44]wPrintStart [14:36:44]Write to MH i2c: 01 00 00 18 0D 25 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 18 0D 00 00 00 00 00 FF 0F 3A [14:36:44]RasterBufferAndPrint [14:36:44]line Счет N : (1)31107 [14:36:44]line ИНН: 02508201610067 [14:36:44]line Контрольно-Кассовый Чек [14:36:44]line ПРОДАЖА [14:36:44]line ТРК (МРК, ГНК) : 12 [14:36:44]line Товар: 2710124130 [14:36:44]line Аи-92-К-5 [14:36:44]line 11.960 * 66.90 [14:36:44]line = 800.12 [14:36:44]line НДС 12% НСП 1% [14:36:44]line > о реализуемом товаре [14:36:44]line ОКРУГЛЕНИЕ: -0.12 [14:36:44]line ИТОГО: 800.00 [14:36:44]line Внесено: 800.00 [14:36:44]line СДАЧА: 0.00 [14:36:44]line НСП 1% : 7.08 [14:36:44]line НДС 12% : 84.97 [14:36:44]line Наличными: 800.00 [14:36:44]line Безнал.: 0.00 [14:36:44]line Место: АЗС № 170 "Партнер Нефть" [14:36:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:36:44]line СНО: Общий режим [14:36:44]line Чек 165 26.10.2024 14:36 [14:36:44]line Смена: 541 ФФД: 1.0 [14:36:44]line ЗНМ: 0300000110 [14:36:44]line РНМ: 0000000000091776 [14:36:44]line Версия ККМ: 001 [14:36:44]line ФМ: 0000000000871754 [14:36:44]line ФД: 191802 [14:36:44]line ФПД: 189544577528814 [14:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T143657&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191802&fm=189544577528814&tin=02508201610067®Number=0000000000091776&sum=80000 [14:36:44]OFD Sender: Processing packet 191802 [packets to send 75, broken 74] [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00191802 [14:36:44]OFD Sender: To server: pG, [14:36:44]CommunicateWithHost lk.salyk.kg:30040 [14:36:44]ConnectInit lk.salyk.kg [14:36:44]written 0, free lines is 4095 [14:36:44]Connected sock=8 [14:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 ED E9 07 01 37 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 89 FE 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A ED 02 00 35 04 06 00 AC 63 C9 36 73 EE 3A DB CB 40 F5 F0 E1 89 [14:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE 21 47 00 88 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3A ED 02 00 F4 03 04 00 54 A3 1C 67 B6 04 01 00 00 AC D8 8B 9D 31 EB 6B 68 [14:36:44]CommunicateWithHost err = 0 [14:36:44]CheckOFDResponse [14:36:44]1017 (14) - 77093643461234 [14:36:44]1041 (16) - 0000000000871754 [14:36:44]1040 (4) - 191802 [14:36:44]1012 (4) - 26.10.2024 08:07 [14:36:44]1206 (1) - 0 [14:36:44]OFD Sender: Remove packet 191802 [14:36:44]ProducePacketName [14:36:44]name=ofd_packets/00191802 [14:36:44]NVStorageDeleteData [14:36:44]Write to MH i2c: 01 00 00 43 0D 50 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: 01 07 00 43 0D 00 00 00 00 00 CF 0C 32 [14:36:44]RasterBufferAndPrint [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]line [14:36:44]written 0, free lines is 3288 [14:36:44]MH_Cut [14:36:44]Write to MH i2c: D1 01 00 4A 0D 01 29 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 [14:36:44]MH_I2C_Read... [14:36:44]Read from MH i2c: D1 01 00 4A 0D 00 28 [14:36:44]Write to MH i2c: 01 00 00 4B 0D 58 [14:36:44]Write i2c OK [14:36:44]MH_I2C_Read... [14:36:45]OFD Sender: No OFD packet to send [14:36:45]*** Cut start [14:36:45]*** Partial cut [14:36:45]*** CUTSNS_PIN = 1 [14:36:45]*** CUTSNS_PIN = 0 [14:36:46]*** Brake cut motor [14:36:46]Read from MH i2c: 01 [14:36:46]MH_I2C_Read... [14:36:46]*** Stop cut motor [14:36:46]*** Cut end [14:36:46]Read from MH i2c: 01 07 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: 01 07 00 4B 0D 00 00 00 00 00 FF 0F 6D [14:36:46]process_action close_receipt done [14:36:46]requested_data is exist [14:36:46]produce_requested_data [14:36:46]requested_item fm.sn is exist - process it [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 11 00 00 [14:36:46]Write to MH i2c: E2 08 00 4C 0D 80 11 00 00 00 00 00 00 D3 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 17 00 4C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [14:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:36:46]wFMCommunicate OK [14:36:46]requested_item fd.num is exist - process it [14:36:46]SAM_PROTO_GetFieldsCounters [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 00 00 [14:36:46]Write to MH i2c: E2 08 00 4D 0D 80 13 00 00 00 00 00 00 D6 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 62 00 4D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [14:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetFieldsCounters done [14:36:46]requested_item shift.num is exist - process it [14:36:46]requested_item shift.opened is exist - process it [14:36:46]req_shift_opened [14:36:46]FM_GetShiftState [14:36:46]SAM_PROTO_GetShiftState [14:36:46]wFMCommunicate request_size=4 [14:36:46]MH_SAM_APDU [14:36:46]CAPDU: 80 13 01 00 [14:36:46]Write to MH i2c: E2 08 00 4E 0D 80 13 01 00 00 00 00 00 D8 [14:36:46]Write i2c OK [14:36:46]MH_I2C_Read... [14:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:46]Read from MH i2c: E2 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 [14:36:46]MH_I2C_Read... [14:36:46]Read from MH i2c: E2 0E 00 4E 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 51 [14:36:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:36:46]wFMCommunicate OK [14:36:46]SAM_PROTO_GetShiftState done [14:36:46]FM_GetShiftState done [14:36:46]req_shift_opened done [14:36:46]requested_item shift.open_date is exist - process it [14:36:46]req_shift_open_date [14:36:46]req_shift_open_date done [14:36:46]produce_requested_data done [14:36:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191802,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:36:46]process_action_free close_receipt [14:36:46]json_value_free [14:36:46]json_value_free done [14:36:46]process_json_proto returns [14:36:46]Send response to host [14:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191802,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:36:46]free response buf [14:36:46]execute_script done [14:36:46]execute_script returns [14:36:46]free content buf [14:36:46]Sock 6.Close socket [14:36:46]Sock 6.Thread stoped [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:36]accept exits with 5 [14:41:36]New connection [14:41:36]New thread 3066817892 created [14:41:36]Thread 3066961252 joined [14:41:36]Waiting for new connection... [14:41:36] Sock 5.Parse request [14:41:36]Sock 5.Check first char [14:41:36]Sock 5.First char is OK [14:41:36]request: POST /json_proto HTTP/1.0 [14:41:36]Method: POST [14:41:36]URL: /json_proto [14:41:36]Method is POST - this is cgi request [14:41:36]url: /json_proto [14:41:36]query_string will be loaded in cgi processing [14:41:36]execute_cgi json_proto POST (null) [14:41:36]execute_cgi path=json_proto method=POST [14:41:36]POST find Content-Length [14:41:36]Host: 172.17.63.131:8080 [14:41:36]Content-Length: 676 [14:41:36]Content-Type: application/json [14:41:36] [14:41:36]POST finish read [14:41:36]Found Content-Length = 676 [14:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:36]execute_script... [14: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)31108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:36]POST & json_proto [14:41:36]process_json_proto [14:41:36]json parsed OK: [14:41:36]protocol is kg_v1.0 [14:41:36]action value=close_receipt [14:41:36]process_action close_receipt [14:41:36]cmd_close_receipt [14:41:36]MH_GetDate [14:41:36]Write to MH i2c: F0 00 00 4F 0D 4B [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: F0 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: F0 09 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: F0 09 00 4F 0D 00 AF FF 1C 67 22 05 6E 64 7E [14:41:36]GetLastDocTimeStamp 1729953417 [14:41:36]current date 1729953711 [14:41:36]FM_GetShiftState [14:41:36]SAM_PROTO_GetShiftState [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 13 01 00 [14:41:36]Write to MH i2c: E2 08 00 50 0D 80 13 01 00 00 00 00 00 DA [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0E 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0E 00 50 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 53 [14:41:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_GetShiftState done [14:41:36]FM_GetShiftState done [14:41:36]opened in 1729902770 [14:41:36]opened+sec_in_day 1729989170 [14:41:36]quantity*price = 20003 [14:41:36]sum+1 = 20004 [14:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 166 26.10.2024 14:41 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191803 ФПД: 230232516048312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191803&fm=230232516048312&tin=02508201610067®Number=0000000000091776&sum=20000 [14:41:37]StoreToDocumentArchive [14:41:37]shift 541 fd 191803 [14:41:37]save to /storage/0541/doc_00191803 [14:41:37]save last doc name /storage/0541/doc_00191803 to /storage/kkm_last_doc_name [14:41:37]save OK [14:41:37]Clear old archive folders... [14:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:37]tlvbuf is 01A76770 [14:41:37]SAM_PROTO_ClearQueue [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 09 00 00 [14:41:37]Write to MH i2c: E2 08 00 5D 0D 80 09 00 00 00 00 00 00 DC [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 5D 0D 00 90 00 DE [14:41:37]RAPDU: 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_ClearQueue done [14:41:37]KKMCreateOFDPacket [14:41:37]OFDProtocolAddRootSTLVToBuf [14:41:37]FM_MakeSignedData [14:41:37]FM_MakeSignedData [14:41:37]SAM_PROTO_SignData [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 0D 01 02 [14:41:37]Write to MH i2c: E2 08 00 5E 0D 80 0D 01 02 00 00 00 00 E4 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 5E 0D 00 90 00 DF [14:41:37]RAPDU: 90 00 [14:41:37]wFMCommunicate OK [14:41:37]wFMCommunicate request_size=255 [14:41:37]MH_SAM_APDU [14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF FF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B ED 02 00 35 04 06 00 D1 [14:41:37]Write to MH i2c: E2 02 01 5F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF FF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B ED 02 00 35 04 06 00 D1 00 00 2B [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 03 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 03 00 5F 0D 00 90 00 E0 [14:41:38]RAPDU: 90 00 [14:41:38]wFMCommunicate OK [14:41:38]wFMCommunicate request_size=10 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 0D 02 02 05 65 2F 55 B5 B8 [14:41:38]Write to MH i2c: E2 0D 00 60 0D 80 0D 02 02 05 00 65 2F 55 B5 B8 00 00 47 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 03 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [14:41:38]RAPDU: 90 00 [14:41:38]wFMCommunicate OK [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 0D 03 02 [14:41:38]Write to MH i2c: E2 08 00 61 0D 80 0D 03 02 00 00 00 00 E9 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0B 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0B 00 61 0D 00 DD 88 50 A2 D1 9E 11 42 90 00 03 [14:41:38]RAPDU: DD 88 50 A2 D1 9E 11 42 90 00 [14:41:38]wFMCommunicate OK [14:41:38]SAM_PROTO_SignData done [14:41:38]FM_MakeSignedData done [14:41:38]CreateOFDProtocolMessage [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 11 00 00 [14:41:38]Write to MH i2c: E2 08 00 62 0D 80 11 00 00 00 00 00 00 E9 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 17 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 17 00 62 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [14:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:38]wFMCommunicate OK [14:41:38]CreateOFDProtocolMessage done [14:41:38]OFDSenderStorePacket 191803 [14:41:38]StoreOFDPacket docnum=191803 [14:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5F 68 07 01 E9 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF FF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B ED 02 00 35 04 06 00 D1 65 2F 55 B5 B8 DD 88 50 A2 D1 9E 11 42 [14:41:38]CheckFolder [14:41:38]dirname=/storage/ofd_packets [14:41:38]CheckFolder done [14:41:38]ProducePacketName [14:41:38]name=ofd_packets/00191803 [14:41:38]NVStorageSaveData ofd_packets/00191803 [14:41:38]File name is /storage/ofd_packets/00191803 [14:41:38]Write 301 bytes [14:41:38]NVStorageSaveData done [14:41:38]OFDSenderStorePacket done [14:41:38]KKMCreateOFDPacket done [14:41:38]NVStorageSaveData kkm_last_timestamp [14:41:38]File name is /storage/kkm_last_timestamp [14:41:38]Write 4 bytes [14:41:38]NVStorageSaveData done [14:41:38]ExternCall_PrintAddStr [14:41:38]wPrintStart [14:41:38]Write to MH i2c: 01 00 00 63 0D 70 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 63 0D 00 00 00 00 00 FF 0F 85 [14:41:38]RasterBufferAndPrint [14:41:38]line Счет N : (1)31108 [14:41:38]line ИНН: 02508201610067 [14:41:38]line Контрольно-Кассовый Чек [14:41:38]line ПРОДАЖА [14:41:38]line ТРК (МРК, ГНК) : 21 [14:41:38]line Товар: 2710124130 [14:41:38]line Аи-92-К-5 [14:41:38]line 2.990 * 66.90 [14:41:38]line = 200.03 [14:41:38]line НДС 12% НСП 1% [14:41:38]line > о реализуемом товаре [14:41:38]line ОКРУГЛЕНИЕ: -0.03 [14:41:38]line ИТОГО: 200.00 [14:41:38]line Внесено: 200.00 [14:41:38]line СДАЧА: 0.00 [14:41:38]line НСП 1% : 1.77 [14:41:38]line НДС 12% : 21.24 [14:41:38]line Наличными: 200.00 [14:41:38]line Безнал.: 0.00 [14:41:38]line Место: АЗС № 170 "Партнер Нефть" [14:41:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:41:38]line СНО: Общий режим [14:41:38]line Чек 166 26.10.2024 14:41 [14:41:38]line Смена: 541 ФФД: 1.0 [14:41:38]line ЗНМ: 0300000110 [14:41:38]line РНМ: 0000000000091776 [14:41:38]line Версия ККМ: 001 [14:41:38]line ФМ: 0000000000871754 [14:41:38]line ФД: 191803 [14:41:38]line ФПД: 230232516048312 [14:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144151&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191803&fm=230232516048312&tin=02508201610067®Number=0000000000091776&sum=20000 [14:41:38]OFD Sender: Processing packet 191803 [packets to send 75, broken 74] [14:41:38]ProducePacketName [14:41:38]name=ofd_packets/00191803 [14:41:38]OFD Sender: To server: pG, [14:41:38]CommunicateWithHost lk.salyk.kg:30040 [14:41:38]ConnectInit lk.salyk.kg [14:41:38]written 0, free lines is 4095 [14:41:38]Connected sock=8 [14: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 31 37 35 34 0F 01 00 00 5F 68 07 01 E9 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF FF 1C 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B ED 02 00 35 04 06 00 D1 65 2F 55 B5 B8 DD 88 50 A2 D1 9E 11 42 [14:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF 51 47 00 CF E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3B ED 02 00 F4 03 04 00 7A A4 1C 67 B6 04 01 00 00 77 4A CF F2 7F AD 26 7F [14:41:38]CommunicateWithHost err = 0 [14:41:38]CheckOFDResponse [14:41:38]1017 (14) - 77093643461234 [14:41:38]1041 (16) - 0000000000871754 [14:41:38]1040 (4) - 191803 [14:41:38]1012 (4) - 26.10.2024 08:12 [14:41:38]1206 (1) - 0 [14:41:38]OFD Sender: Remove packet 191803 [14:41:38]ProducePacketName [14:41:38]name=ofd_packets/00191803 [14:41:38]NVStorageDeleteData [14:41:39]Write to MH i2c: 01 00 00 8E 0D 9B [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: 01 07 00 8E 0D 00 00 00 00 00 B2 0C 60 [14:41:39]RasterBufferAndPrint [14:41:39]line [14:41:39]line [14:41:39]line [14:41:39]line [14:41:39]line [14:41:39]written 0, free lines is 3257 [14:41:39]MH_Cut [14:41:39]Write to MH i2c: D1 01 00 95 0D 01 74 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D1 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D1 01 00 [14:41:39]MH_I2C_Read... [14:41:39]Read from MH i2c: D1 01 00 95 0D 00 73 [14:41:39]Write to MH i2c: 01 00 00 96 0D A3 [14:41:39]Write i2c OK [14:41:39]MH_I2C_Read... [14:41:39]OFD Sender: No OFD packet to send [14:41:39]*** Cut start [14:41:39]*** Partial cut [14:41:39]*** CUTSNS_PIN = 1 [14:41:39]*** CUTSNS_PIN = 0 [14:41:40]*** Brake cut motor [14:41:40]Read from MH i2c: 01 [14:41:40]MH_I2C_Read... [14:41:40]*** Stop cut motor [14:41:40]Read from MH i2c: 01 07 00 [14:41:40]MH_I2C_Read... [14:41:40]*** Cut end [14:41:40]Read from MH i2c: 01 07 00 96 0D 00 00 00 00 00 FF 0F B8 [14:41:40]process_action close_receipt done [14:41:40]requested_data is exist [14:41:40]produce_requested_data [14:41:40]requested_item fm.sn is exist - process it [14:41:40]wFMCommunicate request_size=4 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 11 00 00 [14:41:40]Write to MH i2c: E2 08 00 97 0D 80 11 00 00 00 00 00 00 1E [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 17 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 17 00 97 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [14:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:41:40]wFMCommunicate OK [14:41:40]requested_item fd.num is exist - process it [14:41:40]SAM_PROTO_GetFieldsCounters [14:41:40]wFMCommunicate request_size=4 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 13 00 00 [14:41:40]Write to MH i2c: E2 08 00 98 0D 80 13 00 00 00 00 00 00 21 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 62 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 62 00 98 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [14: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:40]wFMCommunicate OK [14:41:40]SAM_PROTO_GetFieldsCounters done [14:41:40]requested_item shift.num is exist - process it [14:41:40]requested_item shift.opened is exist - process it [14:41:40]req_shift_opened [14:41:40]FM_GetShiftState [14:41:40]SAM_PROTO_GetShiftState [14:41:40]wFMCommunicate request_size=4 [14:41:40]MH_SAM_APDU [14:41:40]CAPDU: 80 13 01 00 [14:41:40]Write to MH i2c: E2 08 00 99 0D 80 13 01 00 00 00 00 00 23 [14:41:40]Write i2c OK [14:41:40]MH_I2C_Read... [14:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:40]Read from MH i2c: E2 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 0E 00 [14:41:40]MH_I2C_Read... [14:41:40]Read from MH i2c: E2 0E 00 99 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9C [14:41:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:41:40]wFMCommunicate OK [14:41:40]SAM_PROTO_GetShiftState done [14:41:40]FM_GetShiftState done [14:41:40]req_shift_opened done [14:41:40]requested_item shift.open_date is exist - process it [14:41:40]req_shift_open_date [14:41:40]req_shift_open_date done [14:41:40]produce_requested_data done [14:41:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191803,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:41:40]process_action_free close_receipt [14:41:40]json_value_free [14:41:40]json_value_free done [14:41:40]process_json_proto returns [14:41:40]Send response to host [14:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191803,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:41:40]free response buf [14:41:40]execute_script done [14:41:40]execute_script returns [14:41:40]free content buf [14:41:40]Sock 5.Close socket [14:41:40]Sock 5.Thread stoped [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]accept exits with 6 [14:43:14]New connection [14:43:14]New thread 3066961252 created [14:43:14]Thread 3066817892 joined [14:43:14]Waiting for new connection... [14:43:14] Sock 6.Parse request [14:43:14]Sock 6.Check first char [14:43:14]Sock 6.First char is OK [14:43:14]request: POST /json_proto HTTP/1.0 [14:43:14]Method: POST [14:43:14]URL: /json_proto [14:43:14]Method is POST - this is cgi request [14:43:14]url: /json_proto [14:43:14]query_string will be loaded in cgi processing [14:43:14]execute_cgi json_proto POST (null) [14:43:14]execute_cgi path=json_proto method=POST [14:43:14]POST find Content-Length [14:43:14]Host: 172.17.63.131:8080 [14:43:14]Content-Length: 676 [14:43:14]Content-Type: application/json [14:43:14] [14:43:14]POST finish read [14:43:14]Found Content-Length = 676 [14:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:14]execute_script... [14:43: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)31109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:14]POST & json_proto [14:43:14]process_json_proto [14:43:14]json parsed OK: [14:43:14]protocol is kg_v1.0 [14:43:14]action value=close_receipt [14:43:14]process_action close_receipt [14:43:14]cmd_close_receipt [14:43:14]MH_GetDate [14:43:14]Write to MH i2c: F0 00 00 9A 0D 96 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: F0 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: F0 09 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: F0 09 00 9A 0D 00 11 00 1D 67 22 05 6E 64 2D [14:43:14]GetLastDocTimeStamp 1729953711 [14:43:14]current date 1729953809 [14:43:14]FM_GetShiftState [14:43:14]SAM_PROTO_GetShiftState [14:43:14]wFMCommunicate request_size=4 [14:43:14]MH_SAM_APDU [14:43:14]CAPDU: 80 13 01 00 [14:43:14]Write to MH i2c: E2 08 00 9B 0D 80 13 01 00 00 00 00 00 25 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 0E 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 0E 00 9B 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9E [14:43:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:43:14]wFMCommunicate OK [14:43:14]SAM_PROTO_GetShiftState done [14:43:14]FM_GetShiftState done [14:43:14]opened in 1729902770 [14:43:14]opened+sec_in_day 1729989170 [14:43:14]quantity*price = 50041 [14:43:14]sum+1 = 50042 [14:43:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 167 26.10.2024 14:43 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191804 ФПД: 198198061048627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144329&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191804&fm=198198061048627&tin=02508201610067®Number=0000000000091776&sum=50000 [14:43:15]StoreToDocumentArchive [14:43:15]shift 541 fd 191804 [14:43:15]save to /storage/0541/doc_00191804 [14:43:15]save last doc name /storage/0541/doc_00191804 to /storage/kkm_last_doc_name [14:43:15]save OK [14:43:15]Clear old archive folders... [14:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:15]tlvbuf is 016EB0F0 [14:43:15]SAM_PROTO_ClearQueue [14:43:15]wFMCommunicate request_size=4 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 09 00 00 [14:43:15]Write to MH i2c: E2 08 00 A8 0D 80 09 00 00 00 00 00 00 27 [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 A8 0D 00 90 00 29 [14:43:15]RAPDU: 90 00 [14:43:15]wFMCommunicate OK [14:43:15]SAM_PROTO_ClearQueue done [14:43:15]KKMCreateOFDPacket [14:43:15]OFDProtocolAddRootSTLVToBuf [14:43:15]FM_MakeSignedData [14:43:15]FM_MakeSignedData [14:43:15]SAM_PROTO_SignData [14:43:15]wFMCommunicate request_size=4 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 0D 01 02 [14:43:15]Write to MH i2c: E2 08 00 A9 0D 80 0D 01 02 00 00 00 00 2F [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 A9 0D 00 90 00 2A [14:43:15]RAPDU: 90 00 [14:43:15]wFMCommunicate OK [14:43:15]wFMCommunicate request_size=255 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C ED 02 00 35 04 06 00 B4 [14:43:15]Write to MH i2c: E2 02 01 AA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C ED 02 00 35 04 06 00 B4 00 00 FD [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 AA 0D 00 90 00 2B [14:43:15]RAPDU: 90 00 [14:43:15]wFMCommunicate OK [14:43:15]wFMCommunicate request_size=10 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 0D 02 02 05 42 95 06 23 33 [14:43:15]Write to MH i2c: E2 0D 00 AB 0D 80 0D 02 02 05 00 42 95 06 23 33 00 00 6F [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [14:43:15]RAPDU: 90 00 [14:43:15]wFMCommunicate OK [14:43:15]wFMCommunicate request_size=4 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 0D 03 02 [14:43:15]Write to MH i2c: E2 08 00 AC 0D 80 0D 03 02 00 00 00 00 34 [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 0B 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 0B 00 AC 0D 00 F4 7F 75 F6 12 9B 41 B2 90 00 B3 [14:43:15]RAPDU: F4 7F 75 F6 12 9B 41 B2 90 00 [14:43:15]wFMCommunicate OK [14:43:15]SAM_PROTO_SignData done [14:43:15]FM_MakeSignedData done [14:43:15]CreateOFDProtocolMessage [14:43:15]wFMCommunicate request_size=4 [14:43:15]MH_SAM_APDU [14:43:15]CAPDU: 80 11 00 00 [14:43:15]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:15]Read from MH i2c: E2 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 17 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [14:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:15]wFMCommunicate OK [14:43:15]CreateOFDProtocolMessage done [14:43:15]OFDSenderStorePacket 191804 [14:43:15]StoreOFDPacket docnum=191804 [14:43:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 0E 07 01 31 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C ED 02 00 35 04 06 00 B4 42 95 06 23 33 F4 7F 75 F6 12 9B 41 B2 [14:43:15]CheckFolder [14:43:15]dirname=/storage/ofd_packets [14:43:15]CheckFolder done [14:43:15]ProducePacketName [14:43:15]name=ofd_packets/00191804 [14:43:15]NVStorageSaveData ofd_packets/00191804 [14:43:15]File name is /storage/ofd_packets/00191804 [14:43:15]Write 301 bytes [14:43:15]NVStorageSaveData done [14:43:15]OFDSenderStorePacket done [14:43:15]KKMCreateOFDPacket done [14:43:15]NVStorageSaveData kkm_last_timestamp [14:43:15]File name is /storage/kkm_last_timestamp [14:43:15]Write 4 bytes [14:43:15]NVStorageSaveData done [14:43:15]ExternCall_PrintAddStr [14:43:15]wPrintStart [14:43:15]Write to MH i2c: 01 00 00 AE 0D BB [14:43:15]Write i2c OK [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: 01 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: 01 07 00 [14:43:15]MH_I2C_Read... [14:43:15]Read from MH i2c: 01 07 00 AE 0D 00 00 00 00 00 FF 0F D0 [14:43:15]RasterBufferAndPrint [14:43:15]line Счет N : (1)31109 [14:43:15]line ИНН: 02508201610067 [14:43:15]line Контрольно-Кассовый Чек [14:43:15]line ПРОДАЖА [14:43:15]line ТРК (МРК, ГНК) : 12 [14:43:15]line Товар: 2710124130 [14:43:15]line Аи-92-К-5 [14:43:15]line 7.480 * 66.90 [14:43:15]line = 500.41 [14:43:15]line НДС 12% НСП 1% [14:43:15]line > о реализуемом товаре [14:43:15]line ОКРУГЛЕНИЕ: -0.41 [14:43:15]line ИТОГО: 500.00 [14:43:15]line Внесено: 500.00 [14:43:15]line СДАЧА: 0.00 [14:43:15]line НСП 1% : 4.43 [14:43:15]line НДС 12% : 53.14 [14:43:15]line Наличными: 500.00 [14:43:15]line Безнал.: 0.00 [14:43:15]line Место: АЗС № 170 "Партнер Нефть" [14:43:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:43:15]line СНО: Общий режим [14:43:15]line Чек 167 26.10.2024 14:43 [14:43:15]line Смена: 541 ФФД: 1.0 [14:43:15]line ЗНМ: 0300000110 [14:43:15]line РНМ: 0000000000091776 [14:43:15]line Версия ККМ: 001 [14:43:15]line ФМ: 0000000000871754 [14:43:15]line ФД: 191804 [14:43:15]line ФПД: 198198061048627 [14:43:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144329&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191804&fm=198198061048627&tin=02508201610067®Number=0000000000091776&sum=50000 [14:43:16]OFD Sender: Processing packet 191804 [packets to send 75, broken 74] [14:43:16]ProducePacketName [14:43:16]name=ofd_packets/00191804 [14:43:16]OFD Sender: To server: pG, [14:43:16]CommunicateWithHost lk.salyk.kg:30040 [14:43:16]ConnectInit lk.salyk.kg [14:43:16]written 0, free lines is 4095 [14:43:16]Connected sock=8 [14:43:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 0E 07 01 31 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 11 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C ED 02 00 35 04 06 00 B4 42 95 06 23 33 F4 7F 75 F6 12 9B 41 B2 [14:43:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BF AC 47 00 32 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3C ED 02 00 F4 03 04 00 DC A4 1C 67 B6 04 01 00 00 E5 B0 F6 EA 3F 74 93 B8 [14:43:16]CommunicateWithHost err = 0 [14:43:16]CheckOFDResponse [14:43:16]1017 (14) - 77093643461234 [14:43:16]1041 (16) - 0000000000871754 [14:43:16]1040 (4) - 191804 [14:43:16]1012 (4) - 26.10.2024 08:14 [14:43:16]1206 (1) - 0 [14:43:16]OFD Sender: Remove packet 191804 [14:43:16]ProducePacketName [14:43:16]name=ofd_packets/00191804 [14:43:16]NVStorageDeleteData [14:43:16]Write to MH i2c: 01 00 00 D9 0D E6 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: 01 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: 01 07 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: 01 07 00 D9 0D 00 00 00 00 00 BF 0C B8 [14:43:16]RasterBufferAndPrint [14:43:16]line [14:43:16]line [14:43:16]line [14:43:16]line [14:43:16]line [14:43:16]written 0, free lines is 3272 [14:43:16]MH_Cut [14:43:16]Write to MH i2c: D1 01 00 E0 0D 01 BF [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: D1 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: D1 01 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: D1 01 00 E0 0D 00 BE [14:43:16]Write to MH i2c: 01 00 00 E1 0D EE [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:17]OFD Sender: No OFD packet to send [14:43:17]*** Cut start [14:43:17]*** Partial cut [14:43:17]*** CUTSNS_PIN = 1 [14:43:17]*** CUTSNS_PIN = 0 [14:43:17]*** Brake cut motor [14:43:18]Read from MH i2c: 01 [14:43:18]MH_I2C_Read... [14:43:18]*** Stop cut motor [14:43:18]*** Cut end [14:43:18]Read from MH i2c: 01 07 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: 01 07 00 E1 0D 00 00 00 00 00 FF 0F 03 [14:43:18]process_action close_receipt done [14:43:18]requested_data is exist [14:43:18]produce_requested_data [14:43:18]requested_item fm.sn is exist - process it [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 11 00 00 [14:43:18]Write to MH i2c: E2 08 00 E2 0D 80 11 00 00 00 00 00 00 69 [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 17 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 17 00 E2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [14:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:43:18]wFMCommunicate OK [14:43:18]requested_item fd.num is exist - process it [14:43:18]SAM_PROTO_GetFieldsCounters [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 13 00 00 [14:43:18]Write to MH i2c: E2 08 00 E3 0D 80 13 00 00 00 00 00 00 6C [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 62 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 62 00 E3 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [14:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:18]wFMCommunicate OK [14:43:18]SAM_PROTO_GetFieldsCounters done [14:43:18]requested_item shift.num is exist - process it [14:43:18]requested_item shift.opened is exist - process it [14:43:18]req_shift_opened [14:43:18]FM_GetShiftState [14:43:18]SAM_PROTO_GetShiftState [14:43:18]wFMCommunicate request_size=4 [14:43:18]MH_SAM_APDU [14:43:18]CAPDU: 80 13 01 00 [14:43:18]Write to MH i2c: E2 08 00 E4 0D 80 13 01 00 00 00 00 00 6E [14:43:18]Write i2c OK [14:43:18]MH_I2C_Read... [14:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:18]Read from MH i2c: E2 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 0E 00 [14:43:18]MH_I2C_Read... [14:43:18]Read from MH i2c: E2 0E 00 E4 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E7 [14:43:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:43:18]wFMCommunicate OK [14:43:18]SAM_PROTO_GetShiftState done [14:43:18]FM_GetShiftState done [14:43:18]req_shift_opened done [14:43:18]requested_item shift.open_date is exist - process it [14:43:18]req_shift_open_date [14:43:18]req_shift_open_date done [14:43:18]produce_requested_data done [14:43:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191804,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:43:18]process_action_free close_receipt [14:43:18]json_value_free [14:43:18]json_value_free done [14:43:18]process_json_proto returns [14:43:18]Send response to host [14:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191804,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:43:18]free response buf [14:43:18]execute_script done [14:43:18]execute_script returns [14:43:18]free content buf [14:43:18]Sock 6.Close socket [14:43:18]Sock 6.Thread stoped [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:02]accept exits with 5 [14:44:02]New connection [14:44:02]New thread 3066817892 created [14:44:02]Thread 3066961252 joined [14:44:02]Waiting for new connection... [14:44:02] Sock 5.Parse request [14:44:02]Sock 5.Check first char [14:44:02]Sock 5.First char is OK [14:44:02]request: POST /json_proto HTTP/1.0 [14:44:02]Method: POST [14:44:02]URL: /json_proto [14:44:02]Method is POST - this is cgi request [14:44:02]url: /json_proto [14:44:02]query_string will be loaded in cgi processing [14:44:02]execute_cgi json_proto POST (null) [14:44:02]execute_cgi path=json_proto method=POST [14:44:02]POST find Content-Length [14:44:02]Host: 172.17.63.131:8080 [14:44:02]Content-Length: 862 [14:44:02]Content-Type: application/json [14:44:02] [14:44:02]POST finish read [14:44:02]Found Content-Length = 862 [14:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:02]execute_script... [14:44:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:02]POST & json_proto [14:44:02]process_json_proto [14:44:02]json parsed OK: [14:44:02]protocol is kg_v1.0 [14:44:02]action value=close_receipt [14:44:02]process_action close_receipt [14:44:02]cmd_close_receipt [14:44:02]MH_GetDate [14:44:02]Write to MH i2c: F0 00 00 E5 0D E1 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: F0 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: F0 09 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: F0 09 00 E5 0D 00 41 00 1D 67 22 05 6E 64 A8 [14:44:02]GetLastDocTimeStamp 1729953809 [14:44:02]current date 1729953857 [14:44:02]FM_GetShiftState [14:44:02]SAM_PROTO_GetShiftState [14:44:02]wFMCommunicate request_size=4 [14:44:02]MH_SAM_APDU [14:44:02]CAPDU: 80 13 01 00 [14:44:02]Write to MH i2c: E2 08 00 E6 0D 80 13 01 00 00 00 00 00 70 [14:44:02]Write i2c OK [14:44:02]MH_I2C_Read... [14:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:02]Read from MH i2c: E2 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0E 00 [14:44:02]MH_I2C_Read... [14:44:02]Read from MH i2c: E2 0E 00 E6 0D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E9 [14:44:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:02]wFMCommunicate OK [14:44:02]SAM_PROTO_GetShiftState done [14:44:02]FM_GetShiftState done [14:44:02]opened in 1729902770 [14:44:02]opened+sec_in_day 1729989170 [14:44:02]quantity*price = 60009 [14:44:02]sum+1 = 60010 [14:44:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 168 26.10.2024 14:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191805 ФПД: 266566927789054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191805&fm=266566927789054&tin=02508201610067®Number=0000000000091776&sum=60009 [14:44:04]StoreToDocumentArchive [14:44:04]shift 541 fd 191805 [14:44:04]save to /storage/0541/doc_00191805 [14:44:04]save last doc name /storage/0541/doc_00191805 to /storage/kkm_last_doc_name [14:44:04]save OK [14:44:04]Clear old archive folders... [14:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:04]tlvbuf is 017F1970 [14:44:04]SAM_PROTO_ClearQueue [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 09 00 00 [14:44:04]Write to MH i2c: E2 08 00 F3 0D 80 09 00 00 00 00 00 00 72 [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 F3 0D 00 90 00 74 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_ClearQueue done [14:44:04]KKMCreateOFDPacket [14:44:04]OFDProtocolAddRootSTLVToBuf [14:44:04]FM_MakeSignedData [14:44:04]FM_MakeSignedData [14:44:04]SAM_PROTO_SignData [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 01 02 [14:44:04]Write to MH i2c: E2 08 00 F4 0D 80 0D 01 02 00 00 00 00 7A [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=255 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 41 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D ED 02 00 35 04 06 00 F2 [14:44:04]Write to MH i2c: E2 02 01 F5 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 41 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D ED 02 00 35 04 06 00 F2 00 00 A7 [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=10 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 02 02 05 70 F3 0A 2B FE [14:44:04]Write to MH i2c: E2 0D 00 F6 0D 80 0D 02 02 05 00 70 F3 0A 2B FE 00 00 1D [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [14:44:04]RAPDU: 90 00 [14:44:04]wFMCommunicate OK [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 0D 03 02 [14:44:04]Write to MH i2c: E2 08 00 F7 0D 80 0D 03 02 00 00 00 00 7F [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0B 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 0B 00 F7 0D 00 09 A8 E1 C7 06 ED CF 13 90 00 AE [14:44:04]RAPDU: 09 A8 E1 C7 06 ED CF 13 90 00 [14:44:04]wFMCommunicate OK [14:44:04]SAM_PROTO_SignData done [14:44:04]FM_MakeSignedData done [14:44:04]CreateOFDProtocolMessage [14:44:04]wFMCommunicate request_size=4 [14:44:04]MH_SAM_APDU [14:44:04]CAPDU: 80 11 00 00 [14:44:04]Write to MH i2c: E2 08 00 F8 0D 80 11 00 00 00 00 00 00 7F [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:04]Read from MH i2c: E2 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 17 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: E2 17 00 F8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [14:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:04]wFMCommunicate OK [14:44:04]CreateOFDProtocolMessage done [14:44:04]OFDSenderStorePacket 191805 [14:44:04]StoreOFDPacket docnum=191805 [14:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 9F 07 01 AB 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 41 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D ED 02 00 35 04 06 00 F2 70 F3 0A 2B FE 09 A8 E1 C7 06 ED CF 13 [14:44:04]CheckFolder [14:44:04]dirname=/storage/ofd_packets [14:44:04]CheckFolder done [14:44:04]ProducePacketName [14:44:04]name=ofd_packets/00191805 [14:44:04]NVStorageSaveData ofd_packets/00191805 [14:44:04]File name is /storage/ofd_packets/00191805 [14:44:04]Write 301 bytes [14:44:04]NVStorageSaveData done [14:44:04]OFDSenderStorePacket done [14:44:04]KKMCreateOFDPacket done [14:44:04]NVStorageSaveData kkm_last_timestamp [14:44:04]File name is /storage/kkm_last_timestamp [14:44:04]Write 4 bytes [14:44:04]NVStorageSaveData done [14:44:04]ExternCall_PrintAddStr [14:44:04]wPrintStart [14:44:04]Write to MH i2c: 01 00 00 F9 0D 06 [14:44:04]Write i2c OK [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: 01 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: 01 07 00 [14:44:04]MH_I2C_Read... [14:44:04]Read from MH i2c: 01 07 00 F9 0D 00 00 00 00 00 FF 0F 1B [14:44:04]RasterBufferAndPrint [14:44:04]line Счет N : (1)31110 [14:44:04]line ИНН: 02508201610067 [14:44:04]line Контрольно-Кассовый Чек [14:44:04]line ПРОДАЖА [14:44:04]line ТРК (МРК, ГНК) : 21 [14:44:04]line Товар: 2710124130 [14:44:04]line Аи-92-К-5 [14:44:04]line 8.970 * 66.90 [14:44:04]line = 600.09 [14:44:04]line НДС 12% НСП 1% [14:44:04]line > о реализуемом товаре [14:44:04]line ИТОГО: 600.09 [14:44:04]line НСП 1% : 5.31 [14:44:04]line НДС 12% : 63.73 [14:44:04]line Наличными: 0.00 [14:44:04]line Безнал.: 600.09 [14:44:04]line Место: АЗС № 170 "Партнер Нефть" [14:44:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:44:04]line СНО: Общий режим [14:44:04]line Чек 168 26.10.2024 14:44 [14:44:04]line Смена: 541 ФФД: 1.0 [14:44:04]line ЗНМ: 0300000110 [14:44:04]line РНМ: 0000000000091776 [14:44:04]line Версия ККМ: 001 [14:44:04]line Платежная система: Кыргызкоммерцбанк [14:44:04]line ФМ: 0000000000871754 [14:44:04]line ФД: 191805 [14:44:04]line ФПД: 266566927789054 [14:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191805&fm=266566927789054&tin=02508201610067®Number=0000000000091776&sum=60009 [14:44:04]OFD Sender: Processing packet 191805 [packets to send 75, broken 74] [14:44:04]ProducePacketName [14:44:04]name=ofd_packets/00191805 [14:44:04]OFD Sender: To server: pG, [14:44:04]CommunicateWithHost lk.salyk.kg:30040 [14:44:05]ConnectInit lk.salyk.kg [14:44:05]written 0, free lines is 4095 [14:44:05]Connected sock=8 [14:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 9F 07 01 AB 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 41 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D ED 02 00 35 04 06 00 F2 70 F3 0A 2B FE 09 A8 E1 C7 06 ED CF 13 [14:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 F9 47 00 A9 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3D ED 02 00 F4 03 04 00 0C A5 1C 67 B6 04 01 00 00 2C BB B2 AD DE 66 C5 83 [14:44:05]CommunicateWithHost err = 0 [14:44:05]CheckOFDResponse [14:44:05]1017 (14) - 77093643461234 [14:44:05]1041 (16) - 0000000000871754 [14:44:05]1040 (4) - 191805 [14:44:05]1012 (4) - 26.10.2024 08:15 [14:44:05]1206 (1) - 0 [14:44:05]OFD Sender: Remove packet 191805 [14:44:05]ProducePacketName [14:44:05]name=ofd_packets/00191805 [14:44:05]NVStorageDeleteData [14:44:05]Write to MH i2c: 01 00 00 23 0E 31 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 E0 0C 24 [14:44:05]RasterBufferAndPrint [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]line [14:44:05]written 0, free lines is 3306 [14:44:05]MH_Cut [14:44:05]Write to MH i2c: D1 01 00 2A 0E 01 0A [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 01 00 [14:44:05]MH_I2C_Read... [14:44:05]Read from MH i2c: D1 01 00 2A 0E 00 09 [14:44:05]Write to MH i2c: 01 00 00 2B 0E 39 [14:44:05]Write i2c OK [14:44:05]MH_I2C_Read... [14:44:05]OFD Sender: No OFD packet to send [14:44:06]*** Cut start [14:44:06]*** Partial cut [14:44:06]*** CUTSNS_PIN = 1 [14:44:06]*** CUTSNS_PIN = 0 [14:44:06]*** Brake cut motor [14:44:06]Read from MH i2c: 01 [14:44:06]MH_I2C_Read... [14:44:06]*** Stop cut motor [14:44:06]*** Cut end [14:44:06]Read from MH i2c: 01 07 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [14:44:06]process_action close_receipt done [14:44:06]requested_data is exist [14:44:06]produce_requested_data [14:44:06]requested_item fm.sn is exist - process it [14:44:06]wFMCommunicate request_size=4 [14:44:06]MH_SAM_APDU [14:44:06]CAPDU: 80 11 00 00 [14:44:06]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:06]Read from MH i2c: E2 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 17 00 [14:44:06]MH_I2C_Read... [14:44:06]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [14:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:06]wFMCommunicate OK [14:44:06]requested_item fd.num is exist - process it [14:44:06]SAM_PROTO_GetFieldsCounters [14:44:06]wFMCommunicate request_size=4 [14:44:06]MH_SAM_APDU [14:44:06]CAPDU: 80 13 00 00 [14:44:06]Write to MH i2c: E2 08 00 2D 0E 80 13 00 00 00 00 00 00 B7 [14:44:06]Write i2c OK [14:44:06]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 62 00 2D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [14:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetFieldsCounters done [14:44:07]requested_item shift.num is exist - process it [14:44:07]requested_item shift.opened is exist - process it [14:44:07]req_shift_opened [14:44:07]FM_GetShiftState [14:44:07]SAM_PROTO_GetShiftState [14:44:07]wFMCommunicate request_size=4 [14:44:07]MH_SAM_APDU [14:44:07]CAPDU: 80 13 01 00 [14:44:07]Write to MH i2c: E2 08 00 2E 0E 80 13 01 00 00 00 00 00 B9 [14:44:07]Write i2c OK [14:44:07]MH_I2C_Read... [14:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:07]Read from MH i2c: E2 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 [14:44:07]MH_I2C_Read... [14:44:07]Read from MH i2c: E2 0E 00 2E 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 32 [14:44:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:07]wFMCommunicate OK [14:44:07]SAM_PROTO_GetShiftState done [14:44:07]FM_GetShiftState done [14:44:07]req_shift_opened done [14:44:07]requested_item shift.open_date is exist - process it [14:44:07]req_shift_open_date [14:44:07]req_shift_open_date done [14:44:07]produce_requested_data done [14:44:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191805,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:44:07]process_action_free close_receipt [14:44:07]json_value_free [14:44:07]json_value_free done [14:44:07]process_json_proto returns [14:44:07]Send response to host [14:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191805,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:44:07]free response buf [14:44:07]execute_script done [14:44:07]execute_script returns [14:44:07]free content buf [14:44:07]Sock 5.Close socket [14:44:07]Sock 5.Thread stoped [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:34]accept exits with 6 [14:44:34]New connection [14:44:34]New thread 3066961252 created [14:44:34]Thread 3066817892 joined [14:44:34]Waiting for new connection... [14:44:34] Sock 6.Parse request [14:44:34]Sock 6.Check first char [14:44:34]Sock 6.First char is OK [14:44:34]request: POST /json_proto HTTP/1.0 [14:44:34]Method: POST [14:44:34]URL: /json_proto [14:44:34]Method is POST - this is cgi request [14:44:34]url: /json_proto [14:44:34]query_string will be loaded in cgi processing [14:44:34]execute_cgi json_proto POST (null) [14:44:34]execute_cgi path=json_proto method=POST [14:44:34]POST find Content-Length [14:44:34]Host: 172.17.63.131:8080 [14:44:34]Content-Length: 676 [14:44:34]Content-Type: application/json [14:44:34] [14:44:34]POST finish read [14:44:34]Found Content-Length = 676 [14:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:34]execute_script... [14:44:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:34]POST & json_proto [14:44:34]process_json_proto [14:44:34]json parsed OK: [14:44:34]protocol is kg_v1.0 [14:44:34]action value=close_receipt [14:44:34]process_action close_receipt [14:44:34]cmd_close_receipt [14:44:34]MH_GetDate [14:44:34]Write to MH i2c: F0 00 00 2F 0E 2C [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: F0 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: F0 09 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: F0 09 00 2F 0E 00 61 00 1D 67 22 05 6E 64 13 [14:44:34]GetLastDocTimeStamp 1729953857 [14:44:34]current date 1729953889 [14:44:34]FM_GetShiftState [14:44:34]SAM_PROTO_GetShiftState [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 13 01 00 [14:44:34]Write to MH i2c: E2 08 00 30 0E 80 13 01 00 00 00 00 00 BB [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0E 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 0E 00 30 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 34 [14:44:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:34]wFMCommunicate OK [14:44:34]SAM_PROTO_GetShiftState done [14:44:34]FM_GetShiftState done [14:44:34]opened in 1729902770 [14:44:34]opened+sec_in_day 1729989170 [14:44:34]quantity*price = 50041 [14:44:34]sum+1 = 50042 [14:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 169 26.10.2024 14:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191806 ФПД: 162590326762515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191806&fm=162590326762515&tin=02508201610067®Number=0000000000091776&sum=50000 [14:44:35]StoreToDocumentArchive [14:44:35]shift 541 fd 191806 [14:44:35]save to /storage/0541/doc_00191806 [14:44:35]save last doc name /storage/0541/doc_00191806 to /storage/kkm_last_doc_name [14:44:35]save OK [14:44:35]Clear old archive folders... [14:44:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:35]tlvbuf is 01625450 [14:44:35]SAM_PROTO_ClearQueue [14:44:35]wFMCommunicate request_size=4 [14:44:35]MH_SAM_APDU [14:44:35]CAPDU: 80 09 00 00 [14:44:35]Write to MH i2c: E2 08 00 3D 0E 80 09 00 00 00 00 00 00 BD [14:44:35]Write i2c OK [14:44:35]MH_I2C_Read... [14:44:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:35]OFD Sender: No OFD packet to send [14:44:35]Read from MH i2c: E2 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 03 00 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [14:44:35]RAPDU: 90 00 [14:44:35]wFMCommunicate OK [14:44:35]SAM_PROTO_ClearQueue done [14:44:35]KKMCreateOFDPacket [14:44:35]OFDProtocolAddRootSTLVToBuf [14:44:35]FM_MakeSignedData [14:44:35]FM_MakeSignedData [14:44:35]SAM_PROTO_SignData [14:44:35]wFMCommunicate request_size=4 [14:44:35]MH_SAM_APDU [14:44:35]CAPDU: 80 0D 01 02 [14:44:35]Write to MH i2c: E2 08 00 3E 0E 80 0D 01 02 00 00 00 00 C5 [14:44:35]Write i2c OK [14:44:35]MH_I2C_Read... [14:44:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:35]Read from MH i2c: E2 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 03 00 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [14:44:35]RAPDU: 90 00 [14:44:35]wFMCommunicate OK [14:44:35]wFMCommunicate request_size=255 [14:44:35]MH_SAM_APDU [14:44:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E ED 02 00 35 04 06 00 93 [14:44:35]Write to MH i2c: E2 02 01 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E ED 02 00 35 04 06 00 93 00 00 C6 [14:44:35]Write i2c OK [14:44:35]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [14:44:36]RAPDU: 90 00 [14:44:36]wFMCommunicate OK [14:44:36]wFMCommunicate request_size=10 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 0D 02 02 05 E0 02 AB AC 13 [14:44:36]Write to MH i2c: E2 0D 00 40 0E 80 0D 02 02 05 00 E0 02 AB AC 13 00 00 1E [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [14:44:36]RAPDU: 90 00 [14:44:36]wFMCommunicate OK [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 0D 03 02 [14:44:36]Write to MH i2c: E2 08 00 41 0E 80 0D 03 02 00 00 00 00 CA [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 0B 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 0B 00 41 0E 00 DC 3F 94 89 22 08 1A 8F 90 00 D6 [14:44:36]RAPDU: DC 3F 94 89 22 08 1A 8F 90 00 [14:44:36]wFMCommunicate OK [14:44:36]SAM_PROTO_SignData done [14:44:36]FM_MakeSignedData done [14:44:36]CreateOFDProtocolMessage [14:44:36]wFMCommunicate request_size=4 [14:44:36]MH_SAM_APDU [14:44:36]CAPDU: 80 11 00 00 [14:44:36]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:36]Read from MH i2c: E2 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 17 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1D [14:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:36]wFMCommunicate OK [14:44:36]CreateOFDProtocolMessage done [14:44:36]OFDSenderStorePacket 191806 [14:44:36]StoreOFDPacket docnum=191806 [14:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 37 07 01 60 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E ED 02 00 35 04 06 00 93 E0 02 AB AC 13 DC 3F 94 89 22 08 1A 8F [14:44:36]CheckFolder [14:44:36]dirname=/storage/ofd_packets [14:44:36]CheckFolder done [14:44:36]ProducePacketName [14:44:36]name=ofd_packets/00191806 [14:44:36]NVStorageSaveData ofd_packets/00191806 [14:44:36]File name is /storage/ofd_packets/00191806 [14:44:36]Write 301 bytes [14:44:36]NVStorageSaveData done [14:44:36]OFDSenderStorePacket done [14:44:36]KKMCreateOFDPacket done [14:44:36]NVStorageSaveData kkm_last_timestamp [14:44:36]File name is /storage/kkm_last_timestamp [14:44:36]Write 4 bytes [14:44:36]NVStorageSaveData done [14:44:36]ExternCall_PrintAddStr [14:44:36]wPrintStart [14:44:36]Write to MH i2c: 01 00 00 43 0E 51 [14:44:36]Write i2c OK [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: 01 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: 01 07 00 [14:44:36]MH_I2C_Read... [14:44:36]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [14:44:36]RasterBufferAndPrint [14:44:36]line Счет N : (1)31112 [14:44:36]line ИНН: 02508201610067 [14:44:36]line Контрольно-Кассовый Чек [14:44:36]line ПРОДАЖА [14:44:36]line ТРК (МРК, ГНК) : 21 [14:44:36]line Товар: 2710124130 [14:44:36]line Аи-92-К-5 [14:44:36]line 7.480 * 66.90 [14:44:36]line = 500.41 [14:44:36]line НДС 12% НСП 1% [14:44:36]line > о реализуемом товаре [14:44:36]line ОКРУГЛЕНИЕ: -0.41 [14:44:36]line ИТОГО: 500.00 [14:44:36]line Внесено: 500.00 [14:44:36]line СДАЧА: 0.00 [14:44:36]line НСП 1% : 4.43 [14:44:36]line НДС 12% : 53.14 [14:44:36]line Наличными: 500.00 [14:44:36]line Безнал.: 0.00 [14:44:36]line Место: АЗС № 170 "Партнер Нефть" [14:44:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:44:36]line СНО: Общий режим [14:44:36]line Чек 169 26.10.2024 14:44 [14:44:36]line Смена: 541 ФФД: 1.0 [14:44:36]line ЗНМ: 0300000110 [14:44:36]line РНМ: 0000000000091776 [14:44:36]line Версия ККМ: 001 [14:44:36]line ФМ: 0000000000871754 [14:44:36]line ФД: 191806 [14:44:36]line ФПД: 162590326762515 [14:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144449&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191806&fm=162590326762515&tin=02508201610067®Number=0000000000091776&sum=50000 [14:44:36]OFD Sender: Processing packet 191806 [packets to send 75, broken 74] [14:44:36]ProducePacketName [14:44:36]name=ofd_packets/00191806 [14:44:36]OFD Sender: To server: pG, [14:44:36]CommunicateWithHost lk.salyk.kg:30040 [14:44:36]ConnectInit lk.salyk.kg [14:44:36]written 0, free lines is 4095 [14:44:36]Connected sock=8 [14:44:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 53 37 07 01 60 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 61 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E ED 02 00 35 04 06 00 93 E0 02 AB AC 13 DC 3F 94 89 22 08 1A 8F [14:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 5A 47 00 8E C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3E ED 02 00 F4 03 04 00 2C A5 1C 67 B6 04 01 00 00 ED 70 07 46 45 EE F7 7F [14:44:37]CommunicateWithHost err = 0 [14:44:37]CheckOFDResponse [14:44:37]1017 (14) - 77093643461234 [14:44:37]1041 (16) - 0000000000871754 [14:44:37]1040 (4) - 191806 [14:44:37]1012 (4) - 26.10.2024 08:15 [14:44:37]1206 (1) - 0 [14:44:37]OFD Sender: Remove packet 191806 [14:44:37]ProducePacketName [14:44:37]name=ofd_packets/00191806 [14:44:37]NVStorageDeleteData [14:44:37]Write to MH i2c: 01 00 00 6E 0E 7C [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 07 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 CF 0C 5E [14:44:37]RasterBufferAndPrint [14:44:37]line [14:44:37]line [14:44:37]line [14:44:37]line [14:44:37]line [14:44:37]written 0, free lines is 3286 [14:44:37]MH_Cut [14:44:37]Write to MH i2c: D1 01 00 75 0E 01 55 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: D1 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: D1 01 00 [14:44:37]MH_I2C_Read... [14:44:37]Read from MH i2c: D1 01 00 75 0E 00 54 [14:44:37]Write to MH i2c: 01 00 00 76 0E 84 [14:44:37]Write i2c OK [14:44:37]MH_I2C_Read... [14:44:37]OFD Sender: No OFD packet to send [14:44:37]*** Cut start [14:44:37]*** Partial cut [14:44:37]*** CUTSNS_PIN = 1 [14:44:38]*** CUTSNS_PIN = 0 [14:44:38]*** Brake cut motor [14:44:38]Read from MH i2c: 01 [14:44:38]MH_I2C_Read... [14:44:38]*** Stop cut motor [14:44:38]*** Cut end [14:44:38]Read from MH i2c: 01 07 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [14:44:38]process_action close_receipt done [14:44:38]requested_data is exist [14:44:38]produce_requested_data [14:44:38]requested_item fm.sn is exist - process it [14:44:38]wFMCommunicate request_size=4 [14:44:38]MH_SAM_APDU [14:44:38]CAPDU: 80 11 00 00 [14:44:38]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:38]Read from MH i2c: E2 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 17 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [14:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:38]wFMCommunicate OK [14:44:38]requested_item fd.num is exist - process it [14:44:38]SAM_PROTO_GetFieldsCounters [14:44:38]wFMCommunicate request_size=4 [14:44:38]MH_SAM_APDU [14:44:38]CAPDU: 80 13 00 00 [14:44:38]Write to MH i2c: E2 08 00 78 0E 80 13 00 00 00 00 00 00 02 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:38]Read from MH i2c: E2 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 62 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 62 00 78 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:44:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:38]wFMCommunicate OK [14:44:38]SAM_PROTO_GetFieldsCounters done [14:44:38]requested_item shift.num is exist - process it [14:44:38]requested_item shift.opened is exist - process it [14:44:38]req_shift_opened [14:44:38]FM_GetShiftState [14:44:38]SAM_PROTO_GetShiftState [14:44:38]wFMCommunicate request_size=4 [14:44:38]MH_SAM_APDU [14:44:38]CAPDU: 80 13 01 00 [14:44:38]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [14:44:38]Write i2c OK [14:44:38]MH_I2C_Read... [14:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:38]Read from MH i2c: E2 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 0E 00 [14:44:38]MH_I2C_Read... [14:44:38]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7D [14:44:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:38]wFMCommunicate OK [14:44:38]SAM_PROTO_GetShiftState done [14:44:38]FM_GetShiftState done [14:44:38]req_shift_opened done [14:44:38]requested_item shift.open_date is exist - process it [14:44:38]req_shift_open_date [14:44:38]req_shift_open_date done [14:44:38]produce_requested_data done [14:44:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191806,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:44:38]process_action_free close_receipt [14:44:38]json_value_free [14:44:38]json_value_free done [14:44:38]process_json_proto returns [14:44:38]Send response to host [14:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191806,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:44:38]free response buf [14:44:38]execute_script done [14:44:38]execute_script returns [14:44:38]free content buf [14:44:38]Sock 6.Close socket [14:44:38]Sock 6.Thread stoped [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:54]accept exits with 5 [14:44:54]New connection [14:44:54]New thread 3066817892 created [14:44:54]Thread 3066961252 joined [14:44:54]Waiting for new connection... [14:44:54] Sock 5.Parse request [14:44:54]Sock 5.Check first char [14:44:54]Sock 5.First char is OK [14:44:54]request: POST /json_proto HTTP/1.0 [14:44:54]Method: POST [14:44:54]URL: /json_proto [14:44:54]Method is POST - this is cgi request [14:44:54]url: /json_proto [14:44:54]query_string will be loaded in cgi processing [14:44:54]execute_cgi json_proto POST (null) [14:44:54]execute_cgi path=json_proto method=POST [14:44:54]POST find Content-Length [14:44:54]Host: 172.17.63.131:8080 [14:44:54]Content-Length: 678 [14:44:54]Content-Type: application/json [14:44:54] [14:44:54]POST finish read [14:44:54]Found Content-Length = 678 [14:44:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:54]execute_script... [14:44:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:54]POST & json_proto [14:44:54]process_json_proto [14:44:54]json parsed OK: [14:44:54]protocol is kg_v1.0 [14:44:54]action value=close_receipt [14:44:54]process_action close_receipt [14:44:54]cmd_close_receipt [14:44:54]MH_GetDate [14:44:54]Write to MH i2c: F0 00 00 7A 0E 77 [14:44:54]Write i2c OK [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 09 00 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: F0 09 00 7A 0E 00 75 00 1D 67 22 05 6E 64 72 [14:44:54]GetLastDocTimeStamp 1729953889 [14:44:54]current date 1729953909 [14:44:54]FM_GetShiftState [14:44:54]SAM_PROTO_GetShiftState [14:44:54]wFMCommunicate request_size=4 [14:44:54]MH_SAM_APDU [14:44:54]CAPDU: 80 13 01 00 [14:44:54]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [14:44:54]Write i2c OK [14:44:54]MH_I2C_Read... [14:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:54]Read from MH i2c: E2 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: E2 0E 00 [14:44:54]MH_I2C_Read... [14:44:54]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7F [14:44:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:54]wFMCommunicate OK [14:44:54]SAM_PROTO_GetShiftState done [14:44:54]FM_GetShiftState done [14:44:54]opened in 1729902770 [14:44:54]opened+sec_in_day 1729989170 [14:44:54]quantity*price = 100050 [14:44:54]sum+1 = 100052 [14:44:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 170 26.10.2024 14:45 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191807 ФПД: 165480691256332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191807&fm=165480691256332&tin=02508201610067®Number=0000000000091776&sum=100000 [14:44:55]StoreToDocumentArchive [14:44:55]shift 541 fd 191807 [14:44:55]save to /storage/0541/doc_00191807 [14:44:56]save last doc name /storage/0541/doc_00191807 to /storage/kkm_last_doc_name [14:44:56]save OK [14:44:56]Clear old archive folders... [14:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:44:56]tlvbuf is 016CE8B0 [14:44:56]SAM_PROTO_ClearQueue [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 09 00 00 [14:44:56]Write to MH i2c: E2 08 00 88 0E 80 09 00 00 00 00 00 00 08 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_ClearQueue done [14:44:56]KKMCreateOFDPacket [14:44:56]OFDProtocolAddRootSTLVToBuf [14:44:56]FM_MakeSignedData [14:44:56]FM_MakeSignedData [14:44:56]SAM_PROTO_SignData [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 01 02 [14:44:56]Write to MH i2c: E2 08 00 89 0E 80 0D 01 02 00 00 00 00 10 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=255 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F ED 02 00 35 04 06 00 96 80 F9 D1 [14:44:56]Write to MH i2c: E2 02 01 8A 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F ED 02 00 35 04 06 00 96 80 F9 D1 00 00 6A [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=7 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 02 02 02 CC 0C [14:44:56]Write to MH i2c: E2 0A 00 8B 0E 80 0D 02 02 02 00 CC 0C 00 00 EF [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [14:44:56]RAPDU: 90 00 [14:44:56]wFMCommunicate OK [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 0D 03 02 [14:44:56]Write to MH i2c: E2 08 00 8C 0E 80 0D 03 02 00 00 00 00 15 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 0B 00 8C 0E 00 6D 58 D6 46 35 DD AA 11 90 00 C4 [14:44:56]RAPDU: 6D 58 D6 46 35 DD AA 11 90 00 [14:44:56]wFMCommunicate OK [14:44:56]SAM_PROTO_SignData done [14:44:56]FM_MakeSignedData done [14:44:56]CreateOFDProtocolMessage [14:44:56]wFMCommunicate request_size=4 [14:44:56]MH_SAM_APDU [14:44:56]CAPDU: 80 11 00 00 [14:44:56]Write to MH i2c: E2 08 00 8D 0E 80 11 00 00 00 00 00 00 15 [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:56]Read from MH i2c: E2 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: E2 17 00 8D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 68 [14:44:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:56]wFMCommunicate OK [14:44:56]CreateOFDProtocolMessage done [14:44:56]OFDSenderStorePacket 191807 [14:44:56]StoreOFDPacket docnum=191807 [14:44:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B3 18 04 01 CC 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F ED 02 00 35 04 06 00 96 80 F9 D1 CC 0C 6D 58 D6 46 35 DD AA 11 [14:44:56]CheckFolder [14:44:56]dirname=/storage/ofd_packets [14:44:56]CheckFolder done [14:44:56]ProducePacketName [14:44:56]name=ofd_packets/00191807 [14:44:56]NVStorageSaveData ofd_packets/00191807 [14:44:56]File name is /storage/ofd_packets/00191807 [14:44:56]Write 298 bytes [14:44:56]NVStorageSaveData done [14:44:56]OFDSenderStorePacket done [14:44:56]KKMCreateOFDPacket done [14:44:56]NVStorageSaveData kkm_last_timestamp [14:44:56]File name is /storage/kkm_last_timestamp [14:44:56]Write 4 bytes [14:44:56]NVStorageSaveData done [14:44:56]ExternCall_PrintAddStr [14:44:56]wPrintStart [14:44:56]Write to MH i2c: 01 00 00 8E 0E 9C [14:44:56]Write i2c OK [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 [14:44:56]MH_I2C_Read... [14:44:56]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [14:44:56]RasterBufferAndPrint [14:44:56]line Счет N : (1)31111 [14:44:56]line ИНН: 02508201610067 [14:44:56]line Контрольно-Кассовый Чек [14:44:56]line ПРОДАЖА [14:44:56]line ТРК (МРК, ГНК) : 11 [14:44:56]line Товар: 2710194210 [14:44:56]line ДТ-К-5 [14:44:56]line 13.130 * 76.20 [14:44:56]line = 1000.51 [14:44:56]line НДС 12% НСП 1% [14:44:56]line > о реализуемом товаре [14:44:56]line ОКРУГЛЕНИЕ: -0.51 [14:44:56]line ИТОГО: 1000.00 [14:44:56]line Внесено: 1000.00 [14:44:56]line СДАЧА: 0.00 [14:44:56]line НСП 1% : 8.85 [14:44:56]line НДС 12% : 106.25 [14:44:56]line Наличными: 1000.00 [14:44:56]line Безнал.: 0.00 [14:44:56]line Место: АЗС № 170 "Партнер Нефть" [14:44:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:44:56]line СНО: Общий режим [14:44:56]line Чек 170 26.10.2024 14:45 [14:44:56]line Смена: 541 ФФД: 1.0 [14:44:56]line ЗНМ: 0300000110 [14:44:56]line РНМ: 0000000000091776 [14:44:56]line Версия ККМ: 001 [14:44:56]line ФМ: 0000000000871754 [14:44:56]line ФД: 191807 [14:44:56]line ФПД: 165480691256332 [14:44:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144509&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191807&fm=165480691256332&tin=02508201610067®Number=0000000000091776&sum=100000 [14:44:56]written 0, free lines is 4095 [14:44:56]OFD Sender: Processing packet 191807 [packets to send 75, broken 74] [14:44:56]ProducePacketName [14:44:56]name=ofd_packets/00191807 [14:44:56]OFD Sender: To server: pG, [14:44:56]CommunicateWithHost lk.salyk.kg:30040 [14:44:56]ConnectInit lk.salyk.kg [14:44:56]Connected sock=8 [14:44:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 B3 18 04 01 CC 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 75 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F ED 02 00 35 04 06 00 96 80 F9 D1 CC 0C 6D 58 D6 46 35 DD AA 11 [14:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF DD 47 00 45 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 3F ED 02 00 F4 03 04 00 40 A5 1C 67 B6 04 01 00 00 B4 E5 B5 EC 13 00 1D 95 [14:44:57]CommunicateWithHost err = 0 [14:44:57]CheckOFDResponse [14:44:57]1017 (14) - 77093643461234 [14:44:57]1041 (16) - 0000000000871754 [14:44:57]1040 (4) - 191807 [14:44:57]1012 (4) - 26.10.2024 08:16 [14:44:57]1206 (1) - 0 [14:44:57]OFD Sender: Remove packet 191807 [14:44:57]ProducePacketName [14:44:57]name=ofd_packets/00191807 [14:44:57]NVStorageDeleteData [14:44:57]Write to MH i2c: 01 00 00 B9 0E C7 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 B1 0C 8B [14:44:57]RasterBufferAndPrint [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]line [14:44:57]written 0, free lines is 3257 [14:44:57]MH_Cut [14:44:57]Write to MH i2c: D1 01 00 C0 0E 01 A0 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: D1 01 00 C0 0E 00 9F [14:44:57]Write to MH i2c: 01 00 00 C1 0E CF [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]OFD Sender: No OFD packet to send [14:44:58]*** Cut start [14:44:58]*** Partial cut [14:44:58]*** CUTSNS_PIN = 1 [14:44:58]*** CUTSNS_PIN = 0 [14:44:58]*** Brake cut motor [14:44:58]Read from MH i2c: 01 [14:44:58]MH_I2C_Read... [14:44:58]*** Stop cut motor [14:44:58]*** Cut end [14:44:58]Read from MH i2c: 01 07 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [14:44:58]process_action close_receipt done [14:44:58]requested_data is exist [14:44:58]produce_requested_data [14:44:58]requested_item fm.sn is exist - process it [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 11 00 00 [14:44:58]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [14:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:44:58]wFMCommunicate OK [14:44:58]requested_item fd.num is exist - process it [14:44:58]SAM_PROTO_GetFieldsCounters [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 13 00 00 [14:44:58]Write to MH i2c: E2 08 00 C3 0E 80 13 00 00 00 00 00 00 4D [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 62 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 62 00 C3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [14:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 3F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_GetFieldsCounters done [14:44:58]requested_item shift.num is exist - process it [14:44:58]requested_item shift.opened is exist - process it [14:44:58]req_shift_opened [14:44:58]FM_GetShiftState [14:44:58]SAM_PROTO_GetShiftState [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 13 01 00 [14:44:58]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C8 [14:44:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetShiftState done [14:44:59]FM_GetShiftState done [14:44:59]req_shift_opened done [14:44:59]requested_item shift.open_date is exist - process it [14:44:59]req_shift_open_date [14:44:59]req_shift_open_date done [14:44:59]produce_requested_data done [14:44:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191807,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:44:59]process_action_free close_receipt [14:44:59]json_value_free [14:44:59]json_value_free done [14:44:59]process_json_proto returns [14:44:59]Send response to host [14:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191807,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:44:59]free response buf [14:44:59]execute_script done [14:44:59]execute_script returns [14:44:59]free content buf [14:44:59]Sock 5.Close socket [14:44:59]Sock 5.Thread stoped [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:31]accept exits with 6 [14:46:31]New connection [14:46:31]New thread 3066961252 created [14:46:31]Thread 3066817892 joined [14:46:31]Waiting for new connection... [14:46:31] Sock 6.Parse request [14:46:31]Sock 6.Check first char [14:46:31]Sock 6.First char is OK [14:46:31]request: POST /json_proto HTTP/1.0 [14:46:31]Method: POST [14:46:31]URL: /json_proto [14:46:31]Method is POST - this is cgi request [14:46:31]url: /json_proto [14:46:31]query_string will be loaded in cgi processing [14:46:31]execute_cgi json_proto POST (null) [14:46:31]execute_cgi path=json_proto method=POST [14:46:31]POST find Content-Length [14:46:31]Host: 172.17.63.131:8080 [14:46:31]Content-Length: 676 [14:46:31]Content-Type: application/json [14:46:31] [14:46:31]POST finish read [14:46:31]Found Content-Length = 676 [14:46:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:31]execute_script... [14:46: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)31113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:31]POST & json_proto [14:46:31]process_json_proto [14:46:31]json parsed OK: [14:46:31]protocol is kg_v1.0 [14:46:31]action value=close_receipt [14:46:31]process_action close_receipt [14:46:31]cmd_close_receipt [14:46:31]MH_GetDate [14:46:31]Write to MH i2c: F0 00 00 C5 0E C2 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: F0 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: F0 09 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: F0 09 00 C5 0E 00 D6 00 1D 67 22 05 6E 64 1E [14:46:31]GetLastDocTimeStamp 1729953909 [14:46:31]current date 1729954006 [14:46:31]FM_GetShiftState [14:46:31]SAM_PROTO_GetShiftState [14:46:31]wFMCommunicate request_size=4 [14:46:31]MH_SAM_APDU [14:46:31]CAPDU: 80 13 01 00 [14:46:31]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [14:46:31]Write i2c OK [14:46:31]MH_I2C_Read... [14:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:31]Read from MH i2c: E2 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0E 00 [14:46:31]MH_I2C_Read... [14:46:31]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CA [14:46:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:46:31]wFMCommunicate OK [14:46:31]SAM_PROTO_GetShiftState done [14:46:31]FM_GetShiftState done [14:46:31]opened in 1729902770 [14:46:31]opened+sec_in_day 1729989170 [14:46:31]quantity*price = 40006 [14:46:31]sum+1 = 40007 [14:46:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 171 26.10.2024 14:46 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191808 ФПД: 1926158098780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191808&fm=1926158098780&tin=02508201610067®Number=0000000000091776&sum=40000 [14:46:32]StoreToDocumentArchive [14:46:32]shift 541 fd 191808 [14:46:32]save to /storage/0541/doc_00191808 [14:46:32]save last doc name /storage/0541/doc_00191808 to /storage/kkm_last_doc_name [14:46:32]save OK [14:46:32]Clear old archive folders... [14:46:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:32]tlvbuf is 019D2B50 [14:46:32]SAM_PROTO_ClearQueue [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 09 00 00 [14:46:32]Write to MH i2c: E2 08 00 D3 0E 80 09 00 00 00 00 00 00 53 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]SAM_PROTO_ClearQueue done [14:46:32]KKMCreateOFDPacket [14:46:32]OFDProtocolAddRootSTLVToBuf [14:46:32]FM_MakeSignedData [14:46:32]FM_MakeSignedData [14:46:32]SAM_PROTO_SignData [14:46:32]wFMCommunicate request_size=4 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 01 02 [14:46:32]Write to MH i2c: E2 08 00 D4 0E 80 0D 01 02 00 00 00 00 5B [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 D4 0E 00 90 00 56 [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=255 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D6 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 ED 02 00 35 04 06 00 01 [14:46:32]Write to MH i2c: E2 02 01 D5 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D6 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 ED 02 00 35 04 06 00 01 00 00 12 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:32]OFD Sender: No OFD packet to send [14:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:32]Read from MH i2c: E2 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 [14:46:32]MH_I2C_Read... [14:46:32]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [14:46:32]RAPDU: 90 00 [14:46:32]wFMCommunicate OK [14:46:32]wFMCommunicate request_size=10 [14:46:32]MH_SAM_APDU [14:46:32]CAPDU: 80 0D 02 02 05 C0 77 F8 21 5C [14:46:32]Write to MH i2c: E2 0D 00 D6 0E 80 0D 02 02 05 00 C0 77 F8 21 5C 00 00 14 [14:46:32]Write i2c OK [14:46:32]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [14:46:33]RAPDU: 90 00 [14:46:33]wFMCommunicate OK [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 0D 03 02 [14:46:33]Write to MH i2c: E2 08 00 D7 0E 80 0D 03 02 00 00 00 00 60 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 0B 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 0B 00 D7 0E 00 0F 9B F0 1D 12 D4 9D F7 90 00 92 [14:46:33]RAPDU: 0F 9B F0 1D 12 D4 9D F7 90 00 [14:46:33]wFMCommunicate OK [14:46:33]SAM_PROTO_SignData done [14:46:33]FM_MakeSignedData done [14:46:33]CreateOFDProtocolMessage [14:46:33]wFMCommunicate request_size=4 [14:46:33]MH_SAM_APDU [14:46:33]CAPDU: 80 11 00 00 [14:46:33]Write to MH i2c: E2 08 00 D8 0E 80 11 00 00 00 00 00 00 60 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:33]Read from MH i2c: E2 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 17 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: E2 17 00 D8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [14:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:33]wFMCommunicate OK [14:46:33]CreateOFDProtocolMessage done [14:46:33]OFDSenderStorePacket 191808 [14:46:33]StoreOFDPacket docnum=191808 [14:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 8E 07 01 29 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D6 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 ED 02 00 35 04 06 00 01 C0 77 F8 21 5C 0F 9B F0 1D 12 D4 9D F7 [14:46:33]CheckFolder [14:46:33]dirname=/storage/ofd_packets [14:46:33]CheckFolder done [14:46:33]ProducePacketName [14:46:33]name=ofd_packets/00191808 [14:46:33]NVStorageSaveData ofd_packets/00191808 [14:46:33]File name is /storage/ofd_packets/00191808 [14:46:33]Write 301 bytes [14:46:33]NVStorageSaveData done [14:46:33]OFDSenderStorePacket done [14:46:33]KKMCreateOFDPacket done [14:46:33]NVStorageSaveData kkm_last_timestamp [14:46:33]File name is /storage/kkm_last_timestamp [14:46:33]Write 4 bytes [14:46:33]NVStorageSaveData done [14:46:33]ExternCall_PrintAddStr [14:46:33]wPrintStart [14:46:33]Write to MH i2c: 01 00 00 D9 0E E7 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 D9 0E 00 00 00 00 00 FF 0F FC [14:46:33]RasterBufferAndPrint [14:46:33]line Счет N : (1)31113 [14:46:33]line ИНН: 02508201610067 [14:46:33]line Контрольно-Кассовый Чек [14:46:33]line ПРОДАЖА [14:46:33]line ТРК (МРК, ГНК) : 21 [14:46:33]line Товар: 2710124130 [14:46:33]line Аи-92-К-5 [14:46:33]line 5.980 * 66.90 [14:46:33]line = 400.06 [14:46:33]line НДС 12% НСП 1% [14:46:33]line > о реализуемом товаре [14:46:33]line ОКРУГЛЕНИЕ: -0.06 [14:46:33]line ИТОГО: 400.00 [14:46:33]line Внесено: 400.00 [14:46:33]line СДАЧА: 0.00 [14:46:33]line НСП 1% : 3.54 [14:46:33]line НДС 12% : 42.48 [14:46:33]line Наличными: 400.00 [14:46:33]line Безнал.: 0.00 [14:46:33]line Место: АЗС № 170 "Партнер Нефть" [14:46:33]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:46:33]line СНО: Общий режим [14:46:33]line Чек 171 26.10.2024 14:46 [14:46:33]line Смена: 541 ФФД: 1.0 [14:46:33]line ЗНМ: 0300000110 [14:46:33]line РНМ: 0000000000091776 [14:46:33]line Версия ККМ: 001 [14:46:33]line ФМ: 0000000000871754 [14:46:33]line ФД: 191808 [14:46:33]line ФПД: 1926158098780 [14:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144646&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191808&fm=1926158098780&tin=02508201610067®Number=0000000000091776&sum=40000 [14:46:33]OFD Sender: Processing packet 191808 [packets to send 75, broken 74] [14:46:33]ProducePacketName [14:46:33]name=ofd_packets/00191808 [14:46:33]OFD Sender: To server: pG, [14:46:33]CommunicateWithHost lk.salyk.kg:30040 [14:46:33]ConnectInit lk.salyk.kg [14:46:33]written 0, free lines is 4095 [14:46:33]Connected sock=8 [14:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 23 8E 07 01 29 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D6 00 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 ED 02 00 35 04 06 00 01 C0 77 F8 21 5C 0F 9B F0 1D 12 D4 9D F7 [14:46:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7E 10 47 00 5E B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 40 ED 02 00 F4 03 04 00 A1 A5 1C 67 B6 04 01 00 00 B4 30 F3 0F 80 E1 DC 90 [14:46:33]CommunicateWithHost err = 0 [14:46:33]CheckOFDResponse [14:46:33]1017 (14) - 77093643461234 [14:46:33]1041 (16) - 0000000000871754 [14:46:33]1040 (4) - 191808 [14:46:33]1012 (4) - 26.10.2024 08:17 [14:46:33]1206 (1) - 0 [14:46:33]OFD Sender: Remove packet 191808 [14:46:33]ProducePacketName [14:46:33]name=ofd_packets/00191808 [14:46:33]NVStorageDeleteData [14:46:33]Write to MH i2c: 01 00 00 04 0F 13 [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 C4 0C EA [14:46:33]RasterBufferAndPrint [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]line [14:46:33]written 0, free lines is 3277 [14:46:33]MH_Cut [14:46:33]Write to MH i2c: D1 01 00 0B 0F 01 EC [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 [14:46:33]MH_I2C_Read... [14:46:33]Read from MH i2c: D1 01 00 0B 0F 00 EB [14:46:33]Write to MH i2c: 01 00 00 0C 0F 1B [14:46:33]Write i2c OK [14:46:33]MH_I2C_Read... [14:46:34]OFD Sender: No OFD packet to send [14:46:34]*** Cut start [14:46:34]*** Partial cut [14:46:34]*** CUTSNS_PIN = 1 [14:46:34]*** CUTSNS_PIN = 0 [14:46:35]*** Brake cut motor [14:46:35]Read from MH i2c: 01 [14:46:35]MH_I2C_Read... [14:46:35]*** Stop cut motor [14:46:35]*** Cut end [14:46:35]Read from MH i2c: 01 07 00 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [14:46:35]process_action close_receipt done [14:46:35]requested_data is exist [14:46:35]produce_requested_data [14:46:35]requested_item fm.sn is exist - process it [14:46:35]wFMCommunicate request_size=4 [14:46:35]MH_SAM_APDU [14:46:35]CAPDU: 80 11 00 00 [14:46:35]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [14:46:35]Write i2c OK [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 [14:46:35]MH_I2C_Read... [14:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:35]Read from MH i2c: E2 17 00 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [14:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:46:35]wFMCommunicate OK [14:46:35]requested_item fd.num is exist - process it [14:46:35]SAM_PROTO_GetFieldsCounters [14:46:35]wFMCommunicate request_size=4 [14:46:35]MH_SAM_APDU [14:46:35]CAPDU: 80 13 00 00 [14:46:35]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [14:46:35]Write i2c OK [14:46:35]MH_I2C_Read... [14:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:35]Read from MH i2c: E2 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 62 00 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 62 00 0E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [14:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 40 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:35]wFMCommunicate OK [14:46:35]SAM_PROTO_GetFieldsCounters done [14:46:35]requested_item shift.num is exist - process it [14:46:35]requested_item shift.opened is exist - process it [14:46:35]req_shift_opened [14:46:35]FM_GetShiftState [14:46:35]SAM_PROTO_GetShiftState [14:46:35]wFMCommunicate request_size=4 [14:46:35]MH_SAM_APDU [14:46:35]CAPDU: 80 13 01 00 [14:46:35]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [14:46:35]Write i2c OK [14:46:35]MH_I2C_Read... [14:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:35]Read from MH i2c: E2 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 0E 00 [14:46:35]MH_I2C_Read... [14:46:35]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 14 [14:46:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:46:35]wFMCommunicate OK [14:46:35]SAM_PROTO_GetShiftState done [14:46:35]FM_GetShiftState done [14:46:35]req_shift_opened done [14:46:35]requested_item shift.open_date is exist - process it [14:46:35]req_shift_open_date [14:46:35]req_shift_open_date done [14:46:35]produce_requested_data done [14:46:35]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191808,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:46:35]process_action_free close_receipt [14:46:35]json_value_free [14:46:35]json_value_free done [14:46:35]process_json_proto returns [14:46:35]Send response to host [14:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191808,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:46:35]free response buf [14:46:35]execute_script done [14:46:35]execute_script returns [14:46:35]free content buf [14:46:35]Sock 6.Close socket [14:46:35]Sock 6.Thread stoped [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:35]accept exits with 5 [14:47:35]New connection [14:47:35]New thread 3066817892 created [14:47:35]Thread 3066961252 joined [14:47:35]Waiting for new connection... [14:47:35] Sock 5.Parse request [14:47:35]Sock 5.Check first char [14:47:35]Sock 5.First char is OK [14:47:35]request: POST /json_proto HTTP/1.0 [14:47:35]Method: POST [14:47:35]URL: /json_proto [14:47:35]Method is POST - this is cgi request [14:47:35]url: /json_proto [14:47:35]query_string will be loaded in cgi processing [14:47:35]execute_cgi json_proto POST (null) [14:47:35]execute_cgi path=json_proto method=POST [14:47:35]POST find Content-Length [14:47:35]Host: 172.17.63.131:8080 [14:47:35]Content-Length: 681 [14:47:35]Content-Type: application/json [14:47:35] [14:47:35]POST finish read [14:47:35]Found Content-Length = 681 [14:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:35]execute_script... [14:47: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)31114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:35]POST & json_proto [14:47:35]process_json_proto [14:47:35]json parsed OK: [14:47:35]protocol is kg_v1.0 [14:47:35]action value=close_receipt [14:47:35]process_action close_receipt [14:47:35]cmd_close_receipt [14:47:35]MH_GetDate [14:47:35]Write to MH i2c: F0 00 00 10 0F 0E [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: F0 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: F0 09 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: F0 09 00 10 0F 00 16 01 1D 67 22 05 6E 64 AB [14:47:35]GetLastDocTimeStamp 1729954006 [14:47:35]current date 1729954070 [14:47:35]FM_GetShiftState [14:47:35]SAM_PROTO_GetShiftState [14:47:35]wFMCommunicate request_size=4 [14:47:35]MH_SAM_APDU [14:47:35]CAPDU: 80 13 01 00 [14:47:35]Write to MH i2c: E2 08 00 11 0F 80 13 01 00 00 00 00 00 9D [14:47:35]Write i2c OK [14:47:35]MH_I2C_Read... [14:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:35]Read from MH i2c: E2 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 [14:47:35]MH_I2C_Read... [14:47:35]Read from MH i2c: E2 0E 00 11 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 16 [14:47:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:47:35]wFMCommunicate OK [14:47:35]SAM_PROTO_GetShiftState done [14:47:35]FM_GetShiftState done [14:47:35]opened in 1729902770 [14:47:35]opened+sec_in_day 1729989170 [14:47:35]quantity*price = 100015 [14:47:35]sum+1 = 100017 [14:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 172 26.10.2024 14:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191809 ФПД: 257557320915240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191809&fm=257557320915240&tin=02508201610067®Number=0000000000091776&sum=100000 [14:47:36]StoreToDocumentArchive [14:47:36]shift 541 fd 191809 [14:47:36]save to /storage/0541/doc_00191809 [14:47:36]save last doc name /storage/0541/doc_00191809 to /storage/kkm_last_doc_name [14:47:36]save OK [14:47:36]Clear old archive folders... [14:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:36]tlvbuf is 01A76590 [14:47:36]SAM_PROTO_ClearQueue [14:47:36]wFMCommunicate request_size=4 [14:47:36]MH_SAM_APDU [14:47:36]CAPDU: 80 09 00 00 [14:47:36]Write to MH i2c: E2 08 00 1E 0F 80 09 00 00 00 00 00 00 9F [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:36]Read from MH i2c: E2 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 03 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [14:47:36]RAPDU: 90 00 [14:47:36]wFMCommunicate OK [14:47:36]SAM_PROTO_ClearQueue done [14:47:36]KKMCreateOFDPacket [14:47:36]OFDProtocolAddRootSTLVToBuf [14:47:36]FM_MakeSignedData [14:47:36]FM_MakeSignedData [14:47:36]SAM_PROTO_SignData [14:47:36]wFMCommunicate request_size=4 [14:47:36]MH_SAM_APDU [14:47:36]CAPDU: 80 0D 01 02 [14:47:36]Write to MH i2c: E2 08 00 1F 0F 80 0D 01 02 00 00 00 00 A7 [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:36]Read from MH i2c: E2 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 03 00 [14:47:36]MH_I2C_Read... [14:47:36]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [14:47:36]RAPDU: 90 00 [14:47:36]wFMCommunicate OK [14:47:36]wFMCommunicate request_size=255 [14:47:36]MH_SAM_APDU [14:47: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 16 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 ED 02 00 35 04 06 00 EA [14:47:36]Write to MH i2c: E2 02 01 20 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 16 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 ED 02 00 35 04 06 00 EA 00 00 B5 [14:47:36]Write i2c OK [14:47:36]MH_I2C_Read... [14:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:37]Read from MH i2c: E2 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 03 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [14:47:37]RAPDU: 90 00 [14:47:37]wFMCommunicate OK [14:47:37]wFMCommunicate request_size=10 [14:47:37]MH_SAM_APDU [14:47:37]CAPDU: 80 0D 02 02 05 3F 3C 9F 59 28 [14:47:37]Write to MH i2c: E2 0D 00 21 0F 80 0D 02 02 05 00 3F 3C 9F 59 28 00 00 4F [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:37]Read from MH i2c: E2 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 03 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [14:47:37]RAPDU: 90 00 [14:47:37]wFMCommunicate OK [14:47:37]wFMCommunicate request_size=4 [14:47:37]MH_SAM_APDU [14:47:37]CAPDU: 80 0D 03 02 [14:47:37]Write to MH i2c: E2 08 00 22 0F 80 0D 03 02 00 00 00 00 AC [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:37]Read from MH i2c: E2 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 0B 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 0B 00 22 0F 00 9E C1 C9 3D F1 42 84 FE 90 00 C7 [14:47:37]RAPDU: 9E C1 C9 3D F1 42 84 FE 90 00 [14:47:37]wFMCommunicate OK [14:47:37]SAM_PROTO_SignData done [14:47:37]FM_MakeSignedData done [14:47:37]CreateOFDProtocolMessage [14:47:37]wFMCommunicate request_size=4 [14:47:37]MH_SAM_APDU [14:47:37]CAPDU: 80 11 00 00 [14:47:37]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:37]Read from MH i2c: E2 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 17 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FF [14:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:37]wFMCommunicate OK [14:47:37]CreateOFDProtocolMessage done [14:47:37]OFDSenderStorePacket 191809 [14:47:37]StoreOFDPacket docnum=191809 [14:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 46 07 01 01 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 16 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 ED 02 00 35 04 06 00 EA 3F 3C 9F 59 28 9E C1 C9 3D F1 42 84 FE [14:47:37]CheckFolder [14:47:37]dirname=/storage/ofd_packets [14:47:37]CheckFolder done [14:47:37]ProducePacketName [14:47:37]name=ofd_packets/00191809 [14:47:37]NVStorageSaveData ofd_packets/00191809 [14:47:37]File name is /storage/ofd_packets/00191809 [14:47:37]Write 301 bytes [14:47:37]NVStorageSaveData done [14:47:37]OFDSenderStorePacket done [14:47:37]KKMCreateOFDPacket done [14:47:37]NVStorageSaveData kkm_last_timestamp [14:47:37]File name is /storage/kkm_last_timestamp [14:47:37]Write 4 bytes [14:47:37]NVStorageSaveData done [14:47:37]ExternCall_PrintAddStr [14:47:37]wPrintStart [14:47:37]Write to MH i2c: 01 00 00 24 0F 33 [14:47:37]Write i2c OK [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: 01 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: 01 07 00 [14:47:37]MH_I2C_Read... [14:47:37]Read from MH i2c: 01 07 00 24 0F 00 00 00 00 00 FF 0F 48 [14:47:37]RasterBufferAndPrint [14:47:37]line Счет N : (1)31114 [14:47:37]line ИНН: 02508201610067 [14:47:37]line Контрольно-Кассовый Чек [14:47:37]line ПРОДАЖА [14:47:37]line ТРК (МРК, ГНК) : 21 [14:47:37]line Товар: 2710124130 [14:47:37]line Аи-92-К-5 [14:47:37]line 14.950 * 66.90 [14:47:37]line = 1000.16 [14:47:37]line НДС 12% НСП 1% [14:47:37]line > о реализуемом товаре [14:47:37]line ОКРУГЛЕНИЕ: -0.16 [14:47:37]line ИТОГО: 1000.00 [14:47:37]line Внесено: 1000.00 [14:47:37]line СДАЧА: 0.00 [14:47:37]line НСП 1% : 8.85 [14:47:37]line НДС 12% : 106.21 [14:47:37]line Наличными: 1000.00 [14:47:37]line Безнал.: 0.00 [14:47:37]line Место: АЗС № 170 "Партнер Нефть" [14:47:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:47:37]line СНО: Общий режим [14:47:37]line Чек 172 26.10.2024 14:47 [14:47:37]line Смена: 541 ФФД: 1.0 [14:47:37]line ЗНМ: 0300000110 [14:47:37]line РНМ: 0000000000091776 [14:47:37]line Версия ККМ: 001 [14:47:37]line ФМ: 0000000000871754 [14:47:37]line ФД: 191809 [14:47:37]line ФПД: 257557320915240 [14:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T144750&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191809&fm=257557320915240&tin=02508201610067®Number=0000000000091776&sum=100000 [14:47:37]OFD Sender: Processing packet 191809 [packets to send 75, broken 74] [14:47:37]ProducePacketName [14:47:37]name=ofd_packets/00191809 [14:47:37]OFD Sender: To server: pG, [14:47:37]CommunicateWithHost lk.salyk.kg:30040 [14:47:37]ConnectInit lk.salyk.kg [14:47:37]written 0, free lines is 4095 [14:47:37]Connected sock=8 [14:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E7 46 07 01 01 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 16 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 ED 02 00 35 04 06 00 EA 3F 3C 9F 59 28 9E C1 C9 3D F1 42 84 FE [14:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B0 8E 47 00 AE 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 41 ED 02 00 F4 03 04 00 E1 A5 1C 67 B6 04 01 00 00 2E 8D DB 55 E3 82 6F 12 [14:47:38]CommunicateWithHost err = 0 [14:47:38]CheckOFDResponse [14:47:38]1017 (14) - 77093643461234 [14:47:38]1041 (16) - 0000000000871754 [14:47:38]1040 (4) - 191809 [14:47:38]1012 (4) - 26.10.2024 08:18 [14:47:38]1206 (1) - 0 [14:47:38]OFD Sender: Remove packet 191809 [14:47:38]ProducePacketName [14:47:38]name=ofd_packets/00191809 [14:47:38]NVStorageDeleteData [14:47:38]Write to MH i2c: 01 00 00 4F 0F 5E [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: 01 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: 01 07 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 C2 0C 33 [14:47:38]RasterBufferAndPrint [14:47:38]line [14:47:38]line [14:47:38]line [14:47:38]line [14:47:38]line [14:47:38]written 0, free lines is 3273 [14:47:38]MH_Cut [14:47:38]Write to MH i2c: D1 01 00 56 0F 01 37 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: D1 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: D1 01 00 [14:47:38]MH_I2C_Read... [14:47:38]Read from MH i2c: D1 01 00 56 0F 00 36 [14:47:38]Write to MH i2c: 01 00 00 57 0F 66 [14:47:38]Write i2c OK [14:47:38]MH_I2C_Read... [14:47:38]OFD Sender: No OFD packet to send [14:47:39]*** Cut start [14:47:39]*** Partial cut [14:47:39]*** CUTSNS_PIN = 1 [14:47:39]*** CUTSNS_PIN = 0 [14:47:39]*** Brake cut motor [14:47:39]Read from MH i2c: 01 [14:47:39]MH_I2C_Read... [14:47:39]*** Stop cut motor [14:47:39]*** Cut end [14:47:39]Read from MH i2c: 01 07 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 FF 0F 7B [14:47:39]process_action close_receipt done [14:47:39]requested_data is exist [14:47:39]produce_requested_data [14:47:39]requested_item fm.sn is exist - process it [14:47:39]wFMCommunicate request_size=4 [14:47:39]MH_SAM_APDU [14:47:39]CAPDU: 80 11 00 00 [14:47:39]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 17 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [14:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:47:39]wFMCommunicate OK [14:47:39]requested_item fd.num is exist - process it [14:47:39]SAM_PROTO_GetFieldsCounters [14:47:39]wFMCommunicate request_size=4 [14:47:39]MH_SAM_APDU [14:47:39]CAPDU: 80 13 00 00 [14:47:39]Write to MH i2c: E2 08 00 59 0F 80 13 00 00 00 00 00 00 E4 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 62 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 62 00 59 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [14:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 41 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:39]wFMCommunicate OK [14:47:39]SAM_PROTO_GetFieldsCounters done [14:47:39]requested_item shift.num is exist - process it [14:47:39]requested_item shift.opened is exist - process it [14:47:39]req_shift_opened [14:47:39]FM_GetShiftState [14:47:39]SAM_PROTO_GetShiftState [14:47:39]wFMCommunicate request_size=4 [14:47:39]MH_SAM_APDU [14:47:39]CAPDU: 80 13 01 00 [14:47:39]Write to MH i2c: E2 08 00 5A 0F 80 13 01 00 00 00 00 00 E6 [14:47:39]Write i2c OK [14:47:39]MH_I2C_Read... [14:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:39]Read from MH i2c: E2 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0E 00 [14:47:39]MH_I2C_Read... [14:47:39]Read from MH i2c: E2 0E 00 5A 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5F [14:47:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:47:39]wFMCommunicate OK [14:47:39]SAM_PROTO_GetShiftState done [14:47:39]FM_GetShiftState done [14:47:39]req_shift_opened done [14:47:39]requested_item shift.open_date is exist - process it [14:47:39]req_shift_open_date [14:47:39]req_shift_open_date done [14:47:39]produce_requested_data done [14:47:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191809,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:47:39]process_action_free close_receipt [14:47:39]json_value_free [14:47:39]json_value_free done [14:47:39]process_json_proto returns [14:47:39]Send response to host [14:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191809,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:47:39]free response buf [14:47:39]execute_script done [14:47:39]execute_script returns [14:47:39]free content buf [14:47:39]Sock 5.Close socket [14:47:39]Sock 5.Thread stoped [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:02]accept exits with 6 [14:50:02]New connection [14:50:02]New thread 3066961252 created [14:50:02]Thread 3066817892 joined [14:50:02]Waiting for new connection... [14:50:02] Sock 6.Parse request [14:50:02]Sock 6.Check first char [14:50:02]Sock 6.First char is OK [14:50:02]request: POST /json_proto HTTP/1.0 [14:50:02]Method: POST [14:50:02]URL: /json_proto [14:50:02]Method is POST - this is cgi request [14:50:02]url: /json_proto [14:50:02]query_string will be loaded in cgi processing [14:50:02]execute_cgi json_proto POST (null) [14:50:02]execute_cgi path=json_proto method=POST [14:50:02]POST find Content-Length [14:50:02]Host: 172.17.63.131:8080 [14:50:02]Content-Length: 681 [14:50:02]Content-Type: application/json [14:50:02] [14:50:02]POST finish read [14:50:02]Found Content-Length = 681 [14:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:02]execute_script... [14:50:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:02]POST & json_proto [14:50:02]process_json_proto [14:50:02]json parsed OK: [14:50:02]protocol is kg_v1.0 [14:50:02]action value=close_receipt [14:50:02]process_action close_receipt [14:50:02]cmd_close_receipt [14:50:02]MH_GetDate [14:50:02]Write to MH i2c: F0 00 00 5B 0F 59 [14:50:02]Write i2c OK [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: F0 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: F0 09 00 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: F0 09 00 5B 0F 00 A9 01 1D 67 22 05 6E 64 89 [14:50:02]GetLastDocTimeStamp 1729954070 [14:50:02]current date 1729954217 [14:50:02]FM_GetShiftState [14:50:02]SAM_PROTO_GetShiftState [14:50:02]wFMCommunicate request_size=4 [14:50:02]MH_SAM_APDU [14:50:02]CAPDU: 80 13 01 00 [14:50:02]Write to MH i2c: E2 08 00 5C 0F 80 13 01 00 00 00 00 00 E8 [14:50:02]Write i2c OK [14:50:02]MH_I2C_Read... [14:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:02]Read from MH i2c: E2 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: E2 0E 00 [14:50:02]MH_I2C_Read... [14:50:02]Read from MH i2c: E2 0E 00 5C 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 61 [14:50:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:50:02]wFMCommunicate OK [14:50:02]SAM_PROTO_GetShiftState done [14:50:02]FM_GetShiftState done [14:50:02]opened in 1729902770 [14:50:02]opened+sec_in_day 1729989170 [14:50:02]quantity*price = 100015 [14:50:02]sum+1 = 100017 [14:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 173 26.10.2024 14:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191810 ФПД: 249424297602055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191810&fm=249424297602055&tin=02508201610067®Number=0000000000091776&sum=100000 [14:50:03]StoreToDocumentArchive [14:50:03]shift 541 fd 191810 [14:50:03]save to /storage/0541/doc_00191810 [14:50:03]save last doc name /storage/0541/doc_00191810 to /storage/kkm_last_doc_name [14:50:03]save OK [14:50:03]Clear old archive folders... [14:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:03]tlvbuf is 017F1990 [14:50:03]SAM_PROTO_ClearQueue [14:50:03]wFMCommunicate request_size=4 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 09 00 00 [14:50:03]Write to MH i2c: E2 08 00 69 0F 80 09 00 00 00 00 00 00 EA [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [14:50:03]RAPDU: 90 00 [14:50:03]wFMCommunicate OK [14:50:03]SAM_PROTO_ClearQueue done [14:50:03]KKMCreateOFDPacket [14:50:03]OFDProtocolAddRootSTLVToBuf [14:50:03]FM_MakeSignedData [14:50:03]FM_MakeSignedData [14:50:03]SAM_PROTO_SignData [14:50:03]wFMCommunicate request_size=4 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 0D 01 02 [14:50:03]Write to MH i2c: E2 08 00 6A 0F 80 0D 01 02 00 00 00 00 F2 [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 6A 0F 00 90 00 ED [14:50:03]RAPDU: 90 00 [14:50:03]wFMCommunicate OK [14:50:03]wFMCommunicate request_size=255 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A9 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 ED 02 00 35 04 06 00 E2 [14:50:03]Write to MH i2c: E2 02 01 6B 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A9 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 ED 02 00 35 04 06 00 E2 00 00 8D [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]OFD Sender: No OFD packet to send [14:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 03 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [14:50:04]RAPDU: 90 00 [14:50:04]wFMCommunicate OK [14:50:04]wFMCommunicate request_size=10 [14:50:04]MH_SAM_APDU [14:50:04]CAPDU: 80 0D 02 02 05 D9 9E A8 2C 07 [14:50:04]Write to MH i2c: E2 0D 00 6C 0F 80 0D 02 02 05 00 D9 9E A8 2C 07 00 00 51 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 03 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [14:50:04]RAPDU: 90 00 [14:50:04]wFMCommunicate OK [14:50:04]wFMCommunicate request_size=4 [14:50:04]MH_SAM_APDU [14:50:04]CAPDU: 80 0D 03 02 [14:50:04]Write to MH i2c: E2 08 00 6D 0F 80 0D 03 02 00 00 00 00 F7 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 0B 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 0B 00 6D 0F 00 0B 86 2A 33 F3 A5 2A D6 90 00 7E [14:50:04]RAPDU: 0B 86 2A 33 F3 A5 2A D6 90 00 [14:50:04]wFMCommunicate OK [14:50:04]SAM_PROTO_SignData done [14:50:04]FM_MakeSignedData done [14:50:04]CreateOFDProtocolMessage [14:50:04]wFMCommunicate request_size=4 [14:50:04]MH_SAM_APDU [14:50:04]CAPDU: 80 11 00 00 [14:50:04]Write to MH i2c: E2 08 00 6E 0F 80 11 00 00 00 00 00 00 F7 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:04]Read from MH i2c: E2 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 17 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: E2 17 00 6E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [14:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:04]wFMCommunicate OK [14:50:04]CreateOFDProtocolMessage done [14:50:04]OFDSenderStorePacket 191810 [14:50:04]StoreOFDPacket docnum=191810 [14:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 70 07 01 6E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A9 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 ED 02 00 35 04 06 00 E2 D9 9E A8 2C 07 0B 86 2A 33 F3 A5 2A D6 [14:50:04]CheckFolder [14:50:04]dirname=/storage/ofd_packets [14:50:04]CheckFolder done [14:50:04]ProducePacketName [14:50:04]name=ofd_packets/00191810 [14:50:04]NVStorageSaveData ofd_packets/00191810 [14:50:04]File name is /storage/ofd_packets/00191810 [14:50:04]Write 301 bytes [14:50:04]NVStorageSaveData done [14:50:04]OFDSenderStorePacket done [14:50:04]KKMCreateOFDPacket done [14:50:04]NVStorageSaveData kkm_last_timestamp [14:50:04]File name is /storage/kkm_last_timestamp [14:50:04]Write 4 bytes [14:50:04]NVStorageSaveData done [14:50:04]ExternCall_PrintAddStr [14:50:04]wPrintStart [14:50:04]Write to MH i2c: 01 00 00 6F 0F 7E [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 6F 0F 00 00 00 00 00 FF 0F 93 [14:50:04]RasterBufferAndPrint [14:50:04]line Счет N : (1)31115 [14:50:04]line ИНН: 02508201610067 [14:50:04]line Контрольно-Кассовый Чек [14:50:04]line ПРОДАЖА [14:50:04]line ТРК (МРК, ГНК) : 12 [14:50:04]line Товар: 2710124130 [14:50:04]line Аи-92-К-5 [14:50:04]line 14.950 * 66.90 [14:50:04]line = 1000.16 [14:50:04]line НДС 12% НСП 1% [14:50:04]line > о реализуемом товаре [14:50:04]line ОКРУГЛЕНИЕ: -0.16 [14:50:04]line ИТОГО: 1000.00 [14:50:04]line Внесено: 1000.00 [14:50:04]line СДАЧА: 0.00 [14:50:04]line НСП 1% : 8.85 [14:50:04]line НДС 12% : 106.21 [14:50:04]line Наличными: 1000.00 [14:50:04]line Безнал.: 0.00 [14:50:04]line Место: АЗС № 170 "Партнер Нефть" [14:50:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:50:04]line СНО: Общий режим [14:50:04]line Чек 173 26.10.2024 14:50 [14:50:04]line Смена: 541 ФФД: 1.0 [14:50:04]line ЗНМ: 0300000110 [14:50:04]line РНМ: 0000000000091776 [14:50:04]line Версия ККМ: 001 [14:50:04]line ФМ: 0000000000871754 [14:50:04]line ФД: 191810 [14:50:04]line ФПД: 249424297602055 [14:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145017&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191810&fm=249424297602055&tin=02508201610067®Number=0000000000091776&sum=100000 [14:50:04]OFD Sender: Processing packet 191810 [packets to send 75, broken 74] [14:50:04]ProducePacketName [14:50:04]name=ofd_packets/00191810 [14:50:04]OFD Sender: To server: pG, [14:50:04]CommunicateWithHost lk.salyk.kg:30040 [14:50:04]ConnectInit lk.salyk.kg [14:50:04]written 0, free lines is 4095 [14:50:04]Connected sock=8 [14:50:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 35 70 07 01 6E 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 A9 01 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 ED 02 00 35 04 06 00 E2 D9 9E A8 2C 07 0B 86 2A 33 F3 A5 2A D6 [14:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 ED 58 47 00 A6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 42 ED 02 00 F4 03 04 00 74 A6 1C 67 B6 04 01 00 00 0E 0E 9C F1 E5 D2 38 17 [14:50:04]CommunicateWithHost err = 0 [14:50:04]CheckOFDResponse [14:50:04]1017 (14) - 77093643461234 [14:50:04]1041 (16) - 0000000000871754 [14:50:04]1040 (4) - 191810 [14:50:04]1012 (4) - 26.10.2024 08:21 [14:50:04]1206 (1) - 0 [14:50:04]OFD Sender: Remove packet 191810 [14:50:04]ProducePacketName [14:50:04]name=ofd_packets/00191810 [14:50:04]NVStorageDeleteData [14:50:04]Write to MH i2c: 01 00 00 9A 0F A9 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: 01 07 00 9A 0F 00 00 00 00 00 C1 0C 7D [14:50:04]RasterBufferAndPrint [14:50:04]line [14:50:04]line [14:50:04]line [14:50:04]line [14:50:04]line [14:50:04]written 0, free lines is 3272 [14:50:04]MH_Cut [14:50:04]Write to MH i2c: D1 01 00 A1 0F 01 82 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: D1 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: D1 01 00 [14:50:04]MH_I2C_Read... [14:50:04]Read from MH i2c: D1 01 00 A1 0F 00 81 [14:50:04]Write to MH i2c: 01 00 00 A2 0F B1 [14:50:04]Write i2c OK [14:50:04]MH_I2C_Read... [14:50:05]OFD Sender: No OFD packet to send [14:50:05]*** Cut start [14:50:05]*** Partial cut [14:50:05]*** CUTSNS_PIN = 1 [14:50:05]*** CUTSNS_PIN = 0 [14:50:06]*** Brake cut motor [14:50:06]Read from MH i2c: 01 [14:50:06]MH_I2C_Read... [14:50:06]*** Stop cut motor [14:50:06]*** Cut end [14:50:06]Read from MH i2c: 01 07 00 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: 01 07 00 A2 0F 00 00 00 00 00 FF 0F C6 [14:50:06]process_action close_receipt done [14:50:06]requested_data is exist [14:50:06]produce_requested_data [14:50:06]requested_item fm.sn is exist - process it [14:50:06]wFMCommunicate request_size=4 [14:50:06]MH_SAM_APDU [14:50:06]CAPDU: 80 11 00 00 [14:50:06]Write to MH i2c: E2 08 00 A3 0F 80 11 00 00 00 00 00 00 2C [14:50:06]Write i2c OK [14:50:06]MH_I2C_Read... [14:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:06]Read from MH i2c: E2 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 17 00 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 17 00 A3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [14:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:50:06]wFMCommunicate OK [14:50:06]requested_item fd.num is exist - process it [14:50:06]SAM_PROTO_GetFieldsCounters [14:50:06]wFMCommunicate request_size=4 [14:50:06]MH_SAM_APDU [14:50:06]CAPDU: 80 13 00 00 [14:50:06]Write to MH i2c: E2 08 00 A4 0F 80 13 00 00 00 00 00 00 2F [14:50:06]Write i2c OK [14:50:06]MH_I2C_Read... [14:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:06]Read from MH i2c: E2 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 62 00 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 62 00 A4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 42 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:06]wFMCommunicate OK [14:50:06]SAM_PROTO_GetFieldsCounters done [14:50:06]requested_item shift.num is exist - process it [14:50:06]requested_item shift.opened is exist - process it [14:50:06]req_shift_opened [14:50:06]FM_GetShiftState [14:50:06]SAM_PROTO_GetShiftState [14:50:06]wFMCommunicate request_size=4 [14:50:06]MH_SAM_APDU [14:50:06]CAPDU: 80 13 01 00 [14:50:06]Write to MH i2c: E2 08 00 A5 0F 80 13 01 00 00 00 00 00 31 [14:50:06]Write i2c OK [14:50:06]MH_I2C_Read... [14:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:06]Read from MH i2c: E2 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 0E 00 [14:50:06]MH_I2C_Read... [14:50:06]Read from MH i2c: E2 0E 00 A5 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AA [14:50:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:50:06]wFMCommunicate OK [14:50:06]SAM_PROTO_GetShiftState done [14:50:06]FM_GetShiftState done [14:50:06]req_shift_opened done [14:50:06]requested_item shift.open_date is exist - process it [14:50:06]req_shift_open_date [14:50:06]req_shift_open_date done [14:50:06]produce_requested_data done [14:50:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191810,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:50:06]process_action_free close_receipt [14:50:06]json_value_free [14:50:06]json_value_free done [14:50:06]process_json_proto returns [14:50:06]Send response to host [14:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191810,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:50:06]free response buf [14:50:06]execute_script done [14:50:06]execute_script returns [14:50:06]free content buf [14:50:06]Sock 6.Close socket [14:50:06]Sock 6.Thread stoped [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:43]accept exits with 5 [14:53:43]New connection [14:53:43]New thread 3066817892 created [14:53:43]Thread 3066961252 joined [14:53:43]Waiting for new connection... [14:53:43] Sock 5.Parse request [14:53:43]Sock 5.Check first char [14:53:43]Sock 5.First char is OK [14:53:43]request: POST /json_proto HTTP/1.0 [14:53:43]Method: POST [14:53:43]URL: /json_proto [14:53:43]Method is POST - this is cgi request [14:53:43]url: /json_proto [14:53:43]query_string will be loaded in cgi processing [14:53:43]execute_cgi json_proto POST (null) [14:53:43]execute_cgi path=json_proto method=POST [14:53:43]POST find Content-Length [14:53:43]Host: 172.17.63.131:8080 [14:53:43]Content-Length: 676 [14:53:43]Content-Type: application/json [14:53:43] [14:53:43]POST finish read [14:53:43]Found Content-Length = 676 [14:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:43]execute_script... [14:53: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)31116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:43]POST & json_proto [14:53:43]process_json_proto [14:53:43]json parsed OK: [14:53:43]protocol is kg_v1.0 [14:53:43]action value=close_receipt [14:53:43]process_action close_receipt [14:53:43]cmd_close_receipt [14:53:43]MH_GetDate [14:53:43]Write to MH i2c: F0 00 00 A6 0F A4 [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 09 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: F0 09 00 A6 0F 00 86 02 1D 67 22 05 6E 64 B2 [14:53:43]GetLastDocTimeStamp 1729954217 [14:53:43]current date 1729954438 [14:53:43]FM_GetShiftState [14:53:43]SAM_PROTO_GetShiftState [14:53:43]wFMCommunicate request_size=4 [14:53:43]MH_SAM_APDU [14:53:43]CAPDU: 80 13 01 00 [14:53:43]Write to MH i2c: E2 08 00 A7 0F 80 13 01 00 00 00 00 00 33 [14:53:43]Write i2c OK [14:53:43]MH_I2C_Read... [14:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:43]Read from MH i2c: E2 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: E2 0E 00 [14:53:43]MH_I2C_Read... [14:53:43]Read from MH i2c: E2 0E 00 A7 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AC [14:53:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:53:43]wFMCommunicate OK [14:53:43]SAM_PROTO_GetShiftState done [14:53:43]FM_GetShiftState done [14:53:43]opened in 1729902770 [14:53:43]opened+sec_in_day 1729989170 [14:53:43]quantity*price = 60009 [14:53:43]sum+1 = 60010 [14:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 174 26.10.2024 14:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191811 ФПД: 238765998923121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145358&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191811&fm=238765998923121&tin=02508201610067®Number=0000000000091776&sum=60000 [14:53:44]StoreToDocumentArchive [14:53:44]shift 541 fd 191811 [14:53:44]save to /storage/0541/doc_00191811 [14:53:44]save last doc name /storage/0541/doc_00191811 to /storage/kkm_last_doc_name [14:53:44]save OK [14:53:44]Clear old archive folders... [14:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:44]tlvbuf is 0168C7D0 [14:53:44]SAM_PROTO_ClearQueue [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 09 00 00 [14:53:44]Write to MH i2c: E2 08 00 B4 0F 80 09 00 00 00 00 00 00 35 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_ClearQueue done [14:53:44]KKMCreateOFDPacket [14:53:44]OFDProtocolAddRootSTLVToBuf [14:53:44]FM_MakeSignedData [14:53:44]FM_MakeSignedData [14:53:44]SAM_PROTO_SignData [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 01 02 [14:53:44]Write to MH i2c: E2 08 00 B5 0F 80 0D 01 02 00 00 00 00 3D [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=255 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 86 02 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 ED 02 00 35 04 06 00 D9 [14:53:44]Write to MH i2c: E2 02 01 B6 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 86 02 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 ED 02 00 35 04 06 00 D9 00 00 92 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=10 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 02 02 05 28 0A 8C DD 71 [14:53:44]Write to MH i2c: E2 0D 00 B7 0F 80 0D 02 02 05 00 28 0A 8C DD 71 00 00 56 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [14:53:44]RAPDU: 90 00 [14:53:44]wFMCommunicate OK [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 0D 03 02 [14:53:44]Write to MH i2c: E2 08 00 B8 0F 80 0D 03 02 00 00 00 00 42 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:44]Read from MH i2c: E2 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0B 00 [14:53:44]MH_I2C_Read... [14:53:44]Read from MH i2c: E2 0B 00 B8 0F 00 C3 B5 18 42 06 11 9A 9E 90 00 64 [14:53:44]RAPDU: C3 B5 18 42 06 11 9A 9E 90 00 [14:53:44]wFMCommunicate OK [14:53:44]SAM_PROTO_SignData done [14:53:44]FM_MakeSignedData done [14:53:44]CreateOFDProtocolMessage [14:53:44]wFMCommunicate request_size=4 [14:53:44]MH_SAM_APDU [14:53:44]CAPDU: 80 11 00 00 [14:53:44]Write to MH i2c: E2 08 00 B9 0F 80 11 00 00 00 00 00 00 42 [14:53:44]Write i2c OK [14:53:44]MH_I2C_Read... [14:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:45]Read from MH i2c: E2 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: E2 17 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: E2 17 00 B9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [14:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:53:45]wFMCommunicate OK [14:53:45]CreateOFDProtocolMessage done [14:53:45]OFDSenderStorePacket 191811 [14:53:45]StoreOFDPacket docnum=191811 [14:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 11 07 01 78 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 86 02 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 ED 02 00 35 04 06 00 D9 28 0A 8C DD 71 C3 B5 18 42 06 11 9A 9E [14:53:45]CheckFolder [14:53:45]dirname=/storage/ofd_packets [14:53:45]CheckFolder done [14:53:45]ProducePacketName [14:53:45]name=ofd_packets/00191811 [14:53:45]NVStorageSaveData ofd_packets/00191811 [14:53:45]File name is /storage/ofd_packets/00191811 [14:53:45]Write 301 bytes [14:53:45]NVStorageSaveData done [14:53:45]OFDSenderStorePacket done [14:53:45]KKMCreateOFDPacket done [14:53:45]NVStorageSaveData kkm_last_timestamp [14:53:45]File name is /storage/kkm_last_timestamp [14:53:45]Write 4 bytes [14:53:45]NVStorageSaveData done [14:53:45]ExternCall_PrintAddStr [14:53:45]wPrintStart [14:53:45]Write to MH i2c: 01 00 00 BA 0F C9 [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 BA 0F 00 00 00 00 00 FF 0F DE [14:53:45]RasterBufferAndPrint [14:53:45]line Счет N : (1)31116 [14:53:45]line ИНН: 02508201610067 [14:53:45]line Контрольно-Кассовый Чек [14:53:45]line ПРОДАЖА [14:53:45]line ТРК (МРК, ГНК) : 21 [14:53:45]line Товар: 2710124130 [14:53:45]line Аи-92-К-5 [14:53:45]line 8.970 * 66.90 [14:53:45]line = 600.09 [14:53:45]line НДС 12% НСП 1% [14:53:45]line > о реализуемом товаре [14:53:45]line ОКРУГЛЕНИЕ: -0.09 [14:53:45]line ИТОГО: 600.00 [14:53:45]line Внесено: 600.00 [14:53:45]line СДАЧА: 0.00 [14:53:45]line НСП 1% : 5.31 [14:53:45]line НДС 12% : 63.73 [14:53:45]line Наличными: 600.00 [14:53:45]line Безнал.: 0.00 [14:53:45]line Место: АЗС № 170 "Партнер Нефть" [14:53:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:53:45]line СНО: Общий режим [14:53:45]line Чек 174 26.10.2024 14:53 [14:53:45]line Смена: 541 ФФД: 1.0 [14:53:45]line ЗНМ: 0300000110 [14:53:45]line РНМ: 0000000000091776 [14:53:45]line Версия ККМ: 001 [14:53:45]line ФМ: 0000000000871754 [14:53:45]line ФД: 191811 [14:53:45]line ФПД: 238765998923121 [14:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145358&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191811&fm=238765998923121&tin=02508201610067®Number=0000000000091776&sum=60000 [14:53:45]OFD Sender: Processing packet 191811 [packets to send 75, broken 74] [14:53:45]ProducePacketName [14:53:45]name=ofd_packets/00191811 [14:53:45]OFD Sender: To server: pG, [14:53:45]CommunicateWithHost lk.salyk.kg:30040 [14:53:45]ConnectInit lk.salyk.kg [14:53:45]written 0, free lines is 4095 [14:53:45]Connected sock=8 [14:53:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 11 07 01 78 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 86 02 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 ED 02 00 35 04 06 00 D9 28 0A 8C DD 71 C3 B5 18 42 06 11 9A 9E [14:53:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A CE 47 00 4E 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 43 ED 02 00 F4 03 04 00 51 A7 1C 67 B6 04 01 00 00 4A 82 A9 8F 78 B2 B1 3B [14:53:45]CommunicateWithHost err = 0 [14:53:45]CheckOFDResponse [14:53:45]1017 (14) - 77093643461234 [14:53:45]1041 (16) - 0000000000871754 [14:53:45]1040 (4) - 191811 [14:53:45]1012 (4) - 26.10.2024 08:24 [14:53:45]1206 (1) - 0 [14:53:45]OFD Sender: Remove packet 191811 [14:53:45]ProducePacketName [14:53:45]name=ofd_packets/00191811 [14:53:45]NVStorageDeleteData [14:53:45]Write to MH i2c: 01 00 00 E5 0F F4 [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 C5 0C CC [14:53:45]RasterBufferAndPrint [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]line [14:53:45]written 0, free lines is 3275 [14:53:45]MH_Cut [14:53:45]Write to MH i2c: D1 01 00 EC 0F 01 CD [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 01 00 [14:53:45]MH_I2C_Read... [14:53:45]Read from MH i2c: D1 01 00 EC 0F 00 CC [14:53:45]Write to MH i2c: 01 00 00 ED 0F FC [14:53:45]Write i2c OK [14:53:45]MH_I2C_Read... [14:53:46]OFD Sender: No OFD packet to send [14:53:46]*** Cut start [14:53:46]*** Partial cut [14:53:46]*** CUTSNS_PIN = 1 [14:53:46]*** CUTSNS_PIN = 0 [14:53:46]*** Brake cut motor [14:53:47]Read from MH i2c: 01 [14:53:47]MH_I2C_Read... [14:53:47]*** Stop cut motor [14:53:47]*** Cut end [14:53:47]Read from MH i2c: 01 07 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FF 0F 11 [14:53:47]process_action close_receipt done [14:53:47]requested_data is exist [14:53:47]produce_requested_data [14:53:47]requested_item fm.sn is exist - process it [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 11 00 00 [14:53:47]Write to MH i2c: E2 08 00 EE 0F 80 11 00 00 00 00 00 00 77 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 17 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 17 00 EE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [14:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:53:47]wFMCommunicate OK [14:53:47]requested_item fd.num is exist - process it [14:53:47]SAM_PROTO_GetFieldsCounters [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 13 00 00 [14:53:47]Write to MH i2c: E2 08 00 EF 0F 80 13 00 00 00 00 00 00 7A [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 62 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 62 00 EF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [14:53:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 43 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetFieldsCounters done [14:53:47]requested_item shift.num is exist - process it [14:53:47]requested_item shift.opened is exist - process it [14:53:47]req_shift_opened [14:53:47]FM_GetShiftState [14:53:47]SAM_PROTO_GetShiftState [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 13 01 00 [14:53:47]Write to MH i2c: E2 08 00 F0 0F 80 13 01 00 00 00 00 00 7C [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 0E 00 F0 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F5 [14:53:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_GetShiftState done [14:53:47]FM_GetShiftState done [14:53:47]req_shift_opened done [14:53:47]requested_item shift.open_date is exist - process it [14:53:47]req_shift_open_date [14:53:47]req_shift_open_date done [14:53:47]produce_requested_data done [14:53:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191811,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:53:47]process_action_free close_receipt [14:53:47]json_value_free [14:53:47]json_value_free done [14:53:47]process_json_proto returns [14:53:47]Send response to host [14:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191811,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:53:47]free response buf [14:53:47]execute_script done [14:53:47]execute_script returns [14:53:47]free content buf [14:53:47]Sock 5.Close socket [14:53:47]Sock 5.Thread stoped [14:53:51]OFD Sender: No OFD packet to send [14:53:56]OFD Sender: No OFD packet to send [14:54:01]OFD Sender: No OFD packet to send [14:54:06]OFD Sender: No OFD packet to send [14:54:11]OFD Sender: No OFD packet to send [14:54:16]OFD Sender: No OFD packet to send [14:54:21]OFD Sender: No OFD packet to send [14:54:26]OFD Sender: No OFD packet to send [14:54:31]OFD Sender: No OFD packet to send [14:54:36]OFD Sender: No OFD packet to send [14:54:41]OFD Sender: No OFD packet to send [14:54:46]OFD Sender: No OFD packet to send [14:54:51]OFD Sender: No OFD packet to send [14:54:56]OFD Sender: No OFD packet to send [14:55:01]OFD Sender: No OFD packet to send [14:55:06]OFD Sender: No OFD packet to send [14:55:11]OFD Sender: No OFD packet to send [14:55:16]OFD Sender: No OFD packet to send [14:55:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:09]accept exits with 6 [14:58:09]New connection [14:58:09]New thread 3066961252 created [14:58:09]Thread 3066817892 joined [14:58:09]Waiting for new connection... [14:58:09] Sock 6.Parse request [14:58:09]Sock 6.Check first char [14:58:09]Sock 6.First char is OK [14:58:09]request: POST /json_proto HTTP/1.0 [14:58:09]Method: POST [14:58:09]URL: /json_proto [14:58:09]Method is POST - this is cgi request [14:58:09]url: /json_proto [14:58:09]query_string will be loaded in cgi processing [14:58:09]execute_cgi json_proto POST (null) [14:58:09]execute_cgi path=json_proto method=POST [14:58:09]POST find Content-Length [14:58:09]Host: 172.17.63.131:8080 [14:58:09]Content-Length: 676 [14:58:09]Content-Type: application/json [14:58:09] [14:58:09]POST finish read [14:58:09]Found Content-Length = 676 [14:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:09]execute_script... [14:58: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)31117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:09]POST & json_proto [14:58:09]process_json_proto [14:58:09]json parsed OK: [14:58:09]protocol is kg_v1.0 [14:58:09]action value=close_receipt [14:58:09]process_action close_receipt [14:58:09]cmd_close_receipt [14:58:09]MH_GetDate [14:58:09]Write to MH i2c: F0 00 00 F1 0F EF [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: F0 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: F0 09 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: F0 09 00 F1 0F 00 90 03 1D 67 22 05 6E 64 08 [14:58:09]GetLastDocTimeStamp 1729954438 [14:58:09]current date 1729954704 [14:58:09]FM_GetShiftState [14:58:09]SAM_PROTO_GetShiftState [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 13 01 00 [14:58:09]Write to MH i2c: E2 08 00 F2 0F 80 13 01 00 00 00 00 00 7E [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0E 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0E 00 F2 0F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F7 [14:58:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:58:09]wFMCommunicate OK [14:58:09]SAM_PROTO_GetShiftState done [14:58:09]FM_GetShiftState done [14:58:09]opened in 1729902770 [14:58:09]opened+sec_in_day 1729989170 [14:58:09]quantity*price = 50041 [14:58:09]sum+1 = 50042 [14:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 175 26.10.2024 14:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191812 ФПД: 185623590918507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191812&fm=185623590918507&tin=02508201610067®Number=0000000000091776&sum=50000 [14:58:10]StoreToDocumentArchive [14:58:10]shift 541 fd 191812 [14:58:10]save to /storage/0541/doc_00191812 [14:58:10]save last doc name /storage/0541/doc_00191812 to /storage/kkm_last_doc_name [14:58:10]save OK [14:58:10]Clear old archive folders... [14:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:10]tlvbuf is 01A24480 [14:58:10]SAM_PROTO_ClearQueue [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 09 00 00 [14:58:10]Write to MH i2c: E2 08 00 FF 0F 80 09 00 00 00 00 00 00 80 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]SAM_PROTO_ClearQueue done [14:58:10]KKMCreateOFDPacket [14:58:10]OFDProtocolAddRootSTLVToBuf [14:58:10]FM_MakeSignedData [14:58:10]FM_MakeSignedData [14:58:10]SAM_PROTO_SignData [14:58:10]wFMCommunicate request_size=4 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 01 02 [14:58:10]Write to MH i2c: E2 08 00 00 10 80 0D 01 02 00 00 00 00 89 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]wFMCommunicate request_size=255 [14:58:10]MH_SAM_APDU [14:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 90 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 ED 02 00 35 04 06 00 A8 [14:58:10]Write to MH i2c: E2 02 01 01 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 90 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 ED 02 00 35 04 06 00 A8 00 00 DD [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:10]Read from MH i2c: E2 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [14:58:10]RAPDU: 90 00 [14:58:10]wFMCommunicate OK [14:58:10]wFMCommunicate request_size=10 [14:58:10]MH_SAM_APDU [14:58:10]CAPDU: 80 0D 02 02 05 D2 DC 32 D9 6B [14:58:10]Write to MH i2c: E2 0D 00 02 10 80 0D 02 02 05 00 D2 DC 32 D9 6B 00 00 BA [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [14:58:11]RAPDU: 90 00 [14:58:11]wFMCommunicate OK [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 0D 03 02 [14:58:11]Write to MH i2c: E2 08 00 03 10 80 0D 03 02 00 00 00 00 8E [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0B 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0B 00 03 10 00 CA 82 9B 22 76 35 FE AF 90 00 F0 [14:58:11]RAPDU: CA 82 9B 22 76 35 FE AF 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_SignData done [14:58:11]FM_MakeSignedData done [14:58:11]CreateOFDProtocolMessage [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 11 00 00 [14:58:11]Write to MH i2c: E2 08 00 04 10 80 11 00 00 00 00 00 00 8E [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 04 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [14:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:58:11]wFMCommunicate OK [14:58:11]CreateOFDProtocolMessage done [14:58:11]OFDSenderStorePacket 191812 [14:58:11]StoreOFDPacket docnum=191812 [14:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 3E 07 01 AD E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 90 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 ED 02 00 35 04 06 00 A8 D2 DC 32 D9 6B CA 82 9B 22 76 35 FE AF [14:58:11]CheckFolder [14:58:11]dirname=/storage/ofd_packets [14:58:11]CheckFolder done [14:58:11]ProducePacketName [14:58:11]name=ofd_packets/00191812 [14:58:11]NVStorageSaveData ofd_packets/00191812 [14:58:11]File name is /storage/ofd_packets/00191812 [14:58:11]Write 301 bytes [14:58:11]NVStorageSaveData done [14:58:11]OFDSenderStorePacket done [14:58:11]KKMCreateOFDPacket done [14:58:11]NVStorageSaveData kkm_last_timestamp [14:58:11]File name is /storage/kkm_last_timestamp [14:58:11]Write 4 bytes [14:58:11]NVStorageSaveData done [14:58:11]ExternCall_PrintAddStr [14:58:11]wPrintStart [14:58:11]Write to MH i2c: 01 00 00 05 10 15 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 05 10 00 00 00 00 00 FF 0F 2A [14:58:11]RasterBufferAndPrint [14:58:11]line Счет N : (1)31117 [14:58:11]line ИНН: 02508201610067 [14:58:11]line Контрольно-Кассовый Чек [14:58:11]line ПРОДАЖА [14:58:11]line ТРК (МРК, ГНК) : 21 [14:58:11]line Товар: 2710124130 [14:58:11]line Аи-92-К-5 [14:58:11]line 7.480 * 66.90 [14:58:11]line = 500.41 [14:58:11]line НДС 12% НСП 1% [14:58:11]line > о реализуемом товаре [14:58:11]line ОКРУГЛЕНИЕ: -0.41 [14:58:11]line ИТОГО: 500.00 [14:58:11]line Внесено: 500.00 [14:58:11]line СДАЧА: 0.00 [14:58:11]line НСП 1% : 4.43 [14:58:11]line НДС 12% : 53.14 [14:58:11]line Наличными: 500.00 [14:58:11]line Безнал.: 0.00 [14:58:11]line Место: АЗС № 170 "Партнер Нефть" [14:58:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:58:11]line СНО: Общий режим [14:58:11]line Чек 175 26.10.2024 14:58 [14:58:11]line Смена: 541 ФФД: 1.0 [14:58:11]line ЗНМ: 0300000110 [14:58:11]line РНМ: 0000000000091776 [14:58:11]line Версия ККМ: 001 [14:58:11]line ФМ: 0000000000871754 [14:58:11]line ФД: 191812 [14:58:11]line ФПД: 185623590918507 [14:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145824&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191812&fm=185623590918507&tin=02508201610067®Number=0000000000091776&sum=50000 [14:58:11]OFD Sender: Processing packet 191812 [packets to send 75, broken 74] [14:58:11]ProducePacketName [14:58:11]name=ofd_packets/00191812 [14:58:11]OFD Sender: To server: pG, [14:58:11]CommunicateWithHost lk.salyk.kg:30040 [14:58:11]ConnectInit lk.salyk.kg [14:58:11]written 0, free lines is 4095 [14:58:11]Connected sock=8 [14:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 3E 07 01 AD E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 90 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 ED 02 00 35 04 06 00 A8 D2 DC 32 D9 6B CA 82 9B 22 76 35 FE AF [14:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 C9 47 00 9E CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 44 ED 02 00 F4 03 04 00 5B A8 1C 67 B6 04 01 00 00 E5 F3 4A 19 E7 02 7F 64 [14:58:11]CommunicateWithHost err = 0 [14:58:11]CheckOFDResponse [14:58:11]1017 (14) - 77093643461234 [14:58:11]1041 (16) - 0000000000871754 [14:58:11]1040 (4) - 191812 [14:58:11]1012 (4) - 26.10.2024 08:29 [14:58:11]1206 (1) - 0 [14:58:11]OFD Sender: Remove packet 191812 [14:58:11]ProducePacketName [14:58:11]name=ofd_packets/00191812 [14:58:11]NVStorageDeleteData [14:58:11]Write to MH i2c: 01 00 00 30 10 40 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 CB 0C 1E [14:58:11]RasterBufferAndPrint [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]line [14:58:11]written 0, free lines is 3281 [14:58:11]MH_Cut [14:58:11]Write to MH i2c: D1 01 00 37 10 01 19 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 01 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: D1 01 00 37 10 00 18 [14:58:11]Write to MH i2c: 01 00 00 38 10 48 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:12]OFD Sender: No OFD packet to send [14:58:12]*** Cut start [14:58:12]*** Partial cut [14:58:12]*** CUTSNS_PIN = 1 [14:58:12]*** CUTSNS_PIN = 0 [14:58:13]*** Brake cut motor [14:58:13]Read from MH i2c: 01 [14:58:13]MH_I2C_Read... [14:58:13]*** Stop cut motor [14:58:13]*** Cut end [14:58:13]Read from MH i2c: 01 07 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [14:58:13]process_action close_receipt done [14:58:13]requested_data is exist [14:58:13]produce_requested_data [14:58:13]requested_item fm.sn is exist - process it [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 11 00 00 [14:58:13]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [14:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:58:13]wFMCommunicate OK [14:58:13]requested_item fd.num is exist - process it [14:58:13]SAM_PROTO_GetFieldsCounters [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 13 00 00 [14:58:13]Write to MH i2c: E2 08 00 3A 10 80 13 00 00 00 00 00 00 C6 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 62 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 62 00 3A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [14:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 44 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_GetFieldsCounters done [14:58:13]requested_item shift.num is exist - process it [14:58:13]requested_item shift.opened is exist - process it [14:58:13]req_shift_opened [14:58:13]FM_GetShiftState [14:58:13]SAM_PROTO_GetShiftState [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 13 01 00 [14:58:13]Write to MH i2c: E2 08 00 3B 10 80 13 01 00 00 00 00 00 C8 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0E 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0E 00 3B 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 41 [14:58:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_GetShiftState done [14:58:13]FM_GetShiftState done [14:58:13]req_shift_opened done [14:58:13]requested_item shift.open_date is exist - process it [14:58:13]req_shift_open_date [14:58:13]req_shift_open_date done [14:58:13]produce_requested_data done [14:58:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191812,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:58:13]process_action_free close_receipt [14:58:13]json_value_free [14:58:13]json_value_free done [14:58:13]process_json_proto returns [14:58:13]Send response to host [14:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191812,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:58:13]free response buf [14:58:13]execute_script done [14:58:13]execute_script returns [14:58:13]free content buf [14:58:13]Sock 6.Close socket [14:58:13]Sock 6.Thread stoped [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:37]accept exits with 5 [14:59:37]New connection [14:59:37]New thread 3066817892 created [14:59:37]Thread 3066961252 joined [14:59:37]Waiting for new connection... [14:59:37] Sock 5.Parse request [14:59:37]Sock 5.Check first char [14:59:37]Sock 5.First char is OK [14:59:37]request: POST /json_proto HTTP/1.0 [14:59:37]Method: POST [14:59:37]URL: /json_proto [14:59:37]Method is POST - this is cgi request [14:59:37]url: /json_proto [14:59:37]query_string will be loaded in cgi processing [14:59:37]execute_cgi json_proto POST (null) [14:59:37]execute_cgi path=json_proto method=POST [14:59:37]POST find Content-Length [14:59:37]Host: 172.17.63.131:8080 [14:59:37]Content-Length: 676 [14:59:37]Content-Type: application/json [14:59:37] [14:59:37]POST finish read [14:59:37]Found Content-Length = 676 [14:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]execute_script... [14:59:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]POST & json_proto [14:59:37]process_json_proto [14:59:37]json parsed OK: [14:59:37]protocol is kg_v1.0 [14:59:37]action value=close_receipt [14:59:37]process_action close_receipt [14:59:37]cmd_close_receipt [14:59:37]MH_GetDate [14:59:37]Write to MH i2c: F0 00 00 3C 10 3B [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 3C 10 00 E8 03 1D 67 22 05 6E 64 AC [14:59:37]GetLastDocTimeStamp 1729954704 [14:59:37]current date 1729954792 [14:59:37]FM_GetShiftState [14:59:37]SAM_PROTO_GetShiftState [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 01 00 [14:59:37]Write to MH i2c: E2 08 00 3D 10 80 13 01 00 00 00 00 00 CA [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 3D 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 43 [14:59:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_GetShiftState done [14:59:37]FM_GetShiftState done [14:59:37]opened in 1729902770 [14:59:37]opened+sec_in_day 1729989170 [14:59:37]quantity*price = 40006 [14:59:37]sum+1 = 40007 [14:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 176 26.10.2024 14:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191813 ФПД: 265701544283672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191813&fm=265701544283672&tin=02508201610067®Number=0000000000091776&sum=40000 [14:59:39]StoreToDocumentArchive [14:59:39]shift 541 fd 191813 [14:59:39]save to /storage/0541/doc_00191813 [14:59:39]save last doc name /storage/0541/doc_00191813 to /storage/kkm_last_doc_name [14:59:39]save OK [14:59:39]Clear old archive folders... [14:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:39]tlvbuf is 01B75950 [14:59:39]SAM_PROTO_ClearQueue [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 09 00 00 [14:59:39]Write to MH i2c: E2 08 00 4A 10 80 09 00 00 00 00 00 00 CC [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_ClearQueue done [14:59:39]KKMCreateOFDPacket [14:59:39]OFDProtocolAddRootSTLVToBuf [14:59:39]FM_MakeSignedData [14:59:39]FM_MakeSignedData [14:59:39]SAM_PROTO_SignData [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 01 02 [14:59:39]Write to MH i2c: E2 08 00 4B 10 80 0D 01 02 00 00 00 00 D4 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=255 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E8 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 ED 02 00 35 04 06 00 F1 [14:59:39]Write to MH i2c: E2 02 01 4C 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E8 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 ED 02 00 35 04 06 00 F1 00 00 9A [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=10 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 05 A7 76 29 CE 18 [14:59:39]Write to MH i2c: E2 0D 00 4D 10 80 0D 02 02 05 00 A7 76 29 CE 18 00 00 0D [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 03 02 [14:59:39]Write to MH i2c: E2 08 00 4E 10 80 0D 03 02 00 00 00 00 D9 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 4E 10 00 B1 44 ED 5F 0D 65 6D 8D 90 00 87 [14:59:39]RAPDU: B1 44 ED 5F 0D 65 6D 8D 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_SignData done [14:59:39]FM_MakeSignedData done [14:59:39]CreateOFDProtocolMessage [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 4F 10 80 11 00 00 00 00 00 00 D9 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 4F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [14:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:39]wFMCommunicate OK [14:59:39]CreateOFDProtocolMessage done [14:59:39]OFDSenderStorePacket 191813 [14:59:39]StoreOFDPacket docnum=191813 [14:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 CB 07 01 BD 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E8 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 ED 02 00 35 04 06 00 F1 A7 76 29 CE 18 B1 44 ED 5F 0D 65 6D 8D [14:59:39]CheckFolder [14:59:39]dirname=/storage/ofd_packets [14:59:39]CheckFolder done [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00191813 [14:59:39]NVStorageSaveData ofd_packets/00191813 [14:59:39]File name is /storage/ofd_packets/00191813 [14:59:39]Write 301 bytes [14:59:39]NVStorageSaveData done [14:59:39]OFDSenderStorePacket done [14:59:39]KKMCreateOFDPacket done [14:59:39]NVStorageSaveData kkm_last_timestamp [14:59:39]File name is /storage/kkm_last_timestamp [14:59:39]OFD Sender: Processing packet 191813 [packets to send 75, broken 74] [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00191813 [14:59:39]OFD Sender: To server: pG, [14:59:39]CommunicateWithHost lk.salyk.kg:30040 [14:59:39]ConnectInit lk.salyk.kg [14:59:39]Write 4 bytes [14:59:39]NVStorageSaveData done [14:59:39]ExternCall_PrintAddStr [14:59:39]wPrintStart [14:59:39]Write to MH i2c: 01 00 00 50 10 60 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 FF 0F 75 [14:59:39]RasterBufferAndPrint [14:59:39]line Счет N : (1)31118 [14:59:39]line ИНН: 02508201610067 [14:59:39]line Контрольно-Кассовый Чек [14:59:39]line ПРОДАЖА [14:59:39]line ТРК (МРК, ГНК) : 12 [14:59:39]line Товар: 2710124130 [14:59:39]line Аи-92-К-5 [14:59:39]line 5.980 * 66.90 [14:59:39]line = 400.06 [14:59:39]line НДС 12% НСП 1% [14:59:39]line > о реализуемом товаре [14:59:39]line ОКРУГЛЕНИЕ: -0.06 [14:59:39]line ИТОГО: 400.00 [14:59:39]line Внесено: 400.00 [14:59:39]line СДАЧА: 0.00 [14:59:39]line НСП 1% : 3.54 [14:59:39]line НДС 12% : 42.48 [14:59:39]line Наличными: 400.00 [14:59:39]line Безнал.: 0.00 [14:59:39]line Место: АЗС № 170 "Партнер Нефть" [14:59:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [14:59:39]line СНО: Общий режим [14:59:39]line Чек 176 26.10.2024 14:59 [14:59:39]line Смена: 541 ФФД: 1.0 [14:59:39]line ЗНМ: 0300000110 [14:59:39]line РНМ: 0000000000091776 [14:59:39]line Версия ККМ: 001 [14:59:39]line ФМ: 0000000000871754 [14:59:39]line ФД: 191813 [14:59:39]line ФПД: 265701544283672 [14:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T145952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191813&fm=265701544283672&tin=02508201610067®Number=0000000000091776&sum=40000 [14:59:39]Connected sock=9 [14:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D1 CB 07 01 BD 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E8 03 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 ED 02 00 35 04 06 00 F1 A7 76 29 CE 18 B1 44 ED 5F 0D 65 6D 8D [14:59:39]written 0, free lines is 4095 [14:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 76 47 00 AF 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 45 ED 02 00 F4 03 04 00 B3 A8 1C 67 B6 04 01 00 00 11 70 93 A5 21 59 E1 61 [14:59:40]CommunicateWithHost err = 0 [14:59:40]CheckOFDResponse [14:59:40]1017 (14) - 77093643461234 [14:59:40]1041 (16) - 0000000000871754 [14:59:40]1040 (4) - 191813 [14:59:40]1012 (4) - 26.10.2024 08:30 [14:59:40]1206 (1) - 0 [14:59:40]OFD Sender: Remove packet 191813 [14:59:40]ProducePacketName [14:59:40]name=ofd_packets/00191813 [14:59:40]NVStorageDeleteData [14:59:40]Write to MH i2c: 01 00 00 7B 10 8B [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 B2 0C 50 [14:59:40]RasterBufferAndPrint [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]written 0, free lines is 3257 [14:59:40]MH_Cut [14:59:40]Write to MH i2c: D1 01 00 82 10 01 64 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 82 10 00 63 [14:59:40]Write to MH i2c: 01 00 00 83 10 93 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]OFD Sender: No OFD packet to send [14:59:41]*** Cut start [14:59:41]*** Partial cut [14:59:41]*** CUTSNS_PIN = 1 [14:59:41]*** CUTSNS_PIN = 0 [14:59:41]*** Brake cut motor [14:59:41]Read from MH i2c: 01 [14:59:41]MH_I2C_Read... [14:59:41]*** Stop cut motor [14:59:41]*** Cut end [14:59:41]Read from MH i2c: 01 07 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [14:59:41]process_action close_receipt done [14:59:41]requested_data is exist [14:59:41]produce_requested_data [14:59:41]requested_item fm.sn is exist - process it [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 11 00 00 [14:59:41]Write to MH i2c: E2 08 00 84 10 80 11 00 00 00 00 00 00 0E [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 84 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [14:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [14:59:41]wFMCommunicate OK [14:59:41]requested_item fd.num is exist - process it [14:59:41]SAM_PROTO_GetFieldsCounters [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 13 00 00 [14:59:41]Write to MH i2c: E2 08 00 85 10 80 13 00 00 00 00 00 00 11 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:42]Read from MH i2c: E2 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 62 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 62 00 85 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:59:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 45 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:42]wFMCommunicate OK [14:59:42]SAM_PROTO_GetFieldsCounters done [14:59:42]requested_item shift.num is exist - process it [14:59:42]requested_item shift.opened is exist - process it [14:59:42]req_shift_opened [14:59:42]FM_GetShiftState [14:59:42]SAM_PROTO_GetShiftState [14:59:42]wFMCommunicate request_size=4 [14:59:42]MH_SAM_APDU [14:59:42]CAPDU: 80 13 01 00 [14:59:42]Write to MH i2c: E2 08 00 86 10 80 13 01 00 00 00 00 00 13 [14:59:42]Write i2c OK [14:59:42]MH_I2C_Read... [14:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:42]Read from MH i2c: E2 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 0E 00 [14:59:42]MH_I2C_Read... [14:59:42]Read from MH i2c: E2 0E 00 86 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8C [14:59:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [14:59:42]wFMCommunicate OK [14:59:42]SAM_PROTO_GetShiftState done [14:59:42]FM_GetShiftState done [14:59:42]req_shift_opened done [14:59:42]requested_item shift.open_date is exist - process it [14:59:42]req_shift_open_date [14:59:42]req_shift_open_date done [14:59:42]produce_requested_data done [14:59:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191813,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [14:59:42]process_action_free close_receipt [14:59:42]json_value_free [14:59:42]json_value_free done [14:59:42]process_json_proto returns [14:59:42]Send response to host [14:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191813,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [14:59:42]free response buf [14:59:42]execute_script done [14:59:42]execute_script returns [14:59:42]free content buf [14:59:42]Sock 5.Close socket [14:59:42]Sock 5.Thread stoped [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]accept exits with 6 [15:01:50]New connection [15:01:50]New thread 3066961252 created [15:01:50]Thread 3066817892 joined [15:01:50]Waiting for new connection... [15:01:50] Sock 6.Parse request [15:01:50]Sock 6.Check first char [15:01:50]Sock 6.First char is OK [15:01:50]request: POST /json_proto HTTP/1.0 [15:01:50]Method: POST [15:01:50]URL: /json_proto [15:01:50]Method is POST - this is cgi request [15:01:50]url: /json_proto [15:01:50]query_string will be loaded in cgi processing [15:01:50]execute_cgi json_proto POST (null) [15:01:50]execute_cgi path=json_proto method=POST [15:01:50]POST find Content-Length [15:01:50]Host: 172.17.63.131:8080 [15:01:50]Content-Length: 983 [15:01:50]Content-Type: application/json [15:01:50] [15:01:50]POST finish read [15:01:50]Found Content-Length = 983 [15:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:01:50]execute_script... [15:01: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)31119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "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:01:50]POST & json_proto [15:01:50]process_json_proto [15:01:50]json parsed OK: [15:01:50]protocol is kg_v1.0 [15:01:50]action value=close_receipt [15:01:50]process_action close_receipt [15:01:50]cmd_close_receipt [15:01:50]MH_GetDate [15:01:50]Write to MH i2c: F0 00 00 87 10 86 [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: F0 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: F0 09 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: F0 09 00 87 10 00 6D 04 1D 67 22 05 6E 64 7D [15:01:50]GetLastDocTimeStamp 1729954792 [15:01:50]current date 1729954925 [15:01:50]FM_GetShiftState [15:01:50]SAM_PROTO_GetShiftState [15:01:50]wFMCommunicate request_size=4 [15:01:50]MH_SAM_APDU [15:01:50]CAPDU: 80 13 01 00 [15:01:50]Write to MH i2c: E2 08 00 88 10 80 13 01 00 00 00 00 00 15 [15:01:50]Write i2c OK [15:01:50]MH_I2C_Read... [15:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:50]Read from MH i2c: E2 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 0E 00 [15:01:50]MH_I2C_Read... [15:01:50]Read from MH i2c: E2 0E 00 88 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8E [15:01:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:01:50]wFMCommunicate OK [15:01:50]SAM_PROTO_GetShiftState done [15:01:50]FM_GetShiftState done [15:01:50]opened in 1729902770 [15:01:50]opened+sec_in_day 1729989170 [15:01:50]quantity*price = 150054 [15:01:50]sum+1 = 150055 [15:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 177 26.10.2024 15:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191814 ФПД: 218798980019396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191814&fm=218798980019396&tin=02508201610067®Number=0000000000091776&sum=150000 [15:01:51]StoreToDocumentArchive [15:01:51]shift 541 fd 191814 [15:01:51]save to /storage/0541/doc_00191814 [15:01:51]save last doc name /storage/0541/doc_00191814 to /storage/kkm_last_doc_name [15:01:51]save OK [15:01:51]Clear old archive folders... [15:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:51]tlvbuf is 019D4A00 [15:01:51]SAM_PROTO_ClearQueue [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 09 00 00 [15:01:51]Write to MH i2c: E2 08 00 95 10 80 09 00 00 00 00 00 00 17 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 95 10 00 90 00 19 [15:01:51]RAPDU: 90 00 [15:01:51]wFMCommunicate OK [15:01:51]SAM_PROTO_ClearQueue done [15:01:51]KKMCreateOFDPacket [15:01:51]OFDProtocolAddRootSTLVToBuf [15:01:51]FM_MakeSignedData [15:01:51]FM_MakeSignedData [15:01:51]SAM_PROTO_SignData [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 0D 01 02 [15:01:51]Write to MH i2c: E2 08 00 96 10 80 0D 01 02 00 00 00 00 1F [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 03 00 96 10 00 90 00 1A [15:01:51]RAPDU: 90 00 [15:01:51]wFMCommunicate OK [15:01:51]wFMCommunicate request_size=255 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6D 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 ED 02 00 35 04 06 00 C6 [15:01:51]Write to MH i2c: E2 02 01 97 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6D 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 ED 02 00 35 04 06 00 C6 00 00 A9 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 02 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 97 10 00 90 00 1B [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=10 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 02 02 05 FF 1B 7B 34 C4 [15:01:52]Write to MH i2c: E2 0D 00 98 10 80 0D 02 02 05 00 FF 1B 7B 34 C4 00 00 B9 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 02 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 98 10 00 90 00 1C [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 03 02 [15:01:52]Write to MH i2c: E2 08 00 99 10 80 0D 03 02 00 00 00 00 24 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 0B 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 0B 00 99 10 00 A7 37 42 6E F3 70 CB E2 90 00 C3 [15:01:52]RAPDU: A7 37 42 6E F3 70 CB E2 90 00 [15:01:52]wFMCommunicate OK [15:01:52]SAM_PROTO_SignData done [15:01:52]FM_MakeSignedData done [15:01:52]CreateOFDProtocolMessage [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 11 00 00 [15:01:52]Write to MH i2c: E2 08 00 9A 10 80 11 00 00 00 00 00 00 24 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 17 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 17 00 9A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [15:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:52]wFMCommunicate OK [15:01:52]CreateOFDProtocolMessage done [15:01:52]OFDSenderStorePacket 191814 [15:01:52]StoreOFDPacket docnum=191814 [15:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 47 07 01 0F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6D 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 ED 02 00 35 04 06 00 C6 FF 1B 7B 34 C4 A7 37 42 6E F3 70 CB E2 [15:01:52]CheckFolder [15:01:52]dirname=/storage/ofd_packets [15:01:52]CheckFolder done [15:01:52]ProducePacketName [15:01:52]name=ofd_packets/00191814 [15:01:52]NVStorageSaveData ofd_packets/00191814 [15:01:52]File name is /storage/ofd_packets/00191814 [15:01:52]Write 301 bytes [15:01:52]NVStorageSaveData done [15:01:52]OFDSenderStorePacket done [15:01:52]KKMCreateOFDPacket done [15:01:52]NVStorageSaveData kkm_last_timestamp [15:01:52]File name is /storage/kkm_last_timestamp [15:01:52]Write 4 bytes [15:01:52]NVStorageSaveData done [15:01:52]ExternCall_PrintAddStr [15:01:52]wPrintStart [15:01:52]Write to MH i2c: 01 00 00 9B 10 AB [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: 01 07 00 9B 10 00 00 00 00 00 FF 0F C0 [15:01:52]RasterBufferAndPrint [15:01:52]line Счет N : (1)31119 [15:01:52]line ИНН: 02508201610067 [15:01:52]line Контрольно-Кассовый Чек [15:01:52]line ПРОДАЖА [15:01:52]line ТРК (МРК, ГНК) : 12 [15:01:52]line Товар: 2710124130 [15:01:52]line Аи-92-К-5 [15:01:52]line 22.770 * 65.90 [15:01:52]line = 1500.54 [15:01:52]line НДС 12% НСП 1% [15:01:52]line > о реализуемом товаре [15:01:52]line ОКРУГЛЕНИЕ: -0.54 [15:01:52]line ИТОГО: 1500.00 [15:01:52]line Внесено: 1500.00 [15:01:52]line СДАЧА: 0.00 [15:01:52]line НСП 1% : 13.28 [15:01:52]line НДС 12% : 159.35 [15:01:52]line Наличными: 1500.00 [15:01:52]line Безнал.: 0.00 [15:01:52]line Место: АЗС № 170 "Партнер Нефть" [15:01:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:01:52]line СНО: Общий режим [15:01:52]line Чек 177 26.10.2024 15:02 [15:01:52]line Смена: 541 ФФД: 1.0 [15:01:52]line ЗНМ: 0300000110 [15:01:52]line РНМ: 0000000000091776 [15:01:52]line Версия ККМ: 001 [15:01:52]line [15:01:52]line Дисконтная программа [15:01:52]line АИ-92 [15:01:52]line номер 170 [15:01:52]line сэкономлено 22.77 сом [15:01:52]line ФМ: 0000000000871754 [15:01:52]line ФД: 191814 [15:01:52]line ФПД: 218798980019396 [15:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150205&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191814&fm=218798980019396&tin=02508201610067®Number=0000000000091776&sum=150000 [15:01:52]OFD Sender: Processing packet 191814 [packets to send 75, broken 74] [15:01:52]ProducePacketName [15:01:52]name=ofd_packets/00191814 [15:01:52]OFD Sender: To server: pG, [15:01:52]CommunicateWithHost lk.salyk.kg:30040 [15:01:52]ConnectInit lk.salyk.kg [15:01:52]written 0, free lines is 4095 [15:01:52]Connected sock=8 [15:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CE 47 07 01 0F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 6D 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 ED 02 00 35 04 06 00 C6 FF 1B 7B 34 C4 A7 37 42 6E F3 70 CB E2 [15:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4D 25 47 00 F7 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 46 ED 02 00 F4 03 04 00 38 A9 1C 67 B6 04 01 00 00 71 7B 59 FE 19 AD F8 64 [15:01:52]CommunicateWithHost err = 0 [15:01:52]CheckOFDResponse [15:01:52]1017 (14) - 77093643461234 [15:01:52]1041 (16) - 0000000000871754 [15:01:52]1040 (4) - 191814 [15:01:52]1012 (4) - 26.10.2024 08:32 [15:01:52]1206 (1) - 0 [15:01:52]OFD Sender: Remove packet 191814 [15:01:52]ProducePacketName [15:01:52]name=ofd_packets/00191814 [15:01:52]NVStorageDeleteData [15:01:53]Write to MH i2c: 01 00 00 CB 10 DB [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 CB 10 00 00 00 00 00 53 0C 41 [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 3160 [15:01:53]MH_Cut [15:01:53]Write to MH i2c: D1 01 00 D2 10 01 B4 [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 D2 10 00 B3 [15:01:53]Write to MH i2c: 01 00 00 D3 10 E3 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]OFD Sender: No OFD packet to send [15:01:53]*** Cut start [15:01:53]*** Partial cut [15:01:53]*** CUTSNS_PIN = 1 [15:01:54]*** CUTSNS_PIN = 0 [15:01:54]*** Brake cut motor [15:01:54]Read from MH i2c: 01 [15:01:54]MH_I2C_Read... [15:01:54]*** Stop cut motor [15:01:54]*** Cut end [15:01:54]Read from MH i2c: 01 07 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 07 00 D3 10 00 00 00 00 00 FF 0F F8 [15:01:54]process_action close_receipt done [15:01:54]requested_data is exist [15:01:54]produce_requested_data [15:01:54]requested_item fm.sn is exist - process it [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 11 00 00 [15:01:54]Write to MH i2c: E2 08 00 D4 10 80 11 00 00 00 00 00 00 5E [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 17 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 17 00 D4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B1 [15:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:01:54]wFMCommunicate OK [15:01:54]requested_item fd.num is exist - process it [15:01:54]SAM_PROTO_GetFieldsCounters [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 13 00 00 [15:01:54]Write to MH i2c: E2 08 00 D5 10 80 13 00 00 00 00 00 00 61 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 62 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 62 00 D5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15:01:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 46 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:01:54]wFMCommunicate OK [15:01:54]SAM_PROTO_GetFieldsCounters done [15:01:54]requested_item shift.num is exist - process it [15:01:54]requested_item shift.opened is exist - process it [15:01:54]req_shift_opened [15:01:54]FM_GetShiftState [15:01:54]SAM_PROTO_GetShiftState [15:01:54]wFMCommunicate request_size=4 [15:01:54]MH_SAM_APDU [15:01:54]CAPDU: 80 13 01 00 [15:01:54]Write to MH i2c: E2 08 00 D6 10 80 13 01 00 00 00 00 00 63 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:54]Read from MH i2c: E2 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0E 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: E2 0E 00 D6 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DC [15:01:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:01:54]wFMCommunicate OK [15:01:54]SAM_PROTO_GetShiftState done [15:01:54]FM_GetShiftState done [15:01:54]req_shift_opened done [15:01:54]requested_item shift.open_date is exist - process it [15:01:54]req_shift_open_date [15:01:54]req_shift_open_date done [15:01:54]produce_requested_data done [15:01:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191814,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:01:54]process_action_free close_receipt [15:01:54]json_value_free [15:01:54]json_value_free done [15:01:54]process_json_proto returns [15:01:54]Send response to host [15:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191814,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:01:54]free response buf [15:01:54]execute_script done [15:01:54]execute_script returns [15:01:54]free content buf [15:01:54]Sock 6.Close socket [15:01:54]Sock 6.Thread stoped [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:01]accept exits with 5 [15:04:01]New connection [15:04:01]New thread 3066817892 created [15:04:01]Thread 3066961252 joined [15:04:01]Waiting for new connection... [15:04:01] Sock 5.Parse request [15:04:01]Sock 5.Check first char [15:04:01]Sock 5.First char is OK [15:04:01]request: POST /json_proto HTTP/1.0 [15:04:01]Method: POST [15:04:01]URL: /json_proto [15:04:01]Method is POST - this is cgi request [15:04:01]url: /json_proto [15:04:01]query_string will be loaded in cgi processing [15:04:01]execute_cgi json_proto POST (null) [15:04:01]execute_cgi path=json_proto method=POST [15:04:01]POST find Content-Length [15:04:01]Host: 172.17.63.131:8080 [15:04:01]Content-Length: 678 [15:04:01]Content-Type: application/json [15:04:01] [15:04:01]POST finish read [15:04:01]Found Content-Length = 678 [15:04:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31120", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:01]execute_script... [15:04: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)31120", "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" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:01]POST & json_proto [15:04:01]process_json_proto [15:04:01]json parsed OK: [15:04:01]protocol is kg_v1.0 [15:04:01]action value=close_receipt [15:04:01]process_action close_receipt [15:04:01]cmd_close_receipt [15:04:01]MH_GetDate [15:04:01]Write to MH i2c: F0 00 00 D7 10 D6 [15:04:01]Write i2c OK [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 09 00 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: F0 09 00 D7 10 00 F0 04 1D 67 22 05 6E 64 50 [15:04:01]GetLastDocTimeStamp 1729954925 [15:04:01]current date 1729955056 [15:04:01]FM_GetShiftState [15:04:01]SAM_PROTO_GetShiftState [15:04:01]wFMCommunicate request_size=4 [15:04:01]MH_SAM_APDU [15:04:01]CAPDU: 80 13 01 00 [15:04:01]Write to MH i2c: E2 08 00 D8 10 80 13 01 00 00 00 00 00 65 [15:04:01]Write i2c OK [15:04:01]MH_I2C_Read... [15:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:01]Read from MH i2c: E2 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 0E 00 [15:04:01]MH_I2C_Read... [15:04:01]Read from MH i2c: E2 0E 00 D8 10 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DE [15:04:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:04:01]wFMCommunicate OK [15:04:01]SAM_PROTO_GetShiftState done [15:04:01]FM_GetShiftState done [15:04:01]opened in 1729902770 [15:04:01]opened+sec_in_day 1729989170 [15:04:01]quantity*price = 200025 [15:04:01]sum+1 = 200026 [15:04:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 178 26.10.2024 15:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191815 ФПД: 189059682556851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191815&fm=189059682556851&tin=02508201610067®Number=0000000000091776&sum=200000 [15:04:02]StoreToDocumentArchive [15:04:02]shift 541 fd 191815 [15:04:02]save to /storage/0541/doc_00191815 [15:04:02]save last doc name /storage/0541/doc_00191815 to /storage/kkm_last_doc_name [15:04:02]save OK [15:04:02]Clear old archive folders... [15:04:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:02]tlvbuf is 0183C720 [15:04:02]SAM_PROTO_ClearQueue [15:04:02]wFMCommunicate request_size=4 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 09 00 00 [15:04:02]Write to MH i2c: E2 08 00 E5 10 80 09 00 00 00 00 00 00 67 [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [15:04:02]RAPDU: 90 00 [15:04:02]wFMCommunicate OK [15:04:02]SAM_PROTO_ClearQueue done [15:04:02]KKMCreateOFDPacket [15:04:02]OFDProtocolAddRootSTLVToBuf [15:04:02]FM_MakeSignedData [15:04:02]FM_MakeSignedData [15:04:02]SAM_PROTO_SignData [15:04:02]wFMCommunicate request_size=4 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 0D 01 02 [15:04:02]Write to MH i2c: E2 08 00 E6 10 80 0D 01 02 00 00 00 00 6F [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [15:04:02]RAPDU: 90 00 [15:04:02]wFMCommunicate OK [15:04:02]wFMCommunicate request_size=255 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F0 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 ED 02 00 35 04 06 00 AB F2 E3 38 [15:04:02]Write to MH i2c: E2 02 01 E7 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F0 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 ED 02 00 35 04 06 00 AB F2 E3 38 00 00 1E [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [15:04:02]RAPDU: 90 00 [15:04:02]wFMCommunicate OK [15:04:02]wFMCommunicate request_size=7 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 0D 02 02 02 5B B3 [15:04:02]Write to MH i2c: E2 0A 00 E8 10 80 0D 02 02 02 00 5B B3 00 00 84 [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [15:04:02]RAPDU: 90 00 [15:04:02]wFMCommunicate OK [15:04:02]wFMCommunicate request_size=4 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 0D 03 02 [15:04:02]Write to MH i2c: E2 08 00 E9 10 80 0D 03 02 00 00 00 00 74 [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 0B 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 0B 00 E9 10 00 15 65 67 8B 37 23 72 68 90 00 15 [15:04:02]RAPDU: 15 65 67 8B 37 23 72 68 90 00 [15:04:02]wFMCommunicate OK [15:04:02]SAM_PROTO_SignData done [15:04:02]FM_MakeSignedData done [15:04:02]CreateOFDProtocolMessage [15:04:02]wFMCommunicate request_size=4 [15:04:02]MH_SAM_APDU [15:04:02]CAPDU: 80 11 00 00 [15:04:02]Write to MH i2c: E2 08 00 EA 10 80 11 00 00 00 00 00 00 74 [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:02]Read from MH i2c: E2 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 17 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: E2 17 00 EA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [15:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:04:02]wFMCommunicate OK [15:04:02]CreateOFDProtocolMessage done [15:04:02]OFDSenderStorePacket 191815 [15:04:02]StoreOFDPacket docnum=191815 [15:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 44 04 01 23 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F0 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 ED 02 00 35 04 06 00 AB F2 E3 38 5B B3 15 65 67 8B 37 23 72 68 [15:04:02]CheckFolder [15:04:02]dirname=/storage/ofd_packets [15:04:02]CheckFolder done [15:04:02]ProducePacketName [15:04:02]name=ofd_packets/00191815 [15:04:02]NVStorageSaveData ofd_packets/00191815 [15:04:02]File name is /storage/ofd_packets/00191815 [15:04:02]Write 298 bytes [15:04:02]NVStorageSaveData done [15:04:02]OFDSenderStorePacket done [15:04:02]KKMCreateOFDPacket done [15:04:02]NVStorageSaveData kkm_last_timestamp [15:04:02]File name is /storage/kkm_last_timestamp [15:04:02]Write 4 bytes [15:04:02]NVStorageSaveData done [15:04:02]ExternCall_PrintAddStr [15:04:02]wPrintStart [15:04:02]Write to MH i2c: 01 00 00 EB 10 FB [15:04:02]Write i2c OK [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: 01 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: 01 07 00 [15:04:02]MH_I2C_Read... [15:04:02]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 FF 0F 10 [15:04:02]RasterBufferAndPrint [15:04:02]line Счет N : (1)31120 [15:04:02]line ИНН: 02508201610067 [15:04:02]line Контрольно-Кассовый Чек [15:04:02]line ПРОДАЖА [15:04:02]line ТРК (МРК, ГНК) : 22 [15:04:02]line Товар: 2710194210 [15:04:02]line ДТ-К-5 [15:04:02]line 26.250 * 76.20 [15:04:02]line = 2000.25 [15:04:02]line НДС 12% НСП 1% [15:04:02]line > о реализуемом товаре [15:04:02]line ОКРУГЛЕНИЕ: -0.25 [15:04:02]line ИТОГО: 2000.00 [15:04:02]line Внесено: 2000.00 [15:04:02]line СДАЧА: 0.00 [15:04:02]line НСП 1% : 17.70 [15:04:02]line НДС 12% : 212.42 [15:04:02]line Наличными: 2000.00 [15:04:02]line Безнал.: 0.00 [15:04:02]line Место: АЗС № 170 "Партнер Нефть" [15:04:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:04:02]line СНО: Общий режим [15:04:02]line Чек 178 26.10.2024 15:04 [15:04:02]line Смена: 541 ФФД: 1.0 [15:04:02]line ЗНМ: 0300000110 [15:04:02]line РНМ: 0000000000091776 [15:04:02]line Версия ККМ: 001 [15:04:02]line ФМ: 0000000000871754 [15:04:02]line ФД: 191815 [15:04:02]line ФПД: 189059682556851 [15:04:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150416&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191815&fm=189059682556851&tin=02508201610067®Number=0000000000091776&sum=200000 [15:04:03]OFD Sender: Processing packet 191815 [packets to send 75, broken 74] [15:04:03]ProducePacketName [15:04:03]name=ofd_packets/00191815 [15:04:03]OFD Sender: To server: pG, [15:04:03]CommunicateWithHost lk.salyk.kg:30040 [15:04:03]ConnectInit lk.salyk.kg [15:04:03]written 0, free lines is 4095 [15:04:03]Connected sock=8 [15:04:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 37 44 04 01 23 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F0 04 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 ED 02 00 35 04 06 00 AB F2 E3 38 5B B3 15 65 67 8B 37 23 72 68 [15:04:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 9A 47 00 73 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 47 ED 02 00 F4 03 04 00 BB A9 1C 67 B6 04 01 00 00 CB 80 BC E8 8E EF F9 46 [15:04:03]CommunicateWithHost err = 0 [15:04:03]CheckOFDResponse [15:04:03]1017 (14) - 77093643461234 [15:04:03]1041 (16) - 0000000000871754 [15:04:03]1040 (4) - 191815 [15:04:03]1012 (4) - 26.10.2024 08:35 [15:04:03]1206 (1) - 0 [15:04:03]OFD Sender: Remove packet 191815 [15:04:03]ProducePacketName [15:04:03]name=ofd_packets/00191815 [15:04:03]NVStorageDeleteData [15:04:03]Write to MH i2c: 01 00 00 16 11 27 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 07 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 07 00 16 11 00 00 00 00 00 C9 0C 03 [15:04:03]RasterBufferAndPrint [15:04:03]line [15:04:03]line [15:04:03]line [15:04:03]line [15:04:03]line [15:04:03]written 0, free lines is 3279 [15:04:03]MH_Cut [15:04:03]Write to MH i2c: D1 01 00 1D 11 01 00 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: D1 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: D1 01 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: D1 01 00 1D 11 00 FF [15:04:03]Write to MH i2c: 01 00 00 1E 11 2F [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:04]OFD Sender: No OFD packet to send [15:04:04]*** Cut start [15:04:04]*** Partial cut [15:04:04]*** CUTSNS_PIN = 1 [15:04:04]*** CUTSNS_PIN = 0 [15:04:04]*** Brake cut motor [15:04:05]Read from MH i2c: 01 [15:04:05]MH_I2C_Read... [15:04:05]*** Stop cut motor [15:04:05]*** Cut end [15:04:05]Read from MH i2c: 01 07 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: 01 07 00 1E 11 00 00 00 00 00 FF 0F 44 [15:04:05]process_action close_receipt done [15:04:05]requested_data is exist [15:04:05]produce_requested_data [15:04:05]requested_item fm.sn is exist - process it [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 11 00 00 [15:04:05]Write to MH i2c: E2 08 00 1F 11 80 11 00 00 00 00 00 00 AA [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 17 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 17 00 1F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [15:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:04:05]wFMCommunicate OK [15:04:05]requested_item fd.num is exist - process it [15:04:05]SAM_PROTO_GetFieldsCounters [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 13 00 00 [15:04:05]Write to MH i2c: E2 08 00 20 11 80 13 00 00 00 00 00 00 AD [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 62 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 62 00 20 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:04:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 47 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:05]wFMCommunicate OK [15:04:05]SAM_PROTO_GetFieldsCounters done [15:04:05]requested_item shift.num is exist - process it [15:04:05]requested_item shift.opened is exist - process it [15:04:05]req_shift_opened [15:04:05]FM_GetShiftState [15:04:05]SAM_PROTO_GetShiftState [15:04:05]wFMCommunicate request_size=4 [15:04:05]MH_SAM_APDU [15:04:05]CAPDU: 80 13 01 00 [15:04:05]Write to MH i2c: E2 08 00 21 11 80 13 01 00 00 00 00 00 AF [15:04:05]Write i2c OK [15:04:05]MH_I2C_Read... [15:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:05]Read from MH i2c: E2 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 [15:04:05]MH_I2C_Read... [15:04:05]Read from MH i2c: E2 0E 00 21 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 28 [15:04:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:04:05]wFMCommunicate OK [15:04:05]SAM_PROTO_GetShiftState done [15:04:05]FM_GetShiftState done [15:04:05]req_shift_opened done [15:04:05]requested_item shift.open_date is exist - process it [15:04:05]req_shift_open_date [15:04:05]req_shift_open_date done [15:04:05]produce_requested_data done [15:04:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191815,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:04:05]process_action_free close_receipt [15:04:05]json_value_free [15:04:05]json_value_free done [15:04:05]process_json_proto returns [15:04:05]Send response to host [15:04:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191815,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:04:05]free response buf [15:04:05]execute_script done [15:04:05]execute_script returns [15:04:05]free content buf [15:04:05]Sock 5.Close socket [15:04:05]Sock 5.Thread stoped [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:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:57]accept exits with 6 [15:06:57]New connection [15:06:57]New thread 3066961252 created [15:06:57]Thread 3066817892 joined [15:06:57]Waiting for new connection... [15:06:57] Sock 6.Parse request [15:06:57]Sock 6.Check first char [15:06:57]Sock 6.First char is OK [15:06:57]request: POST /json_proto HTTP/1.0 [15:06:57]Method: POST [15:06:57]URL: /json_proto [15:06:57]Method is POST - this is cgi request [15:06:57]url: /json_proto [15:06:57]query_string will be loaded in cgi processing [15:06:57]execute_cgi json_proto POST (null) [15:06:57]execute_cgi path=json_proto method=POST [15:06:57]POST find Content-Length [15:06:57]Host: 172.17.63.131:8080 [15:06:57]Content-Length: 676 [15:06:57]Content-Type: application/json [15:06:57] [15:06:57]POST finish read [15:06:57]Found Content-Length = 676 [15:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:57]execute_script... [15:06:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:57]POST & json_proto [15:06:57]process_json_proto [15:06:57]json parsed OK: [15:06:57]protocol is kg_v1.0 [15:06:57]action value=close_receipt [15:06:57]process_action close_receipt [15:06:57]cmd_close_receipt [15:06:57]MH_GetDate [15:06:57]Write to MH i2c: F0 00 00 22 11 22 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: F0 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: F0 09 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: F0 09 00 22 11 00 A0 05 1D 67 22 05 6E 64 4D [15:06:57]GetLastDocTimeStamp 1729955056 [15:06:57]current date 1729955232 [15:06:57]FM_GetShiftState [15:06:57]SAM_PROTO_GetShiftState [15:06:57]wFMCommunicate request_size=4 [15:06:57]MH_SAM_APDU [15:06:57]CAPDU: 80 13 01 00 [15:06:57]Write to MH i2c: E2 08 00 23 11 80 13 01 00 00 00 00 00 B1 [15:06:57]Write i2c OK [15:06:57]MH_I2C_Read... [15:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:57]Read from MH i2c: E2 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0E 00 [15:06:57]MH_I2C_Read... [15:06:57]Read from MH i2c: E2 0E 00 23 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2A [15:06:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:06:57]wFMCommunicate OK [15:06:57]SAM_PROTO_GetShiftState done [15:06:57]FM_GetShiftState done [15:06:57]opened in 1729902770 [15:06:57]opened+sec_in_day 1729989170 [15:06:57]quantity*price = 10035 [15:06:57]sum+1 = 10036 [15:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 179 26.10.2024 15:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191816 ФПД: 168274980471690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191816&fm=168274980471690&tin=02508201610067®Number=0000000000091776&sum=10000 [15:06:58]StoreToDocumentArchive [15:06:58]shift 541 fd 191816 [15:06:58]save to /storage/0541/doc_00191816 [15:06:58]save last doc name /storage/0541/doc_00191816 to /storage/kkm_last_doc_name [15:06:58]save OK [15:06:58]Clear old archive folders... [15:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:06:58]tlvbuf is 01A76590 [15:06:58]SAM_PROTO_ClearQueue [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 09 00 00 [15:06:58]Write to MH i2c: E2 08 00 30 11 80 09 00 00 00 00 00 00 B3 [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:58]Read from MH i2c: E2 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 [15:06:58]MH_I2C_Read... [15:06:58]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [15:06:58]RAPDU: 90 00 [15:06:58]wFMCommunicate OK [15:06:58]SAM_PROTO_ClearQueue done [15:06:58]KKMCreateOFDPacket [15:06:58]OFDProtocolAddRootSTLVToBuf [15:06:58]FM_MakeSignedData [15:06:58]FM_MakeSignedData [15:06:58]SAM_PROTO_SignData [15:06:58]wFMCommunicate request_size=4 [15:06:58]MH_SAM_APDU [15:06:58]CAPDU: 80 0D 01 02 [15:06:58]Write to MH i2c: E2 08 00 31 11 80 0D 01 02 00 00 00 00 BB [15:06:58]Write i2c OK [15:06:58]MH_I2C_Read... [15:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [15:06:59]RAPDU: 90 00 [15:06:59]wFMCommunicate OK [15:06:59]wFMCommunicate request_size=255 [15:06:59]MH_SAM_APDU [15:06: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A0 05 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 ED 02 00 35 04 06 00 99 [15:06:59]Write to MH i2c: E2 02 01 32 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A0 05 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 ED 02 00 35 04 06 00 99 00 00 01 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]OFD Sender: No OFD packet to send [15:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [15:06:59]RAPDU: 90 00 [15:06:59]wFMCommunicate OK [15:06:59]wFMCommunicate request_size=10 [15:06:59]MH_SAM_APDU [15:06:59]CAPDU: 80 0D 02 02 05 0B 92 6F 83 8A [15:06:59]Write to MH i2c: E2 0D 00 33 11 80 0D 02 02 05 00 0B 92 6F 83 8A 00 00 E1 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 03 00 33 11 00 90 00 B8 [15:06:59]RAPDU: 90 00 [15:06:59]wFMCommunicate OK [15:06:59]wFMCommunicate request_size=4 [15:06:59]MH_SAM_APDU [15:06:59]CAPDU: 80 0D 03 02 [15:06:59]Write to MH i2c: E2 08 00 34 11 80 0D 03 02 00 00 00 00 C0 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 0B 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 0B 00 34 11 00 C3 98 94 63 65 2E 8E 1C 90 00 50 [15:06:59]RAPDU: C3 98 94 63 65 2E 8E 1C 90 00 [15:06:59]wFMCommunicate OK [15:06:59]SAM_PROTO_SignData done [15:06:59]FM_MakeSignedData done [15:06:59]CreateOFDProtocolMessage [15:06:59]wFMCommunicate request_size=4 [15:06:59]MH_SAM_APDU [15:06:59]CAPDU: 80 11 00 00 [15:06:59]Write to MH i2c: E2 08 00 35 11 80 11 00 00 00 00 00 00 C0 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:59]Read from MH i2c: E2 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 17 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: E2 17 00 35 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [15:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:06:59]wFMCommunicate OK [15:06:59]CreateOFDProtocolMessage done [15:06:59]OFDSenderStorePacket 191816 [15:06:59]StoreOFDPacket docnum=191816 [15:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 37 07 01 62 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A0 05 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 ED 02 00 35 04 06 00 99 0B 92 6F 83 8A C3 98 94 63 65 2E 8E 1C [15:06:59]CheckFolder [15:06:59]dirname=/storage/ofd_packets [15:06:59]CheckFolder done [15:06:59]ProducePacketName [15:06:59]name=ofd_packets/00191816 [15:06:59]NVStorageSaveData ofd_packets/00191816 [15:06:59]File name is /storage/ofd_packets/00191816 [15:06:59]Write 301 bytes [15:06:59]NVStorageSaveData done [15:06:59]OFDSenderStorePacket done [15:06:59]KKMCreateOFDPacket done [15:06:59]NVStorageSaveData kkm_last_timestamp [15:06:59]File name is /storage/kkm_last_timestamp [15:06:59]Write 4 bytes [15:06:59]NVStorageSaveData done [15:06:59]ExternCall_PrintAddStr [15:06:59]wPrintStart [15:06:59]Write to MH i2c: 01 00 00 36 11 47 [15:06:59]Write i2c OK [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 [15:06:59]MH_I2C_Read... [15:06:59]Read from MH i2c: 01 07 00 36 11 00 00 00 00 00 FF 0F 5C [15:06:59]RasterBufferAndPrint [15:06:59]line Счет N : (1)31121 [15:06:59]line ИНН: 02508201610067 [15:06:59]line Контрольно-Кассовый Чек [15:06:59]line ПРОДАЖА [15:06:59]line ТРК (МРК, ГНК) : 21 [15:06:59]line Товар: 2710124130 [15:06:59]line Аи-92-К-5 [15:06:59]line 1.500 * 66.90 [15:06:59]line = 100.35 [15:06:59]line НДС 12% НСП 1% [15:06:59]line > о реализуемом товаре [15:06:59]line ОКРУГЛЕНИЕ: -0.35 [15:06:59]line ИТОГО: 100.00 [15:06:59]line Внесено: 100.00 [15:06:59]line СДАЧА: 0.00 [15:06:59]line НСП 1% : 0.89 [15:06:59]line НДС 12% : 10.66 [15:06:59]line Наличными: 100.00 [15:06:59]line Безнал.: 0.00 [15:06:59]line Место: АЗС № 170 "Партнер Нефть" [15:06:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:06:59]line СНО: Общий режим [15:06:59]line Чек 179 26.10.2024 15:07 [15:06:59]line Смена: 541 ФФД: 1.0 [15:06:59]line ЗНМ: 0300000110 [15:06:59]line РНМ: 0000000000091776 [15:06:59]line Версия ККМ: 001 [15:06:59]line ФМ: 0000000000871754 [15:06:59]line ФД: 191816 [15:06:59]line ФПД: 168274980471690 [15:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T150712&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191816&fm=168274980471690&tin=02508201610067®Number=0000000000091776&sum=10000 [15:06:59]OFD Sender: Processing packet 191816 [packets to send 75, broken 74] [15:06:59]ProducePacketName [15:06:59]name=ofd_packets/00191816 [15:06:59]OFD Sender: To server: pG, [15:06:59]CommunicateWithHost lk.salyk.kg:30040 [15:06:59]ConnectInit lk.salyk.kg [15:06:59]written 0, free lines is 4095 [15:06:59]Connected sock=8 [15:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FF 37 07 01 62 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A0 05 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 ED 02 00 35 04 06 00 99 0B 92 6F 83 8A C3 98 94 63 65 2E 8E 1C [15:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F 8D 47 00 A9 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 48 ED 02 00 F4 03 04 00 6B AA 1C 67 B6 04 01 00 00 19 CA 36 94 D9 21 B1 3F [15:07:00]CommunicateWithHost err = 0 [15:07:00]CheckOFDResponse [15:07:00]1017 (14) - 77093643461234 [15:07:00]1041 (16) - 0000000000871754 [15:07:00]1040 (4) - 191816 [15:07:00]1012 (4) - 26.10.2024 08:38 [15:07:00]1206 (1) - 0 [15:07:00]OFD Sender: Remove packet 191816 [15:07:00]ProducePacketName [15:07:00]name=ofd_packets/00191816 [15:07:00]NVStorageDeleteData [15:07:00]Write to MH i2c: 01 00 00 61 11 72 [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: 01 07 00 61 11 00 00 00 00 00 B8 0C 3D [15:07:00]RasterBufferAndPrint [15:07:00]line [15:07:00]line [15:07:00]line [15:07:00]line [15:07:00]line [15:07:00]written 0, free lines is 3263 [15:07:00]MH_Cut [15:07:00]Write to MH i2c: D1 01 00 68 11 01 4B [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: D1 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: D1 01 00 [15:07:00]MH_I2C_Read... [15:07:00]Read from MH i2c: D1 01 00 68 11 00 4A [15:07:00]Write to MH i2c: 01 00 00 69 11 7A [15:07:00]Write i2c OK [15:07:00]MH_I2C_Read... [15:07:00]OFD Sender: No OFD packet to send [15:07:01]*** Cut start [15:07:01]*** Partial cut [15:07:01]*** CUTSNS_PIN = 1 [15:07:01]*** CUTSNS_PIN = 0 [15:07:01]*** Brake cut motor [15:07:01]Read from MH i2c: 01 [15:07:01]MH_I2C_Read... [15:07:01]*** Stop cut motor [15:07:01]*** Cut end [15:07:01]Read from MH i2c: 01 07 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: 01 07 00 69 11 00 00 00 00 00 FF 0F 8F [15:07:01]process_action close_receipt done [15:07:01]requested_data is exist [15:07:01]produce_requested_data [15:07:01]requested_item fm.sn is exist - process it [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 11 00 00 [15:07:01]Write to MH i2c: E2 08 00 6A 11 80 11 00 00 00 00 00 00 F5 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 17 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 17 00 6A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [15:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:07:01]wFMCommunicate OK [15:07:01]requested_item fd.num is exist - process it [15:07:01]SAM_PROTO_GetFieldsCounters [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 13 00 00 [15:07:01]Write to MH i2c: E2 08 00 6B 11 80 13 00 00 00 00 00 00 F8 [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 62 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 62 00 6B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 48 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:01]wFMCommunicate OK [15:07:01]SAM_PROTO_GetFieldsCounters done [15:07:01]requested_item shift.num is exist - process it [15:07:01]requested_item shift.opened is exist - process it [15:07:01]req_shift_opened [15:07:01]FM_GetShiftState [15:07:01]SAM_PROTO_GetShiftState [15:07:01]wFMCommunicate request_size=4 [15:07:01]MH_SAM_APDU [15:07:01]CAPDU: 80 13 01 00 [15:07:01]Write to MH i2c: E2 08 00 6C 11 80 13 01 00 00 00 00 00 FA [15:07:01]Write i2c OK [15:07:01]MH_I2C_Read... [15:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:01]Read from MH i2c: E2 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0E 00 [15:07:01]MH_I2C_Read... [15:07:01]Read from MH i2c: E2 0E 00 6C 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 73 [15:07:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:07:01]wFMCommunicate OK [15:07:01]SAM_PROTO_GetShiftState done [15:07:01]FM_GetShiftState done [15:07:01]req_shift_opened done [15:07:01]requested_item shift.open_date is exist - process it [15:07:01]req_shift_open_date [15:07:01]req_shift_open_date done [15:07:01]produce_requested_data done [15:07:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191816,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:07:01]process_action_free close_receipt [15:07:01]json_value_free [15:07:01]json_value_free done [15:07:01]process_json_proto returns [15:07:01]Send response to host [15:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191816,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:07:01]free response buf [15:07:01]execute_script done [15:07:01]execute_script returns [15:07:01]free content buf [15:07:01]Sock 6.Close socket [15:07:01]Sock 6.Thread stoped [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:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:27]accept exits with 5 [15:10:27]New connection [15:10:27]New thread 3066817892 created [15:10:27]Thread 3066961252 joined [15:10:27]Waiting for new connection... [15:10:27] Sock 5.Parse request [15:10:27]Sock 5.Check first char [15:10:27]Sock 5.First char is OK [15:10:27]request: POST /json_proto HTTP/1.0 [15:10:27]Method: POST [15:10:27]URL: /json_proto [15:10:27]Method is POST - this is cgi request [15:10:27]url: /json_proto [15:10:27]query_string will be loaded in cgi processing [15:10:27]execute_cgi json_proto POST (null) [15:10:27]execute_cgi path=json_proto method=POST [15:10:27]POST find Content-Length [15:10:27]Host: 172.17.63.131:8080 [15:10:27]Content-Length: 676 [15:10:27]Content-Type: application/json [15:10:27] [15:10:27]POST finish read [15:10:27]Found Content-Length = 676 [15:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:27]execute_script... [15:10: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)31122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:27]POST & json_proto [15:10:27]process_json_proto [15:10:27]json parsed OK: [15:10:27]protocol is kg_v1.0 [15:10:27]action value=close_receipt [15:10:27]process_action close_receipt [15:10:27]cmd_close_receipt [15:10:27]MH_GetDate [15:10:27]Write to MH i2c: F0 00 00 6D 11 6D [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 09 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: F0 09 00 6D 11 00 72 06 1D 67 22 05 6E 64 6B [15:10:27]GetLastDocTimeStamp 1729955232 [15:10:27]current date 1729955442 [15:10:27]FM_GetShiftState [15:10:27]SAM_PROTO_GetShiftState [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 01 00 [15:10:27]Write to MH i2c: E2 08 00 6E 11 80 13 01 00 00 00 00 00 FC [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 6E 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 75 [15:10:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetShiftState done [15:10:27]FM_GetShiftState done [15:10:27]opened in 1729902770 [15:10:27]opened+sec_in_day 1729989170 [15:10:27]quantity*price = 30038 [15:10:27]sum+1 = 30039 [15:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 180 26.10.2024 15:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191817 ФПД: 186455292152548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191817&fm=186455292152548&tin=02508201610067®Number=0000000000091776&sum=30000 [15:10:28]StoreToDocumentArchive [15:10:28]shift 541 fd 191817 [15:10:28]save to /storage/0541/doc_00191817 [15:10:28]save last doc name /storage/0541/doc_00191817 to /storage/kkm_last_doc_name [15:10:28]save OK [15:10:28]Clear old archive folders... [15:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:28]tlvbuf is 016CEAA0 [15:10:28]SAM_PROTO_ClearQueue [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 09 00 00 [15:10:28]Write to MH i2c: E2 08 00 7B 11 80 09 00 00 00 00 00 00 FE [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_ClearQueue done [15:10:28]KKMCreateOFDPacket [15:10:28]OFDProtocolAddRootSTLVToBuf [15:10:28]FM_MakeSignedData [15:10:28]FM_MakeSignedData [15:10:28]SAM_PROTO_SignData [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 01 02 [15:10:28]Write to MH i2c: E2 08 00 7C 11 80 0D 01 02 00 00 00 00 06 [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=255 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 72 06 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 ED 02 00 35 04 06 00 A9 [15:10:28]Write to MH i2c: E2 02 01 7D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 72 06 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 ED 02 00 35 04 06 00 A9 00 00 3E [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=10 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 02 02 05 94 81 74 8A E4 [15:10:28]Write to MH i2c: E2 0D 00 7E 11 80 0D 02 02 05 00 94 81 74 8A E4 00 00 0A [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [15:10:28]RAPDU: 90 00 [15:10:28]wFMCommunicate OK [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 0D 03 02 [15:10:28]Write to MH i2c: E2 08 00 7F 11 80 0D 03 02 00 00 00 00 0B [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:28]Read from MH i2c: E2 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0B 00 [15:10:28]MH_I2C_Read... [15:10:28]Read from MH i2c: E2 0B 00 7F 11 00 B2 FD CB ED 39 BB 5D B9 90 00 7D [15:10:28]RAPDU: B2 FD CB ED 39 BB 5D B9 90 00 [15:10:28]wFMCommunicate OK [15:10:28]SAM_PROTO_SignData done [15:10:28]FM_MakeSignedData done [15:10:28]CreateOFDProtocolMessage [15:10:28]wFMCommunicate request_size=4 [15:10:28]MH_SAM_APDU [15:10:28]CAPDU: 80 11 00 00 [15:10:28]Write to MH i2c: E2 08 00 80 11 80 11 00 00 00 00 00 00 0B [15:10:28]Write i2c OK [15:10:28]MH_I2C_Read... [15:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:29]Read from MH i2c: E2 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: E2 17 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: E2 17 00 80 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [15:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:29]wFMCommunicate OK [15:10:29]CreateOFDProtocolMessage done [15:10:29]OFDSenderStorePacket 191817 [15:10:29]StoreOFDPacket docnum=191817 [15:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 6A 07 01 45 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 72 06 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 ED 02 00 35 04 06 00 A9 94 81 74 8A E4 B2 FD CB ED 39 BB 5D B9 [15:10:29]CheckFolder [15:10:29]dirname=/storage/ofd_packets [15:10:29]CheckFolder done [15:10:29]ProducePacketName [15:10:29]name=ofd_packets/00191817 [15:10:29]NVStorageSaveData ofd_packets/00191817 [15:10:29]File name is /storage/ofd_packets/00191817 [15:10:29]Write 301 bytes [15:10:29]NVStorageSaveData done [15:10:29]OFDSenderStorePacket done [15:10:29]KKMCreateOFDPacket done [15:10:29]NVStorageSaveData kkm_last_timestamp [15:10:29]File name is /storage/kkm_last_timestamp [15:10:29]Write 4 bytes [15:10:29]NVStorageSaveData done [15:10:29]ExternCall_PrintAddStr [15:10:29]wPrintStart [15:10:29]Write to MH i2c: 01 00 00 81 11 92 [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 FF 0F A7 [15:10:29]RasterBufferAndPrint [15:10:29]line Счет N : (1)31122 [15:10:29]line ИНН: 02508201610067 [15:10:29]line Контрольно-Кассовый Чек [15:10:29]line ПРОДАЖА [15:10:29]line ТРК (МРК, ГНК) : 21 [15:10:29]line Товар: 2710124130 [15:10:29]line Аи-92-К-5 [15:10:29]line 4.490 * 66.90 [15:10:29]line = 300.38 [15:10:29]line НДС 12% НСП 1% [15:10:29]line > о реализуемом товаре [15:10:29]line ОКРУГЛЕНИЕ: -0.38 [15:10:29]line ИТОГО: 300.00 [15:10:29]line Внесено: 300.00 [15:10:29]line СДАЧА: 0.00 [15:10:29]line НСП 1% : 2.66 [15:10:29]line НДС 12% : 31.90 [15:10:29]line Наличными: 300.00 [15:10:29]line Безнал.: 0.00 [15:10:29]line Место: АЗС № 170 "Партнер Нефть" [15:10:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:10:29]line СНО: Общий режим [15:10:29]line Чек 180 26.10.2024 15:10 [15:10:29]line Смена: 541 ФФД: 1.0 [15:10:29]line ЗНМ: 0300000110 [15:10:29]line РНМ: 0000000000091776 [15:10:29]line Версия ККМ: 001 [15:10:29]line ФМ: 0000000000871754 [15:10:29]line ФД: 191817 [15:10:29]line ФПД: 186455292152548 [15:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191817&fm=186455292152548&tin=02508201610067®Number=0000000000091776&sum=30000 [15:10:29]OFD Sender: Processing packet 191817 [packets to send 75, broken 74] [15:10:29]ProducePacketName [15:10:29]name=ofd_packets/00191817 [15:10:29]OFD Sender: To server: pG, [15:10:29]CommunicateWithHost lk.salyk.kg:30040 [15:10:29]ConnectInit lk.salyk.kg [15:10:29]written 0, free lines is 4095 [15:10:29]Connected sock=6 [15:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 6A 07 01 45 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 72 06 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 ED 02 00 35 04 06 00 A9 94 81 74 8A E4 B2 FD CB ED 39 BB 5D B9 [15:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 8F 03 47 00 8E 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 49 ED 02 00 F4 03 04 00 3D AB 1C 67 B6 04 01 00 00 D0 32 67 7A 18 8A 84 EC [15:10:29]CommunicateWithHost err = 0 [15:10:29]CheckOFDResponse [15:10:29]1017 (14) - 77093643461234 [15:10:29]1041 (16) - 0000000000871754 [15:10:29]1040 (4) - 191817 [15:10:29]1012 (4) - 26.10.2024 08:41 [15:10:29]1206 (1) - 0 [15:10:29]OFD Sender: Remove packet 191817 [15:10:29]ProducePacketName [15:10:29]name=ofd_packets/00191817 [15:10:29]NVStorageDeleteData [15:10:29]Write to MH i2c: 01 00 00 AC 11 BD [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: 01 07 00 AC 11 00 00 00 00 00 CD 0C 9D [15:10:29]RasterBufferAndPrint [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]line [15:10:29]written 0, free lines is 3283 [15:10:29]MH_Cut [15:10:29]Write to MH i2c: D1 01 00 B3 11 01 96 [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 01 00 [15:10:29]MH_I2C_Read... [15:10:29]Read from MH i2c: D1 01 00 B3 11 00 95 [15:10:29]Write to MH i2c: 01 00 00 B4 11 C5 [15:10:29]Write i2c OK [15:10:29]MH_I2C_Read... [15:10:30]OFD Sender: No OFD packet to send [15:10:30]*** Cut start [15:10:30]*** Partial cut [15:10:30]*** CUTSNS_PIN = 1 [15:10:30]*** CUTSNS_PIN = 0 [15:10:30]*** Brake cut motor [15:10:31]Read from MH i2c: 01 [15:10:31]MH_I2C_Read... [15:10:31]*** Stop cut motor [15:10:31]*** Cut end [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 B4 11 00 00 00 00 00 FF 0F DA [15:10:31]process_action close_receipt done [15:10:31]requested_data is exist [15:10:31]produce_requested_data [15:10:31]requested_item fm.sn is exist - process it [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 B5 11 80 11 00 00 00 00 00 00 40 [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 B5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 93 [15:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:10:31]wFMCommunicate OK [15:10:31]requested_item fd.num is exist - process it [15:10:31]SAM_PROTO_GetFieldsCounters [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 13 00 00 [15:10:31]Write to MH i2c: E2 08 00 B6 11 80 13 00 00 00 00 00 00 43 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 62 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 62 00 B6 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [15:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 49 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_GetFieldsCounters done [15:10:31]requested_item shift.num is exist - process it [15:10:31]requested_item shift.opened is exist - process it [15:10:31]req_shift_opened [15:10:31]FM_GetShiftState [15:10:31]SAM_PROTO_GetShiftState [15:10:31]wFMCommunicate request_size=4 [15:10:31]MH_SAM_APDU [15:10:31]CAPDU: 80 13 01 00 [15:10:31]Write to MH i2c: E2 08 00 B7 11 80 13 01 00 00 00 00 00 45 [15:10:31]Write i2c OK [15:10:31]MH_I2C_Read... [15:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:31]Read from MH i2c: E2 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0E 00 [15:10:31]MH_I2C_Read... [15:10:31]Read from MH i2c: E2 0E 00 B7 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BE [15:10:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:10:31]wFMCommunicate OK [15:10:31]SAM_PROTO_GetShiftState done [15:10:31]FM_GetShiftState done [15:10:31]req_shift_opened done [15:10:31]requested_item shift.open_date is exist - process it [15:10:31]req_shift_open_date [15:10:31]req_shift_open_date done [15:10:31]produce_requested_data done [15:10:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191817,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:10:31]process_action_free close_receipt [15:10:31]json_value_free [15:10:31]json_value_free done [15:10:31]process_json_proto returns [15:10:31]Send response to host [15:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191817,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:10:31]free response buf [15:10:31]execute_script done [15:10:31]execute_script returns [15:10:31]free content buf [15:10:31]Sock 5.Close socket [15:10:31]Sock 5.Thread stoped [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:13:58]accept exits with 8 [15:13:58]New connection [15:13:58]New thread 3066961252 created [15:13:58]Thread 3066817892 joined [15:13:58]Waiting for new connection... [15:13:58] Sock 8.Parse request [15:13:58]Sock 8.Check first char [15:13:58]Sock 8.First char is OK [15:13:58]request: POST /json_proto HTTP/1.0 [15:13:58]Method: POST [15:13:58]URL: /json_proto [15:13:58]Method is POST - this is cgi request [15:13:58]url: /json_proto [15:13:58]query_string will be loaded in cgi processing [15:13:58]execute_cgi json_proto POST (null) [15:13:58]execute_cgi path=json_proto method=POST [15:13:58]POST find Content-Length [15:13:58]Host: 172.17.63.131:8080 [15:13:58]Content-Length: 677 [15:13:58]Content-Type: application/json [15:13:58] [15:13:58]POST finish read [15:13:58]Found Content-Length = 677 [15:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:58]execute_script... [15:13: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)31123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:58]POST & json_proto [15:13:58]process_json_proto [15:13:58]json parsed OK: [15:13:58]protocol is kg_v1.0 [15:13:58]action value=close_receipt [15:13:58]process_action close_receipt [15:13:58]cmd_close_receipt [15:13:58]MH_GetDate [15:13:58]Write to MH i2c: F0 00 00 B8 11 B8 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 09 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 09 00 B8 11 00 45 07 1D 67 22 05 6E 64 8A [15:13:58]GetLastDocTimeStamp 1729955442 [15:13:58]current date 1729955653 [15:13:58]FM_GetShiftState [15:13:58]SAM_PROTO_GetShiftState [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 13 01 00 [15:13:58]Write to MH i2c: E2 08 00 B9 11 80 13 01 00 00 00 00 00 47 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 B9 11 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C0 [15:13:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_GetShiftState done [15:13:58]FM_GetShiftState done [15:13:58]opened in 1729902770 [15:13:58]opened+sec_in_day 1729989170 [15:13:58]quantity*price = 70044 [15:13:58]sum+1 = 70045 [15:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 181 26.10.2024 15:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191818 ФПД: 220669161268795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191818&fm=220669161268795&tin=02508201610067®Number=0000000000091776&sum=70000 [15:13:59]StoreToDocumentArchive [15:13:59]shift 541 fd 191818 [15:13:59]save to /storage/0541/doc_00191818 [15:13:59]save last doc name /storage/0541/doc_00191818 to /storage/kkm_last_doc_name [15:13:59]save OK [15:13:59]Clear old archive folders... [15:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:59]tlvbuf is 016CE790 [15:13:59]SAM_PROTO_ClearQueue [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 09 00 00 [15:13:59]Write to MH i2c: E2 08 00 C6 11 80 09 00 00 00 00 00 00 49 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:59]Read from MH i2c: E2 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [15:13:59]RAPDU: 90 00 [15:13:59]wFMCommunicate OK [15:13:59]SAM_PROTO_ClearQueue done [15:13:59]KKMCreateOFDPacket [15:13:59]OFDProtocolAddRootSTLVToBuf [15:13:59]FM_MakeSignedData [15:13:59]FM_MakeSignedData [15:13:59]SAM_PROTO_SignData [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 0D 01 02 [15:13:59]Write to MH i2c: E2 08 00 C7 11 80 0D 01 02 00 00 00 00 51 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=255 [15:14:00]MH_SAM_APDU [15:14: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 45 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A ED 02 00 35 04 06 00 C8 [15:14:00]Write to MH i2c: E2 02 01 C8 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 45 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A ED 02 00 35 04 06 00 C8 00 00 9A [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=10 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 0D 02 02 05 B2 8A F8 66 3B [15:14:00]Write to MH i2c: E2 0D 00 C9 11 80 0D 02 02 05 00 B2 8A F8 66 3B 00 00 33 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 0D 03 02 [15:14:00]Write to MH i2c: E2 08 00 CA 11 80 0D 03 02 00 00 00 00 56 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0B 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0B 00 CA 11 00 A1 78 C8 0C FA 79 6F 2D 90 00 53 [15:14:00]RAPDU: A1 78 C8 0C FA 79 6F 2D 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_SignData done [15:14:00]FM_MakeSignedData done [15:14:00]CreateOFDProtocolMessage [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 11 00 00 [15:14:00]Write to MH i2c: E2 08 00 CB 11 80 11 00 00 00 00 00 00 56 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 CB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [15:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:00]wFMCommunicate OK [15:14:00]CreateOFDProtocolMessage done [15:14:00]OFDSenderStorePacket 191818 [15:14:00]StoreOFDPacket docnum=191818 [15:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 DB 07 01 BA 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 45 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A ED 02 00 35 04 06 00 C8 B2 8A F8 66 3B A1 78 C8 0C FA 79 6F 2D [15:14:00]CheckFolder [15:14:00]dirname=/storage/ofd_packets [15:14:00]CheckFolder done [15:14:00]ProducePacketName [15:14:00]name=ofd_packets/00191818 [15:14:00]NVStorageSaveData ofd_packets/00191818 [15:14:00]File name is /storage/ofd_packets/00191818 [15:14:00]Write 301 bytes [15:14:00]NVStorageSaveData done [15:14:00]OFDSenderStorePacket done [15:14:00]KKMCreateOFDPacket done [15:14:00]NVStorageSaveData kkm_last_timestamp [15:14:00]File name is /storage/kkm_last_timestamp [15:14:00]Write 4 bytes [15:14:00]NVStorageSaveData done [15:14:00]ExternCall_PrintAddStr [15:14:00]wPrintStart [15:14:00]Write to MH i2c: 01 00 00 CC 11 DD [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 07 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 FF 0F F2 [15:14:00]RasterBufferAndPrint [15:14:00]line Счет N : (1)31123 [15:14:00]line ИНН: 02508201610067 [15:14:00]line Контрольно-Кассовый Чек [15:14:00]line ПРОДАЖА [15:14:00]line ТРК (МРК, ГНК) : 21 [15:14:00]line Товар: 2710124130 [15:14:00]line Аи-92-К-5 [15:14:00]line 10.470 * 66.90 [15:14:00]line = 700.44 [15:14:00]line НДС 12% НСП 1% [15:14:00]line > о реализуемом товаре [15:14:00]line ОКРУГЛЕНИЕ: -0.44 [15:14:00]line ИТОГО: 700.00 [15:14:00]line Внесено: 700.00 [15:14:00]line СДАЧА: 0.00 [15:14:00]line НСП 1% : 6.20 [15:14:00]line НДС 12% : 74.38 [15:14:00]line Наличными: 700.00 [15:14:00]line Безнал.: 0.00 [15:14:00]line Место: АЗС № 170 "Партнер Нефть" [15:14:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:14:00]line СНО: Общий режим [15:14:00]line Чек 181 26.10.2024 15:14 [15:14:00]line Смена: 541 ФФД: 1.0 [15:14:00]line ЗНМ: 0300000110 [15:14:00]line РНМ: 0000000000091776 [15:14:00]line Версия ККМ: 001 [15:14:00]line ФМ: 0000000000871754 [15:14:00]line ФД: 191818 [15:14:00]line ФПД: 220669161268795 [15:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191818&fm=220669161268795&tin=02508201610067®Number=0000000000091776&sum=70000 [15:14:00]OFD Sender: Processing packet 191818 [packets to send 75, broken 74] [15:14:00]ProducePacketName [15:14:00]name=ofd_packets/00191818 [15:14:00]OFD Sender: To server: pG, [15:14:00]CommunicateWithHost lk.salyk.kg:30040 [15:14:00]ConnectInit lk.salyk.kg [15:14:00]written 0, free lines is 4095 [15:14:00]Connected sock=6 [15:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 94 DB 07 01 BA 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 45 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A ED 02 00 35 04 06 00 C8 B2 8A F8 66 3B A1 78 C8 0C FA 79 6F 2D [15:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 CF BF 47 00 A8 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4A ED 02 00 F4 03 04 00 10 AC 1C 67 B6 04 01 00 00 92 A4 9E AB 92 0B 8D A8 [15:14:01]CommunicateWithHost err = 0 [15:14:01]CheckOFDResponse [15:14:01]1017 (14) - 77093643461234 [15:14:01]1041 (16) - 0000000000871754 [15:14:01]1040 (4) - 191818 [15:14:01]1012 (4) - 26.10.2024 08:45 [15:14:01]1206 (1) - 0 [15:14:01]OFD Sender: Remove packet 191818 [15:14:01]ProducePacketName [15:14:01]name=ofd_packets/00191818 [15:14:01]NVStorageDeleteData [15:14:01]Write to MH i2c: 01 00 00 F7 11 08 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 07 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 B8 0C D3 [15:14:01]RasterBufferAndPrint [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]written 0, free lines is 3263 [15:14:01]MH_Cut [15:14:01]Write to MH i2c: D1 01 00 FE 11 01 E1 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 01 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 01 00 FE 11 00 E0 [15:14:01]Write to MH i2c: 01 00 00 FF 11 10 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]OFD Sender: No OFD packet to send [15:14:02]*** Cut start [15:14:02]*** Partial cut [15:14:02]*** CUTSNS_PIN = 1 [15:14:02]*** CUTSNS_PIN = 0 [15:14:02]*** Brake cut motor [15:14:02]Read from MH i2c: 01 [15:14:02]MH_I2C_Read... [15:14:02]*** Stop cut motor [15:14:02]*** Cut end [15:14:02]Read from MH i2c: 01 07 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 FF 0F 25 [15:14:02]process_action close_receipt done [15:14:02]requested_data is exist [15:14:02]produce_requested_data [15:14:02]requested_item fm.sn is exist - process it [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 11 00 00 [15:14:02]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DF [15:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:14:02]wFMCommunicate OK [15:14:02]requested_item fd.num is exist - process it [15:14:02]SAM_PROTO_GetFieldsCounters [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 00 00 [15:14:02]Write to MH i2c: E2 08 00 01 12 80 13 00 00 00 00 00 00 8F [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 62 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 62 00 01 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetFieldsCounters done [15:14:02]requested_item shift.num is exist - process it [15:14:02]requested_item shift.opened is exist - process it [15:14:02]req_shift_opened [15:14:02]FM_GetShiftState [15:14:02]SAM_PROTO_GetShiftState [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 01 00 [15:14:02]Write to MH i2c: E2 08 00 02 12 80 13 01 00 00 00 00 00 91 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 02 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [15:14:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetShiftState done [15:14:02]FM_GetShiftState done [15:14:02]req_shift_opened done [15:14:02]requested_item shift.open_date is exist - process it [15:14:02]req_shift_open_date [15:14:02]req_shift_open_date done [15:14:02]produce_requested_data done [15:14:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191818,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:14:02]process_action_free close_receipt [15:14:02]json_value_free [15:14:02]json_value_free done [15:14:02]process_json_proto returns [15:14:02]Send response to host [15:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191818,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:14:02]free response buf [15:14:02]execute_script done [15:14:02]execute_script returns [15:14:02]free content buf [15:14:02]Sock 8.Close socket [15:14:02]Sock 8.Thread stoped [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]accept exits with 5 [15:15:36]New connection [15:15:36]New thread 3066817892 created [15:15:36]Thread 3066961252 joined [15:15:36]Waiting for new connection... [15:15:36] Sock 5.Parse request [15:15:36]Sock 5.Check first char [15:15:36]Sock 5.First char is OK [15:15:36]request: POST /json_proto HTTP/1.0 [15:15:36]Method: POST [15:15:36]URL: /json_proto [15:15:36]Method is POST - this is cgi request [15:15:36]url: /json_proto [15:15:36]query_string will be loaded in cgi processing [15:15:36]execute_cgi json_proto POST (null) [15:15:36]execute_cgi path=json_proto method=POST [15:15:36]POST find Content-Length [15:15:36]Host: 172.17.63.131:8080 [15:15:36]Content-Length: 681 [15:15:36]Content-Type: application/json [15:15:36] [15:15:36]POST finish read [15:15:36]Found Content-Length = 681 [15:15:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:36]execute_script... [15:15: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)31125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:36]POST & json_proto [15:15:36]process_json_proto [15:15:36]json parsed OK: [15:15:36]protocol is kg_v1.0 [15:15:36]action value=close_receipt [15:15:36]process_action close_receipt [15:15:36]cmd_close_receipt [15:15:36]MH_GetDate [15:15:36]Write to MH i2c: F0 00 00 03 12 04 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: F0 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: F0 09 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: F0 09 00 03 12 00 A7 07 1D 67 22 05 6E 64 38 [15:15:36]GetLastDocTimeStamp 1729955653 [15:15:36]current date 1729955751 [15:15:36]FM_GetShiftState [15:15:36]SAM_PROTO_GetShiftState [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 13 01 00 [15:15:36]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0E 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0C [15:15:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_GetShiftState done [15:15:36]FM_GetShiftState done [15:15:36]opened in 1729902770 [15:15:36]opened+sec_in_day 1729989170 [15:15:36]quantity*price = 100015 [15:15:36]sum+1 = 100017 [15:15:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 182 26.10.2024 15:15 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191819 ФПД: 198204145173497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191819&fm=198204145173497&tin=02508201610067®Number=0000000000091776&sum=100000 [15:15:37]StoreToDocumentArchive [15:15:37]shift 541 fd 191819 [15:15:37]save to /storage/0541/doc_00191819 [15:15:37]save last doc name /storage/0541/doc_00191819 to /storage/kkm_last_doc_name [15:15:37]save OK [15:15:37]Clear old archive folders... [15:15:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:37]tlvbuf is 019D5020 [15:15:37]SAM_PROTO_ClearQueue [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 09 00 00 [15:15:37]Write to MH i2c: E2 08 00 11 12 80 09 00 00 00 00 00 00 95 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [15:15:37]RAPDU: 90 00 [15:15:37]wFMCommunicate OK [15:15:37]SAM_PROTO_ClearQueue done [15:15:37]KKMCreateOFDPacket [15:15:37]OFDProtocolAddRootSTLVToBuf [15:15:37]FM_MakeSignedData [15:15:37]FM_MakeSignedData [15:15:37]SAM_PROTO_SignData [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 0D 01 02 [15:15:37]Write to MH i2c: E2 08 00 12 12 80 0D 01 02 00 00 00 00 9D [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [15:15:37]RAPDU: 90 00 [15:15:37]wFMCommunicate OK [15:15:37]wFMCommunicate request_size=255 [15:15:37]MH_SAM_APDU [15:15: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A7 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B ED 02 00 35 04 06 00 B4 [15:15:37]Write to MH i2c: E2 02 01 13 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A7 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B ED 02 00 35 04 06 00 B4 00 00 20 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [15:15:37]RAPDU: 90 00 [15:15:37]wFMCommunicate OK [15:15:37]wFMCommunicate request_size=10 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 0D 02 02 05 43 FF AA 83 F9 [15:15:37]Write to MH i2c: E2 0D 00 14 12 80 0D 02 02 05 00 43 FF AA 83 F9 00 00 12 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [15:15:37]RAPDU: 90 00 [15:15:37]wFMCommunicate OK [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 0D 03 02 [15:15:37]Write to MH i2c: E2 08 00 15 12 80 0D 03 02 00 00 00 00 A2 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 0B 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 0B 00 15 12 00 E6 08 5E 49 92 1A AD 75 90 00 06 [15:15:37]RAPDU: E6 08 5E 49 92 1A AD 75 90 00 [15:15:37]wFMCommunicate OK [15:15:37]SAM_PROTO_SignData done [15:15:37]FM_MakeSignedData done [15:15:37]CreateOFDProtocolMessage [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 11 00 00 [15:15:37]Write to MH i2c: E2 08 00 16 12 80 11 00 00 00 00 00 00 A2 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 17 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 17 00 16 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F5 [15:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:37]wFMCommunicate OK [15:15:37]CreateOFDProtocolMessage done [15:15:37]OFDSenderStorePacket 191819 [15:15:37]StoreOFDPacket docnum=191819 [15:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 CE 07 01 14 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A7 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B ED 02 00 35 04 06 00 B4 43 FF AA 83 F9 E6 08 5E 49 92 1A AD 75 [15:15:37]CheckFolder [15:15:37]dirname=/storage/ofd_packets [15:15:37]CheckFolder done [15:15:37]ProducePacketName [15:15:37]name=ofd_packets/00191819 [15:15:37]NVStorageSaveData ofd_packets/00191819 [15:15:37]File name is /storage/ofd_packets/00191819 [15:15:37]Write 301 bytes [15:15:37]NVStorageSaveData done [15:15:37]OFDSenderStorePacket done [15:15:37]KKMCreateOFDPacket done [15:15:37]NVStorageSaveData kkm_last_timestamp [15:15:37]File name is /storage/kkm_last_timestamp [15:15:37]Write 4 bytes [15:15:37]NVStorageSaveData done [15:15:37]ExternCall_PrintAddStr [15:15:37]wPrintStart [15:15:37]Write to MH i2c: 01 00 00 17 12 29 [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [15:15:37]RasterBufferAndPrint [15:15:37]line Счет N : (1)31125 [15:15:37]line ИНН: 02508201610067 [15:15:37]line Контрольно-Кассовый Чек [15:15:37]line ПРОДАЖА [15:15:37]line ТРК (МРК, ГНК) : 21 [15:15:37]line Товар: 2710124130 [15:15:37]line Аи-92-К-5 [15:15:37]line 14.950 * 66.90 [15:15:37]line = 1000.16 [15:15:37]line НДС 12% НСП 1% [15:15:37]line > о реализуемом товаре [15:15:37]line ОКРУГЛЕНИЕ: -0.16 [15:15:37]line ИТОГО: 1000.00 [15:15:37]line Внесено: 1000.00 [15:15:37]line СДАЧА: 0.00 [15:15:37]line НСП 1% : 8.85 [15:15:37]line НДС 12% : 106.21 [15:15:37]line Наличными: 1000.00 [15:15:37]line Безнал.: 0.00 [15:15:37]line Место: АЗС № 170 "Партнер Нефть" [15:15:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:15:37]line СНО: Общий режим [15:15:37]line Чек 182 26.10.2024 15:15 [15:15:37]line Смена: 541 ФФД: 1.0 [15:15:37]line ЗНМ: 0300000110 [15:15:37]line РНМ: 0000000000091776 [15:15:37]line Версия ККМ: 001 [15:15:37]line ФМ: 0000000000871754 [15:15:37]line ФД: 191819 [15:15:37]line ФПД: 198204145173497 [15:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191819&fm=198204145173497&tin=02508201610067®Number=0000000000091776&sum=100000 [15:15:38]OFD Sender: Processing packet 191819 [packets to send 75, broken 74] [15:15:38]ProducePacketName [15:15:38]name=ofd_packets/00191819 [15:15:38]OFD Sender: To server: pG, [15:15:38]CommunicateWithHost lk.salyk.kg:30040 [15:15:38]ConnectInit lk.salyk.kg [15:15:38]written 0, free lines is 4095 [15:15:38]Connected sock=8 [15:15:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C5 CE 07 01 14 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 A7 07 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B ED 02 00 35 04 06 00 B4 43 FF AA 83 F9 E6 08 5E 49 92 1A AD 75 [15:15:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 B2 47 00 6B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4B ED 02 00 F4 03 04 00 72 AC 1C 67 B6 04 01 00 00 A8 FE CE 1E AA F9 36 B7 [15:15:38]CommunicateWithHost err = 0 [15:15:38]CheckOFDResponse [15:15:38]1017 (14) - 77093643461234 [15:15:38]1041 (16) - 0000000000871754 [15:15:38]1040 (4) - 191819 [15:15:38]1012 (4) - 26.10.2024 08:46 [15:15:38]1206 (1) - 0 [15:15:38]OFD Sender: Remove packet 191819 [15:15:38]ProducePacketName [15:15:38]name=ofd_packets/00191819 [15:15:38]NVStorageDeleteData [15:15:38]Write to MH i2c: 01 00 00 42 12 54 [15:15:38]Write i2c OK [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: 01 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: 01 07 00 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 BF 0C 26 [15:15:38]RasterBufferAndPrint [15:15:38]line [15:15:38]line [15:15:38]line [15:15:38]line [15:15:38]line [15:15:38]written 0, free lines is 3270 [15:15:38]MH_Cut [15:15:38]Write to MH i2c: D1 01 00 49 12 01 2D [15:15:38]Write i2c OK [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: D1 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: D1 01 00 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: D1 01 00 49 12 00 2C [15:15:38]Write to MH i2c: 01 00 00 4A 12 5C [15:15:38]Write i2c OK [15:15:38]MH_I2C_Read... [15:15:39]OFD Sender: No OFD packet to send [15:15:39]*** Cut start [15:15:39]*** Partial cut [15:15:39]*** CUTSNS_PIN = 1 [15:15:39]*** CUTSNS_PIN = 0 [15:15:39]*** Brake cut motor [15:15:40]Read from MH i2c: 01 [15:15:40]MH_I2C_Read... [15:15:40]*** Stop cut motor [15:15:40]*** Cut end [15:15:40]Read from MH i2c: 01 07 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 FF 0F 71 [15:15:40]process_action close_receipt done [15:15:40]requested_data is exist [15:15:40]produce_requested_data [15:15:40]requested_item fm.sn is exist - process it [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 11 00 00 [15:15:40]Write to MH i2c: E2 08 00 4B 12 80 11 00 00 00 00 00 00 D7 [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 17 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 17 00 4B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2A [15:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:15:40]wFMCommunicate OK [15:15:40]requested_item fd.num is exist - process it [15:15:40]SAM_PROTO_GetFieldsCounters [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 13 00 00 [15:15:40]Write to MH i2c: E2 08 00 4C 12 80 13 00 00 00 00 00 00 DA [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 62 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 62 00 4C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:40]wFMCommunicate OK [15:15:40]SAM_PROTO_GetFieldsCounters done [15:15:40]requested_item shift.num is exist - process it [15:15:40]requested_item shift.opened is exist - process it [15:15:40]req_shift_opened [15:15:40]FM_GetShiftState [15:15:40]SAM_PROTO_GetShiftState [15:15:40]wFMCommunicate request_size=4 [15:15:40]MH_SAM_APDU [15:15:40]CAPDU: 80 13 01 00 [15:15:40]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [15:15:40]Write i2c OK [15:15:40]MH_I2C_Read... [15:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:40]Read from MH i2c: E2 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 0E 00 [15:15:40]MH_I2C_Read... [15:15:40]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 55 [15:15:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:15:40]wFMCommunicate OK [15:15:40]SAM_PROTO_GetShiftState done [15:15:40]FM_GetShiftState done [15:15:40]req_shift_opened done [15:15:40]requested_item shift.open_date is exist - process it [15:15:40]req_shift_open_date [15:15:40]req_shift_open_date done [15:15:40]produce_requested_data done [15:15:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191819,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:15:40]process_action_free close_receipt [15:15:40]json_value_free [15:15:40]json_value_free done [15:15:40]process_json_proto returns [15:15:40]Send response to host [15:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191819,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:15:40]free response buf [15:15:40]execute_script done [15:15:40]execute_script returns [15:15:40]free content buf [15:15:40]Sock 5.Close socket [15:15:40]Sock 5.Thread stoped [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:09]accept exits with 6 [15:17:09]New connection [15:17:09]New thread 3066961252 created [15:17:09]Thread 3066817892 joined [15:17:09]Waiting for new connection... [15:17:09] Sock 6.Parse request [15:17:09]Sock 6.Check first char [15:17:09]Sock 6.First char is OK [15:17:09]request: POST /json_proto HTTP/1.0 [15:17:09]Method: POST [15:17:09]URL: /json_proto [15:17:09]Method is POST - this is cgi request [15:17:09]url: /json_proto [15:17:09]query_string will be loaded in cgi processing [15:17:09]execute_cgi json_proto POST (null) [15:17:09]execute_cgi path=json_proto method=POST [15:17:09]POST find Content-Length [15:17:09]Host: 172.17.63.131:8080 [15:17:09]Content-Length: 676 [15:17:09]Content-Type: application/json [15:17:09] [15:17:09]POST finish read [15:17:09]Found Content-Length = 676 [15:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:09]execute_script... [15:17:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.400, "sum" : 160.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:09]POST & json_proto [15:17:09]process_json_proto [15:17:09]json parsed OK: [15:17:09]protocol is kg_v1.0 [15:17:09]action value=close_receipt [15:17:09]process_action close_receipt [15:17:09]cmd_close_receipt [15:17:09]MH_GetDate [15:17:09]Write to MH i2c: F0 00 00 4E 12 4F [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: F0 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: F0 09 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: F0 09 00 4E 12 00 04 08 1D 67 22 05 6E 64 E1 [15:17:09]GetLastDocTimeStamp 1729955751 [15:17:09]current date 1729955844 [15:17:09]FM_GetShiftState [15:17:09]SAM_PROTO_GetShiftState [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 13 01 00 [15:17:09]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 0E 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 57 [15:17:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:17:09]wFMCommunicate OK [15:17:09]SAM_PROTO_GetShiftState done [15:17:09]FM_GetShiftState done [15:17:09]opened in 1729902770 [15:17:09]opened+sec_in_day 1729989170 [15:17:09]quantity*price = 16056 [15:17:09]sum+1 = 16057 [15:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 17.05 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 183 26.10.2024 15:17 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191820 ФПД: 147190506148843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191820&fm=147190506148843&tin=02508201610067®Number=0000000000091776&sum=16000 [15:17:10]StoreToDocumentArchive [15:17:10]shift 541 fd 191820 [15:17:10]save to /storage/0541/doc_00191820 [15:17:10]save last doc name /storage/0541/doc_00191820 to /storage/kkm_last_doc_name [15:17:10]save OK [15:17:10]Clear old archive folders... [15:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:10]tlvbuf is 01614320 [15:17:10]SAM_PROTO_ClearQueue [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 09 00 00 [15:17:10]Write to MH i2c: E2 08 00 5C 12 80 09 00 00 00 00 00 00 E0 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [15:17:10]RAPDU: 90 00 [15:17:10]wFMCommunicate OK [15:17:10]SAM_PROTO_ClearQueue done [15:17:10]KKMCreateOFDPacket [15:17:10]OFDProtocolAddRootSTLVToBuf [15:17:10]FM_MakeSignedData [15:17:10]FM_MakeSignedData [15:17:10]SAM_PROTO_SignData [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 0D 01 02 [15:17:10]Write to MH i2c: E2 08 00 5D 12 80 0D 01 02 00 00 00 00 E8 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [15:17:10]RAPDU: 90 00 [15:17:10]wFMCommunicate OK [15:17:10]wFMCommunicate request_size=255 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 04 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C ED 02 00 35 04 06 00 85 [15:17:10]Write to MH i2c: E2 02 01 5E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 04 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C ED 02 00 35 04 06 00 85 00 00 71 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:11]Read from MH i2c: E2 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 03 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [15:17:11]RAPDU: 90 00 [15:17:11]wFMCommunicate OK [15:17:11]wFMCommunicate request_size=10 [15:17:11]MH_SAM_APDU [15:17:11]CAPDU: 80 0D 02 02 05 DE 75 D5 53 EB [15:17:11]Write to MH i2c: E2 0D 00 5F 12 80 0D 02 02 05 00 DE 75 D5 53 EB 00 00 5B [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:11]Read from MH i2c: E2 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 03 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [15:17:11]RAPDU: 90 00 [15:17:11]wFMCommunicate OK [15:17:11]wFMCommunicate request_size=4 [15:17:11]MH_SAM_APDU [15:17:11]CAPDU: 80 0D 03 02 [15:17:11]Write to MH i2c: E2 08 00 60 12 80 0D 03 02 00 00 00 00 ED [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:11]Read from MH i2c: E2 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 0B 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 0B 00 60 12 00 C2 FA 3F 88 9D 59 FA 86 90 00 E7 [15:17:11]RAPDU: C2 FA 3F 88 9D 59 FA 86 90 00 [15:17:11]wFMCommunicate OK [15:17:11]SAM_PROTO_SignData done [15:17:11]FM_MakeSignedData done [15:17:11]CreateOFDProtocolMessage [15:17:11]wFMCommunicate request_size=4 [15:17:11]MH_SAM_APDU [15:17:11]CAPDU: 80 11 00 00 [15:17:11]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:11]Read from MH i2c: E2 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 17 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [15:17:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:17:11]wFMCommunicate OK [15:17:11]CreateOFDProtocolMessage done [15:17:11]OFDSenderStorePacket 191820 [15:17:11]StoreOFDPacket docnum=191820 [15:17:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 27 07 01 A7 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 04 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C ED 02 00 35 04 06 00 85 DE 75 D5 53 EB C2 FA 3F 88 9D 59 FA 86 [15:17:11]CheckFolder [15:17:11]dirname=/storage/ofd_packets [15:17:11]CheckFolder done [15:17:11]ProducePacketName [15:17:11]name=ofd_packets/00191820 [15:17:11]NVStorageSaveData ofd_packets/00191820 [15:17:11]File name is /storage/ofd_packets/00191820 [15:17:11]Write 301 bytes [15:17:11]NVStorageSaveData done [15:17:11]OFDSenderStorePacket done [15:17:11]KKMCreateOFDPacket done [15:17:11]NVStorageSaveData kkm_last_timestamp [15:17:11]File name is /storage/kkm_last_timestamp [15:17:11]Write 4 bytes [15:17:11]NVStorageSaveData done [15:17:11]ExternCall_PrintAddStr [15:17:11]wPrintStart [15:17:11]Write to MH i2c: 01 00 00 62 12 74 [15:17:11]Write i2c OK [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: 01 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: 01 07 00 [15:17:11]MH_I2C_Read... [15:17:11]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [15:17:11]RasterBufferAndPrint [15:17:11]line Счет N : (1)31126 [15:17:11]line ИНН: 02508201610067 [15:17:11]line Контрольно-Кассовый Чек [15:17:11]line ПРОДАЖА [15:17:11]line ТРК (МРК, ГНК) : 12 [15:17:11]line Товар: 2710124130 [15:17:11]line Аи-92-К-5 [15:17:11]line 2.400 * 66.90 [15:17:11]line = 160.56 [15:17:11]line НДС 12% НСП 1% [15:17:11]line > о реализуемом товаре [15:17:11]line ОКРУГЛЕНИЕ: -0.56 [15:17:11]line ИТОГО: 160.00 [15:17:11]line Внесено: 160.00 [15:17:11]line СДАЧА: 0.00 [15:17:11]line НСП 1% : 1.42 [15:17:11]line НДС 12% : 17.05 [15:17:11]line Наличными: 160.00 [15:17:11]line Безнал.: 0.00 [15:17:11]line Место: АЗС № 170 "Партнер Нефть" [15:17:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:17:11]line СНО: Общий режим [15:17:11]line Чек 183 26.10.2024 15:17 [15:17:11]line Смена: 541 ФФД: 1.0 [15:17:11]line ЗНМ: 0300000110 [15:17:11]line РНМ: 0000000000091776 [15:17:11]line Версия ККМ: 001 [15:17:11]line ФМ: 0000000000871754 [15:17:11]line ФД: 191820 [15:17:11]line ФПД: 147190506148843 [15:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T151724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191820&fm=147190506148843&tin=02508201610067®Number=0000000000091776&sum=16000 [15:17:11]OFD Sender: Processing packet 191820 [packets to send 75, broken 74] [15:17:11]ProducePacketName [15:17:11]name=ofd_packets/00191820 [15:17:11]OFD Sender: To server: pG, [15:17:11]CommunicateWithHost lk.salyk.kg:30040 [15:17:11]ConnectInit lk.salyk.kg [15:17:11]written 0, free lines is 4095 [15:17:11]Connected sock=8 [15:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2C 27 07 01 A7 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B8 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 04 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C ED 02 00 35 04 06 00 85 DE 75 D5 53 EB C2 FA 3F 88 9D 59 FA 86 [15:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 9D 47 00 77 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4C ED 02 00 F4 03 04 00 CF AC 1C 67 B6 04 01 00 00 BF DF 27 F3 8F 20 CF 3F [15:17:11]CommunicateWithHost err = 0 [15:17:11]CheckOFDResponse [15:17:11]1017 (14) - 77093643461234 [15:17:11]1041 (16) - 0000000000871754 [15:17:11]1040 (4) - 191820 [15:17:11]1012 (4) - 26.10.2024 08:48 [15:17:11]1206 (1) - 0 [15:17:11]OFD Sender: Remove packet 191820 [15:17:11]ProducePacketName [15:17:11]name=ofd_packets/00191820 [15:17:11]NVStorageDeleteData [15:17:12]Write to MH i2c: 01 00 00 8D 12 9F [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: 01 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: 01 07 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 B8 0C 6A [15:17:12]RasterBufferAndPrint [15:17:12]line [15:17:12]line [15:17:12]line [15:17:12]line [15:17:12]line [15:17:12]written 0, free lines is 3263 [15:17:12]MH_Cut [15:17:12]Write to MH i2c: D1 01 00 94 12 01 78 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: D1 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: D1 01 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: D1 01 00 94 12 00 77 [15:17:12]Write to MH i2c: 01 00 00 95 12 A7 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]OFD Sender: No OFD packet to send [15:17:12]*** Cut start [15:17:12]*** Partial cut [15:17:12]*** CUTSNS_PIN = 1 [15:17:12]*** CUTSNS_PIN = 0 [15:17:13]*** Brake cut motor [15:17:13]Read from MH i2c: 01 [15:17:13]MH_I2C_Read... [15:17:13]*** Stop cut motor [15:17:13]*** Cut end [15:17:13]Read from MH i2c: 01 07 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 FF 0F BC [15:17:13]process_action close_receipt done [15:17:13]requested_data is exist [15:17:13]produce_requested_data [15:17:13]requested_item fm.sn is exist - process it [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 11 00 00 [15:17:13]Write to MH i2c: E2 08 00 96 12 80 11 00 00 00 00 00 00 22 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 17 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 17 00 96 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [15:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:17:13]wFMCommunicate OK [15:17:13]requested_item fd.num is exist - process it [15:17:13]SAM_PROTO_GetFieldsCounters [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 13 00 00 [15:17:13]Write to MH i2c: E2 08 00 97 12 80 13 00 00 00 00 00 00 25 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 62 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 62 00 97 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [15:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:13]wFMCommunicate OK [15:17:13]SAM_PROTO_GetFieldsCounters done [15:17:13]requested_item shift.num is exist - process it [15:17:13]requested_item shift.opened is exist - process it [15:17:13]req_shift_opened [15:17:13]FM_GetShiftState [15:17:13]SAM_PROTO_GetShiftState [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 13 01 00 [15:17:13]Write to MH i2c: E2 08 00 98 12 80 13 01 00 00 00 00 00 27 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 0E 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 0E 00 98 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A0 [15:17:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:17:13]wFMCommunicate OK [15:17:13]SAM_PROTO_GetShiftState done [15:17:13]FM_GetShiftState done [15:17:13]req_shift_opened done [15:17:13]requested_item shift.open_date is exist - process it [15:17:13]req_shift_open_date [15:17:13]req_shift_open_date done [15:17:13]produce_requested_data done [15:17:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191820,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:17:13]process_action_free close_receipt [15:17:13]json_value_free [15:17:13]json_value_free done [15:17:13]process_json_proto returns [15:17:13]Send response to host [15:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191820,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:17:13]free response buf [15:17:13]execute_script done [15:17:13]execute_script returns [15:17:13]free content buf [15:17:13]Sock 6.Close socket [15:17:13]Sock 6.Thread stoped [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]accept exits with 5 [15:19:47]New connection [15:19:47]New thread 3066817892 created [15:19:47]Thread 3066961252 joined [15:19:47]Waiting for new connection... [15:19:47] Sock 5.Parse request [15:19:47]Sock 5.Check first char [15:19:47]Sock 5.First char is OK [15:19:47]request: POST /json_proto HTTP/1.0 [15:19:47]Method: POST [15:19:47]URL: /json_proto [15:19:47]Method is POST - this is cgi request [15:19:47]url: /json_proto [15:19:47]query_string will be loaded in cgi processing [15:19:47]execute_cgi json_proto POST (null) [15:19:47]execute_cgi path=json_proto method=POST [15:19:47]POST find Content-Length [15:19:47]Host: 172.17.63.131:8080 [15:19:47]Content-Length: 674 [15:19:47]Content-Type: application/json [15:19:47] [15:19:47]POST finish read [15:19:47]Found Content-Length = 674 [15:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.270, "sum" : 18.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 18.00, "payments": [ { "type": 0, "sum" : 18.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:47]execute_script... [15:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.270, "sum" : 18.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 18.00, "payments": [ { "type": 0, "sum" : 18.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:47]POST & json_proto [15:19:47]process_json_proto [15:19:47]json parsed OK: [15:19:47]protocol is kg_v1.0 [15:19:47]action value=close_receipt [15:19:47]process_action close_receipt [15:19:47]cmd_close_receipt [15:19:47]MH_GetDate [15:19:47]Write to MH i2c: F0 00 00 99 12 9A [15:19:47]Write i2c OK [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: F0 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: F0 09 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: F0 09 00 99 12 00 A2 08 1D 67 22 05 6E 64 CA [15:19:47]GetLastDocTimeStamp 1729955844 [15:19:47]current date 1729956002 [15:19:47]FM_GetShiftState [15:19:47]SAM_PROTO_GetShiftState [15:19:47]wFMCommunicate request_size=4 [15:19:47]MH_SAM_APDU [15:19:47]CAPDU: 80 13 01 00 [15:19:47]Write to MH i2c: E2 08 00 9A 12 80 13 01 00 00 00 00 00 29 [15:19:47]Write i2c OK [15:19:47]MH_I2C_Read... [15:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:47]Read from MH i2c: E2 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 0E 00 [15:19:47]MH_I2C_Read... [15:19:47]Read from MH i2c: E2 0E 00 9A 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A2 [15:19:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:19:47]wFMCommunicate OK [15:19:47]SAM_PROTO_GetShiftState done [15:19:47]FM_GetShiftState done [15:19:47]opened in 1729902770 [15:19:47]opened+sec_in_day 1729989170 [15:19:47]quantity*price = 1806 [15:19:47]sum+1 = 1807 [15:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 18.00 Внесено: 1000.00 СДАЧА: 982.00 НСП 1% : 0.16 НДС 12% : 1.92 Наличными: 18.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 184 26.10.2024 15:20 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191821 ФПД: 63575679133555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191821&fm=63575679133555&tin=02508201610067®Number=0000000000091776&sum=1800 [15:19:48]StoreToDocumentArchive [15:19:48]shift 541 fd 191821 [15:19:48]save to /storage/0541/doc_00191821 [15:19:48]save last doc name /storage/0541/doc_00191821 to /storage/kkm_last_doc_name [15:19:48]save OK [15:19:48]Clear old archive folders... [15:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:48]tlvbuf is 0183C6E0 [15:19:48]SAM_PROTO_ClearQueue [15:19:48]wFMCommunicate request_size=4 [15:19:48]MH_SAM_APDU [15:19:48]CAPDU: 80 09 00 00 [15:19:48]Write to MH i2c: E2 08 00 A7 12 80 09 00 00 00 00 00 00 2B [15:19:48]Write i2c OK [15:19:48]MH_I2C_Read... [15:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:48]Read from MH i2c: E2 [15:19:48]MH_I2C_Read... [15:19:48]Read from MH i2c: E2 03 00 [15:19:48]MH_I2C_Read... [15:19:48]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [15:19:48]RAPDU: 90 00 [15:19:48]wFMCommunicate OK [15:19:48]SAM_PROTO_ClearQueue done [15:19:48]KKMCreateOFDPacket [15:19:48]OFDProtocolAddRootSTLVToBuf [15:19:48]FM_MakeSignedData [15:19:48]FM_MakeSignedData [15:19:48]SAM_PROTO_SignData [15:19:48]wFMCommunicate request_size=4 [15:19:48]MH_SAM_APDU [15:19:48]CAPDU: 80 0D 01 02 [15:19:48]Write to MH i2c: E2 08 00 A8 12 80 0D 01 02 00 00 00 00 33 [15:19:48]Write i2c OK [15:19:48]MH_I2C_Read... [15:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:48]Read from MH i2c: E2 [15:19:48]MH_I2C_Read... [15:19:48]Read from MH i2c: E2 03 00 [15:19:48]MH_I2C_Read... [15:19:48]Read from MH i2c: E2 03 00 A8 12 00 90 00 2E [15:19:48]RAPDU: 90 00 [15:19:48]wFMCommunicate OK [15:19:48]wFMCommunicate request_size=255 [15:19:48]MH_SAM_APDU [15:19:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 00 00 00 00 00 07 04 06 00 08 07 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 A2 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D ED 02 00 35 04 06 00 39 [15:19:48]Write to MH i2c: E2 02 01 A9 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 00 00 00 00 00 07 04 06 00 08 07 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 A2 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D ED 02 00 35 04 06 00 39 00 00 0A [15:19:48]Write i2c OK [15:19:48]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 03 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 03 00 A9 12 00 90 00 2F [15:19:49]RAPDU: 90 00 [15:19:49]wFMCommunicate OK [15:19:49]wFMCommunicate request_size=10 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 0D 02 02 05 D2 5D C5 67 73 [15:19:49]Write to MH i2c: E2 0D 00 AA 12 80 0D 02 02 05 00 D2 5D C5 67 73 00 00 0E [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 03 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 03 00 AA 12 00 90 00 30 [15:19:49]RAPDU: 90 00 [15:19:49]wFMCommunicate OK [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 0D 03 02 [15:19:49]Write to MH i2c: E2 08 00 AB 12 80 0D 03 02 00 00 00 00 38 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0B 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 0B 00 AB 12 00 D2 BE 70 D2 58 7E 6C 90 90 00 DD [15:19:49]RAPDU: D2 BE 70 D2 58 7E 6C 90 90 00 [15:19:49]wFMCommunicate OK [15:19:49]SAM_PROTO_SignData done [15:19:49]FM_MakeSignedData done [15:19:49]CreateOFDProtocolMessage [15:19:49]wFMCommunicate request_size=4 [15:19:49]MH_SAM_APDU [15:19:49]CAPDU: 80 11 00 00 [15:19:49]Write to MH i2c: E2 08 00 AC 12 80 11 00 00 00 00 00 00 38 [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:49]Read from MH i2c: E2 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 17 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: E2 17 00 AC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8B [15:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:49]wFMCommunicate OK [15:19:49]CreateOFDProtocolMessage done [15:19:49]OFDSenderStorePacket 191821 [15:19:49]StoreOFDPacket docnum=191821 [15:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB CD 07 01 AE 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 00 00 00 00 00 07 04 06 00 08 07 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 A2 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D ED 02 00 35 04 06 00 39 D2 5D C5 67 73 D2 BE 70 D2 58 7E 6C 90 [15:19:49]CheckFolder [15:19:49]dirname=/storage/ofd_packets [15:19:49]CheckFolder done [15:19:49]ProducePacketName [15:19:49]name=ofd_packets/00191821 [15:19:49]NVStorageSaveData ofd_packets/00191821 [15:19:49]File name is /storage/ofd_packets/00191821 [15:19:49]Write 301 bytes [15:19:49]NVStorageSaveData done [15:19:49]OFDSenderStorePacket done [15:19:49]KKMCreateOFDPacket done [15:19:49]NVStorageSaveData kkm_last_timestamp [15:19:49]File name is /storage/kkm_last_timestamp [15:19:49]Write 4 bytes [15:19:49]NVStorageSaveData done [15:19:49]ExternCall_PrintAddStr [15:19:49]wPrintStart [15:19:49]Write to MH i2c: 01 00 00 AD 12 BF [15:19:49]Write i2c OK [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: 01 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: 01 07 00 [15:19:49]MH_I2C_Read... [15:19:49]Read from MH i2c: 01 07 00 AD 12 00 00 00 00 00 FF 0F D4 [15:19:49]RasterBufferAndPrint [15:19:49]line Счет N : (1)31127 [15:19:49]line ИНН: 02508201610067 [15:19:49]line Контрольно-Кассовый Чек [15:19:49]line ПРОДАЖА [15:19:49]line ТРК (МРК, ГНК) : 12 [15:19:49]line Товар: 2710124130 [15:19:49]line Аи-92-К-5 [15:19:49]line 0.270 * 66.90 [15:19:49]line = 18.06 [15:19:49]line НДС 12% НСП 1% [15:19:49]line > о реализуемом товаре [15:19:49]line ОКРУГЛЕНИЕ: -0.06 [15:19:49]line ИТОГО: 18.00 [15:19:49]line Внесено: 1000.00 [15:19:49]line СДАЧА: 982.00 [15:19:49]line НСП 1% : 0.16 [15:19:49]line НДС 12% : 1.92 [15:19:49]line Наличными: 18.00 [15:19:49]line Безнал.: 0.00 [15:19:49]line Место: АЗС № 170 "Партнер Нефть" [15:19:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:19:49]line СНО: Общий режим [15:19:49]line Чек 184 26.10.2024 15:20 [15:19:49]line Смена: 541 ФФД: 1.0 [15:19:49]line ЗНМ: 0300000110 [15:19:49]line РНМ: 0000000000091776 [15:19:49]line Версия ККМ: 001 [15:19:49]line ФМ: 0000000000871754 [15:19:49]line ФД: 191821 [15:19:49]line ФПД: 63575679133555 [15:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152002&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191821&fm=63575679133555&tin=02508201610067®Number=0000000000091776&sum=1800 [15:19:49]OFD Sender: Processing packet 191821 [packets to send 75, broken 74] [15:19:49]ProducePacketName [15:19:49]name=ofd_packets/00191821 [15:19:49]OFD Sender: To server: pG, [15:19:49]CommunicateWithHost lk.salyk.kg:30040 [15:19:49]ConnectInit lk.salyk.kg [15:19:49]written 0, free lines is 4095 [15:19:49]Connected sock=9 [15:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BB CD 07 01 AE 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0E 01 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 07 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 00 00 00 00 00 07 04 06 00 08 07 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 A2 08 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D ED 02 00 35 04 06 00 39 D2 5D C5 67 73 D2 BE 70 D2 58 7E 6C 90 [15:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 DC 47 00 38 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4D ED 02 00 F4 03 04 00 6D AD 1C 67 B6 04 01 00 00 A2 0E 78 61 8D ED 21 78 [15:19:49]CommunicateWithHost err = 0 [15:19:49]CheckOFDResponse [15:19:49]1017 (14) - 77093643461234 [15:19:49]1041 (16) - 0000000000871754 [15:19:49]1040 (4) - 191821 [15:19:49]1012 (4) - 26.10.2024 08:50 [15:19:49]1206 (1) - 0 [15:19:49]OFD Sender: Remove packet 191821 [15:19:49]ProducePacketName [15:19:49]name=ofd_packets/00191821 [15:19:49]NVStorageDeleteData [15:19:50]Write to MH i2c: 01 00 00 D8 12 EA [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 07 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 B9 0C B6 [15:19:50]RasterBufferAndPrint [15:19:50]line [15:19:50]line [15:19:50]line [15:19:50]line [15:19:50]line [15:19:50]written 0, free lines is 3264 [15:19:50]MH_Cut [15:19:50]Write to MH i2c: D1 01 00 DF 12 01 C3 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: D1 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: D1 01 00 [15:19:50]MH_I2C_Read... [15:19:50]Read from MH i2c: D1 01 00 DF 12 00 C2 [15:19:50]Write to MH i2c: 01 00 00 E0 12 F2 [15:19:50]Write i2c OK [15:19:50]MH_I2C_Read... [15:19:50]OFD Sender: No OFD packet to send [15:19:50]*** Cut start [15:19:50]*** Partial cut [15:19:50]*** CUTSNS_PIN = 1 [15:19:50]*** CUTSNS_PIN = 0 [15:19:51]*** Brake cut motor [15:19:51]Read from MH i2c: 01 [15:19:51]MH_I2C_Read... [15:19:51]*** Stop cut motor [15:19:51]*** Cut end [15:19:51]Read from MH i2c: 01 07 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: 01 07 00 E0 12 00 00 00 00 00 FF 0F 07 [15:19:51]process_action close_receipt done [15:19:51]requested_data is exist [15:19:51]produce_requested_data [15:19:51]requested_item fm.sn is exist - process it [15:19:51]wFMCommunicate request_size=4 [15:19:51]MH_SAM_APDU [15:19:51]CAPDU: 80 11 00 00 [15:19:51]Write to MH i2c: E2 08 00 E1 12 80 11 00 00 00 00 00 00 6D [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:51]Read from MH i2c: E2 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 17 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 17 00 E1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C0 [15:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:19:51]wFMCommunicate OK [15:19:51]requested_item fd.num is exist - process it [15:19:51]SAM_PROTO_GetFieldsCounters [15:19:51]wFMCommunicate request_size=4 [15:19:51]MH_SAM_APDU [15:19:51]CAPDU: 80 13 00 00 [15:19:51]Write to MH i2c: E2 08 00 E2 12 80 13 00 00 00 00 00 00 70 [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:51]Read from MH i2c: E2 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 62 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 62 00 E2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [15:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:51]wFMCommunicate OK [15:19:51]SAM_PROTO_GetFieldsCounters done [15:19:51]requested_item shift.num is exist - process it [15:19:51]requested_item shift.opened is exist - process it [15:19:51]req_shift_opened [15:19:51]FM_GetShiftState [15:19:51]SAM_PROTO_GetShiftState [15:19:51]wFMCommunicate request_size=4 [15:19:51]MH_SAM_APDU [15:19:51]CAPDU: 80 13 01 00 [15:19:51]Write to MH i2c: E2 08 00 E3 12 80 13 01 00 00 00 00 00 72 [15:19:51]Write i2c OK [15:19:51]MH_I2C_Read... [15:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:51]Read from MH i2c: E2 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 0E 00 [15:19:51]MH_I2C_Read... [15:19:51]Read from MH i2c: E2 0E 00 E3 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EB [15:19:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:19:51]wFMCommunicate OK [15:19:51]SAM_PROTO_GetShiftState done [15:19:51]FM_GetShiftState done [15:19:51]req_shift_opened done [15:19:51]requested_item shift.open_date is exist - process it [15:19:51]req_shift_open_date [15:19:51]req_shift_open_date done [15:19:51]produce_requested_data done [15:19:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191821,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:19:51]process_action_free close_receipt [15:19:51]json_value_free [15:19:51]json_value_free done [15:19:51]process_json_proto returns [15:19:51]Send response to host [15:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191821,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:19:51]free response buf [15:19:51]execute_script done [15:19:51]execute_script returns [15:19:51]free content buf [15:19:51]Sock 5.Close socket [15:19:51]Sock 5.Thread stoped [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:36]accept exits with 6 [15:21:36]New connection [15:21:36]New thread 3066961252 created [15:21:36]Thread 3066817892 joined [15:21:36]Waiting for new connection... [15:21:36] Sock 6.Parse request [15:21:36]Sock 6.Check first char [15:21:36]Sock 6.First char is OK [15:21:36]request: POST /json_proto HTTP/1.0 [15:21:36]Method: POST [15:21:36]URL: /json_proto [15:21:36]Method is POST - this is cgi request [15:21:36]url: /json_proto [15:21:36]query_string will be loaded in cgi processing [15:21:36]execute_cgi json_proto POST (null) [15:21:36]execute_cgi path=json_proto method=POST [15:21:36]POST find Content-Length [15:21:36]Host: 172.17.63.131:8080 [15:21:36]Content-Length: 676 [15:21:36]Content-Type: application/json [15:21:36] [15:21:36]POST finish read [15:21:36]Found Content-Length = 676 [15:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:36]execute_script... [15:21: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)31128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:36]POST & json_proto [15:21:36]process_json_proto [15:21:36]json parsed OK: [15:21:36]protocol is kg_v1.0 [15:21:36]action value=close_receipt [15:21:36]process_action close_receipt [15:21:36]cmd_close_receipt [15:21:36]MH_GetDate [15:21:36]Write to MH i2c: F0 00 00 E4 12 E5 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 09 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: F0 09 00 E4 12 00 10 09 1D 67 22 05 6E 64 84 [15:21:36]GetLastDocTimeStamp 1729956002 [15:21:36]current date 1729956112 [15:21:36]FM_GetShiftState [15:21:36]SAM_PROTO_GetShiftState [15:21:36]wFMCommunicate request_size=4 [15:21:36]MH_SAM_APDU [15:21:36]CAPDU: 80 13 01 00 [15:21:36]Write to MH i2c: E2 08 00 E5 12 80 13 01 00 00 00 00 00 74 [15:21:36]Write i2c OK [15:21:36]MH_I2C_Read... [15:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:36]Read from MH i2c: E2 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0E 00 [15:21:36]MH_I2C_Read... [15:21:36]Read from MH i2c: E2 0E 00 E5 12 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 ED [15:21:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:21:36]wFMCommunicate OK [15:21:36]SAM_PROTO_GetShiftState done [15:21:36]FM_GetShiftState done [15:21:36]opened in 1729902770 [15:21:36]opened+sec_in_day 1729989170 [15:21:36]quantity*price = 52048 [15:21:36]sum+1 = 52049 [15:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 185 26.10.2024 15:21 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191822 ФПД: 159588460949062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152152&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191822&fm=159588460949062&tin=02508201610067®Number=0000000000091776&sum=52000 [15:21:38]StoreToDocumentArchive [15:21:38]shift 541 fd 191822 [15:21:38]save to /storage/0541/doc_00191822 [15:21:38]save last doc name /storage/0541/doc_00191822 to /storage/kkm_last_doc_name [15:21:38]save OK [15:21:38]Clear old archive folders... [15:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:38]tlvbuf is 01A940D0 [15:21:38]SAM_PROTO_ClearQueue [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 09 00 00 [15:21:38]Write to MH i2c: E2 08 00 F2 12 80 09 00 00 00 00 00 00 76 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 F2 12 00 90 00 78 [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]SAM_PROTO_ClearQueue done [15:21:38]KKMCreateOFDPacket [15:21:38]OFDProtocolAddRootSTLVToBuf [15:21:38]FM_MakeSignedData [15:21:38]FM_MakeSignedData [15:21:38]SAM_PROTO_SignData [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 0D 01 02 [15:21:38]Write to MH i2c: E2 08 00 F3 12 80 0D 01 02 00 00 00 00 7E [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 F3 12 00 90 00 79 [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]wFMCommunicate request_size=255 [15:21:38]MH_SAM_APDU [15:21: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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 10 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E ED 02 00 35 04 06 00 91 [15:21:38]Write to MH i2c: E2 02 01 F4 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 10 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E ED 02 00 35 04 06 00 91 00 00 F9 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 F4 12 00 90 00 7A [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]wFMCommunicate request_size=10 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 0D 02 02 05 25 15 86 6E 46 [15:21:38]Write to MH i2c: E2 0D 00 F5 12 80 0D 02 02 05 00 25 15 86 6E 46 00 00 FF [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 03 00 F5 12 00 90 00 7B [15:21:38]RAPDU: 90 00 [15:21:38]wFMCommunicate OK [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 0D 03 02 [15:21:38]Write to MH i2c: E2 08 00 F6 12 80 0D 03 02 00 00 00 00 83 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 0B 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 0B 00 F6 12 00 5F 76 2A 24 6E 88 A2 D4 90 00 13 [15:21:38]RAPDU: 5F 76 2A 24 6E 88 A2 D4 90 00 [15:21:38]wFMCommunicate OK [15:21:38]SAM_PROTO_SignData done [15:21:38]FM_MakeSignedData done [15:21:38]CreateOFDProtocolMessage [15:21:38]wFMCommunicate request_size=4 [15:21:38]MH_SAM_APDU [15:21:38]CAPDU: 80 11 00 00 [15:21:38]Write to MH i2c: E2 08 00 F7 12 80 11 00 00 00 00 00 00 83 [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:38]Read from MH i2c: E2 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 17 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: E2 17 00 F7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D6 [15:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:38]wFMCommunicate OK [15:21:38]CreateOFDProtocolMessage done [15:21:38]OFDSenderStorePacket 191822 [15:21:38]StoreOFDPacket docnum=191822 [15:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 CA 07 01 EC FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 10 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E ED 02 00 35 04 06 00 91 25 15 86 6E 46 5F 76 2A 24 6E 88 A2 D4 [15:21:38]CheckFolder [15:21:38]dirname=/storage/ofd_packets [15:21:38]CheckFolder done [15:21:38]ProducePacketName [15:21:38]name=ofd_packets/00191822 [15:21:38]NVStorageSaveData ofd_packets/00191822 [15:21:38]File name is /storage/ofd_packets/00191822 [15:21:38]Write 301 bytes [15:21:38]NVStorageSaveData done [15:21:38]OFDSenderStorePacket done [15:21:38]KKMCreateOFDPacket done [15:21:38]NVStorageSaveData kkm_last_timestamp [15:21:38]File name is /storage/kkm_last_timestamp [15:21:38]Write 4 bytes [15:21:38]NVStorageSaveData done [15:21:38]ExternCall_PrintAddStr [15:21:38]wPrintStart [15:21:38]Write to MH i2c: 01 00 00 F8 12 0A [15:21:38]Write i2c OK [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 07 00 [15:21:38]MH_I2C_Read... [15:21:38]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 FF 0F 1F [15:21:38]RasterBufferAndPrint [15:21:38]line Счет N : (1)31128 [15:21:38]line ИНН: 02508201610067 [15:21:38]line Контрольно-Кассовый Чек [15:21:38]line ПРОДАЖА [15:21:38]line ТРК (МРК, ГНК) : 21 [15:21:38]line Товар: 2710124130 [15:21:38]line Аи-92-К-5 [15:21:38]line 7.780 * 66.90 [15:21:38]line = 520.48 [15:21:38]line НДС 12% НСП 1% [15:21:38]line > о реализуемом товаре [15:21:38]line ОКРУГЛЕНИЕ: -0.48 [15:21:38]line ИТОГО: 520.00 [15:21:38]line Внесено: 520.00 [15:21:38]line СДАЧА: 0.00 [15:21:38]line НСП 1% : 4.61 [15:21:38]line НДС 12% : 55.27 [15:21:38]line Наличными: 520.00 [15:21:38]line Безнал.: 0.00 [15:21:38]line Место: АЗС № 170 "Партнер Нефть" [15:21:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:21:38]line СНО: Общий режим [15:21:38]line Чек 185 26.10.2024 15:21 [15:21:38]line Смена: 541 ФФД: 1.0 [15:21:38]line ЗНМ: 0300000110 [15:21:38]line РНМ: 0000000000091776 [15:21:38]line Версия ККМ: 001 [15:21:38]line ФМ: 0000000000871754 [15:21:38]line ФД: 191822 [15:21:38]line ФПД: 159588460949062 [15:21:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152152&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191822&fm=159588460949062&tin=02508201610067®Number=0000000000091776&sum=52000 [15:21:38]OFD Sender: Processing packet 191822 [packets to send 75, broken 74] [15:21:38]ProducePacketName [15:21:38]name=ofd_packets/00191822 [15:21:38]OFD Sender: To server: pG, [15:21:38]CommunicateWithHost lk.salyk.kg:30040 [15:21:39]ConnectInit lk.salyk.kg [15:21:39]written 0, free lines is 4095 [15:21:39]Connected sock=8 [15:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 85 CA 07 01 EC FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 10 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E ED 02 00 35 04 06 00 91 25 15 86 6E 46 5F 76 2A 24 6E 88 A2 D4 [15:21:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 AF 47 00 BF 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4E ED 02 00 F4 03 04 00 DA AD 1C 67 B6 04 01 00 00 37 A6 02 6E 74 A5 4F B7 [15:21:39]CommunicateWithHost err = 0 [15:21:39]CheckOFDResponse [15:21:39]1017 (14) - 77093643461234 [15:21:39]1041 (16) - 0000000000871754 [15:21:39]1040 (4) - 191822 [15:21:39]1012 (4) - 26.10.2024 08:52 [15:21:39]1206 (1) - 0 [15:21:39]OFD Sender: Remove packet 191822 [15:21:39]ProducePacketName [15:21:39]name=ofd_packets/00191822 [15:21:39]NVStorageDeleteData [15:21:39]Write to MH i2c: 01 00 00 23 13 36 [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 07 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: 01 07 00 23 13 00 00 00 00 00 BB 0C 04 [15:21:39]RasterBufferAndPrint [15:21:39]line [15:21:39]line [15:21:39]line [15:21:39]line [15:21:39]line [15:21:39]written 0, free lines is 3267 [15:21:39]MH_Cut [15:21:39]Write to MH i2c: D1 01 00 2A 13 01 0F [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: D1 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: D1 01 00 [15:21:39]MH_I2C_Read... [15:21:39]Read from MH i2c: D1 01 00 2A 13 00 0E [15:21:39]Write to MH i2c: 01 00 00 2B 13 3E [15:21:39]Write i2c OK [15:21:39]MH_I2C_Read... [15:21:39]OFD Sender: No OFD packet to send [15:21:40]*** Cut start [15:21:40]*** Partial cut [15:21:40]*** CUTSNS_PIN = 1 [15:21:40]*** CUTSNS_PIN = 0 [15:21:40]*** Brake cut motor [15:21:40]Read from MH i2c: 01 [15:21:40]MH_I2C_Read... [15:21:40]*** Stop cut motor [15:21:40]*** Cut end [15:21:40]Read from MH i2c: 01 07 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: 01 07 00 2B 13 00 00 00 00 00 FF 0F 53 [15:21:40]process_action close_receipt done [15:21:40]requested_data is exist [15:21:40]produce_requested_data [15:21:40]requested_item fm.sn is exist - process it [15:21:40]wFMCommunicate request_size=4 [15:21:40]MH_SAM_APDU [15:21:40]CAPDU: 80 11 00 00 [15:21:40]Write to MH i2c: E2 08 00 2C 13 80 11 00 00 00 00 00 00 B9 [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:40]Read from MH i2c: E2 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 17 00 [15:21:40]MH_I2C_Read... [15:21:40]Read from MH i2c: E2 17 00 2C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0C [15:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:40]wFMCommunicate OK [15:21:40]requested_item fd.num is exist - process it [15:21:40]SAM_PROTO_GetFieldsCounters [15:21:40]wFMCommunicate request_size=4 [15:21:40]MH_SAM_APDU [15:21:40]CAPDU: 80 13 00 00 [15:21:40]Write to MH i2c: E2 08 00 2D 13 80 13 00 00 00 00 00 00 BC [15:21:40]Write i2c OK [15:21:40]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 62 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 62 00 2D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [15:21:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetFieldsCounters done [15:21:41]requested_item shift.num is exist - process it [15:21:41]requested_item shift.opened is exist - process it [15:21:41]req_shift_opened [15:21:41]FM_GetShiftState [15:21:41]SAM_PROTO_GetShiftState [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 13 01 00 [15:21:41]Write to MH i2c: E2 08 00 2E 13 80 13 01 00 00 00 00 00 BE [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 2E 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 37 [15:21:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetShiftState done [15:21:41]FM_GetShiftState done [15:21:41]req_shift_opened done [15:21:41]requested_item shift.open_date is exist - process it [15:21:41]req_shift_open_date [15:21:41]req_shift_open_date done [15:21:41]produce_requested_data done [15:21:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191822,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:21:41]process_action_free close_receipt [15:21:41]json_value_free [15:21:41]json_value_free done [15:21:41]process_json_proto returns [15:21:41]Send response to host [15:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191822,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:21:41]free response buf [15:21:41]execute_script done [15:21:41]execute_script returns [15:21:41]free content buf [15:21:41]Sock 6.Close socket [15:21:41]Sock 6.Thread stoped [15:21:41]accept exits with 5 [15:21:41]New connection [15:21:41]New thread 3066817892 created [15:21:41]Thread 3066961252 joined [15:21:41]Waiting for new connection... [15:21:41] Sock 5.Parse request [15:21:41]Sock 5.Check first char [15:21:41]Sock 5.First char is OK [15:21:41]request: POST /json_proto HTTP/1.0 [15:21:41]Method: POST [15:21:41]URL: /json_proto [15:21:41]Method is POST - this is cgi request [15:21:41]url: /json_proto [15:21:41]query_string will be loaded in cgi processing [15:21:41]execute_cgi json_proto POST (null) [15:21:41]execute_cgi path=json_proto method=POST [15:21:41]POST find Content-Length [15:21:41]Host: 172.17.63.131:8080 [15:21:41]Content-Length: 676 [15:21:41]Content-Type: application/json [15:21:41] [15:21:41]POST finish read [15:21:41]Found Content-Length = 676 [15:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:41]execute_script... [15:21: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)31129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:41]POST & json_proto [15:21:41]process_json_proto [15:21:41]json parsed OK: [15:21:41]protocol is kg_v1.0 [15:21:41]action value=close_receipt [15:21:41]process_action close_receipt [15:21:41]cmd_close_receipt [15:21:41]MH_GetDate [15:21:41]Write to MH i2c: F0 00 00 2F 13 31 [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 09 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: F0 09 00 2F 13 00 14 09 1D 67 22 05 6E 64 D4 [15:21:41]GetLastDocTimeStamp 1729956112 [15:21:41]current date 1729956116 [15:21:41]FM_GetShiftState [15:21:41]SAM_PROTO_GetShiftState [15:21:41]wFMCommunicate request_size=4 [15:21:41]MH_SAM_APDU [15:21:41]CAPDU: 80 13 01 00 [15:21:41]Write to MH i2c: E2 08 00 30 13 80 13 01 00 00 00 00 00 C0 [15:21:41]Write i2c OK [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 [15:21:41]MH_I2C_Read... [15:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:41]Read from MH i2c: E2 0E 00 [15:21:41]MH_I2C_Read... [15:21:41]Read from MH i2c: E2 0E 00 30 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 39 [15:21:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:21:41]wFMCommunicate OK [15:21:41]SAM_PROTO_GetShiftState done [15:21:41]FM_GetShiftState done [15:21:41]opened in 1729902770 [15:21:41]opened+sec_in_day 1729989170 [15:21:41]quantity*price = 20003 [15:21:41]sum+1 = 20004 [15:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 186 26.10.2024 15:21 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191823 ФПД: 62677144748546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191823&fm=62677144748546&tin=02508201610067®Number=0000000000091776&sum=20000 [15:21:42]StoreToDocumentArchive [15:21:42]shift 541 fd 191823 [15:21:42]save to /storage/0541/doc_00191823 [15:21:42]save last doc name /storage/0541/doc_00191823 to /storage/kkm_last_doc_name [15:21:42]save OK [15:21:42]Clear old archive folders... [15:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:43]tlvbuf is 019B1050 [15:21:43]SAM_PROTO_ClearQueue [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 09 00 00 [15:21:43]Write to MH i2c: E2 08 00 3D 13 80 09 00 00 00 00 00 00 C2 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 3D 13 00 90 00 C4 [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]SAM_PROTO_ClearQueue done [15:21:43]KKMCreateOFDPacket [15:21:43]OFDProtocolAddRootSTLVToBuf [15:21:43]FM_MakeSignedData [15:21:43]FM_MakeSignedData [15:21:43]SAM_PROTO_SignData [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 01 02 [15:21:43]Write to MH i2c: E2 08 00 3E 13 80 0D 01 02 00 00 00 00 CA [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 3E 13 00 90 00 C5 [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]wFMCommunicate request_size=255 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 14 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F ED 02 00 35 04 06 00 39 [15:21:43]Write to MH i2c: E2 02 01 3F 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 14 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F ED 02 00 35 04 06 00 39 00 00 11 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]wFMCommunicate request_size=10 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 02 02 05 01 28 F2 C2 02 [15:21:43]Write to MH i2c: E2 0D 00 40 13 80 0D 02 02 05 00 01 28 F2 C2 02 00 00 B6 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [15:21:43]RAPDU: 90 00 [15:21:43]wFMCommunicate OK [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 0D 03 02 [15:21:43]Write to MH i2c: E2 08 00 41 13 80 0D 03 02 00 00 00 00 CF [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 0B 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 0B 00 41 13 00 E2 D4 C3 DF 0B 60 32 EC 90 00 B1 [15:21:43]RAPDU: E2 D4 C3 DF 0B 60 32 EC 90 00 [15:21:43]wFMCommunicate OK [15:21:43]SAM_PROTO_SignData done [15:21:43]FM_MakeSignedData done [15:21:43]CreateOFDProtocolMessage [15:21:43]wFMCommunicate request_size=4 [15:21:43]MH_SAM_APDU [15:21:43]CAPDU: 80 11 00 00 [15:21:43]Write to MH i2c: E2 08 00 42 13 80 11 00 00 00 00 00 00 CF [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:43]Read from MH i2c: E2 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 17 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: E2 17 00 42 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 22 [15:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:43]wFMCommunicate OK [15:21:43]CreateOFDProtocolMessage done [15:21:43]OFDSenderStorePacket 191823 [15:21:43]StoreOFDPacket docnum=191823 [15:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 DE 07 01 4E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 14 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F ED 02 00 35 04 06 00 39 01 28 F2 C2 02 E2 D4 C3 DF 0B 60 32 EC [15:21:43]CheckFolder [15:21:43]dirname=/storage/ofd_packets [15:21:43]CheckFolder done [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00191823 [15:21:43]NVStorageSaveData ofd_packets/00191823 [15:21:43]File name is /storage/ofd_packets/00191823 [15:21:43]Write 301 bytes [15:21:43]NVStorageSaveData done [15:21:43]OFDSenderStorePacket done [15:21:43]KKMCreateOFDPacket done [15:21:43]NVStorageSaveData kkm_last_timestamp [15:21:43]File name is /storage/kkm_last_timestamp [15:21:43]Write 4 bytes [15:21:43]NVStorageSaveData done [15:21:43]ExternCall_PrintAddStr [15:21:43]wPrintStart [15:21:43]Write to MH i2c: 01 00 00 43 13 56 [15:21:43]Write i2c OK [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 07 00 [15:21:43]MH_I2C_Read... [15:21:43]Read from MH i2c: 01 07 00 43 13 00 00 00 00 00 FF 0F 6B [15:21:43]RasterBufferAndPrint [15:21:43]line Счет N : (1)31129 [15:21:43]line ИНН: 02508201610067 [15:21:43]line Контрольно-Кассовый Чек [15:21:43]line ПРОДАЖА [15:21:43]line ТРК (МРК, ГНК) : 12 [15:21:43]line Товар: 2710124130 [15:21:43]line Аи-92-К-5 [15:21:43]line 2.990 * 66.90 [15:21:43]line = 200.03 [15:21:43]line НДС 12% НСП 1% [15:21:43]line > о реализуемом товаре [15:21:43]line ОКРУГЛЕНИЕ: -0.03 [15:21:43]line ИТОГО: 200.00 [15:21:43]line Внесено: 200.00 [15:21:43]line СДАЧА: 0.00 [15:21:43]line НСП 1% : 1.77 [15:21:43]line НДС 12% : 21.24 [15:21:43]line Наличными: 200.00 [15:21:43]line Безнал.: 0.00 [15:21:43]line Место: АЗС № 170 "Партнер Нефть" [15:21:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:21:43]line СНО: Общий режим [15:21:43]line Чек 186 26.10.2024 15:21 [15:21:43]line Смена: 541 ФФД: 1.0 [15:21:43]line ЗНМ: 0300000110 [15:21:43]line РНМ: 0000000000091776 [15:21:43]line Версия ККМ: 001 [15:21:43]line ФМ: 0000000000871754 [15:21:43]line ФД: 191823 [15:21:43]line ФПД: 62677144748546 [15:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152156&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191823&fm=62677144748546&tin=02508201610067®Number=0000000000091776&sum=20000 [15:21:43]OFD Sender: Processing packet 191823 [packets to send 75, broken 74] [15:21:43]ProducePacketName [15:21:43]name=ofd_packets/00191823 [15:21:43]OFD Sender: To server: pG, [15:21:43]CommunicateWithHost lk.salyk.kg:30040 [15:21:43]ConnectInit lk.salyk.kg [15:21:43]written 0, free lines is 4095 [15:21:44]Connected sock=8 [15:21:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 51 DE 07 01 4E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 14 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F ED 02 00 35 04 06 00 39 01 28 F2 C2 02 E2 D4 C3 DF 0B 60 32 EC [15:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 87 5D 47 00 98 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 4F ED 02 00 F4 03 04 00 DF AD 1C 67 B6 04 01 00 00 C2 5A 2D A5 15 8A E3 A1 [15:21:44]CommunicateWithHost err = 0 [15:21:44]CheckOFDResponse [15:21:44]1017 (14) - 77093643461234 [15:21:44]1041 (16) - 0000000000871754 [15:21:44]1040 (4) - 191823 [15:21:44]1012 (4) - 26.10.2024 08:52 [15:21:44]1206 (1) - 0 [15:21:44]OFD Sender: Remove packet 191823 [15:21:44]ProducePacketName [15:21:44]name=ofd_packets/00191823 [15:21:44]NVStorageDeleteData [15:21:44]Write to MH i2c: 01 00 00 6E 13 81 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: 01 07 00 6E 13 00 00 00 00 00 C5 0C 59 [15:21:44]RasterBufferAndPrint [15:21:44]line [15:21:44]line [15:21:44]line [15:21:44]line [15:21:44]line [15:21:44]written 0, free lines is 3284 [15:21:44]MH_Cut [15:21:44]Write to MH i2c: D1 01 00 75 13 01 5A [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: D1 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: D1 01 00 [15:21:44]MH_I2C_Read... [15:21:44]Read from MH i2c: D1 01 00 75 13 00 59 [15:21:44]Write to MH i2c: 01 00 00 76 13 89 [15:21:44]Write i2c OK [15:21:44]MH_I2C_Read... [15:21:44]OFD Sender: No OFD packet to send [15:21:45]*** Cut start [15:21:45]*** Partial cut [15:21:45]*** CUTSNS_PIN = 1 [15:21:45]*** CUTSNS_PIN = 0 [15:21:45]*** Brake cut motor [15:21:45]Read from MH i2c: 01 [15:21:45]MH_I2C_Read... [15:21:45]*** Stop cut motor [15:21:45]*** Cut end [15:21:45]Read from MH i2c: 01 07 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: 01 07 00 76 13 00 00 00 00 00 FF 0F 9E [15:21:45]process_action close_receipt done [15:21:45]requested_data is exist [15:21:45]produce_requested_data [15:21:45]requested_item fm.sn is exist - process it [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 11 00 00 [15:21:45]Write to MH i2c: E2 08 00 77 13 80 11 00 00 00 00 00 00 04 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:45]Read from MH i2c: E2 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 [15:21:45]MH_I2C_Read... [15:21:45]Read from MH i2c: E2 17 00 77 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 57 [15:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:21:45]wFMCommunicate OK [15:21:45]requested_item fd.num is exist - process it [15:21:45]SAM_PROTO_GetFieldsCounters [15:21:45]wFMCommunicate request_size=4 [15:21:45]MH_SAM_APDU [15:21:45]CAPDU: 80 13 00 00 [15:21:45]Write to MH i2c: E2 08 00 78 13 80 13 00 00 00 00 00 00 07 [15:21:45]Write i2c OK [15:21:45]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 62 00 78 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 4F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetFieldsCounters done [15:21:46]requested_item shift.num is exist - process it [15:21:46]requested_item shift.opened is exist - process it [15:21:46]req_shift_opened [15:21:46]FM_GetShiftState [15:21:46]SAM_PROTO_GetShiftState [15:21:46]wFMCommunicate request_size=4 [15:21:46]MH_SAM_APDU [15:21:46]CAPDU: 80 13 01 00 [15:21:46]Write to MH i2c: E2 08 00 79 13 80 13 01 00 00 00 00 00 09 [15:21:46]Write i2c OK [15:21:46]MH_I2C_Read... [15:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:46]Read from MH i2c: E2 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 [15:21:46]MH_I2C_Read... [15:21:46]Read from MH i2c: E2 0E 00 79 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 82 [15:21:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:21:46]wFMCommunicate OK [15:21:46]SAM_PROTO_GetShiftState done [15:21:46]FM_GetShiftState done [15:21:46]req_shift_opened done [15:21:46]requested_item shift.open_date is exist - process it [15:21:46]req_shift_open_date [15:21:46]req_shift_open_date done [15:21:46]produce_requested_data done [15:21:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191823,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:21:46]process_action_free close_receipt [15:21:46]json_value_free [15:21:46]json_value_free done [15:21:46]process_json_proto returns [15:21:46]Send response to host [15:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191823,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:21:46]free response buf [15:21:46]execute_script done [15:21:46]execute_script returns [15:21:46]free content buf [15:21:46]Sock 5.Close socket [15:21:46]Sock 5.Thread stoped [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:23]accept exits with 6 [15:23:23]New connection [15:23:23]New thread 3066961252 created [15:23:23]Thread 3066817892 joined [15:23:23]Waiting for new connection... [15:23:23] Sock 6.Parse request [15:23:23]Sock 6.Check first char [15:23:23]Sock 6.First char is OK [15:23:23]request: POST /json_proto HTTP/1.0 [15:23:23]Method: POST [15:23:23]URL: /json_proto [15:23:23]Method is POST - this is cgi request [15:23:23]url: /json_proto [15:23:23]query_string will be loaded in cgi processing [15:23:23]execute_cgi json_proto POST (null) [15:23:23]execute_cgi path=json_proto method=POST [15:23:23]POST find Content-Length [15:23:23]Host: 172.17.63.131:8080 [15:23:23]Content-Length: 804 [15:23:23]Content-Type: application/json [15:23:23] [15:23:23]POST finish read [15:23:23]Found Content-Length = 804 [15:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:23]execute_script... [15:23: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)31131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 350.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:23]POST & json_proto [15:23:23]process_json_proto [15:23:23]json parsed OK: [15:23:23]protocol is kg_v1.0 [15:23:23]action value=close_receipt [15:23:23]process_action close_receipt [15:23:23]cmd_close_receipt [15:23:23]MH_GetDate [15:23:23]Write to MH i2c: F0 00 00 7A 13 7C [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: F0 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: F0 09 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: F0 09 00 7A 13 00 7A 09 1D 67 22 05 6E 64 85 [15:23:23]GetLastDocTimeStamp 1729956116 [15:23:23]current date 1729956218 [15:23:23]FM_GetShiftState [15:23:23]SAM_PROTO_GetShiftState [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 13 01 00 [15:23:23]Write to MH i2c: E2 08 00 7B 13 80 13 01 00 00 00 00 00 0B [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0E 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0E 00 7B 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 84 [15:23:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_GetShiftState done [15:23:23]FM_GetShiftState done [15:23:23]opened in 1729902770 [15:23:23]opened+sec_in_day 1729989170 [15:23:23]quantity*price = 35055 [15:23:23]sum+1 = 35057 [15:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.56 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.56 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 187 26.10.2024 15:23 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000871754 ФД: 191824 ФПД: 134104806222387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191824&fm=134104806222387&tin=02508201610067®Number=0000000000091776&sum=35056 [15:23:24]StoreToDocumentArchive [15:23:24]shift 541 fd 191824 [15:23:24]save to /storage/0541/doc_00191824 [15:23:24]save last doc name /storage/0541/doc_00191824 to /storage/kkm_last_doc_name [15:23:24]save OK [15:23:24]Clear old archive folders... [15:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:24]tlvbuf is 019691E0 [15:23:24]SAM_PROTO_ClearQueue [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 09 00 00 [15:23:24]Write to MH i2c: E2 08 00 88 13 80 09 00 00 00 00 00 00 0D [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_ClearQueue done [15:23:24]KKMCreateOFDPacket [15:23:24]OFDProtocolAddRootSTLVToBuf [15:23:24]FM_MakeSignedData [15:23:24]FM_MakeSignedData [15:23:24]SAM_PROTO_SignData [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 01 02 [15:23:24]Write to MH i2c: E2 08 00 89 13 80 0D 01 02 00 00 00 00 15 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=255 [15:23:24]MH_SAM_APDU [15:23: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 7A 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 ED 02 00 35 04 06 00 79 [15:23:24]Write to MH i2c: E2 02 01 8A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 7A 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 ED 02 00 35 04 06 00 79 00 00 BD [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=10 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 02 02 05 F7 B5 56 6A 33 [15:23:24]Write to MH i2c: E2 0D 00 8B 13 80 0D 02 02 05 00 F7 B5 56 6A 33 00 00 C1 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 03 00 8B 13 00 90 00 12 [15:23:24]RAPDU: 90 00 [15:23:24]wFMCommunicate OK [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 0D 03 02 [15:23:24]Write to MH i2c: E2 08 00 8C 13 80 0D 03 02 00 00 00 00 1A [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0B 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 0B 00 8C 13 00 CD 52 37 09 5A 6B 94 1B 90 00 EE [15:23:24]RAPDU: CD 52 37 09 5A 6B 94 1B 90 00 [15:23:24]wFMCommunicate OK [15:23:24]SAM_PROTO_SignData done [15:23:24]FM_MakeSignedData done [15:23:24]CreateOFDProtocolMessage [15:23:24]wFMCommunicate request_size=4 [15:23:24]MH_SAM_APDU [15:23:24]CAPDU: 80 11 00 00 [15:23:24]Write to MH i2c: E2 08 00 8D 13 80 11 00 00 00 00 00 00 1A [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:24]Read from MH i2c: E2 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: E2 17 00 8D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6D [15:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:24]wFMCommunicate OK [15:23:24]CreateOFDProtocolMessage done [15:23:24]OFDSenderStorePacket 191824 [15:23:24]StoreOFDPacket docnum=191824 [15:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 77 07 01 E1 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 7A 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 ED 02 00 35 04 06 00 79 F7 B5 56 6A 33 CD 52 37 09 5A 6B 94 1B [15:23:24]CheckFolder [15:23:24]dirname=/storage/ofd_packets [15:23:24]CheckFolder done [15:23:24]ProducePacketName [15:23:24]name=ofd_packets/00191824 [15:23:24]NVStorageSaveData ofd_packets/00191824 [15:23:24]File name is /storage/ofd_packets/00191824 [15:23:24]Write 301 bytes [15:23:24]NVStorageSaveData done [15:23:24]OFDSenderStorePacket done [15:23:24]KKMCreateOFDPacket done [15:23:24]NVStorageSaveData kkm_last_timestamp [15:23:24]File name is /storage/kkm_last_timestamp [15:23:24]Write 4 bytes [15:23:24]NVStorageSaveData done [15:23:24]ExternCall_PrintAddStr [15:23:24]wPrintStart [15:23:24]Write to MH i2c: 01 00 00 8E 13 A1 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 FF 0F B6 [15:23:24]RasterBufferAndPrint [15:23:24]line Счет N : (1)31131 [15:23:24]line ИНН: 02508201610067 [15:23:24]line Контрольно-Кассовый Чек [15:23:24]line ПРОДАЖА [15:23:24]line ТРК (МРК, ГНК) : 12 [15:23:24]line Товар: 2710124130 [15:23:24]line Аи-92-К-5 [15:23:24]line 5.240 * 66.90 [15:23:24]line = 350.56 [15:23:24]line НДС 12% НСП 1% [15:23:24]line > о реализуемом товаре [15:23:24]line ИТОГО: 350.56 [15:23:24]line НСП 1% : 3.10 [15:23:24]line НДС 12% : 37.23 [15:23:24]line Наличными: 0.00 [15:23:24]line Безнал.: 350.56 [15:23:24]line Место: АЗС № 170 "Партнер Нефть" [15:23:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:23:24]line СНО: Общий режим [15:23:24]line Чек 187 26.10.2024 15:23 [15:23:24]line Смена: 541 ФФД: 1.0 [15:23:24]line ЗНМ: 0300000110 [15:23:24]line РНМ: 0000000000091776 [15:23:24]line Версия ККМ: 001 [15:23:24]line Платежная система: О! деньги [15:23:24]line ФМ: 0000000000871754 [15:23:24]line ФД: 191824 [15:23:24]line ФПД: 134104806222387 [15:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152338&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191824&fm=134104806222387&tin=02508201610067®Number=0000000000091776&sum=35056 [15:23:25]written 0, free lines is 4095 [15:23:25]OFD Sender: Processing packet 191824 [packets to send 75, broken 74] [15:23:25]ProducePacketName [15:23:25]name=ofd_packets/00191824 [15:23:25]OFD Sender: To server: pG, [15:23:25]CommunicateWithHost lk.salyk.kg:30040 [15:23:25]ConnectInit lk.salyk.kg [15:23:25]Connected sock=8 [15:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 8C 77 07 01 E1 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 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 00 00 00 00 00 00 39 04 06 00 F0 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 7A 09 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 ED 02 00 35 04 06 00 79 F7 B5 56 6A 33 CD 52 37 09 5A 6B 94 1B [15:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 67 2D 47 00 F0 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 50 ED 02 00 F4 03 04 00 45 AE 1C 67 B6 04 01 00 00 9F CC 0B 9D A9 FE 2F 43 [15:23:25]CommunicateWithHost err = 0 [15:23:25]CheckOFDResponse [15:23:25]1017 (14) - 77093643461234 [15:23:25]1041 (16) - 0000000000871754 [15:23:25]1040 (4) - 191824 [15:23:25]1012 (4) - 26.10.2024 08:54 [15:23:25]1206 (1) - 0 [15:23:25]OFD Sender: Remove packet 191824 [15:23:25]ProducePacketName [15:23:25]name=ofd_packets/00191824 [15:23:25]NVStorageDeleteData [15:23:25]Write to MH i2c: 01 00 00 B8 13 CB [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 07 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: 01 07 00 B8 13 00 00 00 00 00 CD 0C AB [15:23:25]RasterBufferAndPrint [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]line [15:23:25]written 0, free lines is 3285 [15:23:25]MH_Cut [15:23:25]Write to MH i2c: D1 01 00 BF 13 01 A4 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 01 00 [15:23:25]MH_I2C_Read... [15:23:25]Read from MH i2c: D1 01 00 BF 13 00 A3 [15:23:25]Write to MH i2c: 01 00 00 C0 13 D3 [15:23:25]Write i2c OK [15:23:25]MH_I2C_Read... [15:23:26]OFD Sender: No OFD packet to send [15:23:26]*** Cut start [15:23:26]*** Partial cut [15:23:26]*** CUTSNS_PIN = 1 [15:23:26]*** CUTSNS_PIN = 0 [15:23:26]*** Brake cut motor [15:23:27]Read from MH i2c: 01 [15:23:27]MH_I2C_Read... [15:23:27]*** Stop cut motor [15:23:27]*** Cut end [15:23:27]Read from MH i2c: 01 07 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: 01 07 00 C0 13 00 00 00 00 00 FF 0F E8 [15:23:27]process_action close_receipt done [15:23:27]requested_data is exist [15:23:27]produce_requested_data [15:23:27]requested_item fm.sn is exist - process it [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 11 00 00 [15:23:27]Write to MH i2c: E2 08 00 C1 13 80 11 00 00 00 00 00 00 4E [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 17 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 17 00 C1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A1 [15:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:23:27]wFMCommunicate OK [15:23:27]requested_item fd.num is exist - process it [15:23:27]SAM_PROTO_GetFieldsCounters [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 13 00 00 [15:23:27]Write to MH i2c: E2 08 00 C2 13 80 13 00 00 00 00 00 00 51 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 62 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 62 00 C2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 50 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:27]wFMCommunicate OK [15:23:27]SAM_PROTO_GetFieldsCounters done [15:23:27]requested_item shift.num is exist - process it [15:23:27]requested_item shift.opened is exist - process it [15:23:27]req_shift_opened [15:23:27]FM_GetShiftState [15:23:27]SAM_PROTO_GetShiftState [15:23:27]wFMCommunicate request_size=4 [15:23:27]MH_SAM_APDU [15:23:27]CAPDU: 80 13 01 00 [15:23:27]Write to MH i2c: E2 08 00 C3 13 80 13 01 00 00 00 00 00 53 [15:23:27]Write i2c OK [15:23:27]MH_I2C_Read... [15:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:27]Read from MH i2c: E2 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 0E 00 [15:23:27]MH_I2C_Read... [15:23:27]Read from MH i2c: E2 0E 00 C3 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CC [15:23:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:23:27]wFMCommunicate OK [15:23:27]SAM_PROTO_GetShiftState done [15:23:27]FM_GetShiftState done [15:23:27]req_shift_opened done [15:23:27]requested_item shift.open_date is exist - process it [15:23:27]req_shift_open_date [15:23:27]req_shift_open_date done [15:23:27]produce_requested_data done [15:23:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191824,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:23:27]process_action_free close_receipt [15:23:27]json_value_free [15:23:27]json_value_free done [15:23:27]process_json_proto returns [15:23:27]Send response to host [15:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191824,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:23:27]free response buf [15:23:27]execute_script done [15:23:27]execute_script returns [15:23:27]free content buf [15:23:27]Sock 6.Close socket [15:23:27]Sock 6.Thread stoped [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]accept exits with 5 [15:26:41]New connection [15:26:41]New thread 3066817892 created [15:26:41]Thread 3066961252 joined [15:26:41]Waiting for new connection... [15:26:41] Sock 5.Parse request [15:26:41]Sock 5.Check first char [15:26:41]Sock 5.First char is OK [15:26:41]request: POST /json_proto HTTP/1.0 [15:26:41]Method: POST [15:26:41]URL: /json_proto [15:26:41]Method is POST - this is cgi request [15:26:41]url: /json_proto [15:26:41]query_string will be loaded in cgi processing [15:26:41]execute_cgi json_proto POST (null) [15:26:41]execute_cgi path=json_proto method=POST [15:26:41]POST find Content-Length [15:26:41]Host: 172.17.63.131:8080 [15:26:41]Content-Length: 676 [15:26:41]Content-Type: application/json [15:26:41] [15:26:41]POST finish read [15:26:41]Found Content-Length = 676 [15:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:41]execute_script... [15:26: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)31132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:41]POST & json_proto [15:26:41]process_json_proto [15:26:41]json parsed OK: [15:26:41]protocol is kg_v1.0 [15:26:41]action value=close_receipt [15:26:41]process_action close_receipt [15:26:41]cmd_close_receipt [15:26:41]MH_GetDate [15:26:41]Write to MH i2c: F0 00 00 C4 13 C6 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 09 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: F0 09 00 C4 13 00 40 0A 1D 67 22 05 6E 64 96 [15:26:41]GetLastDocTimeStamp 1729956218 [15:26:41]current date 1729956416 [15:26:41]FM_GetShiftState [15:26:41]SAM_PROTO_GetShiftState [15:26:41]wFMCommunicate request_size=4 [15:26:41]MH_SAM_APDU [15:26:41]CAPDU: 80 13 01 00 [15:26:41]Write to MH i2c: E2 08 00 C5 13 80 13 01 00 00 00 00 00 55 [15:26:41]Write i2c OK [15:26:41]MH_I2C_Read... [15:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:41]Read from MH i2c: E2 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: E2 0E 00 [15:26:41]MH_I2C_Read... [15:26:41]Read from MH i2c: E2 0E 00 C5 13 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CE [15:26:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:26:41]wFMCommunicate OK [15:26:41]SAM_PROTO_GetShiftState done [15:26:41]FM_GetShiftState done [15:26:41]opened in 1729902770 [15:26:41]opened+sec_in_day 1729989170 [15:26:41]quantity*price = 60009 [15:26:41]sum+1 = 60010 [15:26:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 188 26.10.2024 15:26 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191825 ФПД: 186751936107067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191825&fm=186751936107067&tin=02508201610067®Number=0000000000091776&sum=60000 [15:26:42]StoreToDocumentArchive [15:26:42]shift 541 fd 191825 [15:26:42]save to /storage/0541/doc_00191825 [15:26:42]save last doc name /storage/0541/doc_00191825 to /storage/kkm_last_doc_name [15:26:42]save OK [15:26:42]Clear old archive folders... [15:26:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:42]tlvbuf is 015D8C40 [15:26:42]SAM_PROTO_ClearQueue [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 09 00 00 [15:26:42]Write to MH i2c: E2 08 00 D2 13 80 09 00 00 00 00 00 00 57 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 D2 13 00 90 00 59 [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]SAM_PROTO_ClearQueue done [15:26:42]KKMCreateOFDPacket [15:26:42]OFDProtocolAddRootSTLVToBuf [15:26:42]FM_MakeSignedData [15:26:42]FM_MakeSignedData [15:26:42]SAM_PROTO_SignData [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 01 02 [15:26:42]Write to MH i2c: E2 08 00 D3 13 80 0D 01 02 00 00 00 00 5F [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 D3 13 00 90 00 5A [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=255 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 ED 02 00 35 04 06 00 A9 [15:26:42]Write to MH i2c: E2 02 01 D4 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 ED 02 00 35 04 06 00 A9 00 00 62 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 D4 13 00 90 00 5B [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=10 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 02 02 05 D9 92 D0 12 3B [15:26:42]Write to MH i2c: E2 0D 00 D5 13 80 0D 02 02 05 00 D9 92 D0 12 3B 00 00 F4 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 03 00 D5 13 00 90 00 5C [15:26:42]RAPDU: 90 00 [15:26:42]wFMCommunicate OK [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 0D 03 02 [15:26:42]Write to MH i2c: E2 08 00 D6 13 80 0D 03 02 00 00 00 00 64 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 0B 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 0B 00 D6 13 00 F6 53 00 BE 80 98 90 E1 90 00 F5 [15:26:42]RAPDU: F6 53 00 BE 80 98 90 E1 90 00 [15:26:42]wFMCommunicate OK [15:26:42]SAM_PROTO_SignData done [15:26:42]FM_MakeSignedData done [15:26:42]CreateOFDProtocolMessage [15:26:42]wFMCommunicate request_size=4 [15:26:42]MH_SAM_APDU [15:26:42]CAPDU: 80 11 00 00 [15:26:42]Write to MH i2c: E2 08 00 D7 13 80 11 00 00 00 00 00 00 64 [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:42]Read from MH i2c: E2 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: E2 17 00 D7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [15:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:26:42]wFMCommunicate OK [15:26:42]CreateOFDProtocolMessage done [15:26:42]OFDSenderStorePacket 191825 [15:26:42]StoreOFDPacket docnum=191825 [15:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD E3 07 01 1E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 ED 02 00 35 04 06 00 A9 D9 92 D0 12 3B F6 53 00 BE 80 98 90 E1 [15:26:42]CheckFolder [15:26:42]dirname=/storage/ofd_packets [15:26:42]CheckFolder done [15:26:42]ProducePacketName [15:26:42]name=ofd_packets/00191825 [15:26:42]NVStorageSaveData ofd_packets/00191825 [15:26:42]File name is /storage/ofd_packets/00191825 [15:26:42]Write 301 bytes [15:26:42]NVStorageSaveData done [15:26:42]OFDSenderStorePacket done [15:26:42]KKMCreateOFDPacket done [15:26:42]NVStorageSaveData kkm_last_timestamp [15:26:42]File name is /storage/kkm_last_timestamp [15:26:42]Write 4 bytes [15:26:42]NVStorageSaveData done [15:26:42]ExternCall_PrintAddStr [15:26:42]wPrintStart [15:26:42]Write to MH i2c: 01 00 00 D8 13 EB [15:26:42]Write i2c OK [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 07 00 [15:26:42]MH_I2C_Read... [15:26:42]Read from MH i2c: 01 07 00 D8 13 00 00 00 00 00 FF 0F 00 [15:26:42]RasterBufferAndPrint [15:26:42]line Счет N : (1)31132 [15:26:42]line ИНН: 02508201610067 [15:26:42]line Контрольно-Кассовый Чек [15:26:42]line ПРОДАЖА [15:26:42]line ТРК (МРК, ГНК) : 12 [15:26:42]line Товар: 2710124130 [15:26:42]line Аи-92-К-5 [15:26:42]line 8.970 * 66.90 [15:26:42]line = 600.09 [15:26:42]line НДС 12% НСП 1% [15:26:42]line > о реализуемом товаре [15:26:42]line ОКРУГЛЕНИЕ: -0.09 [15:26:42]line ИТОГО: 600.00 [15:26:42]line Внесено: 600.00 [15:26:42]line СДАЧА: 0.00 [15:26:42]line НСП 1% : 5.31 [15:26:42]line НДС 12% : 63.73 [15:26:42]line Наличными: 600.00 [15:26:42]line Безнал.: 0.00 [15:26:42]line Место: АЗС № 170 "Партнер Нефть" [15:26:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:26:42]line СНО: Общий режим [15:26:42]line Чек 188 26.10.2024 15:26 [15:26:42]line Смена: 541 ФФД: 1.0 [15:26:42]line ЗНМ: 0300000110 [15:26:42]line РНМ: 0000000000091776 [15:26:42]line Версия ККМ: 001 [15:26:42]line ФМ: 0000000000871754 [15:26:42]line ФД: 191825 [15:26:42]line ФПД: 186751936107067 [15:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152656&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191825&fm=186751936107067&tin=02508201610067®Number=0000000000091776&sum=60000 [15:26:43]OFD Sender: Processing packet 191825 [packets to send 75, broken 74] [15:26:43]ProducePacketName [15:26:43]name=ofd_packets/00191825 [15:26:43]OFD Sender: To server: pG, [15:26:43]CommunicateWithHost lk.salyk.kg:30040 [15:26:43]ConnectInit lk.salyk.kg [15:26:43]written 0, free lines is 4095 [15:26:43]Connected sock=6 [15:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DD E3 07 01 1E D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 40 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 ED 02 00 35 04 06 00 A9 D9 92 D0 12 3B F6 53 00 BE 80 98 90 E1 [15:26:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DC 78 47 00 F0 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 51 ED 02 00 F4 03 04 00 0B AF 1C 67 B6 04 01 00 00 D5 12 34 91 9F 50 AC 43 [15:26:43]CommunicateWithHost err = 0 [15:26:43]CheckOFDResponse [15:26:43]1017 (14) - 77093643461234 [15:26:43]1041 (16) - 0000000000871754 [15:26:43]1040 (4) - 191825 [15:26:43]1012 (4) - 26.10.2024 08:57 [15:26:43]1206 (1) - 0 [15:26:43]OFD Sender: Remove packet 191825 [15:26:43]ProducePacketName [15:26:43]name=ofd_packets/00191825 [15:26:43]NVStorageDeleteData [15:26:43]Write to MH i2c: 01 00 00 03 14 17 [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 07 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: 01 07 00 03 14 00 00 00 00 00 BB 0C E5 [15:26:43]RasterBufferAndPrint [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]line [15:26:43]written 0, free lines is 3269 [15:26:43]MH_Cut [15:26:43]Write to MH i2c: D1 01 00 0A 14 01 F0 [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 01 00 [15:26:43]MH_I2C_Read... [15:26:43]Read from MH i2c: D1 01 00 0A 14 00 EF [15:26:43]Write to MH i2c: 01 00 00 0B 14 1F [15:26:43]Write i2c OK [15:26:43]MH_I2C_Read... [15:26:44]OFD Sender: No OFD packet to send [15:26:44]*** Cut start [15:26:44]*** Partial cut [15:26:44]*** CUTSNS_PIN = 1 [15:26:44]*** CUTSNS_PIN = 0 [15:26:44]*** Brake cut motor [15:26:45]Read from MH i2c: 01 [15:26:45]MH_I2C_Read... [15:26:45]*** Stop cut motor [15:26:45]*** Cut end [15:26:45]Read from MH i2c: 01 07 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 FF 0F 34 [15:26:45]process_action close_receipt done [15:26:45]requested_data is exist [15:26:45]produce_requested_data [15:26:45]requested_item fm.sn is exist - process it [15:26:45]wFMCommunicate request_size=4 [15:26:45]MH_SAM_APDU [15:26:45]CAPDU: 80 11 00 00 [15:26:45]Write to MH i2c: E2 08 00 0C 14 80 11 00 00 00 00 00 00 9A [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 17 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 17 00 0C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 ED [15:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:26:45]wFMCommunicate OK [15:26:45]requested_item fd.num is exist - process it [15:26:45]SAM_PROTO_GetFieldsCounters [15:26:45]wFMCommunicate request_size=4 [15:26:45]MH_SAM_APDU [15:26:45]CAPDU: 80 13 00 00 [15:26:45]Write to MH i2c: E2 08 00 0D 14 80 13 00 00 00 00 00 00 9D [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 62 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 62 00 0D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [15:26:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 51 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:45]wFMCommunicate OK [15:26:45]SAM_PROTO_GetFieldsCounters done [15:26:45]requested_item shift.num is exist - process it [15:26:45]requested_item shift.opened is exist - process it [15:26:45]req_shift_opened [15:26:45]FM_GetShiftState [15:26:45]SAM_PROTO_GetShiftState [15:26:45]wFMCommunicate request_size=4 [15:26:45]MH_SAM_APDU [15:26:45]CAPDU: 80 13 01 00 [15:26:45]Write to MH i2c: E2 08 00 0E 14 80 13 01 00 00 00 00 00 9F [15:26:45]Write i2c OK [15:26:45]MH_I2C_Read... [15:26:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:45]Read from MH i2c: E2 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 [15:26:45]MH_I2C_Read... [15:26:45]Read from MH i2c: E2 0E 00 0E 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 18 [15:26:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:26:45]wFMCommunicate OK [15:26:45]SAM_PROTO_GetShiftState done [15:26:45]FM_GetShiftState done [15:26:45]req_shift_opened done [15:26:45]requested_item shift.open_date is exist - process it [15:26:45]req_shift_open_date [15:26:45]req_shift_open_date done [15:26:45]produce_requested_data done [15:26:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191825,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:26:45]process_action_free close_receipt [15:26:45]json_value_free [15:26:45]json_value_free done [15:26:45]process_json_proto returns [15:26:45]Send response to host [15:26:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191825,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:26:45]free response buf [15:26:45]execute_script done [15:26:45]execute_script returns [15:26:45]free content buf [15:26:45]Sock 5.Close socket [15:26:45]Sock 5.Thread stoped [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:00]accept exits with 8 [15:28:00]New connection [15:28:00]New thread 3066961252 created [15:28:00]Thread 3066817892 joined [15:28:00]Waiting for new connection... [15:28:00] Sock 8.Parse request [15:28:00]Sock 8.Check first char [15:28:00]Sock 8.First char is OK [15:28:00]request: POST /json_proto HTTP/1.0 [15:28:00]Method: POST [15:28:00]URL: /json_proto [15:28:00]Method is POST - this is cgi request [15:28:00]url: /json_proto [15:28:00]query_string will be loaded in cgi processing [15:28:00]execute_cgi json_proto POST (null) [15:28:00]execute_cgi path=json_proto method=POST [15:28:00]POST find Content-Length [15:28:00]Host: 172.17.63.131:8080 [15:28:00]Content-Length: 673 [15:28:00]Content-Type: application/json [15:28:00] [15:28:00]POST finish read [15:28:00]Found Content-Length = 673 [15:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31133", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:00]execute_script... [15:28: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)31133", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:00]POST & json_proto [15:28:00]process_json_proto [15:28:00]json parsed OK: [15:28:00]protocol is kg_v1.0 [15:28:00]action value=close_receipt [15:28:00]process_action close_receipt [15:28:00]cmd_close_receipt [15:28:00]MH_GetDate [15:28:00]Write to MH i2c: F0 00 00 0F 14 12 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: F0 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: F0 09 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: F0 09 00 0F 14 00 8F 0A 1D 67 22 05 6E 64 31 [15:28:00]GetLastDocTimeStamp 1729956416 [15:28:00]current date 1729956495 [15:28:00]FM_GetShiftState [15:28:00]SAM_PROTO_GetShiftState [15:28:00]wFMCommunicate request_size=4 [15:28:00]MH_SAM_APDU [15:28:00]CAPDU: 80 13 01 00 [15:28:00]Write to MH i2c: E2 08 00 10 14 80 13 01 00 00 00 00 00 A1 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:00]Read from MH i2c: E2 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 0E 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 0E 00 10 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1A [15:28:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:28:00]wFMCommunicate OK [15:28:00]SAM_PROTO_GetShiftState done [15:28:00]FM_GetShiftState done [15:28:00]opened in 1729902770 [15:28:00]opened+sec_in_day 1729989170 [15:28:00]quantity*price = 50063 [15:28:00]sum+1 = 50064 [15:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 189 26.10.2024 15:28 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191826 ФПД: 163008661573919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152815&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191826&fm=163008661573919&tin=02508201610067®Number=0000000000091776&sum=50000 [15:28:01]StoreToDocumentArchive [15:28:01]shift 541 fd 191826 [15:28:01]save to /storage/0541/doc_00191826 [15:28:01]save last doc name /storage/0541/doc_00191826 to /storage/kkm_last_doc_name [15:28:01]save OK [15:28:01]Clear old archive folders... [15:28:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:28:01]tlvbuf is 016CE660 [15:28:01]SAM_PROTO_ClearQueue [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 09 00 00 [15:28:01]Write to MH i2c: E2 08 00 1D 14 80 09 00 00 00 00 00 00 A3 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_ClearQueue done [15:28:01]KKMCreateOFDPacket [15:28:01]OFDProtocolAddRootSTLVToBuf [15:28:01]FM_MakeSignedData [15:28:01]FM_MakeSignedData [15:28:01]SAM_PROTO_SignData [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 01 02 [15:28:01]Write to MH i2c: E2 08 00 1E 14 80 0D 01 02 00 00 00 00 AB [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 1E 14 00 90 00 A6 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=255 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8F 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 ED 02 00 35 04 06 00 94 41 69 5E [15:28:01]Write to MH i2c: E2 02 01 1F 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8F 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 ED 02 00 35 04 06 00 94 41 69 5E 00 00 93 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 1F 14 00 90 00 A7 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=7 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 02 02 02 51 1F [15:28:01]Write to MH i2c: E2 0A 00 20 14 80 0D 02 02 02 00 51 1F 00 00 22 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [15:28:01]RAPDU: 90 00 [15:28:01]wFMCommunicate OK [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 0D 03 02 [15:28:01]Write to MH i2c: E2 08 00 21 14 80 0D 03 02 00 00 00 00 B0 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0B 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0B 00 21 14 00 C1 12 17 20 76 50 41 8B 90 00 4D [15:28:01]RAPDU: C1 12 17 20 76 50 41 8B 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_SignData done [15:28:01]FM_MakeSignedData done [15:28:01]CreateOFDProtocolMessage [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 11 00 00 [15:28:01]Write to MH i2c: E2 08 00 22 14 80 11 00 00 00 00 00 00 B0 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 22 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [15:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:01]wFMCommunicate OK [15:28:01]CreateOFDProtocolMessage done [15:28:01]OFDSenderStorePacket 191826 [15:28:01]StoreOFDPacket docnum=191826 [15:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 80 77 04 01 F0 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8F 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 ED 02 00 35 04 06 00 94 41 69 5E 51 1F C1 12 17 20 76 50 41 8B [15:28:01]CheckFolder [15:28:01]dirname=/storage/ofd_packets [15:28:01]CheckFolder done [15:28:01]ProducePacketName [15:28:01]name=ofd_packets/00191826 [15:28:01]NVStorageSaveData ofd_packets/00191826 [15:28:01]File name is /storage/ofd_packets/00191826 [15:28:01]Write 298 bytes [15:28:01]NVStorageSaveData done [15:28:01]OFDSenderStorePacket done [15:28:01]KKMCreateOFDPacket done [15:28:01]NVStorageSaveData kkm_last_timestamp [15:28:01]File name is /storage/kkm_last_timestamp [15:28:01]Write 4 bytes [15:28:01]NVStorageSaveData done [15:28:01]ExternCall_PrintAddStr [15:28:01]wPrintStart [15:28:01]Write to MH i2c: 01 00 00 23 14 37 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 07 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 07 00 23 14 00 00 00 00 00 FF 0F 4C [15:28:01]RasterBufferAndPrint [15:28:01]line Счет N : (1)31133 [15:28:01]line ИНН: 02508201610067 [15:28:01]line Контрольно-Кассовый Чек [15:28:01]line ПРОДАЖА [15:28:01]line ТРК (МРК, ГНК) : 22 [15:28:01]line Товар: 2710194210 [15:28:01]line ДТ-К-5 [15:28:01]line 6.570 * 76.20 [15:28:01]line = 500.63 [15:28:01]line НДС 12% НСП 1% [15:28:01]line > о реализуемом товаре [15:28:01]line ОКРУГЛЕНИЕ: -0.63 [15:28:01]line ИТОГО: 500.00 [15:28:01]line Внесено: 500.00 [15:28:01]line СДАЧА: 0.00 [15:28:01]line НСП 1% : 4.43 [15:28:01]line НДС 12% : 53.16 [15:28:01]line Наличными: 500.00 [15:28:01]line Безнал.: 0.00 [15:28:01]line Место: АЗС № 170 "Партнер Нефть" [15:28:01]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:28:01]line СНО: Общий режим [15:28:01]line Чек 189 26.10.2024 15:28 [15:28:01]line Смена: 541 ФФД: 1.0 [15:28:01]line ЗНМ: 0300000110 [15:28:01]line РНМ: 0000000000091776 [15:28:01]line Версия ККМ: 001 [15:28:01]line ФМ: 0000000000871754 [15:28:01]line ФД: 191826 [15:28:01]line ФПД: 163008661573919 [15:28:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T152815&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191826&fm=163008661573919&tin=02508201610067®Number=0000000000091776&sum=50000 [15:28:02]OFD Sender: Processing packet 191826 [packets to send 75, broken 74] [15:28:02]ProducePacketName [15:28:02]name=ofd_packets/00191826 [15:28:02]OFD Sender: To server: pG, [15:28:02]CommunicateWithHost lk.salyk.kg:30040 [15:28:02]ConnectInit lk.salyk.kg [15:28:02]written 0, free lines is 4095 [15:28:02]Connected sock=6 [15:28:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 80 77 04 01 F0 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 8F 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 ED 02 00 35 04 06 00 94 41 69 5E 51 1F C1 12 17 20 76 50 41 8B [15:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F DD 47 00 78 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 52 ED 02 00 F4 03 04 00 5A AF 1C 67 B6 04 01 00 00 71 AB 28 0A C5 80 1F 66 [15:28:02]CommunicateWithHost err = 0 [15:28:02]CheckOFDResponse [15:28:02]1017 (14) - 77093643461234 [15:28:02]1041 (16) - 0000000000871754 [15:28:02]1040 (4) - 191826 [15:28:02]1012 (4) - 26.10.2024 08:59 [15:28:02]1206 (1) - 0 [15:28:02]OFD Sender: Remove packet 191826 [15:28:02]ProducePacketName [15:28:02]name=ofd_packets/00191826 [15:28:02]NVStorageDeleteData [15:28:02]Write to MH i2c: 01 00 00 4E 14 62 [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 07 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: 01 07 00 4E 14 00 00 00 00 00 BE 0C 33 [15:28:02]RasterBufferAndPrint [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]line [15:28:02]written 0, free lines is 3268 [15:28:02]MH_Cut [15:28:02]Write to MH i2c: D1 01 00 55 14 01 3B [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 01 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: D1 01 00 55 14 00 3A [15:28:02]Write to MH i2c: 01 00 00 56 14 6A [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:03]OFD Sender: No OFD packet to send [15:28:03]*** Cut start [15:28:03]*** Partial cut [15:28:03]*** CUTSNS_PIN = 1 [15:28:03]*** CUTSNS_PIN = 0 [15:28:03]*** Brake cut motor [15:28:04]Read from MH i2c: 01 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: 01 07 00 [15:28:04]MH_I2C_Read... [15:28:04]*** Stop cut motor [15:28:04]*** Cut end [15:28:04]Read from MH i2c: 01 07 00 56 14 00 00 00 00 00 FF 0F 7F [15:28:04]process_action close_receipt done [15:28:04]requested_data is exist [15:28:04]produce_requested_data [15:28:04]requested_item fm.sn is exist - process it [15:28:04]wFMCommunicate request_size=4 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 11 00 00 [15:28:04]Write to MH i2c: E2 08 00 57 14 80 11 00 00 00 00 00 00 E5 [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:04]Read from MH i2c: E2 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 17 00 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 17 00 57 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 38 [15:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:28:04]wFMCommunicate OK [15:28:04]requested_item fd.num is exist - process it [15:28:04]SAM_PROTO_GetFieldsCounters [15:28:04]wFMCommunicate request_size=4 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 13 00 00 [15:28:04]Write to MH i2c: E2 08 00 58 14 80 13 00 00 00 00 00 00 E8 [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:04]Read from MH i2c: E2 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 62 00 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 62 00 58 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [15:28:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 52 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:04]wFMCommunicate OK [15:28:04]SAM_PROTO_GetFieldsCounters done [15:28:04]requested_item shift.num is exist - process it [15:28:04]requested_item shift.opened is exist - process it [15:28:04]req_shift_opened [15:28:04]FM_GetShiftState [15:28:04]SAM_PROTO_GetShiftState [15:28:04]wFMCommunicate request_size=4 [15:28:04]MH_SAM_APDU [15:28:04]CAPDU: 80 13 01 00 [15:28:04]Write to MH i2c: E2 08 00 59 14 80 13 01 00 00 00 00 00 EA [15:28:04]Write i2c OK [15:28:04]MH_I2C_Read... [15:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:04]Read from MH i2c: E2 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 0E 00 [15:28:04]MH_I2C_Read... [15:28:04]Read from MH i2c: E2 0E 00 59 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 63 [15:28:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:28:04]wFMCommunicate OK [15:28:04]SAM_PROTO_GetShiftState done [15:28:04]FM_GetShiftState done [15:28:04]req_shift_opened done [15:28:04]requested_item shift.open_date is exist - process it [15:28:04]req_shift_open_date [15:28:04]req_shift_open_date done [15:28:04]produce_requested_data done [15:28:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191826,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:28:04]process_action_free close_receipt [15:28:04]json_value_free [15:28:04]json_value_free done [15:28:04]process_json_proto returns [15:28:04]Send response to host [15:28:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191826,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:28:04]free response buf [15:28:04]execute_script done [15:28:04]execute_script returns [15:28:04]free content buf [15:28:04]Sock 8.Close socket [15:28:04]Sock 8.Thread stoped [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:49]accept exits with 5 [15:29:49]New connection [15:29:49]New thread 3066817892 created [15:29:49]Thread 3066961252 joined [15:29:49]Waiting for new connection... [15:29:49] Sock 5.Parse request [15:29:49]Sock 5.Check first char [15:29:49]Sock 5.First char is OK [15:29:49]request: POST /json_proto HTTP/1.0 [15:29:49]Method: POST [15:29:49]URL: /json_proto [15:29:49]Method is POST - this is cgi request [15:29:49]url: /json_proto [15:29:49]query_string will be loaded in cgi processing [15:29:49]execute_cgi json_proto POST (null) [15:29:49]execute_cgi path=json_proto method=POST [15:29:49]POST find Content-Length [15:29:49]Host: 172.17.63.131:8080 [15:29:49]Content-Length: 670 [15:29:49]Content-Type: application/json [15:29:49] [15:29:49]POST finish read [15:29:49]Found Content-Length = 670 [15:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:49]execute_script... [15:29: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)31135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:49]POST & json_proto [15:29:49]process_json_proto [15:29:49]json parsed OK: [15:29:49]protocol is kg_v1.0 [15:29:49]action value=close_receipt [15:29:49]process_action close_receipt [15:29:49]cmd_close_receipt [15:29:49]MH_GetDate [15:29:49]Write to MH i2c: F0 00 00 5A 14 5D [15:29:49]Write i2c OK [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: F0 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: F0 09 00 [15:29:49]MH_I2C_Read... [15:29:49]Read from MH i2c: F0 09 00 5A 14 00 FD 0A 1D 67 22 05 6E 64 EA [15:29:49]GetLastDocTimeStamp 1729956495 [15:29:49]current date 1729956605 [15:29:49]FM_GetShiftState [15:29:49]SAM_PROTO_GetShiftState [15:29:49]wFMCommunicate request_size=4 [15:29:49]MH_SAM_APDU [15:29:49]CAPDU: 80 13 01 00 [15:29:49]Write to MH i2c: E2 08 00 5B 14 80 13 01 00 00 00 00 00 EC [15:29:49]Write i2c OK [15:29:49]MH_I2C_Read... [15:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:50]Read from MH i2c: E2 [15:29:50]MH_I2C_Read... [15:29:50]Read from MH i2c: E2 0E 00 [15:29:50]MH_I2C_Read... [15:29:50]Read from MH i2c: E2 0E 00 5B 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 65 [15:29:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:29:50]wFMCommunicate OK [15:29:50]SAM_PROTO_GetShiftState done [15:29:50]FM_GetShiftState done [15:29:50]opened in 1729902770 [15:29:50]opened+sec_in_day 1729989170 [15:29:50]quantity*price = 66 [15:29:50]sum+1 = 68 [15:29:50]Check (price>sum+1) || (price+1 о реализуемом товаре [15:29:51]line ОКРУГЛЕНИЕ: -0.67 [15:29:51]line ИТОГО: 0.00 [15:29:51]line Внесено: 900.00 [15:29:51]line СДАЧА: 900.00 [15:29:51]line НСП 1% : 0.01 [15:29:51]line НДС 12% : 0.07 [15:29:51]line Наличными: 0.00 [15:29:51]line Безнал.: 0.00 [15:29:51]line Место: АЗС № 170 "Партнер Нефть" [15:29:51]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:29:51]line СНО: Общий режим [15:29:51]line Чек 190 26.10.2024 15:30 [15:29:51]line Смена: 541 ФФД: 1.0 [15:29:51]line ЗНМ: 0300000110 [15:29:51]line РНМ: 0000000000091776 [15:29:51]line Версия ККМ: 001 [15:29:51]line ФМ: 0000000000871754 [15:29:51]line ФД: 191827 [15:29:51]line ФПД: 34201079970703 [15:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153005&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191827&fm=34201079970703&tin=02508201610067®Number=0000000000091776&sum=0 [15:29:52]OFD Sender: Processing packet 191827 [packets to send 75, broken 74] [15:29:52]ProducePacketName [15:29:52]name=ofd_packets/00191827 [15:29:52]OFD Sender: To server: pG, [15:29:52]CommunicateWithHost lk.salyk.kg:30040 [15:29:52]ConnectInit lk.salyk.kg [15:29:52]written 0, free lines is 4095 [15:29:52]Connected sock=9 [15:29:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 89 07 01 37 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 FD 0A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 ED 02 00 35 04 06 00 1F 1B 0F 38 FB 8F 02 22 FC ED 3E 02 FA 35 [15:29:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AC B5 47 00 04 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 53 ED 02 00 F4 03 04 00 C7 AF 1C 67 B6 04 01 00 00 28 AE 31 6D B5 B5 7C E8 [15:29:52]CommunicateWithHost err = 0 [15:29:52]CheckOFDResponse [15:29:52]1017 (14) - 77093643461234 [15:29:52]1041 (16) - 0000000000871754 [15:29:52]1040 (4) - 191827 [15:29:52]1012 (4) - 26.10.2024 09:00 [15:29:52]1206 (1) - 0 [15:29:52]OFD Sender: Remove packet 191827 [15:29:52]ProducePacketName [15:29:52]name=ofd_packets/00191827 [15:29:52]NVStorageDeleteData [15:29:52]Write to MH i2c: 01 00 00 99 14 AD [15:29:52]Write i2c OK [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: 01 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: 01 07 00 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: 01 07 00 99 14 00 00 00 00 00 BD 0C 7D [15:29:52]RasterBufferAndPrint [15:29:52]line [15:29:52]line [15:29:52]line [15:29:52]line [15:29:52]line [15:29:52]written 0, free lines is 3270 [15:29:52]MH_Cut [15:29:52]Write to MH i2c: D1 01 00 A0 14 01 86 [15:29:52]Write i2c OK [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: D1 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: D1 01 00 [15:29:52]MH_I2C_Read... [15:29:52]Read from MH i2c: D1 01 00 A0 14 00 85 [15:29:52]Write to MH i2c: 01 00 00 A1 14 B5 [15:29:52]Write i2c OK [15:29:52]MH_I2C_Read... [15:29:52]OFD Sender: No OFD packet to send [15:29:53]*** Cut start [15:29:53]*** Partial cut [15:29:53]*** CUTSNS_PIN = 1 [15:29:53]*** CUTSNS_PIN = 0 [15:29:53]*** Brake cut motor [15:29:53]Read from MH i2c: 01 [15:29:53]MH_I2C_Read... [15:29:53]*** Stop cut motor [15:29:53]*** Cut end [15:29:53]Read from MH i2c: 01 07 00 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: 01 07 00 A1 14 00 00 00 00 00 FF 0F CA [15:29:53]process_action close_receipt done [15:29:53]requested_data is exist [15:29:53]produce_requested_data [15:29:53]requested_item fm.sn is exist - process it [15:29:53]wFMCommunicate request_size=4 [15:29:53]MH_SAM_APDU [15:29:53]CAPDU: 80 11 00 00 [15:29:53]Write to MH i2c: E2 08 00 A2 14 80 11 00 00 00 00 00 00 30 [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:53]Read from MH i2c: E2 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 17 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 17 00 A2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 83 [15:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:29:54]wFMCommunicate OK [15:29:54]requested_item fd.num is exist - process it [15:29:54]SAM_PROTO_GetFieldsCounters [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 13 00 00 [15:29:54]Write to MH i2c: E2 08 00 A3 14 80 13 00 00 00 00 00 00 33 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 62 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 62 00 A3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [15:29:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 53 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:54]wFMCommunicate OK [15:29:54]SAM_PROTO_GetFieldsCounters done [15:29:54]requested_item shift.num is exist - process it [15:29:54]requested_item shift.opened is exist - process it [15:29:54]req_shift_opened [15:29:54]FM_GetShiftState [15:29:54]SAM_PROTO_GetShiftState [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 13 01 00 [15:29:54]Write to MH i2c: E2 08 00 A4 14 80 13 01 00 00 00 00 00 35 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 0E 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 0E 00 A4 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AE [15:29:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:29:54]wFMCommunicate OK [15:29:54]SAM_PROTO_GetShiftState done [15:29:54]FM_GetShiftState done [15:29:54]req_shift_opened done [15:29:54]requested_item shift.open_date is exist - process it [15:29:54]req_shift_open_date [15:29:54]req_shift_open_date done [15:29:54]produce_requested_data done [15:29:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191827,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:29:54]process_action_free close_receipt [15:29:54]json_value_free [15:29:54]json_value_free done [15:29:54]process_json_proto returns [15:29:54]Send response to host [15:29:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191827,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:29:54]free response buf [15:29:54]execute_script done [15:29:54]execute_script returns [15:29:54]free content buf [15:29:54]Sock 5.Close socket [15:29:54]Sock 5.Thread stoped [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:30]accept exits with 8 [15:31:30]New connection [15:31:30]New thread 3066961252 created [15:31:30]Thread 3066817892 joined [15:31:30]Waiting for new connection... [15:31:30] Sock 8.Parse request [15:31:30]Sock 8.Check first char [15:31:30]Sock 8.First char is OK [15:31:30]request: POST /json_proto HTTP/1.0 [15:31:30]Method: POST [15:31:30]URL: /json_proto [15:31:30]Method is POST - this is cgi request [15:31:30]url: /json_proto [15:31:30]query_string will be loaded in cgi processing [15:31:30]execute_cgi json_proto POST (null) [15:31:30]execute_cgi path=json_proto method=POST [15:31:30]POST find Content-Length [15:31:30]Host: 172.17.63.131:8080 [15:31:30]Content-Length: 677 [15:31:30]Content-Type: application/json [15:31:30] [15:31:30]POST finish read [15:31:30]Found Content-Length = 677 [15:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:30]execute_script... [15:31: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)31136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:30]POST & json_proto [15:31:30]process_json_proto [15:31:30]json parsed OK: [15:31:30]protocol is kg_v1.0 [15:31:30]action value=close_receipt [15:31:30]process_action close_receipt [15:31:30]cmd_close_receipt [15:31:30]MH_GetDate [15:31:30]Write to MH i2c: F0 00 00 A5 14 A8 [15:31:30]Write i2c OK [15:31:30]MH_I2C_Read... [15:31:30]Read from MH i2c: F0 [15:31:30]MH_I2C_Read... [15:31:30]Read from MH i2c: F0 09 00 [15:31:30]MH_I2C_Read... [15:31:30]Read from MH i2c: F0 09 00 A5 14 00 61 0B 1D 67 22 05 6E 64 9A [15:31:30]GetLastDocTimeStamp 1729956605 [15:31:30]current date 1729956705 [15:31:30]FM_GetShiftState [15:31:30]SAM_PROTO_GetShiftState [15:31:30]wFMCommunicate request_size=4 [15:31:30]MH_SAM_APDU [15:31:30]CAPDU: 80 13 01 00 [15:31:30]Write to MH i2c: E2 08 00 A6 14 80 13 01 00 00 00 00 00 37 [15:31:30]Write i2c OK [15:31:30]MH_I2C_Read... [15:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:30]Read from MH i2c: E2 [15:31:30]MH_I2C_Read... [15:31:30]Read from MH i2c: E2 0E 00 [15:31:30]MH_I2C_Read... [15:31:30]Read from MH i2c: E2 0E 00 A6 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B0 [15:31:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:31:30]wFMCommunicate OK [15:31:30]SAM_PROTO_GetShiftState done [15:31:30]FM_GetShiftState done [15:31:30]opened in 1729902770 [15:31:30]opened+sec_in_day 1729989170 [15:31:30]quantity*price = 90047 [15:31:30]sum+1 = 90048 [15:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 191 26.10.2024 15:31 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191828 ФПД: 221874738475229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191828&fm=221874738475229&tin=02508201610067®Number=0000000000091776&sum=90000 [15:31:31]StoreToDocumentArchive [15:31:31]shift 541 fd 191828 [15:31:31]save to /storage/0541/doc_00191828 [15:31:31]save last doc name /storage/0541/doc_00191828 to /storage/kkm_last_doc_name [15:31:31]save OK [15:31:31]Clear old archive folders... [15:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:31]tlvbuf is 015B0CD0 [15:31:31]SAM_PROTO_ClearQueue [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 09 00 00 [15:31:31]Write to MH i2c: E2 08 00 B3 14 80 09 00 00 00 00 00 00 39 [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [15:31:31]RAPDU: 90 00 [15:31:31]wFMCommunicate OK [15:31:31]SAM_PROTO_ClearQueue done [15:31:31]KKMCreateOFDPacket [15:31:31]OFDProtocolAddRootSTLVToBuf [15:31:31]FM_MakeSignedData [15:31:31]FM_MakeSignedData [15:31:31]SAM_PROTO_SignData [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 0D 01 02 [15:31:31]Write to MH i2c: E2 08 00 B4 14 80 0D 01 02 00 00 00 00 41 [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 B4 14 00 90 00 3C [15:31:31]RAPDU: 90 00 [15:31:31]wFMCommunicate OK [15:31:31]wFMCommunicate request_size=255 [15:31:31]MH_SAM_APDU [15:31: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 ED 02 00 35 04 06 00 C9 [15:31:31]Write to MH i2c: E2 02 01 B5 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 ED 02 00 35 04 06 00 C9 00 00 CC [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 B5 14 00 90 00 3D [15:31:31]RAPDU: 90 00 [15:31:31]wFMCommunicate OK [15:31:31]wFMCommunicate request_size=10 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 0D 02 02 05 CB 3C F8 B0 DD [15:31:31]Write to MH i2c: E2 0D 00 B6 14 80 0D 02 02 05 00 CB 3C F8 B0 DD 00 00 DA [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [15:31:31]RAPDU: 90 00 [15:31:31]wFMCommunicate OK [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 0D 03 02 [15:31:31]Write to MH i2c: E2 08 00 B7 14 80 0D 03 02 00 00 00 00 46 [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 0B 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 0B 00 B7 14 00 F1 4B 00 B6 B1 7E A7 84 90 00 93 [15:31:31]RAPDU: F1 4B 00 B6 B1 7E A7 84 90 00 [15:31:31]wFMCommunicate OK [15:31:31]SAM_PROTO_SignData done [15:31:31]FM_MakeSignedData done [15:31:31]CreateOFDProtocolMessage [15:31:31]wFMCommunicate request_size=4 [15:31:31]MH_SAM_APDU [15:31:31]CAPDU: 80 11 00 00 [15:31:31]Write to MH i2c: E2 08 00 B8 14 80 11 00 00 00 00 00 00 46 [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:31]Read from MH i2c: E2 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 17 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: E2 17 00 B8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [15:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:31]wFMCommunicate OK [15:31:31]CreateOFDProtocolMessage done [15:31:31]OFDSenderStorePacket 191828 [15:31:31]StoreOFDPacket docnum=191828 [15:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 7F 07 01 E7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 ED 02 00 35 04 06 00 C9 CB 3C F8 B0 DD F1 4B 00 B6 B1 7E A7 84 [15:31:31]CheckFolder [15:31:31]dirname=/storage/ofd_packets [15:31:31]CheckFolder done [15:31:31]ProducePacketName [15:31:31]name=ofd_packets/00191828 [15:31:31]NVStorageSaveData ofd_packets/00191828 [15:31:31]File name is /storage/ofd_packets/00191828 [15:31:31]Write 301 bytes [15:31:31]NVStorageSaveData done [15:31:31]OFDSenderStorePacket done [15:31:31]KKMCreateOFDPacket done [15:31:31]NVStorageSaveData kkm_last_timestamp [15:31:31]File name is /storage/kkm_last_timestamp [15:31:31]Write 4 bytes [15:31:31]NVStorageSaveData done [15:31:31]ExternCall_PrintAddStr [15:31:31]wPrintStart [15:31:31]Write to MH i2c: 01 00 00 B9 14 CD [15:31:31]Write i2c OK [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: 01 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: 01 07 00 [15:31:31]MH_I2C_Read... [15:31:31]Read from MH i2c: 01 07 00 B9 14 00 00 00 00 00 FF 0F E2 [15:31:31]RasterBufferAndPrint [15:31:31]line Счет N : (1)31136 [15:31:31]line ИНН: 02508201610067 [15:31:31]line Контрольно-Кассовый Чек [15:31:31]line ПРОДАЖА [15:31:31]line ТРК (МРК, ГНК) : 21 [15:31:31]line Товар: 2710124130 [15:31:31]line Аи-92-К-5 [15:31:31]line 13.460 * 66.90 [15:31:31]line = 900.47 [15:31:31]line НДС 12% НСП 1% [15:31:31]line > о реализуемом товаре [15:31:31]line ОКРУГЛЕНИЕ: -0.47 [15:31:31]line ИТОГО: 900.00 [15:31:31]line Внесено: 900.00 [15:31:31]line СДАЧА: 0.00 [15:31:31]line НСП 1% : 7.97 [15:31:31]line НДС 12% : 95.62 [15:31:31]line Наличными: 900.00 [15:31:31]line Безнал.: 0.00 [15:31:31]line Место: АЗС № 170 "Партнер Нефть" [15:31:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:31:31]line СНО: Общий режим [15:31:31]line Чек 191 26.10.2024 15:31 [15:31:31]line Смена: 541 ФФД: 1.0 [15:31:31]line ЗНМ: 0300000110 [15:31:31]line РНМ: 0000000000091776 [15:31:31]line Версия ККМ: 001 [15:31:31]line ФМ: 0000000000871754 [15:31:31]line ФД: 191828 [15:31:31]line ФПД: 221874738475229 [15:31:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153145&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191828&fm=221874738475229&tin=02508201610067®Number=0000000000091776&sum=90000 [15:31:31]written 0, free lines is 4095 [15:31:31]OFD Sender: Processing packet 191828 [packets to send 75, broken 74] [15:31:31]ProducePacketName [15:31:31]name=ofd_packets/00191828 [15:31:31]OFD Sender: To server: pG, [15:31:31]CommunicateWithHost lk.salyk.kg:30040 [15:31:31]ConnectInit lk.salyk.kg [15:31:32]Connected sock=9 [15:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 7F 07 01 E7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 61 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 ED 02 00 35 04 06 00 C9 CB 3C F8 B0 DD F1 4B 00 B6 B1 7E A7 84 [15:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5D 00 47 00 77 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 54 ED 02 00 F4 03 04 00 2B B0 1C 67 B6 04 01 00 00 C8 E7 A1 B7 29 42 FA 97 [15:31:32]CommunicateWithHost err = 0 [15:31:32]CheckOFDResponse [15:31:32]1017 (14) - 77093643461234 [15:31:32]1041 (16) - 0000000000871754 [15:31:32]1040 (4) - 191828 [15:31:32]1012 (4) - 26.10.2024 09:02 [15:31:32]1206 (1) - 0 [15:31:32]OFD Sender: Remove packet 191828 [15:31:32]ProducePacketName [15:31:32]name=ofd_packets/00191828 [15:31:32]NVStorageDeleteData [15:31:32]Write to MH i2c: 01 00 00 E4 14 F8 [15:31:32]Write i2c OK [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: 01 [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: 01 07 00 [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: 01 07 00 E4 14 00 00 00 00 00 BB 0C C6 [15:31:32]RasterBufferAndPrint [15:31:32]line [15:31:32]line [15:31:32]line [15:31:32]line [15:31:32]line [15:31:32]written 0, free lines is 3269 [15:31:32]MH_Cut [15:31:32]Write to MH i2c: D1 01 00 EB 14 01 D1 [15:31:32]Write i2c OK [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: D1 [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: D1 01 00 [15:31:32]MH_I2C_Read... [15:31:32]Read from MH i2c: D1 01 00 EB 14 00 D0 [15:31:32]Write to MH i2c: 01 00 00 EC 14 00 [15:31:32]Write i2c OK [15:31:32]MH_I2C_Read... [15:31:32]OFD Sender: No OFD packet to send [15:31:33]*** Cut start [15:31:33]*** Partial cut [15:31:33]*** CUTSNS_PIN = 1 [15:31:33]*** CUTSNS_PIN = 0 [15:31:33]*** Brake cut motor [15:31:33]Read from MH i2c: 01 [15:31:33]MH_I2C_Read... [15:31:33]*** Stop cut motor [15:31:33]*** Cut end [15:31:33]Read from MH i2c: 01 07 00 [15:31:33]MH_I2C_Read... [15:31:33]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 FF 0F 15 [15:31:33]process_action close_receipt done [15:31:33]requested_data is exist [15:31:33]produce_requested_data [15:31:33]requested_item fm.sn is exist - process it [15:31:33]wFMCommunicate request_size=4 [15:31:33]MH_SAM_APDU [15:31:33]CAPDU: 80 11 00 00 [15:31:33]Write to MH i2c: E2 08 00 ED 14 80 11 00 00 00 00 00 00 7B [15:31:33]Write i2c OK [15:31:33]MH_I2C_Read... [15:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:33]Read from MH i2c: E2 [15:31:33]MH_I2C_Read... [15:31:33]Read from MH i2c: E2 17 00 [15:31:33]MH_I2C_Read... [15:31:33]Read from MH i2c: E2 17 00 ED 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CE [15:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:33]wFMCommunicate OK [15:31:33]requested_item fd.num is exist - process it [15:31:33]SAM_PROTO_GetFieldsCounters [15:31:33]wFMCommunicate request_size=4 [15:31:33]MH_SAM_APDU [15:31:33]CAPDU: 80 13 00 00 [15:31:33]Write to MH i2c: E2 08 00 EE 14 80 13 00 00 00 00 00 00 7E [15:31:33]Write i2c OK [15:31:33]MH_I2C_Read... [15:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:34]Read from MH i2c: E2 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 62 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 62 00 EE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [15:31:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 54 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:34]wFMCommunicate OK [15:31:34]SAM_PROTO_GetFieldsCounters done [15:31:34]requested_item shift.num is exist - process it [15:31:34]requested_item shift.opened is exist - process it [15:31:34]req_shift_opened [15:31:34]FM_GetShiftState [15:31:34]SAM_PROTO_GetShiftState [15:31:34]wFMCommunicate request_size=4 [15:31:34]MH_SAM_APDU [15:31:34]CAPDU: 80 13 01 00 [15:31:34]Write to MH i2c: E2 08 00 EF 14 80 13 01 00 00 00 00 00 80 [15:31:34]Write i2c OK [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 [15:31:34]MH_I2C_Read... [15:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:34]Read from MH i2c: E2 0E 00 [15:31:34]MH_I2C_Read... [15:31:34]Read from MH i2c: E2 0E 00 EF 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F9 [15:31:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:31:34]wFMCommunicate OK [15:31:34]SAM_PROTO_GetShiftState done [15:31:34]FM_GetShiftState done [15:31:34]req_shift_opened done [15:31:34]requested_item shift.open_date is exist - process it [15:31:34]req_shift_open_date [15:31:34]req_shift_open_date done [15:31:34]produce_requested_data done [15:31:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191828,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:31:34]process_action_free close_receipt [15:31:34]json_value_free [15:31:34]json_value_free done [15:31:34]process_json_proto returns [15:31:34]Send response to host [15:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191828,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:31:34]free response buf [15:31:34]execute_script done [15:31:34]execute_script returns [15:31:34]free content buf [15:31:34]Sock 8.Close socket [15:31:34]Sock 8.Thread stoped [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:45]accept exits with 6 [15:31:45]New connection [15:31:45]New thread 3066817892 created [15:31:45]Thread 3066961252 joined [15:31:45]Waiting for new connection... [15:31:45] Sock 6.Parse request [15:31:45]Sock 6.Check first char [15:31:45]Sock 6.First char is OK [15:31:45]request: POST /json_proto HTTP/1.0 [15:31:45]Method: POST [15:31:45]URL: /json_proto [15:31:45]Method is POST - this is cgi request [15:31:45]url: /json_proto [15:31:45]query_string will be loaded in cgi processing [15:31:45]execute_cgi json_proto POST (null) [15:31:45]execute_cgi path=json_proto method=POST [15:31:45]POST find Content-Length [15:31:45]Host: 172.17.63.131:8080 [15:31:45]Content-Length: 678 [15:31:45]Content-Type: application/json [15:31:45] [15:31:45]POST finish read [15:31:45]Found Content-Length = 678 [15:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:45]execute_script... [15:31: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)31134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:45]POST & json_proto [15:31:45]process_json_proto [15:31:45]json parsed OK: [15:31:45]protocol is kg_v1.0 [15:31:45]action value=close_receipt [15:31:45]process_action close_receipt [15:31:45]cmd_close_receipt [15:31:45]MH_GetDate [15:31:45]Write to MH i2c: F0 00 00 F0 14 F3 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 09 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: F0 09 00 F0 14 00 71 0B 1D 67 22 05 6E 64 F5 [15:31:45]GetLastDocTimeStamp 1729956705 [15:31:45]current date 1729956721 [15:31:45]FM_GetShiftState [15:31:45]SAM_PROTO_GetShiftState [15:31:45]wFMCommunicate request_size=4 [15:31:45]MH_SAM_APDU [15:31:45]CAPDU: 80 13 01 00 [15:31:45]Write to MH i2c: E2 08 00 F1 14 80 13 01 00 00 00 00 00 82 [15:31:45]Write i2c OK [15:31:45]MH_I2C_Read... [15:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:45]Read from MH i2c: E2 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 [15:31:45]MH_I2C_Read... [15:31:45]Read from MH i2c: E2 0E 00 F1 14 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FB [15:31:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:31:45]wFMCommunicate OK [15:31:45]SAM_PROTO_GetShiftState done [15:31:45]FM_GetShiftState done [15:31:45]opened in 1729902770 [15:31:45]opened+sec_in_day 1729989170 [15:31:45]quantity*price = 200025 [15:31:45]sum+1 = 200026 [15:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 192 26.10.2024 15:32 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191829 ФПД: 279430446937723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153201&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191829&fm=279430446937723&tin=02508201610067®Number=0000000000091776&sum=200000 [15:31:46]StoreToDocumentArchive [15:31:46]shift 541 fd 191829 [15:31:46]save to /storage/0541/doc_00191829 [15:31:46]save last doc name /storage/0541/doc_00191829 to /storage/kkm_last_doc_name [15:31:46]save OK [15:31:46]Clear old archive folders... [15:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:46]tlvbuf is 0183C230 [15:31:46]SAM_PROTO_ClearQueue [15:31:46]wFMCommunicate request_size=4 [15:31:46]MH_SAM_APDU [15:31:46]CAPDU: 80 09 00 00 [15:31:46]Write to MH i2c: E2 08 00 FE 14 80 09 00 00 00 00 00 00 84 [15:31:46]Write i2c OK [15:31:46]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]SAM_PROTO_ClearQueue done [15:31:47]KKMCreateOFDPacket [15:31:47]OFDProtocolAddRootSTLVToBuf [15:31:47]FM_MakeSignedData [15:31:47]FM_MakeSignedData [15:31:47]SAM_PROTO_SignData [15:31:47]wFMCommunicate request_size=4 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 01 02 [15:31:47]Write to MH i2c: E2 08 00 FF 14 80 0D 01 02 00 00 00 00 8C [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 FF 14 00 90 00 87 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]wFMCommunicate request_size=255 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 71 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 ED 02 00 35 04 06 00 FE 23 F8 87 [15:31:47]Write to MH i2c: E2 02 01 00 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 71 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 ED 02 00 35 04 06 00 FE 23 F8 87 00 00 C8 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 00 15 00 90 00 89 [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]wFMCommunicate request_size=7 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 02 02 02 76 7B [15:31:47]Write to MH i2c: E2 0A 00 01 15 80 0D 02 02 02 00 76 7B 00 00 85 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 03 00 01 15 00 90 00 8A [15:31:47]RAPDU: 90 00 [15:31:47]wFMCommunicate OK [15:31:47]wFMCommunicate request_size=4 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 0D 03 02 [15:31:47]Write to MH i2c: E2 08 00 02 15 80 0D 03 02 00 00 00 00 92 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 0B 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 0B 00 02 15 00 67 CC 8B 81 1D A0 15 3D 90 00 E1 [15:31:47]RAPDU: 67 CC 8B 81 1D A0 15 3D 90 00 [15:31:47]wFMCommunicate OK [15:31:47]SAM_PROTO_SignData done [15:31:47]FM_MakeSignedData done [15:31:47]CreateOFDProtocolMessage [15:31:47]wFMCommunicate request_size=4 [15:31:47]MH_SAM_APDU [15:31:47]CAPDU: 80 11 00 00 [15:31:47]Write to MH i2c: E2 08 00 03 15 80 11 00 00 00 00 00 00 92 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:47]Read from MH i2c: E2 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 17 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: E2 17 00 03 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E5 [15:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:47]wFMCommunicate OK [15:31:47]CreateOFDProtocolMessage done [15:31:47]OFDSenderStorePacket 191829 [15:31:47]StoreOFDPacket docnum=191829 [15:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1B 4C 04 01 0F C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 71 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 ED 02 00 35 04 06 00 FE 23 F8 87 76 7B 67 CC 8B 81 1D A0 15 3D [15:31:47]CheckFolder [15:31:47]dirname=/storage/ofd_packets [15:31:47]CheckFolder done [15:31:47]ProducePacketName [15:31:47]name=ofd_packets/00191829 [15:31:47]NVStorageSaveData ofd_packets/00191829 [15:31:47]File name is /storage/ofd_packets/00191829 [15:31:47]Write 298 bytes [15:31:47]NVStorageSaveData done [15:31:47]OFDSenderStorePacket done [15:31:47]KKMCreateOFDPacket done [15:31:47]NVStorageSaveData kkm_last_timestamp [15:31:47]File name is /storage/kkm_last_timestamp [15:31:47]Write 4 bytes [15:31:47]NVStorageSaveData done [15:31:47]ExternCall_PrintAddStr [15:31:47]wPrintStart [15:31:47]Write to MH i2c: 01 00 00 04 15 19 [15:31:47]Write i2c OK [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 07 00 [15:31:47]MH_I2C_Read... [15:31:47]Read from MH i2c: 01 07 00 04 15 00 00 00 00 00 FF 0F 2E [15:31:47]RasterBufferAndPrint [15:31:47]line Счет N : (1)31134 [15:31:47]line ИНН: 02508201610067 [15:31:47]line Контрольно-Кассовый Чек [15:31:47]line ПРОДАЖА [15:31:47]line ТРК (МРК, ГНК) : 11 [15:31:47]line Товар: 2710194210 [15:31:47]line ДТ-К-5 [15:31:47]line 26.250 * 76.20 [15:31:47]line = 2000.25 [15:31:47]line НДС 12% НСП 1% [15:31:47]line > о реализуемом товаре [15:31:47]line ОКРУГЛЕНИЕ: -0.25 [15:31:47]line ИТОГО: 2000.00 [15:31:47]line Внесено: 2000.00 [15:31:47]line СДАЧА: 0.00 [15:31:47]line НСП 1% : 17.70 [15:31:47]line НДС 12% : 212.42 [15:31:47]line Наличными: 2000.00 [15:31:47]line Безнал.: 0.00 [15:31:47]line Место: АЗС № 170 "Партнер Нефть" [15:31:47]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:31:47]line СНО: Общий режим [15:31:47]line Чек 192 26.10.2024 15:32 [15:31:47]line Смена: 541 ФФД: 1.0 [15:31:47]line ЗНМ: 0300000110 [15:31:47]line РНМ: 0000000000091776 [15:31:47]line Версия ККМ: 001 [15:31:47]line ФМ: 0000000000871754 [15:31:47]line ФД: 191829 [15:31:47]line ФПД: 279430446937723 [15:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153201&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191829&fm=279430446937723&tin=02508201610067®Number=0000000000091776&sum=200000 [15:31:47]OFD Sender: Processing packet 191829 [packets to send 75, broken 74] [15:31:47]ProducePacketName [15:31:47]name=ofd_packets/00191829 [15:31:47]OFD Sender: To server: pG, [15:31:47]CommunicateWithHost lk.salyk.kg:30040 [15:31:47]ConnectInit lk.salyk.kg [15:31:47]written 0, free lines is 4095 [15:31:47]Connected sock=9 [15:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 1B 4C 04 01 0F C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 71 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 ED 02 00 35 04 06 00 FE 23 F8 87 76 7B 67 CC 8B 81 1D A0 15 3D [15:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF 57 47 00 79 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 55 ED 02 00 F4 03 04 00 3B B0 1C 67 B6 04 01 00 00 56 C8 DB F6 01 B0 E8 34 [15:31:48]CommunicateWithHost err = 0 [15:31:48]CheckOFDResponse [15:31:48]1017 (14) - 77093643461234 [15:31:48]1041 (16) - 0000000000871754 [15:31:48]1040 (4) - 191829 [15:31:48]1012 (4) - 26.10.2024 09:02 [15:31:48]1206 (1) - 0 [15:31:48]OFD Sender: Remove packet 191829 [15:31:48]ProducePacketName [15:31:48]name=ofd_packets/00191829 [15:31:48]NVStorageDeleteData [15:31:48]Write to MH i2c: 01 00 00 2F 15 44 [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: 01 07 00 2F 15 00 00 00 00 00 D3 0C 2A [15:31:48]RasterBufferAndPrint [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]line [15:31:48]written 0, free lines is 3304 [15:31:48]MH_Cut [15:31:48]Write to MH i2c: D1 01 00 36 15 01 1D [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: D1 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: D1 01 00 [15:31:48]MH_I2C_Read... [15:31:48]Read from MH i2c: D1 01 00 36 15 00 1C [15:31:48]Write to MH i2c: 01 00 00 37 15 4C [15:31:48]Write i2c OK [15:31:48]MH_I2C_Read... [15:31:48]OFD Sender: No OFD packet to send [15:31:49]*** Cut start [15:31:49]*** Partial cut [15:31:49]*** CUTSNS_PIN = 1 [15:31:49]*** CUTSNS_PIN = 0 [15:31:49]*** Brake cut motor [15:31:49]Read from MH i2c: 01 [15:31:49]MH_I2C_Read... [15:31:49]*** Stop cut motor [15:31:49]*** Cut end [15:31:49]Read from MH i2c: 01 07 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [15:31:49]process_action close_receipt done [15:31:49]requested_data is exist [15:31:49]produce_requested_data [15:31:49]requested_item fm.sn is exist - process it [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 11 00 00 [15:31:49]Write to MH i2c: E2 08 00 38 15 80 11 00 00 00 00 00 00 C7 [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 17 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 17 00 38 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1A [15:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:31:49]wFMCommunicate OK [15:31:49]requested_item fd.num is exist - process it [15:31:49]SAM_PROTO_GetFieldsCounters [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 13 00 00 [15:31:49]Write to MH i2c: E2 08 00 39 15 80 13 00 00 00 00 00 00 CA [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:49]Read from MH i2c: E2 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 62 00 [15:31:49]MH_I2C_Read... [15:31:49]Read from MH i2c: E2 62 00 39 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [15:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 55 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:49]wFMCommunicate OK [15:31:49]SAM_PROTO_GetFieldsCounters done [15:31:49]requested_item shift.num is exist - process it [15:31:49]requested_item shift.opened is exist - process it [15:31:49]req_shift_opened [15:31:49]FM_GetShiftState [15:31:49]SAM_PROTO_GetShiftState [15:31:49]wFMCommunicate request_size=4 [15:31:49]MH_SAM_APDU [15:31:49]CAPDU: 80 13 01 00 [15:31:49]Write to MH i2c: E2 08 00 3A 15 80 13 01 00 00 00 00 00 CC [15:31:49]Write i2c OK [15:31:49]MH_I2C_Read... [15:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:50]Read from MH i2c: E2 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 0E 00 [15:31:50]MH_I2C_Read... [15:31:50]Read from MH i2c: E2 0E 00 3A 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 45 [15:31:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:31:50]wFMCommunicate OK [15:31:50]SAM_PROTO_GetShiftState done [15:31:50]FM_GetShiftState done [15:31:50]req_shift_opened done [15:31:50]requested_item shift.open_date is exist - process it [15:31:50]req_shift_open_date [15:31:50]req_shift_open_date done [15:31:50]produce_requested_data done [15:31:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191829,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:31:50]process_action_free close_receipt [15:31:50]json_value_free [15:31:50]json_value_free done [15:31:50]process_json_proto returns [15:31:50]Send response to host [15:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191829,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:31:50]free response buf [15:31:50]execute_script done [15:31:50]execute_script returns [15:31:50]free content buf [15:31:50]Sock 6.Close socket [15:31:50]Sock 6.Thread stoped [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:02]accept exits with 8 [15:33:02]New connection [15:33:02]New thread 3066961252 created [15:33:02]Thread 3066817892 joined [15:33:02]Waiting for new connection... [15:33:02] Sock 8.Parse request [15:33:02]Sock 8.Check first char [15:33:02]Sock 8.First char is OK [15:33:02]request: POST /json_proto HTTP/1.0 [15:33:02]Method: POST [15:33:02]URL: /json_proto [15:33:02]Method is POST - this is cgi request [15:33:02]url: /json_proto [15:33:02]query_string will be loaded in cgi processing [15:33:02]execute_cgi json_proto POST (null) [15:33:02]execute_cgi path=json_proto method=POST [15:33:02]POST find Content-Length [15:33:02]Host: 172.17.63.131:8080 [15:33:02]Content-Length: 676 [15:33:02]Content-Type: application/json [15:33:02] [15:33:02]POST finish read [15:33:02]Found Content-Length = 676 [15:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:02]execute_script... [15:33:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:02]POST & json_proto [15:33:02]process_json_proto [15:33:02]json parsed OK: [15:33:02]protocol is kg_v1.0 [15:33:02]action value=close_receipt [15:33:02]process_action close_receipt [15:33:02]cmd_close_receipt [15:33:02]MH_GetDate [15:33:02]Write to MH i2c: F0 00 00 3B 15 3F [15:33:02]Write i2c OK [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 09 00 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: F0 09 00 3B 15 00 BD 0B 1D 67 22 05 6E 64 8D [15:33:02]GetLastDocTimeStamp 1729956721 [15:33:02]current date 1729956797 [15:33:02]FM_GetShiftState [15:33:02]SAM_PROTO_GetShiftState [15:33:02]wFMCommunicate request_size=4 [15:33:02]MH_SAM_APDU [15:33:02]CAPDU: 80 13 01 00 [15:33:02]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [15:33:02]Write i2c OK [15:33:02]MH_I2C_Read... [15:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:02]Read from MH i2c: E2 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: E2 0E 00 [15:33:02]MH_I2C_Read... [15:33:02]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 47 [15:33:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:33:02]wFMCommunicate OK [15:33:02]SAM_PROTO_GetShiftState done [15:33:02]FM_GetShiftState done [15:33:02]opened in 1729902770 [15:33:02]opened+sec_in_day 1729989170 [15:33:02]quantity*price = 50041 [15:33:02]sum+1 = 50042 [15:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 193 26.10.2024 15:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191830 ФПД: 182924469641863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191830&fm=182924469641863&tin=02508201610067®Number=0000000000091776&sum=50000 [15:33:04]StoreToDocumentArchive [15:33:04]shift 541 fd 191830 [15:33:04]save to /storage/0541/doc_00191830 [15:33:04]save last doc name /storage/0541/doc_00191830 to /storage/kkm_last_doc_name [15:33:04]save OK [15:33:04]Clear old archive folders... [15:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:04]tlvbuf is 01664FA0 [15:33:04]SAM_PROTO_ClearQueue [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 09 00 00 [15:33:04]Write to MH i2c: E2 08 00 49 15 80 09 00 00 00 00 00 00 D0 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]SAM_PROTO_ClearQueue done [15:33:04]KKMCreateOFDPacket [15:33:04]OFDProtocolAddRootSTLVToBuf [15:33:04]FM_MakeSignedData [15:33:04]FM_MakeSignedData [15:33:04]SAM_PROTO_SignData [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 01 02 [15:33:04]Write to MH i2c: E2 08 00 4A 15 80 0D 01 02 00 00 00 00 D8 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 4A 15 00 90 00 D3 [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=255 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BE 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 ED 02 00 35 04 06 00 A6 [15:33:04]Write to MH i2c: E2 02 01 4B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BE 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 ED 02 00 35 04 06 00 A6 00 00 84 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=10 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 02 02 05 5E 6C 08 A2 87 [15:33:04]Write to MH i2c: E2 0D 00 4C 15 80 0D 02 02 05 00 5E 6C 08 A2 87 00 00 E0 [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [15:33:04]RAPDU: 90 00 [15:33:04]wFMCommunicate OK [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 0D 03 02 [15:33:04]Write to MH i2c: E2 08 00 4D 15 80 0D 03 02 00 00 00 00 DD [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 0B 00 [15:33:04]MH_I2C_Read... [15:33:04]Read from MH i2c: E2 0B 00 4D 15 00 08 EC 8A F5 BE C2 B5 6C 90 00 F2 [15:33:04]RAPDU: 08 EC 8A F5 BE C2 B5 6C 90 00 [15:33:04]wFMCommunicate OK [15:33:04]SAM_PROTO_SignData done [15:33:04]FM_MakeSignedData done [15:33:04]CreateOFDProtocolMessage [15:33:04]wFMCommunicate request_size=4 [15:33:04]MH_SAM_APDU [15:33:04]CAPDU: 80 11 00 00 [15:33:04]Write to MH i2c: E2 08 00 4E 15 80 11 00 00 00 00 00 00 DD [15:33:04]Write i2c OK [15:33:04]MH_I2C_Read... [15:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:04]Read from MH i2c: E2 [15:33:04]MH_I2C_Read... [15:33:05]Read from MH i2c: E2 17 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: E2 17 00 4E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 30 [15:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:05]wFMCommunicate OK [15:33:05]CreateOFDProtocolMessage done [15:33:05]OFDSenderStorePacket 191830 [15:33:05]StoreOFDPacket docnum=191830 [15:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 1E 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BE 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 ED 02 00 35 04 06 00 A6 5E 6C 08 A2 87 08 EC 8A F5 BE C2 B5 6C [15:33:05]CheckFolder [15:33:05]dirname=/storage/ofd_packets [15:33:05]CheckFolder done [15:33:05]ProducePacketName [15:33:05]name=ofd_packets/00191830 [15:33:05]NVStorageSaveData ofd_packets/00191830 [15:33:05]File name is /storage/ofd_packets/00191830 [15:33:05]Write 301 bytes [15:33:05]NVStorageSaveData done [15:33:05]OFDSenderStorePacket done [15:33:05]KKMCreateOFDPacket done [15:33:05]NVStorageSaveData kkm_last_timestamp [15:33:05]File name is /storage/kkm_last_timestamp [15:33:05]Write 4 bytes [15:33:05]NVStorageSaveData done [15:33:05]ExternCall_PrintAddStr [15:33:05]wPrintStart [15:33:05]Write to MH i2c: 01 00 00 4F 15 64 [15:33:05]OFD Sender: Processing packet 191830 [packets to send 75, broken 74] [15:33:05]ProducePacketName [15:33:05]name=ofd_packets/00191830 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]OFD Sender: To server: pG, [15:33:05]CommunicateWithHost lk.salyk.kg:30040 [15:33:05]ConnectInit lk.salyk.kg [15:33:05]Read from MH i2c: 01 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 4F 15 00 00 00 00 00 FF 0F 79 [15:33:05]RasterBufferAndPrint [15:33:05]line Счет N : (1)31138 [15:33:05]line ИНН: 02508201610067 [15:33:05]line Контрольно-Кассовый Чек [15:33:05]line ПРОДАЖА [15:33:05]line ТРК (МРК, ГНК) : 21 [15:33:05]line Товар: 2710124130 [15:33:05]line Аи-92-К-5 [15:33:05]line 7.480 * 66.90 [15:33:05]line = 500.41 [15:33:05]line НДС 12% НСП 1% [15:33:05]line > о реализуемом товаре [15:33:05]line ОКРУГЛЕНИЕ: -0.41 [15:33:05]line ИТОГО: 500.00 [15:33:05]line Внесено: 500.00 [15:33:05]line СДАЧА: 0.00 [15:33:05]line НСП 1% : 4.43 [15:33:05]line НДС 12% : 53.14 [15:33:05]line Наличными: 500.00 [15:33:05]line Безнал.: 0.00 [15:33:05]line Место: АЗС № 170 "Партнер Нефть" [15:33:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:33:05]line СНО: Общий режим [15:33:05]line Чек 193 26.10.2024 15:33 [15:33:05]line Смена: 541 ФФД: 1.0 [15:33:05]line ЗНМ: 0300000110 [15:33:05]line РНМ: 0000000000091776 [15:33:05]line Версия ККМ: 001 [15:33:05]line ФМ: 0000000000871754 [15:33:05]line ФД: 191830 [15:33:05]line ФПД: 182924469641863 [15:33:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191830&fm=182924469641863&tin=02508201610067®Number=0000000000091776&sum=50000 [15:33:05]written 0, free lines is 4095 [15:33:05]Connected sock=9 [15:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D3 1E 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BE 0B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 ED 02 00 35 04 06 00 A6 5E 6C 08 A2 87 08 EC 8A F5 BE C2 B5 6C [15:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 84 29 47 00 EA B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 56 ED 02 00 F4 03 04 00 89 B0 1C 67 B6 04 01 00 00 87 25 DB B6 54 A1 BA 11 [15:33:05]CommunicateWithHost err = 0 [15:33:05]CheckOFDResponse [15:33:05]1017 (14) - 77093643461234 [15:33:05]1041 (16) - 0000000000871754 [15:33:05]1040 (4) - 191830 [15:33:05]1012 (4) - 26.10.2024 09:04 [15:33:05]1206 (1) - 0 [15:33:05]OFD Sender: Remove packet 191830 [15:33:05]ProducePacketName [15:33:05]name=ofd_packets/00191830 [15:33:05]NVStorageDeleteData [15:33:05]Write to MH i2c: 01 00 00 7A 15 8F [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: 01 07 00 7A 15 00 00 00 00 00 78 0D 1B [15:33:05]RasterBufferAndPrint [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]line [15:33:05]written 0, free lines is 3470 [15:33:05]MH_Cut [15:33:05]Write to MH i2c: D1 01 00 81 15 01 68 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 01 00 [15:33:05]MH_I2C_Read... [15:33:05]Read from MH i2c: D1 01 00 81 15 00 67 [15:33:05]Write to MH i2c: 01 00 00 82 15 97 [15:33:05]Write i2c OK [15:33:05]MH_I2C_Read... [15:33:06]OFD Sender: No OFD packet to send [15:33:06]*** Cut start [15:33:06]*** Partial cut [15:33:06]*** CUTSNS_PIN = 1 [15:33:06]*** CUTSNS_PIN = 0 [15:33:06]*** Brake cut motor [15:33:07]Read from MH i2c: 01 [15:33:07]MH_I2C_Read... [15:33:07]*** Stop cut motor [15:33:07]*** Cut end [15:33:07]Read from MH i2c: 01 07 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [15:33:07]process_action close_receipt done [15:33:07]requested_data is exist [15:33:07]produce_requested_data [15:33:07]requested_item fm.sn is exist - process it [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 11 00 00 [15:33:07]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [15:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:33:07]wFMCommunicate OK [15:33:07]requested_item fd.num is exist - process it [15:33:07]SAM_PROTO_GetFieldsCounters [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 00 00 [15:33:07]Write to MH i2c: E2 08 00 84 15 80 13 00 00 00 00 00 00 15 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 62 00 84 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [15:33:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 56 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetFieldsCounters done [15:33:07]requested_item shift.num is exist - process it [15:33:07]requested_item shift.opened is exist - process it [15:33:07]req_shift_opened [15:33:07]FM_GetShiftState [15:33:07]SAM_PROTO_GetShiftState [15:33:07]wFMCommunicate request_size=4 [15:33:07]MH_SAM_APDU [15:33:07]CAPDU: 80 13 01 00 [15:33:07]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [15:33:07]Write i2c OK [15:33:07]MH_I2C_Read... [15:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:07]Read from MH i2c: E2 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 [15:33:07]MH_I2C_Read... [15:33:07]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 90 [15:33:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:33:07]wFMCommunicate OK [15:33:07]SAM_PROTO_GetShiftState done [15:33:07]FM_GetShiftState done [15:33:07]req_shift_opened done [15:33:07]requested_item shift.open_date is exist - process it [15:33:07]req_shift_open_date [15:33:07]req_shift_open_date done [15:33:07]produce_requested_data done [15:33:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191830,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:33:07]process_action_free close_receipt [15:33:07]json_value_free [15:33:07]json_value_free done [15:33:07]process_json_proto returns [15:33:07]Send response to host [15:33:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191830,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:33:07]free response buf [15:33:07]execute_script done [15:33:07]execute_script returns [15:33:07]free content buf [15:33:07]Sock 8.Close socket [15:33:07]Sock 8.Thread stoped [15:33:10]ConnectInit Can't connect to host [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:25]accept exits with 6 [15:34:25]New connection [15:34:25]New thread 3066817892 created [15:34:25]Thread 3066961252 joined [15:34:25]Waiting for new connection... [15:34:25] Sock 6.Parse request [15:34:25]Sock 6.Check first char [15:34:25]Sock 6.First char is OK [15:34:25]request: POST /json_proto HTTP/1.0 [15:34:25]Method: POST [15:34:25]URL: /json_proto [15:34:25]Method is POST - this is cgi request [15:34:25]url: /json_proto [15:34:25]query_string will be loaded in cgi processing [15:34:25]execute_cgi json_proto POST (null) [15:34:25]execute_cgi path=json_proto method=POST [15:34:25]POST find Content-Length [15:34:25]Host: 172.17.63.131:8080 [15:34:25]Content-Length: 678 [15:34:25]Content-Type: application/json [15:34:25] [15:34:25]POST finish read [15:34:25]Found Content-Length = 678 [15:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:25]execute_script... [15: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)31137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:25]POST & json_proto [15:34:25]process_json_proto [15:34:25]json parsed OK: [15:34:25]protocol is kg_v1.0 [15:34:25]action value=close_receipt [15:34:25]process_action close_receipt [15:34:25]cmd_close_receipt [15:34:25]MH_GetDate [15:34:25]Write to MH i2c: F0 00 00 86 15 8A [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: F0 09 00 86 15 00 11 0C 1D 67 22 05 6E 64 2D [15:34:25]GetLastDocTimeStamp 1729956798 [15:34:25]current date 1729956881 [15:34:25]FM_GetShiftState [15:34:25]SAM_PROTO_GetShiftState [15:34:25]wFMCommunicate request_size=4 [15:34:25]MH_SAM_APDU [15:34:25]CAPDU: 80 13 01 00 [15:34:25]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [15:34:25]Write i2c OK [15:34:25]MH_I2C_Read... [15:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:25]Read from MH i2c: E2 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 [15:34:25]MH_I2C_Read... [15:34:25]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 92 [15:34:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_GetShiftState done [15:34:26]FM_GetShiftState done [15:34:26]opened in 1729902770 [15:34:26]opened+sec_in_day 1729989170 [15:34:26]quantity*price = 200025 [15:34:26]sum+1 = 200026 [15:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 194 26.10.2024 15:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191831 ФПД: 226218588244203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191831&fm=226218588244203&tin=02508201610067®Number=0000000000091776&sum=200000 [15:34:27]StoreToDocumentArchive [15:34:27]shift 541 fd 191831 [15:34:27]save to /storage/0541/doc_00191831 [15:34:27]save last doc name /storage/0541/doc_00191831 to /storage/kkm_last_doc_name [15:34:27]save OK [15:34:27]Clear old archive folders... [15:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:34:27]tlvbuf is 016C01B0 [15:34:27]SAM_PROTO_ClearQueue [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 09 00 00 [15:34:27]Write to MH i2c: E2 08 00 94 15 80 09 00 00 00 00 00 00 1B [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]SAM_PROTO_ClearQueue done [15:34:27]KKMCreateOFDPacket [15:34:27]OFDProtocolAddRootSTLVToBuf [15:34:27]FM_MakeSignedData [15:34:27]FM_MakeSignedData [15:34:27]SAM_PROTO_SignData [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 01 02 [15:34:27]Write to MH i2c: E2 08 00 95 15 80 0D 01 02 00 00 00 00 23 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=255 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 ED 02 00 35 04 06 00 CD BE 9E 98 [15:34:27]Write to MH i2c: E2 02 01 96 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 ED 02 00 35 04 06 00 CD BE 9E 98 00 00 24 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=7 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 02 02 02 08 EB [15:34:27]Write to MH i2c: E2 0A 00 97 15 80 0D 02 02 02 00 08 EB 00 00 1D [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [15:34:27]RAPDU: 90 00 [15:34:27]wFMCommunicate OK [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:27]CAPDU: 80 0D 03 02 [15:34:27]Write to MH i2c: E2 08 00 98 15 80 0D 03 02 00 00 00 00 28 [15:34:27]Write i2c OK [15:34:27]MH_I2C_Read... [15:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:27]Read from MH i2c: E2 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 [15:34:27]MH_I2C_Read... [15:34:27]Read from MH i2c: E2 0B 00 98 15 00 25 FE D5 E1 10 EB 69 6B 90 00 D1 [15:34:27]RAPDU: 25 FE D5 E1 10 EB 69 6B 90 00 [15:34:27]wFMCommunicate OK [15:34:27]SAM_PROTO_SignData done [15:34:27]FM_MakeSignedData done [15:34:27]CreateOFDProtocolMessage [15:34:27]wFMCommunicate request_size=4 [15:34:27]MH_SAM_APDU [15:34:28]CAPDU: 80 11 00 00 [15:34:28]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:28]Read from MH i2c: E2 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 17 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [15:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:28]wFMCommunicate OK [15:34:28]CreateOFDProtocolMessage done [15:34:28]OFDSenderStorePacket 191831 [15:34:28]StoreOFDPacket docnum=191831 [15:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 1B 04 01 F9 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 ED 02 00 35 04 06 00 CD BE 9E 98 08 EB 25 FE D5 E1 10 EB 69 6B [15:34:28]CheckFolder [15:34:28]dirname=/storage/ofd_packets [15:34:28]CheckFolder done [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00191831 [15:34:28]NVStorageSaveData ofd_packets/00191831 [15:34:28]File name is /storage/ofd_packets/00191831 [15:34:28]Write 298 bytes [15:34:28]NVStorageSaveData done [15:34:28]OFDSenderStorePacket done [15:34:28]KKMCreateOFDPacket done [15:34:28]NVStorageSaveData kkm_last_timestamp [15:34:28]File name is /storage/kkm_last_timestamp [15:34:28]Write 4 bytes [15:34:28]NVStorageSaveData done [15:34:28]ExternCall_PrintAddStr [15:34:28]wPrintStart [15:34:28]Write to MH i2c: 01 00 00 9A 15 AF [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [15:34:28]RasterBufferAndPrint [15:34:28]line Счет N : (1)31137 [15:34:28]line ИНН: 02508201610067 [15:34:28]line Контрольно-Кассовый Чек [15:34:28]line ПРОДАЖА [15:34:28]line ТРК (МРК, ГНК) : 11 [15:34:28]line Товар: 2710194210 [15:34:28]line ДТ-К-5 [15:34:28]line 26.250 * 76.20 [15:34:28]line = 2000.25 [15:34:28]line НДС 12% НСП 1% [15:34:28]line > о реализуемом товаре [15:34:28]line ОКРУГЛЕНИЕ: -0.25 [15:34:28]line ИТОГО: 2000.00 [15:34:28]line Внесено: 2000.00 [15:34:28]line СДАЧА: 0.00 [15:34:28]line НСП 1% : 17.70 [15:34:28]line НДС 12% : 212.42 [15:34:28]line Наличными: 2000.00 [15:34:28]line Безнал.: 0.00 [15:34:28]line Место: АЗС № 170 "Партнер Нефть" [15:34:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:34:28]line СНО: Общий режим [15:34:28]line Чек 194 26.10.2024 15:34 [15:34:28]line Смена: 541 ФФД: 1.0 [15:34:28]line ЗНМ: 0300000110 [15:34:28]line РНМ: 0000000000091776 [15:34:28]line Версия ККМ: 001 [15:34:28]line ФМ: 0000000000871754 [15:34:28]line ФД: 191831 [15:34:28]line ФПД: 226218588244203 [15:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153441&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191831&fm=226218588244203&tin=02508201610067®Number=0000000000091776&sum=200000 [15:34:28]written 0, free lines is 4095 [15:34:28]OFD Sender: Processing packet 191831 [packets to send 75, broken 74] [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00191831 [15:34:28]OFD Sender: To server: pG, [15:34:28]CommunicateWithHost lk.salyk.kg:30040 [15:34:28]ConnectInit lk.salyk.kg [15:34:28]Connected sock=9 [15:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 F4 1B 04 01 F9 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 11 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 ED 02 00 35 04 06 00 CD BE 9E 98 08 EB 25 FE D5 E1 10 EB 69 6B [15:34:28]Write to MH i2c: 01 00 00 C5 15 DA [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 D9 0C C6 [15:34:28]RasterBufferAndPrint [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]line [15:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D5 D2 47 00 50 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 57 ED 02 00 F4 03 04 00 DC B0 1C 67 B6 04 01 00 00 0A BD 86 C5 A6 27 5D 8A [15:34:28]CommunicateWithHost err = 0 [15:34:28]CheckOFDResponse [15:34:28]1017 (14) - 77093643461234 [15:34:28]1041 (16) - 0000000000871754 [15:34:28]1040 (4) - 191831 [15:34:28]1012 (4) - 26.10.2024 09:05 [15:34:28]1206 (1) - 0 [15:34:28]OFD Sender: Remove packet 191831 [15:34:28]ProducePacketName [15:34:28]name=ofd_packets/00191831 [15:34:28]NVStorageDeleteData [15:34:28]written 0, free lines is 3328 [15:34:28]MH_Cut [15:34:28]Write to MH i2c: D1 01 00 CC 15 01 B3 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 01 00 [15:34:28]MH_I2C_Read... [15:34:28]Read from MH i2c: D1 01 00 CC 15 00 B2 [15:34:28]Write to MH i2c: 01 00 00 CD 15 E2 [15:34:28]Write i2c OK [15:34:28]MH_I2C_Read... [15:34:29]OFD Sender: No OFD packet to send [15:34:29]*** Cut start [15:34:29]*** Partial cut [15:34:29]*** CUTSNS_PIN = 1 [15:34:29]*** CUTSNS_PIN = 0 [15:34:29]*** Brake cut motor [15:34:30]Read from MH i2c: 01 [15:34:30]MH_I2C_Read... [15:34:30]*** Stop cut motor [15:34:30]*** Cut end [15:34:30]Read from MH i2c: 01 07 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [15:34:30]process_action close_receipt done [15:34:30]requested_data is exist [15:34:30]produce_requested_data [15:34:30]requested_item fm.sn is exist - process it [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 11 00 00 [15:34:30]Write to MH i2c: E2 08 00 CE 15 80 11 00 00 00 00 00 00 5D [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 17 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 17 00 CE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [15:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:30]wFMCommunicate OK [15:34:30]requested_item fd.num is exist - process it [15:34:30]SAM_PROTO_GetFieldsCounters [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 13 00 00 [15:34:30]Write to MH i2c: E2 08 00 CF 15 80 13 00 00 00 00 00 00 60 [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 62 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 62 00 CF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [15:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 57 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:30]wFMCommunicate OK [15:34:30]SAM_PROTO_GetFieldsCounters done [15:34:30]requested_item shift.num is exist - process it [15:34:30]requested_item shift.opened is exist - process it [15:34:30]req_shift_opened [15:34:30]FM_GetShiftState [15:34:30]SAM_PROTO_GetShiftState [15:34:30]wFMCommunicate request_size=4 [15:34:30]MH_SAM_APDU [15:34:30]CAPDU: 80 13 01 00 [15:34:30]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [15:34:30]Write i2c OK [15:34:30]MH_I2C_Read... [15:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:30]Read from MH i2c: E2 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 0E 00 [15:34:30]MH_I2C_Read... [15:34:30]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DB [15:34:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:34:30]wFMCommunicate OK [15:34:30]SAM_PROTO_GetShiftState done [15:34:30]FM_GetShiftState done [15:34:30]req_shift_opened done [15:34:30]requested_item shift.open_date is exist - process it [15:34:30]req_shift_open_date [15:34:30]req_shift_open_date done [15:34:30]produce_requested_data done [15:34:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191831,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:34:30]process_action_free close_receipt [15:34:30]json_value_free [15:34:30]json_value_free done [15:34:30]process_json_proto returns [15:34:30]Send response to host [15:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191831,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:34:30]free response buf [15:34:30]execute_script done [15:34:30]execute_script returns [15:34:30]free content buf [15:34:30]Sock 6.Close socket [15:34:30]Sock 6.Thread stoped [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:40]accept exits with 8 [15:34:40]New connection [15:34:40]New thread 3066961252 created [15:34:40]Thread 3066817892 joined [15:34:40]Waiting for new connection... [15:34:40] Sock 8.Parse request [15:34:40]Sock 8.Check first char [15:34:40]Sock 8.First char is OK [15:34:40]request: POST /json_proto HTTP/1.0 [15:34:40]Method: POST [15:34:40]URL: /json_proto [15:34:40]Method is POST - this is cgi request [15:34:40]url: /json_proto [15:34:40]query_string will be loaded in cgi processing [15:34:40]execute_cgi json_proto POST (null) [15:34:40]execute_cgi path=json_proto method=POST [15:34:40]POST find Content-Length [15:34:40]Host: 172.17.63.131:8080 [15:34:40]Content-Length: 681 [15:34:40]Content-Type: application/json [15:34:40] [15:34:40]POST finish read [15:34:40]Found Content-Length = 681 [15:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:40]execute_script... [15:34:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:40]POST & json_proto [15:34:40]process_json_proto [15:34:40]json parsed OK: [15:34:40]protocol is kg_v1.0 [15:34:40]action value=close_receipt [15:34:40]process_action close_receipt [15:34:40]cmd_close_receipt [15:34:40]MH_GetDate [15:34:40]Write to MH i2c: F0 00 00 D1 15 D5 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: F0 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: F0 09 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: F0 09 00 D1 15 00 1F 0C 1D 67 22 05 6E 64 86 [15:34:40]GetLastDocTimeStamp 1729956881 [15:34:40]current date 1729956895 [15:34:40]FM_GetShiftState [15:34:40]SAM_PROTO_GetShiftState [15:34:40]wFMCommunicate request_size=4 [15:34:40]MH_SAM_APDU [15:34:40]CAPDU: 80 13 01 00 [15:34:40]Write to MH i2c: E2 08 00 D2 15 80 13 01 00 00 00 00 00 64 [15:34:40]Write i2c OK [15:34:40]MH_I2C_Read... [15:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:40]Read from MH i2c: E2 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 0E 00 [15:34:40]MH_I2C_Read... [15:34:40]Read from MH i2c: E2 0E 00 D2 15 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DD [15:34:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:34:40]wFMCommunicate OK [15:34:40]SAM_PROTO_GetShiftState done [15:34:40]FM_GetShiftState done [15:34:40]opened in 1729902770 [15:34:40]opened+sec_in_day 1729989170 [15:34:40]quantity*price = 100015 [15:34:40]sum+1 = 100017 [15:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 195 26.10.2024 15:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191832 ФПД: 271241377268785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191832&fm=271241377268785&tin=02508201610067®Number=0000000000091776&sum=100000 [15:34:41]StoreToDocumentArchive [15:34:41]shift 541 fd 191832 [15:34:41]save to /storage/0541/doc_00191832 [15:34:41]save last doc name /storage/0541/doc_00191832 to /storage/kkm_last_doc_name [15:34:41]save OK [15:34:41]Clear old archive folders... [15:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:41]tlvbuf is 01BDBC20 [15:34:41]SAM_PROTO_ClearQueue [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 09 00 00 [15:34:41]Write to MH i2c: E2 08 00 DF 15 80 09 00 00 00 00 00 00 66 [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]SAM_PROTO_ClearQueue done [15:34:41]KKMCreateOFDPacket [15:34:41]OFDProtocolAddRootSTLVToBuf [15:34:41]FM_MakeSignedData [15:34:41]FM_MakeSignedData [15:34:41]SAM_PROTO_SignData [15:34:41]wFMCommunicate request_size=4 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 01 02 [15:34:41]Write to MH i2c: E2 08 00 E0 15 80 0D 01 02 00 00 00 00 6E [15:34:41]Write i2c OK [15:34:41]MH_I2C_Read... [15:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:41]Read from MH i2c: E2 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 [15:34:41]MH_I2C_Read... [15:34:41]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [15:34:41]RAPDU: 90 00 [15:34:41]wFMCommunicate OK [15:34:41]wFMCommunicate request_size=255 [15:34:41]MH_SAM_APDU [15:34:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1F 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 ED 02 00 35 04 06 00 F6 [15:34:42]Write to MH i2c: E2 02 01 E1 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1F 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 ED 02 00 35 04 06 00 F6 00 00 CA [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 03 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 03 00 E1 15 00 90 00 6A [15:34:42]RAPDU: 90 00 [15:34:42]wFMCommunicate OK [15:34:42]wFMCommunicate request_size=10 [15:34:42]MH_SAM_APDU [15:34:42]CAPDU: 80 0D 02 02 05 B1 4D F0 C4 31 [15:34:42]Write to MH i2c: E2 0D 00 E2 15 80 0D 02 02 05 00 B1 4D F0 C4 31 00 00 5E [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 03 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 03 00 E2 15 00 90 00 6B [15:34:42]RAPDU: 90 00 [15:34:42]wFMCommunicate OK [15:34:42]wFMCommunicate request_size=4 [15:34:42]MH_SAM_APDU [15:34:42]CAPDU: 80 0D 03 02 [15:34:42]Write to MH i2c: E2 08 00 E3 15 80 0D 03 02 00 00 00 00 73 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0B 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0B 00 E3 15 00 07 6E CF 74 1C 9C 57 4E 90 00 89 [15:34:42]RAPDU: 07 6E CF 74 1C 9C 57 4E 90 00 [15:34:42]wFMCommunicate OK [15:34:42]SAM_PROTO_SignData done [15:34:42]FM_MakeSignedData done [15:34:42]CreateOFDProtocolMessage [15:34:42]wFMCommunicate request_size=4 [15:34:42]MH_SAM_APDU [15:34:42]CAPDU: 80 11 00 00 [15:34:42]Write to MH i2c: E2 08 00 E4 15 80 11 00 00 00 00 00 00 73 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 17 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 17 00 E4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [15:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:42]wFMCommunicate OK [15:34:42]CreateOFDProtocolMessage done [15:34:42]OFDSenderStorePacket 191832 [15:34:42]StoreOFDPacket docnum=191832 [15:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 0D 07 01 2F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1F 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 ED 02 00 35 04 06 00 F6 B1 4D F0 C4 31 07 6E CF 74 1C 9C 57 4E [15:34:42]CheckFolder [15:34:42]dirname=/storage/ofd_packets [15:34:42]CheckFolder done [15:34:42]ProducePacketName [15:34:42]name=ofd_packets/00191832 [15:34:42]NVStorageSaveData ofd_packets/00191832 [15:34:42]File name is /storage/ofd_packets/00191832 [15:34:42]Write 301 bytes [15:34:42]NVStorageSaveData done [15:34:42]OFDSenderStorePacket done [15:34:42]KKMCreateOFDPacket done [15:34:42]NVStorageSaveData kkm_last_timestamp [15:34:42]File name is /storage/kkm_last_timestamp [15:34:42]Write 4 bytes [15:34:42]NVStorageSaveData done [15:34:42]ExternCall_PrintAddStr [15:34:42]wPrintStart [15:34:42]Write to MH i2c: 01 00 00 E5 15 FA [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: 01 07 00 E5 15 00 00 00 00 00 FF 0F 0F [15:34:42]RasterBufferAndPrint [15:34:42]line Счет N : (1)31139 [15:34:42]line ИНН: 02508201610067 [15:34:42]line Контрольно-Кассовый Чек [15:34:42]line ПРОДАЖА [15:34:42]line ТРК (МРК, ГНК) : 21 [15:34:42]line Товар: 2710124130 [15:34:42]line Аи-92-К-5 [15:34:42]line 14.950 * 66.90 [15:34:42]line = 1000.16 [15:34:42]line НДС 12% НСП 1% [15:34:42]line > о реализуемом товаре [15:34:42]line ОКРУГЛЕНИЕ: -0.16 [15:34:42]line ИТОГО: 1000.00 [15:34:42]line Внесено: 1000.00 [15:34:42]line СДАЧА: 0.00 [15:34:42]line НСП 1% : 8.85 [15:34:42]line НДС 12% : 106.21 [15:34:42]line Наличными: 1000.00 [15:34:42]line Безнал.: 0.00 [15:34:42]line Место: АЗС № 170 "Партнер Нефть" [15:34:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:34:42]line СНО: Общий режим [15:34:42]line Чек 195 26.10.2024 15:34 [15:34:42]line Смена: 541 ФФД: 1.0 [15:34:42]line ЗНМ: 0300000110 [15:34:42]line РНМ: 0000000000091776 [15:34:42]line Версия ККМ: 001 [15:34:42]line ФМ: 0000000000871754 [15:34:42]line ФД: 191832 [15:34:42]line ФПД: 271241377268785 [15:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153455&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191832&fm=271241377268785&tin=02508201610067®Number=0000000000091776&sum=100000 [15:34:42]written 0, free lines is 4095 [15:34:42]OFD Sender: Processing packet 191832 [packets to send 75, broken 74] [15:34:42]ProducePacketName [15:34:42]name=ofd_packets/00191832 [15:34:42]OFD Sender: To server: pG, [15:34:42]CommunicateWithHost lk.salyk.kg:30040 [15:34:42]ConnectInit lk.salyk.kg [15:34:42]Connected sock=9 [15:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 30 0D 07 01 2F 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 1F 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 ED 02 00 35 04 06 00 F6 B1 4D F0 C4 31 07 6E CF 74 1C 9C 57 4E [15:34:43]Write to MH i2c: 01 00 00 10 16 26 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 07 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 07 00 10 16 00 00 00 00 00 D2 0C 0B [15:34:43]RasterBufferAndPrint [15:34:43]line [15:34:43]line [15:34:43]line [15:34:43]line [15:34:43]line [15:34:43]written 0, free lines is 3318 [15:34:43]MH_Cut [15:34:43]Write to MH i2c: D1 01 00 17 16 01 FF [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: D1 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: D1 01 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: D1 01 00 17 16 00 FE [15:34:43]Write to MH i2c: 01 00 00 18 16 2E [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 A0 47 00 C8 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 58 ED 02 00 F4 03 04 00 EB B0 1C 67 B6 04 01 00 00 38 3E 56 60 E1 4B AC 50 [15:34:43]CommunicateWithHost err = 0 [15:34:43]CheckOFDResponse [15:34:43]1017 (14) - 77093643461234 [15:34:43]1041 (16) - 0000000000871754 [15:34:43]1040 (4) - 191832 [15:34:43]1012 (4) - 26.10.2024 09:05 [15:34:43]1206 (1) - 0 [15:34:43]OFD Sender: Remove packet 191832 [15:34:43]ProducePacketName [15:34:43]name=ofd_packets/00191832 [15:34:43]NVStorageDeleteData [15:34:44]OFD Sender: No OFD packet to send [15:34:44]*** Cut start [15:34:44]*** Partial cut [15:34:44]*** CUTSNS_PIN = 1 [15:34:44]*** CUTSNS_PIN = 0 [15:34:44]*** Brake cut motor [15:34:44]Read from MH i2c: 01 [15:34:44]MH_I2C_Read... [15:34:44]*** Stop cut motor [15:34:44]*** Cut end [15:34:44]Read from MH i2c: 01 07 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: 01 07 00 18 16 00 00 00 00 00 FF 0F 43 [15:34:44]process_action close_receipt done [15:34:44]requested_data is exist [15:34:44]produce_requested_data [15:34:44]requested_item fm.sn is exist - process it [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 11 00 00 [15:34:44]Write to MH i2c: E2 08 00 19 16 80 11 00 00 00 00 00 00 A9 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:44]Read from MH i2c: E2 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 17 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: E2 17 00 19 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FC [15:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:34:44]wFMCommunicate OK [15:34:44]requested_item fd.num is exist - process it [15:34:44]SAM_PROTO_GetFieldsCounters [15:34:44]wFMCommunicate request_size=4 [15:34:44]MH_SAM_APDU [15:34:44]CAPDU: 80 13 00 00 [15:34:44]Write to MH i2c: E2 08 00 1A 16 80 13 00 00 00 00 00 00 AC [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 62 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 62 00 1A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [15:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 58 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:45]wFMCommunicate OK [15:34:45]SAM_PROTO_GetFieldsCounters done [15:34:45]requested_item shift.num is exist - process it [15:34:45]requested_item shift.opened is exist - process it [15:34:45]req_shift_opened [15:34:45]FM_GetShiftState [15:34:45]SAM_PROTO_GetShiftState [15:34:45]wFMCommunicate request_size=4 [15:34:45]MH_SAM_APDU [15:34:45]CAPDU: 80 13 01 00 [15:34:45]Write to MH i2c: E2 08 00 1B 16 80 13 01 00 00 00 00 00 AE [15:34:45]Write i2c OK [15:34:45]MH_I2C_Read... [15:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:45]Read from MH i2c: E2 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 0E 00 [15:34:45]MH_I2C_Read... [15:34:45]Read from MH i2c: E2 0E 00 1B 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 27 [15:34:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:34:45]wFMCommunicate OK [15:34:45]SAM_PROTO_GetShiftState done [15:34:45]FM_GetShiftState done [15:34:45]req_shift_opened done [15:34:45]requested_item shift.open_date is exist - process it [15:34:45]req_shift_open_date [15:34:45]req_shift_open_date done [15:34:45]produce_requested_data done [15:34:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191832,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:34:45]process_action_free close_receipt [15:34:45]json_value_free [15:34:45]json_value_free done [15:34:45]process_json_proto returns [15:34:45]Send response to host [15:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191832,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:34:45]free response buf [15:34:45]execute_script done [15:34:45]execute_script returns [15:34:45]free content buf [15:34:45]Sock 8.Close socket [15:34:45]Sock 8.Thread stoped [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:00]accept exits with 6 [15:35:00]New connection [15:35:00]New thread 3066817892 created [15:35:00]Thread 3066961252 joined [15:35:00]Waiting for new connection... [15:35:00] Sock 6.Parse request [15:35:00]Sock 6.Check first char [15:35:00]Sock 6.First char is OK [15:35:00]request: POST /json_proto HTTP/1.0 [15:35:00]Method: POST [15:35:00]URL: /json_proto [15:35:00]Method is POST - this is cgi request [15:35:00]url: /json_proto [15:35:00]query_string will be loaded in cgi processing [15:35:00]execute_cgi json_proto POST (null) [15:35:00]execute_cgi path=json_proto method=POST [15:35:00]POST find Content-Length [15:35:00]Host: 172.17.63.131:8080 [15:35:00]Content-Length: 677 [15:35:00]Content-Type: application/json [15:35:00] [15:35:00]POST finish read [15:35:00]Found Content-Length = 677 [15:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:00]execute_script... [15:35: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)31140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:00]POST & json_proto [15:35:00]process_json_proto [15:35:00]json parsed OK: [15:35:00]protocol is kg_v1.0 [15:35:00]action value=close_receipt [15:35:00]process_action close_receipt [15:35:00]cmd_close_receipt [15:35:00]MH_GetDate [15:35:00]Write to MH i2c: F0 00 00 1C 16 21 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: F0 09 00 1C 16 00 33 0C 1D 67 22 05 6E 64 E6 [15:35:00]GetLastDocTimeStamp 1729956895 [15:35:00]current date 1729956915 [15:35:00]FM_GetShiftState [15:35:00]SAM_PROTO_GetShiftState [15:35:00]wFMCommunicate request_size=4 [15:35:00]MH_SAM_APDU [15:35:00]CAPDU: 80 13 01 00 [15:35:00]Write to MH i2c: E2 08 00 1D 16 80 13 01 00 00 00 00 00 B0 [15:35:00]Write i2c OK [15:35:00]MH_I2C_Read... [15:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:00]Read from MH i2c: E2 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 [15:35:00]MH_I2C_Read... [15:35:00]Read from MH i2c: E2 0E 00 1D 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 29 [15:35:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:35:00]wFMCommunicate OK [15:35:00]SAM_PROTO_GetShiftState done [15:35:00]FM_GetShiftState done [15:35:00]opened in 1729902770 [15:35:00]opened+sec_in_day 1729989170 [15:35:00]quantity*price = 70044 [15:35:00]sum+1 = 70045 [15:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 196 26.10.2024 15:35 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191833 ФПД: 209286642002424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153515&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191833&fm=209286642002424&tin=02508201610067®Number=0000000000091776&sum=70000 [15:35:02]StoreToDocumentArchive [15:35:02]shift 541 fd 191833 [15:35:02]save to /storage/0541/doc_00191833 [15:35:02]save last doc name /storage/0541/doc_00191833 to /storage/kkm_last_doc_name [15:35:02]save OK [15:35:02]Clear old archive folders... [15:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:02]tlvbuf is 01C47450 [15:35:02]SAM_PROTO_ClearQueue [15:35:02]wFMCommunicate request_size=4 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 09 00 00 [15:35:02]Write to MH i2c: E2 08 00 2A 16 80 09 00 00 00 00 00 00 B2 [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 2A 16 00 90 00 B4 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]SAM_PROTO_ClearQueue done [15:35:02]KKMCreateOFDPacket [15:35:02]OFDProtocolAddRootSTLVToBuf [15:35:02]FM_MakeSignedData [15:35:02]FM_MakeSignedData [15:35:02]SAM_PROTO_SignData [15:35:02]wFMCommunicate request_size=4 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 0D 01 02 [15:35:02]Write to MH i2c: E2 08 00 2B 16 80 0D 01 02 00 00 00 00 BA [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 2B 16 00 90 00 B5 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]wFMCommunicate request_size=255 [15:35:02]MH_SAM_APDU [15:35: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 33 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 ED 02 00 35 04 06 00 BE [15:35:02]Write to MH i2c: E2 02 01 2C 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 33 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 ED 02 00 35 04 06 00 BE 00 00 0A [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 2C 16 00 90 00 B6 [15:35:02]RAPDU: 90 00 [15:35:02]wFMCommunicate OK [15:35:02]wFMCommunicate request_size=10 [15:35:02]MH_SAM_APDU [15:35:02]CAPDU: 80 0D 02 02 05 58 57 F3 E9 F8 [15:35:02]Write to MH i2c: E2 0D 00 2D 16 80 0D 02 02 05 00 58 57 F3 E9 F8 00 00 4A [15:35:02]Write i2c OK [15:35:02]MH_I2C_Read... [15:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:02]Read from MH i2c: E2 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 [15:35:02]MH_I2C_Read... [15:35:02]Read from MH i2c: E2 03 00 2D 16 00 90 00 B7 [15:35:03]RAPDU: 90 00 [15:35:03]wFMCommunicate OK [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 0D 03 02 [15:35:03]Write to MH i2c: E2 08 00 2E 16 80 0D 03 02 00 00 00 00 BF [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0B 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 0B 00 2E 16 00 40 25 DD C2 19 AC E6 8A 90 00 F9 [15:35:03]RAPDU: 40 25 DD C2 19 AC E6 8A 90 00 [15:35:03]wFMCommunicate OK [15:35:03]SAM_PROTO_SignData done [15:35:03]FM_MakeSignedData done [15:35:03]CreateOFDProtocolMessage [15:35:03]wFMCommunicate request_size=4 [15:35:03]MH_SAM_APDU [15:35:03]CAPDU: 80 11 00 00 [15:35:03]Write to MH i2c: E2 08 00 2F 16 80 11 00 00 00 00 00 00 BF [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:03]Read from MH i2c: E2 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 17 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: E2 17 00 2F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 12 [15:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:35:03]wFMCommunicate OK [15:35:03]CreateOFDProtocolMessage done [15:35:03]OFDSenderStorePacket 191833 [15:35:03]StoreOFDPacket docnum=191833 [15:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 8E 07 01 FF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 33 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 ED 02 00 35 04 06 00 BE 58 57 F3 E9 F8 40 25 DD C2 19 AC E6 8A [15:35:03]CheckFolder [15:35:03]dirname=/storage/ofd_packets [15:35:03]CheckFolder done [15:35:03]ProducePacketName [15:35:03]name=ofd_packets/00191833 [15:35:03]NVStorageSaveData ofd_packets/00191833 [15:35:03]File name is /storage/ofd_packets/00191833 [15:35:03]Write 301 bytes [15:35:03]NVStorageSaveData done [15:35:03]OFDSenderStorePacket done [15:35:03]KKMCreateOFDPacket done [15:35:03]NVStorageSaveData kkm_last_timestamp [15:35:03]File name is /storage/kkm_last_timestamp [15:35:03]OFD Sender: Processing packet 191833 [packets to send 75, broken 74] [15:35:03]ProducePacketName [15:35:03]name=ofd_packets/00191833 [15:35:03]OFD Sender: To server: pG, [15:35:03]CommunicateWithHost lk.salyk.kg:30040 [15:35:03]ConnectInit lk.salyk.kg [15:35:03]Write 4 bytes [15:35:03]NVStorageSaveData done [15:35:03]ExternCall_PrintAddStr [15:35:03]wPrintStart [15:35:03]Write to MH i2c: 01 00 00 30 16 46 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 30 16 00 00 00 00 00 FF 0F 5B [15:35:03]RasterBufferAndPrint [15:35:03]line Счет N : (1)31140 [15:35:03]line ИНН: 02508201610067 [15:35:03]line Контрольно-Кассовый Чек [15:35:03]line ПРОДАЖА [15:35:03]line ТРК (МРК, ГНК) : 12 [15:35:03]line Товар: 2710124130 [15:35:03]line Аи-92-К-5 [15:35:03]line 10.470 * 66.90 [15:35:03]line = 700.44 [15:35:03]line НДС 12% НСП 1% [15:35:03]line > о реализуемом товаре [15:35:03]line ОКРУГЛЕНИЕ: -0.44 [15:35:03]line ИТОГО: 700.00 [15:35:03]line Внесено: 700.00 [15:35:03]line СДАЧА: 0.00 [15:35:03]line НСП 1% : 6.20 [15:35:03]line НДС 12% : 74.38 [15:35:03]line Наличными: 700.00 [15:35:03]line Безнал.: 0.00 [15:35:03]line Место: АЗС № 170 "Партнер Нефть" [15:35:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:35:03]line СНО: Общий режим [15:35:03]line Чек 196 26.10.2024 15:35 [15:35:03]line Смена: 541 ФФД: 1.0 [15:35:03]line ЗНМ: 0300000110 [15:35:03]line РНМ: 0000000000091776 [15:35:03]line Версия ККМ: 001 [15:35:03]line ФМ: 0000000000871754 [15:35:03]line ФД: 191833 [15:35:03]line ФПД: 209286642002424 [15:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153515&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191833&fm=209286642002424&tin=02508201610067®Number=0000000000091776&sum=70000 [15:35:03]written 0, free lines is 4095 [15:35:03]Connected sock=10 [15:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E6 8E 07 01 FF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 33 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 59 ED 02 00 35 04 06 00 BE 58 57 F3 E9 F8 40 25 DD C2 19 AC E6 8A [15:35:03]Write to MH i2c: 01 00 00 5B 16 71 [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: 01 07 00 5B 16 00 00 00 00 00 E6 0C 6A [15:35:03]RasterBufferAndPrint [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]line [15:35:03]written 0, free lines is 3350 [15:35:03]MH_Cut [15:35:03]Write to MH i2c: D1 01 00 62 16 01 4A [15:35:03]Write i2c OK [15:35:03]MH_I2C_Read... [15:35:03]Read from MH i2c: D1 [15:35:03]MH_I2C_Read... [15:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 42 A1 47 00 EB 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 31 37 35 34 10 04 04 00 59 ED 02 00 F4 03 04 00 FF B0 1C 67 B6 04 01 00 00 52 E3 C5 C3 98 1B 35 CA [15:35:04]CommunicateWithHost err = 0 [15:35:04]CheckOFDResponse [15:35:04]1017 (14) - 77093643461234 [15:35:04]1041 (16) - 0000000000871754 [15:35:04]1040 (4) - 191833 [15:35:04]1012 (4) - 26.10.2024 09:06 [15:35:04]1206 (1) - 0 [15:35:04]OFD Sender: Remove packet 191833 [15:35:04]ProducePacketName [15:35:04]name=ofd_packets/00191833 [15:35:04]NVStorageDeleteData [15:35:04]Read from MH i2c: D1 01 00 [15:35:04]MH_I2C_Read... [15:35:04]Read from MH i2c: D1 01 00 62 16 00 49 [15:35:04]Write to MH i2c: 01 00 00 63 16 79 [15:35:04]Write i2c OK [15:35:04]MH_I2C_Read... [15:35:04]OFD Sender: No OFD packet to send [15:35:04]*** Cut start [15:35:04]*** Partial cut [15:35:04]*** CUTSNS_PIN = 1 [15:35:04]*** CUTSNS_PIN = 0 [15:35:04]*** Brake cut motor [15:35:05]Read from MH i2c: 01 [15:35:05]MH_I2C_Read... [15:35:05]*** Stop cut motor [15:35:05]*** Cut end [15:35:05]Read from MH i2c: 01 07 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: 01 07 00 63 16 00 00 00 00 00 FF 0F 8E [15:35:05]process_action close_receipt done [15:35:05]requested_data is exist [15:35:05]produce_requested_data [15:35:05]requested_item fm.sn is exist - process it [15:35:05]wFMCommunicate request_size=4 [15:35:05]MH_SAM_APDU [15:35:05]CAPDU: 80 11 00 00 [15:35:05]Write to MH i2c: E2 08 00 64 16 80 11 00 00 00 00 00 00 F4 [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 [15:35:05]MH_I2C_Read... [15:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:05]Read from MH i2c: E2 17 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 17 00 64 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 47 [15:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:35:05]wFMCommunicate OK [15:35:05]requested_item fd.num is exist - process it [15:35:05]SAM_PROTO_GetFieldsCounters [15:35:05]wFMCommunicate request_size=4 [15:35:05]MH_SAM_APDU [15:35:05]CAPDU: 80 13 00 00 [15:35:05]Write to MH i2c: E2 08 00 65 16 80 13 00 00 00 00 00 00 F7 [15:35:05]Write i2c OK [15:35:05]MH_I2C_Read... [15:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:05]Read from MH i2c: E2 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 62 00 [15:35:05]MH_I2C_Read... [15:35:05]Read from MH i2c: E2 62 00 65 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [15:35:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 59 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:05]wFMCommunicate OK [15:35:05]SAM_PROTO_GetFieldsCounters done [15:35:05]requested_item shift.num is exist - process it [15:35:05]requested_item shift.opened is exist - process it [15:35:05]req_shift_opened [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 66 16 80 13 01 00 00 00 00 00 F9 [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 66 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 72 [15:35:05]RAPDU: 09 00 01 B2 38 1C 67 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]req_shift_opened done [15:35:05]requested_item shift.open_date is exist - process it [15:35:05]req_shift_open_date [15:35:05]req_shift_open_date done [15:35:05]produce_requested_data done [15:35:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191833,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:35:05]process_action_free close_receipt [15:35:05]json_value_free [15:35:05]json_value_free done [15:35:05]process_json_proto returns [15:35:05]Send response to host [15:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191833,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:35:05]free response buf [15:35:05]execute_script done [15:35:05]execute_script returns [15:35:05]free content buf [15:35:05]Sock 6.Close socket [15:35:05]Sock 6.Thread stoped [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:12]accept exits with 8 [15:36:12]New connection [15:36:12]New thread 3066961252 created [15:36:12]Thread 3066817892 joined [15:36:12]Waiting for new connection... [15:36:12] Sock 8.Parse request [15:36:12]Sock 8.Check first char [15:36:12]Sock 8.First char is OK [15:36:12]request: POST /json_proto HTTP/1.0 [15:36:12]Method: POST [15:36:12]URL: /json_proto [15:36:12]Method is POST - this is cgi request [15:36:12]url: /json_proto [15:36:12]query_string will be loaded in cgi processing [15:36:12]execute_cgi json_proto POST (null) [15:36:12]execute_cgi path=json_proto method=POST [15:36:12]POST find Content-Length [15:36:12]Host: 172.17.63.131:8080 [15:36:12]Content-Length: 676 [15:36:12]Content-Type: application/json [15:36:12] [15:36:12]POST finish read [15:36:12]Found Content-Length = 676 [15:36:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]execute_script... [15: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)31141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:12]POST & json_proto [15:36:12]process_json_proto [15:36:12]json parsed OK: [15:36:12]protocol is kg_v1.0 [15:36:12]action value=close_receipt [15:36:12]process_action close_receipt [15:36:12]cmd_close_receipt [15:36:12]MH_GetDate [15:36:12]Write to MH i2c: F0 00 00 67 16 6C [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: F0 09 00 67 16 00 7B 0C 1D 67 22 05 6E 64 79 [15:36:12]GetLastDocTimeStamp 1729956915 [15:36:12]current date 1729956987 [15:36:12]FM_GetShiftState [15:36:12]SAM_PROTO_GetShiftState [15:36:12]wFMCommunicate request_size=4 [15:36:12]MH_SAM_APDU [15:36:12]CAPDU: 80 13 01 00 [15:36:12]Write to MH i2c: E2 08 00 68 16 80 13 01 00 00 00 00 00 FB [15:36:12]Write i2c OK [15:36:12]MH_I2C_Read... [15:36:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:12]Read from MH i2c: E2 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 [15:36:12]MH_I2C_Read... [15:36:12]Read from MH i2c: E2 0E 00 68 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 74 [15:36:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:36:12]wFMCommunicate OK [15:36:12]SAM_PROTO_GetShiftState done [15:36:12]FM_GetShiftState done [15:36:12]opened in 1729902770 [15:36:12]opened+sec_in_day 1729989170 [15:36:12]quantity*price = 25020 [15:36:12]sum+1 = 25022 [15:36:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 197 26.10.2024 15:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191834 ФПД: 188969424055354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191834&fm=188969424055354&tin=02508201610067®Number=0000000000091776&sum=25000 [15:36:13]StoreToDocumentArchive [15:36:13]shift 541 fd 191834 [15:36:13]save to /storage/0541/doc_00191834 [15:36:13]save last doc name /storage/0541/doc_00191834 to /storage/kkm_last_doc_name [15:36:13]save OK [15:36:13]Clear old archive folders... [15:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:13]tlvbuf is 0173DFC0 [15:36:13]SAM_PROTO_ClearQueue [15:36:13]wFMCommunicate request_size=4 [15:36:13]MH_SAM_APDU [15:36:13]CAPDU: 80 09 00 00 [15:36:13]Write to MH i2c: E2 08 00 75 16 80 09 00 00 00 00 00 00 FD [15:36:13]Write i2c OK [15:36:13]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 75 16 00 90 00 FF [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_ClearQueue done [15:36:14]KKMCreateOFDPacket [15:36:14]OFDProtocolAddRootSTLVToBuf [15:36:14]FM_MakeSignedData [15:36:14]FM_MakeSignedData [15:36:14]SAM_PROTO_SignData [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 0D 01 02 [15:36:14]Write to MH i2c: E2 08 00 76 16 80 0D 01 02 00 00 00 00 05 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 76 16 00 90 00 00 [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]wFMCommunicate request_size=255 [15:36:14]MH_SAM_APDU [15:36: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7B 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A ED 02 00 35 04 06 00 AB [15:36:14]Write to MH i2c: E2 02 01 77 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7B 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A ED 02 00 35 04 06 00 AB 00 00 55 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]OFD Sender: No OFD packet to send [15:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 77 16 00 90 00 01 [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]wFMCommunicate request_size=10 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 0D 02 02 05 DD DF 64 EC 3A [15:36:14]Write to MH i2c: E2 0D 00 78 16 80 0D 02 02 05 00 DD DF 64 EC 3A 00 00 58 [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 03 00 78 16 00 90 00 02 [15:36:14]RAPDU: 90 00 [15:36:14]wFMCommunicate OK [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 0D 03 02 [15:36:14]Write to MH i2c: E2 08 00 79 16 80 0D 03 02 00 00 00 00 0A [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:14]Read from MH i2c: E2 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0B 00 [15:36:14]MH_I2C_Read... [15:36:14]Read from MH i2c: E2 0B 00 79 16 00 56 48 A8 11 A8 23 D3 0D 90 00 0D [15:36:14]RAPDU: 56 48 A8 11 A8 23 D3 0D 90 00 [15:36:14]wFMCommunicate OK [15:36:14]SAM_PROTO_SignData done [15:36:14]FM_MakeSignedData done [15:36:14]CreateOFDProtocolMessage [15:36:14]wFMCommunicate request_size=4 [15:36:14]MH_SAM_APDU [15:36:14]CAPDU: 80 11 00 00 [15:36:14]Write to MH i2c: E2 08 00 7A 16 80 11 00 00 00 00 00 00 0A [15:36:14]Write i2c OK [15:36:14]MH_I2C_Read... [15:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:15]Read from MH i2c: E2 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 17 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: E2 17 00 7A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5D [15:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:15]wFMCommunicate OK [15:36:15]CreateOFDProtocolMessage done [15:36:15]OFDSenderStorePacket 191834 [15:36:15]StoreOFDPacket docnum=191834 [15:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 D8 07 01 89 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7B 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A ED 02 00 35 04 06 00 AB DD DF 64 EC 3A 56 48 A8 11 A8 23 D3 0D [15:36:15]CheckFolder [15:36:15]dirname=/storage/ofd_packets [15:36:15]CheckFolder done [15:36:15]ProducePacketName [15:36:15]name=ofd_packets/00191834 [15:36:15]NVStorageSaveData ofd_packets/00191834 [15:36:15]File name is /storage/ofd_packets/00191834 [15:36:15]Write 301 bytes [15:36:15]NVStorageSaveData done [15:36:15]OFDSenderStorePacket done [15:36:15]KKMCreateOFDPacket done [15:36:15]NVStorageSaveData kkm_last_timestamp [15:36:15]File name is /storage/kkm_last_timestamp [15:36:15]Write 4 bytes [15:36:15]NVStorageSaveData done [15:36:15]ExternCall_PrintAddStr [15:36:15]wPrintStart [15:36:15]Write to MH i2c: 01 00 00 7B 16 91 [15:36:15]OFD Sender: Processing packet 191834 [packets to send 75, broken 74] [15:36:15]ProducePacketName [15:36:15]name=ofd_packets/00191834 [15:36:15]OFD Sender: To server: pG, [15:36:15]CommunicateWithHost lk.salyk.kg:30040 [15:36:15]ConnectInit lk.salyk.kg [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 7B 16 00 00 00 00 00 FF 0F A6 [15:36:15]RasterBufferAndPrint [15:36:15]line Счет N : (1)31141 [15:36:15]line ИНН: 02508201610067 [15:36:15]line Контрольно-Кассовый Чек [15:36:15]line ПРОДАЖА [15:36:15]line ТРК (МРК, ГНК) : 21 [15:36:15]line Товар: 2710124130 [15:36:15]line Аи-92-К-5 [15:36:15]line 3.740 * 66.90 [15:36:15]line = 250.21 [15:36:15]line НДС 12% НСП 1% [15:36:15]line > о реализуемом товаре [15:36:15]line ОКРУГЛЕНИЕ: -0.21 [15:36:15]line ИТОГО: 250.00 [15:36:15]line Внесено: 250.00 [15:36:15]line СДАЧА: 0.00 [15:36:15]line НСП 1% : 2.21 [15:36:15]line НДС 12% : 26.57 [15:36:15]line Наличными: 250.00 [15:36:15]line Безнал.: 0.00 [15:36:15]line Место: АЗС № 170 "Партнер Нефть" [15:36:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:36:15]line СНО: Общий режим [15:36:15]line Чек 197 26.10.2024 15:36 [15:36:15]line Смена: 541 ФФД: 1.0 [15:36:15]line ЗНМ: 0300000110 [15:36:15]line РНМ: 0000000000091776 [15:36:15]line Версия ККМ: 001 [15:36:15]line ФМ: 0000000000871754 [15:36:15]line ФД: 191834 [15:36:15]line ФПД: 188969424055354 [15:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T153627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191834&fm=188969424055354&tin=02508201610067®Number=0000000000091776&sum=25000 [15:36:15]written 0, free lines is 4095 [15:36:15]Connected sock=9 [15:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 52 D8 07 01 89 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7B 0C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A ED 02 00 35 04 06 00 AB DD DF 64 EC 3A 56 48 A8 11 A8 23 D3 0D [15:36:15]Write to MH i2c: 01 00 00 A6 16 BC [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: 01 07 00 A6 16 00 00 00 00 00 D6 0C A5 [15:36:15]RasterBufferAndPrint [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]line [15:36:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E4 C1 47 00 9E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5A ED 02 00 F4 03 04 00 47 B1 1C 67 B6 04 01 00 00 9B 7E DE C6 A9 10 CD 50 [15:36:15]CommunicateWithHost err = 0 [15:36:15]CheckOFDResponse [15:36:15]1017 (14) - 77093643461234 [15:36:15]1041 (16) - 0000000000871754 [15:36:15]1040 (4) - 191834 [15:36:15]1012 (4) - 26.10.2024 09:07 [15:36:15]1206 (1) - 0 [15:36:15]OFD Sender: Remove packet 191834 [15:36:15]ProducePacketName [15:36:15]name=ofd_packets/00191834 [15:36:15]NVStorageDeleteData [15:36:15]written 0, free lines is 3353 [15:36:15]MH_Cut [15:36:15]Write to MH i2c: D1 01 00 AD 16 01 95 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 01 00 [15:36:15]MH_I2C_Read... [15:36:15]Read from MH i2c: D1 01 00 AD 16 00 94 [15:36:15]Write to MH i2c: 01 00 00 AE 16 C4 [15:36:15]Write i2c OK [15:36:15]MH_I2C_Read... [15:36:16]OFD Sender: No OFD packet to send [15:36:16]*** Cut start [15:36:16]*** Partial cut [15:36:16]*** CUTSNS_PIN = 1 [15:36:16]*** CUTSNS_PIN = 0 [15:36:16]*** Brake cut motor [15:36:17]Read from MH i2c: 01 [15:36:17]MH_I2C_Read... [15:36:17]*** Stop cut motor [15:36:17]*** Cut end [15:36:17]Read from MH i2c: 01 07 00 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: 01 07 00 AE 16 00 00 00 00 00 FF 0F D9 [15:36:17]process_action close_receipt done [15:36:17]requested_data is exist [15:36:17]produce_requested_data [15:36:17]requested_item fm.sn is exist - process it [15:36:17]wFMCommunicate request_size=4 [15:36:17]MH_SAM_APDU [15:36:17]CAPDU: 80 11 00 00 [15:36:17]Write to MH i2c: E2 08 00 AF 16 80 11 00 00 00 00 00 00 3F [15:36:17]Write i2c OK [15:36:17]MH_I2C_Read... [15:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:17]Read from MH i2c: E2 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 17 00 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 17 00 AF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [15:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:36:17]wFMCommunicate OK [15:36:17]requested_item fd.num is exist - process it [15:36:17]SAM_PROTO_GetFieldsCounters [15:36:17]wFMCommunicate request_size=4 [15:36:17]MH_SAM_APDU [15:36:17]CAPDU: 80 13 00 00 [15:36:17]Write to MH i2c: E2 08 00 B0 16 80 13 00 00 00 00 00 00 42 [15:36:17]Write i2c OK [15:36:17]MH_I2C_Read... [15:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:17]Read from MH i2c: E2 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 62 00 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 62 00 B0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [15:36:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:17]wFMCommunicate OK [15:36:17]SAM_PROTO_GetFieldsCounters done [15:36:17]requested_item shift.num is exist - process it [15:36:17]requested_item shift.opened is exist - process it [15:36:17]req_shift_opened [15:36:17]FM_GetShiftState [15:36:17]SAM_PROTO_GetShiftState [15:36:17]wFMCommunicate request_size=4 [15:36:17]MH_SAM_APDU [15:36:17]CAPDU: 80 13 01 00 [15:36:17]Write to MH i2c: E2 08 00 B1 16 80 13 01 00 00 00 00 00 44 [15:36:17]Write i2c OK [15:36:17]MH_I2C_Read... [15:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:17]Read from MH i2c: E2 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 0E 00 [15:36:17]MH_I2C_Read... [15:36:17]Read from MH i2c: E2 0E 00 B1 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BD [15:36:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:36:17]wFMCommunicate OK [15:36:17]SAM_PROTO_GetShiftState done [15:36:17]FM_GetShiftState done [15:36:17]req_shift_opened done [15:36:17]requested_item shift.open_date is exist - process it [15:36:17]req_shift_open_date [15:36:17]req_shift_open_date done [15:36:17]produce_requested_data done [15:36:17]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191834,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:36:17]process_action_free close_receipt [15:36:17]json_value_free [15:36:17]json_value_free done [15:36:17]process_json_proto returns [15:36:17]Send response to host [15:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191834,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:36:17]free response buf [15:36:17]execute_script done [15:36:17]execute_script returns [15:36:17]free content buf [15:36:17]Sock 8.Close socket [15:36:17]Sock 8.Thread stoped [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:25]accept exits with 5 [15:42:25]New connection [15:42:25]New thread 3066817892 created [15:42:25]Thread 3066961252 joined [15:42:25]Waiting for new connection... [15:42:25] Sock 5.Parse request [15:42:25]Sock 5.Check first char [15:42:25]Sock 5.First char is OK [15:42:25]request: POST /json_proto HTTP/1.0 [15:42:25]Method: POST [15:42:25]URL: /json_proto [15:42:25]Method is POST - this is cgi request [15:42:25]url: /json_proto [15:42:25]query_string will be loaded in cgi processing [15:42:25]execute_cgi json_proto POST (null) [15:42:25]execute_cgi path=json_proto method=POST [15:42:25]POST find Content-Length [15:42:25]Host: 172.17.63.131:8080 [15:42:25]Content-Length: 676 [15:42:25]Content-Type: application/json [15:42:25] [15:42:25]POST finish read [15:42:25]Found Content-Length = 676 [15:42:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:25]execute_script... [15:42: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)31142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:25]POST & json_proto [15:42:25]process_json_proto [15:42:25]json parsed OK: [15:42:25]protocol is kg_v1.0 [15:42:25]action value=close_receipt [15:42:25]process_action close_receipt [15:42:25]cmd_close_receipt [15:42:25]MH_GetDate [15:42:25]Write to MH i2c: F0 00 00 B2 16 B7 [15:42:25]Write i2c OK [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: F0 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: F0 09 00 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: F0 09 00 B2 16 00 F0 0D 1D 67 22 05 6E 64 3A [15:42:25]GetLastDocTimeStamp 1729956987 [15:42:25]current date 1729957360 [15:42:25]FM_GetShiftState [15:42:25]SAM_PROTO_GetShiftState [15:42:25]wFMCommunicate request_size=4 [15:42:25]MH_SAM_APDU [15:42:25]CAPDU: 80 13 01 00 [15:42:25]Write to MH i2c: E2 08 00 B3 16 80 13 01 00 00 00 00 00 46 [15:42:25]Write i2c OK [15:42:25]MH_I2C_Read... [15:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:25]Read from MH i2c: E2 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 0E 00 [15:42:25]MH_I2C_Read... [15:42:25]Read from MH i2c: E2 0E 00 B3 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BF [15:42:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:42:25]wFMCommunicate OK [15:42:25]SAM_PROTO_GetShiftState done [15:42:25]FM_GetShiftState done [15:42:25]opened in 1729902770 [15:42:25]opened+sec_in_day 1729989170 [15:42:25]quantity*price = 50041 [15:42:25]sum+1 = 50042 [15:42:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 198 26.10.2024 15:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191835 ФПД: 165005766511433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191835&fm=165005766511433&tin=02508201610067®Number=0000000000091776&sum=50000 [15:42:26]StoreToDocumentArchive [15:42:26]shift 541 fd 191835 [15:42:26]save to /storage/0541/doc_00191835 [15:42:26]save last doc name /storage/0541/doc_00191835 to /storage/kkm_last_doc_name [15:42:26]save OK [15:42:26]Clear old archive folders... [15:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:26]tlvbuf is 01B0CC70 [15:42:26]SAM_PROTO_ClearQueue [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 09 00 00 [15:42:26]Write to MH i2c: E2 08 00 C0 16 80 09 00 00 00 00 00 00 48 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:26]Read from MH i2c: E2 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 [15:42:26]MH_I2C_Read... [15:42:26]Read from MH i2c: E2 03 00 C0 16 00 90 00 4A [15:42:26]RAPDU: 90 00 [15:42:26]wFMCommunicate OK [15:42:26]SAM_PROTO_ClearQueue done [15:42:26]KKMCreateOFDPacket [15:42:26]OFDProtocolAddRootSTLVToBuf [15:42:26]FM_MakeSignedData [15:42:26]FM_MakeSignedData [15:42:26]SAM_PROTO_SignData [15:42:26]wFMCommunicate request_size=4 [15:42:26]MH_SAM_APDU [15:42:26]CAPDU: 80 0D 01 02 [15:42:26]Write to MH i2c: E2 08 00 C1 16 80 0D 01 02 00 00 00 00 50 [15:42:26]Write i2c OK [15:42:26]MH_I2C_Read... [15:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 C1 16 00 90 00 4B [15:42:27]RAPDU: 90 00 [15:42:27]wFMCommunicate OK [15:42:27]wFMCommunicate request_size=255 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F1 0D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B ED 02 00 35 04 06 00 96 [15:42:27]Write to MH i2c: E2 02 01 C2 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F1 0D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B ED 02 00 35 04 06 00 96 00 00 2B [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 C2 16 00 90 00 4C [15:42:27]RAPDU: 90 00 [15:42:27]wFMCommunicate OK [15:42:27]wFMCommunicate request_size=10 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 0D 02 02 05 12 66 19 4B 49 [15:42:27]Write to MH i2c: E2 0D 00 C3 16 80 0D 02 02 05 00 12 66 19 4B 49 00 00 82 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 03 00 C3 16 00 90 00 4D [15:42:27]RAPDU: 90 00 [15:42:27]wFMCommunicate OK [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 0D 03 02 [15:42:27]Write to MH i2c: E2 08 00 C4 16 80 0D 03 02 00 00 00 00 55 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0B 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 0B 00 C4 16 00 80 4E FD 0B 91 55 C7 82 90 00 5B [15:42:27]RAPDU: 80 4E FD 0B 91 55 C7 82 90 00 [15:42:27]wFMCommunicate OK [15:42:27]SAM_PROTO_SignData done [15:42:27]FM_MakeSignedData done [15:42:27]CreateOFDProtocolMessage [15:42:27]wFMCommunicate request_size=4 [15:42:27]MH_SAM_APDU [15:42:27]CAPDU: 80 11 00 00 [15:42:27]Write to MH i2c: E2 08 00 C5 16 80 11 00 00 00 00 00 00 55 [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:27]Read from MH i2c: E2 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 17 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: E2 17 00 C5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A8 [15:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:42:27]wFMCommunicate OK [15:42:27]CreateOFDProtocolMessage done [15:42:27]OFDSenderStorePacket 191835 [15:42:27]StoreOFDPacket docnum=191835 [15:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 0C 07 01 AE CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F1 0D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B ED 02 00 35 04 06 00 96 12 66 19 4B 49 80 4E FD 0B 91 55 C7 82 [15:42:27]CheckFolder [15:42:27]dirname=/storage/ofd_packets [15:42:27]CheckFolder done [15:42:27]ProducePacketName [15:42:27]name=ofd_packets/00191835 [15:42:27]NVStorageSaveData ofd_packets/00191835 [15:42:27]File name is /storage/ofd_packets/00191835 [15:42:27]Write 301 bytes [15:42:27]NVStorageSaveData done [15:42:27]OFDSenderStorePacket done [15:42:27]KKMCreateOFDPacket done [15:42:27]NVStorageSaveData kkm_last_timestamp [15:42:27]File name is /storage/kkm_last_timestamp [15:42:27]Write 4 bytes [15:42:27]NVStorageSaveData done [15:42:27]ExternCall_PrintAddStr [15:42:27]wPrintStart [15:42:27]Write to MH i2c: 01 00 00 C6 16 DC [15:42:27]Write i2c OK [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: 01 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: 01 07 00 [15:42:27]MH_I2C_Read... [15:42:27]Read from MH i2c: 01 07 00 C6 16 00 00 00 00 00 FF 0F F1 [15:42:27]RasterBufferAndPrint [15:42:27]line Счет N : (1)31142 [15:42:27]line ИНН: 02508201610067 [15:42:27]line Контрольно-Кассовый Чек [15:42:27]line ПРОДАЖА [15:42:27]line ТРК (МРК, ГНК) : 12 [15:42:27]line Товар: 2710124130 [15:42:27]line Аи-92-К-5 [15:42:27]line 7.480 * 66.90 [15:42:27]line = 500.41 [15:42:27]line НДС 12% НСП 1% [15:42:27]line > о реализуемом товаре [15:42:27]line ОКРУГЛЕНИЕ: -0.41 [15:42:27]line ИТОГО: 500.00 [15:42:27]line Внесено: 500.00 [15:42:27]line СДАЧА: 0.00 [15:42:27]line НСП 1% : 4.43 [15:42:27]line НДС 12% : 53.14 [15:42:27]line Наличными: 500.00 [15:42:27]line Безнал.: 0.00 [15:42:27]line Место: АЗС № 170 "Партнер Нефть" [15:42:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:42:27]line СНО: Общий режим [15:42:27]line Чек 198 26.10.2024 15:42 [15:42:27]line Смена: 541 ФФД: 1.0 [15:42:27]line ЗНМ: 0300000110 [15:42:27]line РНМ: 0000000000091776 [15:42:27]line Версия ККМ: 001 [15:42:27]line ФМ: 0000000000871754 [15:42:27]line ФД: 191835 [15:42:27]line ФПД: 165005766511433 [15:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191835&fm=165005766511433&tin=02508201610067®Number=0000000000091776&sum=50000 [15:42:27]OFD Sender: Processing packet 191835 [packets to send 75, broken 74] [15:42:27]ProducePacketName [15:42:27]name=ofd_packets/00191835 [15:42:27]OFD Sender: To server: pG, [15:42:27]CommunicateWithHost lk.salyk.kg:30040 [15:42:27]ConnectInit lk.salyk.kg [15:42:27]written 0, free lines is 4095 [15:42:27]Connected sock=8 [15:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 AB 0C 07 01 AE CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 F1 0D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B ED 02 00 35 04 06 00 96 12 66 19 4B 49 80 4E FD 0B 91 55 C7 82 [15:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 13 4E 47 00 3A 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5B ED 02 00 F4 03 04 00 BB B2 1C 67 B6 04 01 00 00 F4 50 BF 67 69 8C B2 85 [15:42:28]CommunicateWithHost err = 0 [15:42:28]CheckOFDResponse [15:42:28]1017 (14) - 77093643461234 [15:42:28]1041 (16) - 0000000000871754 [15:42:28]1040 (4) - 191835 [15:42:28]1012 (4) - 26.10.2024 09:13 [15:42:28]1206 (1) - 0 [15:42:28]OFD Sender: Remove packet 191835 [15:42:28]ProducePacketName [15:42:28]name=ofd_packets/00191835 [15:42:28]NVStorageDeleteData [15:42:28]Write to MH i2c: 01 00 00 F1 16 07 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: 01 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: 01 07 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: 01 07 00 F1 16 00 00 00 00 00 B6 0C D0 [15:42:28]RasterBufferAndPrint [15:42:28]line [15:42:28]line [15:42:28]line [15:42:28]line [15:42:28]line [15:42:28]written 0, free lines is 3260 [15:42:28]MH_Cut [15:42:28]Write to MH i2c: D1 01 00 F8 16 01 E0 [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: D1 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: D1 01 00 [15:42:28]MH_I2C_Read... [15:42:28]Read from MH i2c: D1 01 00 F8 16 00 DF [15:42:28]Write to MH i2c: 01 00 00 F9 16 0F [15:42:28]Write i2c OK [15:42:28]MH_I2C_Read... [15:42:28]OFD Sender: No OFD packet to send [15:42:29]*** Cut start [15:42:29]*** Partial cut [15:42:29]*** CUTSNS_PIN = 1 [15:42:29]*** CUTSNS_PIN = 0 [15:42:29]*** Brake cut motor [15:42:29]Read from MH i2c: 01 [15:42:29]MH_I2C_Read... [15:42:29]*** Stop cut motor [15:42:29]*** Cut end [15:42:29]Read from MH i2c: 01 07 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: 01 07 00 F9 16 00 00 00 00 00 FF 0F 24 [15:42:29]process_action close_receipt done [15:42:29]requested_data is exist [15:42:29]produce_requested_data [15:42:29]requested_item fm.sn is exist - process it [15:42:29]wFMCommunicate request_size=4 [15:42:29]MH_SAM_APDU [15:42:29]CAPDU: 80 11 00 00 [15:42:29]Write to MH i2c: E2 08 00 FA 16 80 11 00 00 00 00 00 00 8A [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:29]Read from MH i2c: E2 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 17 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 17 00 FA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [15:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:42:29]wFMCommunicate OK [15:42:29]requested_item fd.num is exist - process it [15:42:29]SAM_PROTO_GetFieldsCounters [15:42:29]wFMCommunicate request_size=4 [15:42:29]MH_SAM_APDU [15:42:29]CAPDU: 80 13 00 00 [15:42:29]Write to MH i2c: E2 08 00 FB 16 80 13 00 00 00 00 00 00 8D [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:29]Read from MH i2c: E2 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 62 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 62 00 FB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:42:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:29]wFMCommunicate OK [15:42:29]SAM_PROTO_GetFieldsCounters done [15:42:29]requested_item shift.num is exist - process it [15:42:29]requested_item shift.opened is exist - process it [15:42:29]req_shift_opened [15:42:29]FM_GetShiftState [15:42:29]SAM_PROTO_GetShiftState [15:42:29]wFMCommunicate request_size=4 [15:42:29]MH_SAM_APDU [15:42:29]CAPDU: 80 13 01 00 [15:42:29]Write to MH i2c: E2 08 00 FC 16 80 13 01 00 00 00 00 00 8F [15:42:29]Write i2c OK [15:42:29]MH_I2C_Read... [15:42:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:29]Read from MH i2c: E2 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 0E 00 [15:42:29]MH_I2C_Read... [15:42:29]Read from MH i2c: E2 0E 00 FC 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [15:42:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:42:29]wFMCommunicate OK [15:42:29]SAM_PROTO_GetShiftState done [15:42:29]FM_GetShiftState done [15:42:29]req_shift_opened done [15:42:29]requested_item shift.open_date is exist - process it [15:42:29]req_shift_open_date [15:42:29]req_shift_open_date done [15:42:29]produce_requested_data done [15:42:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191835,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:42:29]process_action_free close_receipt [15:42:29]json_value_free [15:42:29]json_value_free done [15:42:29]process_json_proto returns [15:42:29]Send response to host [15:42:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191835,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:42:29]free response buf [15:42:29]execute_script done [15:42:29]execute_script returns [15:42:29]free content buf [15:42:29]Sock 5.Close socket [15:42:29]Sock 5.Thread stoped [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:46]accept exits with 6 [15:43:46]New connection [15:43:46]New thread 3066961252 created [15:43:46]Thread 3066817892 joined [15:43:46]Waiting for new connection... [15:43:46] Sock 6.Parse request [15:43:46]Sock 6.Check first char [15:43:46]Sock 6.First char is OK [15:43:46]request: POST /json_proto HTTP/1.0 [15:43:46]Method: POST [15:43:46]URL: /json_proto [15:43:46]Method is POST - this is cgi request [15:43:46]url: /json_proto [15:43:46]query_string will be loaded in cgi processing [15:43:46]execute_cgi json_proto POST (null) [15:43:46]execute_cgi path=json_proto method=POST [15:43:46]POST find Content-Length [15:43:46]Host: 172.17.63.131:8080 [15:43:46]Content-Length: 676 [15:43:46]Content-Type: application/json [15:43:46] [15:43:46]POST finish read [15:43:46]Found Content-Length = 676 [15:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:46]execute_script... [15:43:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:46]POST & json_proto [15:43:46]process_json_proto [15:43:46]json parsed OK: [15:43:46]protocol is kg_v1.0 [15:43:46]action value=close_receipt [15:43:46]process_action close_receipt [15:43:46]cmd_close_receipt [15:43:46]MH_GetDate [15:43:46]Write to MH i2c: F0 00 00 FD 16 02 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:47]Read from MH i2c: F0 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: F0 09 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: F0 09 00 FD 16 00 42 0E 1D 67 22 05 6E 64 D8 [15:43:47]GetLastDocTimeStamp 1729957361 [15:43:47]current date 1729957442 [15:43:47]FM_GetShiftState [15:43:47]SAM_PROTO_GetShiftState [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 13 01 00 [15:43:47]Write to MH i2c: E2 08 00 FE 16 80 13 01 00 00 00 00 00 91 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 FE 16 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0A [15:43:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_GetShiftState done [15:43:47]FM_GetShiftState done [15:43:47]opened in 1729902770 [15:43:47]opened+sec_in_day 1729989170 [15:43:47]quantity*price = 50041 [15:43:47]sum+1 = 50042 [15:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 199 26.10.2024 15:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191836 ФПД: 103174565344015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191836&fm=103174565344015&tin=02508201610067®Number=0000000000091776&sum=50000 [15:43:48]StoreToDocumentArchive [15:43:48]shift 541 fd 191836 [15:43:48]save to /storage/0541/doc_00191836 [15:43:48]save last doc name /storage/0541/doc_00191836 to /storage/kkm_last_doc_name [15:43:48]save OK [15:43:48]Clear old archive folders... [15:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:48]tlvbuf is 017F14D0 [15:43:48]SAM_PROTO_ClearQueue [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 09 00 00 [15:43:48]Write to MH i2c: E2 08 00 0B 17 80 09 00 00 00 00 00 00 94 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 0B 17 00 90 00 96 [15:43:48]RAPDU: 90 00 [15:43:48]wFMCommunicate OK [15:43:48]SAM_PROTO_ClearQueue done [15:43:48]KKMCreateOFDPacket [15:43:48]OFDProtocolAddRootSTLVToBuf [15:43:48]FM_MakeSignedData [15:43:48]FM_MakeSignedData [15:43:48]SAM_PROTO_SignData [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 0D 01 02 [15:43:48]Write to MH i2c: E2 08 00 0C 17 80 0D 01 02 00 00 00 00 9C [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 0C 17 00 90 00 97 [15:43:48]RAPDU: 90 00 [15:43:48]wFMCommunicate OK [15:43:48]wFMCommunicate request_size=255 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 42 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C ED 02 00 35 04 06 00 5D [15:43:48]Write to MH i2c: E2 02 01 0D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 42 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C ED 02 00 35 04 06 00 5D 00 00 92 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 0D 17 00 90 00 98 [15:43:48]RAPDU: 90 00 [15:43:48]wFMCommunicate OK [15:43:48]wFMCommunicate request_size=10 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 0D 02 02 05 D6 33 51 33 0F [15:43:48]Write to MH i2c: E2 0D 00 0E 17 80 0D 02 02 05 00 D6 33 51 33 0F 00 00 45 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [15:43:48]RAPDU: 90 00 [15:43:48]wFMCommunicate OK [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 0D 03 02 [15:43:48]Write to MH i2c: E2 08 00 0F 17 80 0D 03 02 00 00 00 00 A1 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0B 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 0B 00 0F 17 00 7E 04 8E F6 17 B0 91 96 90 00 96 [15:43:48]RAPDU: 7E 04 8E F6 17 B0 91 96 90 00 [15:43:48]wFMCommunicate OK [15:43:48]SAM_PROTO_SignData done [15:43:48]FM_MakeSignedData done [15:43:48]CreateOFDProtocolMessage [15:43:48]wFMCommunicate request_size=4 [15:43:48]MH_SAM_APDU [15:43:48]CAPDU: 80 11 00 00 [15:43:48]Write to MH i2c: E2 08 00 10 17 80 11 00 00 00 00 00 00 A1 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:48]Read from MH i2c: E2 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 17 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: E2 17 00 10 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F4 [15:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:43:48]wFMCommunicate OK [15:43:48]CreateOFDProtocolMessage done [15:43:48]OFDSenderStorePacket 191836 [15:43:48]StoreOFDPacket docnum=191836 [15:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 4B 07 01 91 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 42 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C ED 02 00 35 04 06 00 5D D6 33 51 33 0F 7E 04 8E F6 17 B0 91 96 [15:43:48]CheckFolder [15:43:48]dirname=/storage/ofd_packets [15:43:48]CheckFolder done [15:43:48]ProducePacketName [15:43:48]name=ofd_packets/00191836 [15:43:48]NVStorageSaveData ofd_packets/00191836 [15:43:48]File name is /storage/ofd_packets/00191836 [15:43:48]Write 301 bytes [15:43:48]NVStorageSaveData done [15:43:48]OFDSenderStorePacket done [15:43:48]KKMCreateOFDPacket done [15:43:48]NVStorageSaveData kkm_last_timestamp [15:43:48]File name is /storage/kkm_last_timestamp [15:43:48]Write 4 bytes [15:43:48]NVStorageSaveData done [15:43:48]ExternCall_PrintAddStr [15:43:48]wPrintStart [15:43:48]Write to MH i2c: 01 00 00 11 17 28 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 11 17 00 00 00 00 00 FF 0F 3D [15:43:48]RasterBufferAndPrint [15:43:48]line Счет N : (1)31143 [15:43:48]line ИНН: 02508201610067 [15:43:48]line Контрольно-Кассовый Чек [15:43:48]line ПРОДАЖА [15:43:48]line ТРК (МРК, ГНК) : 21 [15:43:48]line Товар: 2710124130 [15:43:48]line Аи-92-К-5 [15:43:48]line 7.480 * 66.90 [15:43:48]line = 500.41 [15:43:48]line НДС 12% НСП 1% [15:43:48]line > о реализуемом товаре [15:43:48]line ОКРУГЛЕНИЕ: -0.41 [15:43:48]line ИТОГО: 500.00 [15:43:48]line Внесено: 500.00 [15:43:48]line СДАЧА: 0.00 [15:43:48]line НСП 1% : 4.43 [15:43:48]line НДС 12% : 53.14 [15:43:48]line Наличными: 500.00 [15:43:48]line Безнал.: 0.00 [15:43:48]line Место: АЗС № 170 "Партнер Нефть" [15:43:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:43:48]line СНО: Общий режим [15:43:48]line Чек 199 26.10.2024 15:44 [15:43:48]line Смена: 541 ФФД: 1.0 [15:43:48]line ЗНМ: 0300000110 [15:43:48]line РНМ: 0000000000091776 [15:43:48]line Версия ККМ: 001 [15:43:48]line ФМ: 0000000000871754 [15:43:48]line ФД: 191836 [15:43:48]line ФПД: 103174565344015 [15:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154402&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191836&fm=103174565344015&tin=02508201610067®Number=0000000000091776&sum=50000 [15:43:49]OFD Sender: Processing packet 191836 [packets to send 75, broken 74] [15:43:49]ProducePacketName [15:43:49]name=ofd_packets/00191836 [15:43:49]OFD Sender: To server: pG, [15:43:49]CommunicateWithHost lk.salyk.kg:30040 [15:43:49]ConnectInit lk.salyk.kg [15:43:49]written 0, free lines is 4095 [15:43:49]Connected sock=8 [15:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EA 4B 07 01 91 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 42 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C ED 02 00 35 04 06 00 5D D6 33 51 33 0F 7E 04 8E F6 17 B0 91 96 [15:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9F 2A 47 00 70 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5C ED 02 00 F4 03 04 00 0D B3 1C 67 B6 04 01 00 00 BF 27 33 04 94 CE D7 8F [15:43:49]CommunicateWithHost err = 0 [15:43:49]CheckOFDResponse [15:43:49]1017 (14) - 77093643461234 [15:43:49]1041 (16) - 0000000000871754 [15:43:49]1040 (4) - 191836 [15:43:49]1012 (4) - 26.10.2024 09:14 [15:43:49]1206 (1) - 0 [15:43:49]OFD Sender: Remove packet 191836 [15:43:49]ProducePacketName [15:43:49]name=ofd_packets/00191836 [15:43:49]NVStorageDeleteData [15:43:49]Write to MH i2c: 01 00 00 3C 17 53 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 07 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 07 00 3C 17 00 00 00 00 00 BB 0C 21 [15:43:49]RasterBufferAndPrint [15:43:49]line [15:43:49]line [15:43:49]line [15:43:49]line [15:43:49]line [15:43:49]written 0, free lines is 3269 [15:43:49]MH_Cut [15:43:49]Write to MH i2c: D1 01 00 43 17 01 2C [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: D1 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: D1 01 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: D1 01 00 43 17 00 2B [15:43:49]Write to MH i2c: 01 00 00 44 17 5B [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]OFD Sender: No OFD packet to send [15:43:50]*** Cut start [15:43:50]*** Partial cut [15:43:50]*** CUTSNS_PIN = 1 [15:43:50]*** CUTSNS_PIN = 0 [15:43:50]*** Brake cut motor [15:43:50]Read from MH i2c: 01 [15:43:50]MH_I2C_Read... [15:43:50]*** Stop cut motor [15:43:50]*** Cut end [15:43:50]Read from MH i2c: 01 07 00 [15:43:50]MH_I2C_Read... [15:43:50]Read from MH i2c: 01 07 00 44 17 00 00 00 00 00 FF 0F 70 [15:43:50]process_action close_receipt done [15:43:50]requested_data is exist [15:43:50]produce_requested_data [15:43:50]requested_item fm.sn is exist - process it [15:43:50]wFMCommunicate request_size=4 [15:43:50]MH_SAM_APDU [15:43:50]CAPDU: 80 11 00 00 [15:43:50]Write to MH i2c: E2 08 00 45 17 80 11 00 00 00 00 00 00 D6 [15:43:50]Write i2c OK [15:43:50]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 17 00 45 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [15:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:43:51]wFMCommunicate OK [15:43:51]requested_item fd.num is exist - process it [15:43:51]SAM_PROTO_GetFieldsCounters [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 13 00 00 [15:43:51]Write to MH i2c: E2 08 00 46 17 80 13 00 00 00 00 00 00 D9 [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 62 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 62 00 46 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [15:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_GetFieldsCounters done [15:43:51]requested_item shift.num is exist - process it [15:43:51]requested_item shift.opened is exist - process it [15:43:51]req_shift_opened [15:43:51]FM_GetShiftState [15:43:51]SAM_PROTO_GetShiftState [15:43:51]wFMCommunicate request_size=4 [15:43:51]MH_SAM_APDU [15:43:51]CAPDU: 80 13 01 00 [15:43:51]Write to MH i2c: E2 08 00 47 17 80 13 01 00 00 00 00 00 DB [15:43:51]Write i2c OK [15:43:51]MH_I2C_Read... [15:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:51]Read from MH i2c: E2 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0E 00 [15:43:51]MH_I2C_Read... [15:43:51]Read from MH i2c: E2 0E 00 47 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 54 [15:43:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:43:51]wFMCommunicate OK [15:43:51]SAM_PROTO_GetShiftState done [15:43:51]FM_GetShiftState done [15:43:51]req_shift_opened done [15:43:51]requested_item shift.open_date is exist - process it [15:43:51]req_shift_open_date [15:43:51]req_shift_open_date done [15:43:51]produce_requested_data done [15:43:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191836,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:43:51]process_action_free close_receipt [15:43:51]json_value_free [15:43:51]json_value_free done [15:43:51]process_json_proto returns [15:43:51]Send response to host [15:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191836,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:43:51]free response buf [15:43:51]execute_script done [15:43:51]execute_script returns [15:43:51]free content buf [15:43:51]Sock 6.Close socket [15:43:51]Sock 6.Thread stoped [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]accept exits with 5 [15:45:04]New connection [15:45:04]New thread 3066817892 created [15:45:04]Thread 3066961252 joined [15:45:04]Waiting for new connection... [15:45:04] Sock 5.Parse request [15:45:04]Sock 5.Check first char [15:45:04]Sock 5.First char is OK [15:45:04]request: POST /json_proto HTTP/1.0 [15:45:04]Method: POST [15:45:04]URL: /json_proto [15:45:04]Method is POST - this is cgi request [15:45:04]url: /json_proto [15:45:04]query_string will be loaded in cgi processing [15:45:04]execute_cgi json_proto POST (null) [15:45:04]execute_cgi path=json_proto method=POST [15:45:04]POST find Content-Length [15:45:04]Host: 172.17.63.131:8080 [15:45:04]Content-Length: 676 [15:45:04]Content-Type: application/json [15:45:04] [15:45:04]POST finish read [15:45:04]Found Content-Length = 676 [15:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:04]execute_script... [15:45: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)31144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:04]POST & json_proto [15:45:04]process_json_proto [15:45:04]json parsed OK: [15:45:04]protocol is kg_v1.0 [15:45:04]action value=close_receipt [15:45:04]process_action close_receipt [15:45:04]cmd_close_receipt [15:45:04]MH_GetDate [15:45:04]Write to MH i2c: F0 00 00 48 17 4E [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: F0 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: F0 09 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: F0 09 00 48 17 00 8F 0E 1D 67 22 05 6E 64 71 [15:45:04]GetLastDocTimeStamp 1729957442 [15:45:04]current date 1729957519 [15:45:04]FM_GetShiftState [15:45:04]SAM_PROTO_GetShiftState [15:45:04]wFMCommunicate request_size=4 [15:45:04]MH_SAM_APDU [15:45:04]CAPDU: 80 13 01 00 [15:45:04]Write to MH i2c: E2 08 00 49 17 80 13 01 00 00 00 00 00 DD [15:45:04]Write i2c OK [15:45:04]MH_I2C_Read... [15:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:04]Read from MH i2c: E2 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 0E 00 [15:45:04]MH_I2C_Read... [15:45:04]Read from MH i2c: E2 0E 00 49 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 56 [15:45:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:45:04]wFMCommunicate OK [15:45:04]SAM_PROTO_GetShiftState done [15:45:04]FM_GetShiftState done [15:45:04]opened in 1729902770 [15:45:04]opened+sec_in_day 1729989170 [15:45:04]quantity*price = 30038 [15:45:04]sum+1 = 30039 [15:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 200 26.10.2024 15:45 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191837 ФПД: 167151303021949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154519&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191837&fm=167151303021949&tin=02508201610067®Number=0000000000091776&sum=30000 [15:45:05]StoreToDocumentArchive [15:45:05]shift 541 fd 191837 [15:45:05]save to /storage/0541/doc_00191837 [15:45:05]save last doc name /storage/0541/doc_00191837 to /storage/kkm_last_doc_name [15:45:05]save OK [15:45:05]Clear old archive folders... [15:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:05]tlvbuf is 019D4C80 [15:45:05]SAM_PROTO_ClearQueue [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 09 00 00 [15:45:05]Write to MH i2c: E2 08 00 56 17 80 09 00 00 00 00 00 00 DF [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 03 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 03 00 56 17 00 90 00 E1 [15:45:05]RAPDU: 90 00 [15:45:05]wFMCommunicate OK [15:45:05]SAM_PROTO_ClearQueue done [15:45:05]KKMCreateOFDPacket [15:45:05]OFDProtocolAddRootSTLVToBuf [15:45:05]FM_MakeSignedData [15:45:05]FM_MakeSignedData [15:45:05]SAM_PROTO_SignData [15:45:05]wFMCommunicate request_size=4 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 0D 01 02 [15:45:05]Write to MH i2c: E2 08 00 57 17 80 0D 01 02 00 00 00 00 E7 [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:05]Read from MH i2c: E2 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 03 00 [15:45:05]MH_I2C_Read... [15:45:05]Read from MH i2c: E2 03 00 57 17 00 90 00 E2 [15:45:05]RAPDU: 90 00 [15:45:05]wFMCommunicate OK [15:45:05]wFMCommunicate request_size=255 [15:45:05]MH_SAM_APDU [15:45:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8F 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D ED 02 00 35 04 06 00 98 [15:45:05]Write to MH i2c: E2 02 01 58 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8F 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D ED 02 00 35 04 06 00 98 00 00 5B [15:45:05]Write i2c OK [15:45:05]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 03 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [15:45:06]RAPDU: 90 00 [15:45:06]wFMCommunicate OK [15:45:06]wFMCommunicate request_size=10 [15:45:06]MH_SAM_APDU [15:45:06]CAPDU: 80 0D 02 02 05 05 F2 0A 55 7D [15:45:06]Write to MH i2c: E2 0D 00 59 17 80 0D 02 02 05 00 05 F2 0A 55 7D 00 00 C7 [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 03 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [15:45:06]RAPDU: 90 00 [15:45:06]wFMCommunicate OK [15:45:06]wFMCommunicate request_size=4 [15:45:06]MH_SAM_APDU [15:45:06]CAPDU: 80 0D 03 02 [15:45:06]Write to MH i2c: E2 08 00 5A 17 80 0D 03 02 00 00 00 00 EC [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0B 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 0B 00 5A 17 00 15 79 54 79 A1 8D 98 3A 90 00 48 [15:45:06]RAPDU: 15 79 54 79 A1 8D 98 3A 90 00 [15:45:06]wFMCommunicate OK [15:45:06]SAM_PROTO_SignData done [15:45:06]FM_MakeSignedData done [15:45:06]CreateOFDProtocolMessage [15:45:06]wFMCommunicate request_size=4 [15:45:06]MH_SAM_APDU [15:45:06]CAPDU: 80 11 00 00 [15:45:06]Write to MH i2c: E2 08 00 5B 17 80 11 00 00 00 00 00 00 EC [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:06]Read from MH i2c: E2 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 17 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: E2 17 00 5B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [15:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:45:06]wFMCommunicate OK [15:45:06]CreateOFDProtocolMessage done [15:45:06]OFDSenderStorePacket 191837 [15:45:06]StoreOFDPacket docnum=191837 [15:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B FB 07 01 35 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8F 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D ED 02 00 35 04 06 00 98 05 F2 0A 55 7D 15 79 54 79 A1 8D 98 3A [15:45:06]CheckFolder [15:45:06]dirname=/storage/ofd_packets [15:45:06]CheckFolder done [15:45:06]ProducePacketName [15:45:06]name=ofd_packets/00191837 [15:45:06]NVStorageSaveData ofd_packets/00191837 [15:45:06]File name is /storage/ofd_packets/00191837 [15:45:06]Write 301 bytes [15:45:06]NVStorageSaveData done [15:45:06]OFDSenderStorePacket done [15:45:06]KKMCreateOFDPacket done [15:45:06]NVStorageSaveData kkm_last_timestamp [15:45:06]File name is /storage/kkm_last_timestamp [15:45:06]Write 4 bytes [15:45:06]NVStorageSaveData done [15:45:06]ExternCall_PrintAddStr [15:45:06]wPrintStart [15:45:06]Write to MH i2c: 01 00 00 5C 17 73 [15:45:06]Write i2c OK [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: 01 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: 01 07 00 [15:45:06]MH_I2C_Read... [15:45:06]Read from MH i2c: 01 07 00 5C 17 00 00 00 00 00 FF 0F 88 [15:45:06]RasterBufferAndPrint [15:45:06]line Счет N : (1)31144 [15:45:06]line ИНН: 02508201610067 [15:45:06]line Контрольно-Кассовый Чек [15:45:06]line ПРОДАЖА [15:45:06]line ТРК (МРК, ГНК) : 21 [15:45:06]line Товар: 2710124130 [15:45:06]line Аи-92-К-5 [15:45:06]line 4.490 * 66.90 [15:45:06]line = 300.38 [15:45:06]line НДС 12% НСП 1% [15:45:06]line > о реализуемом товаре [15:45:06]line ОКРУГЛЕНИЕ: -0.38 [15:45:06]line ИТОГО: 300.00 [15:45:06]line Внесено: 300.00 [15:45:06]line СДАЧА: 0.00 [15:45:06]line НСП 1% : 2.66 [15:45:06]line НДС 12% : 31.90 [15:45:06]line Наличными: 300.00 [15:45:06]line Безнал.: 0.00 [15:45:06]line Место: АЗС № 170 "Партнер Нефть" [15:45:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:45:06]line СНО: Общий режим [15:45:06]line Чек 200 26.10.2024 15:45 [15:45:06]line Смена: 541 ФФД: 1.0 [15:45:06]line ЗНМ: 0300000110 [15:45:06]line РНМ: 0000000000091776 [15:45:06]line Версия ККМ: 001 [15:45:06]line ФМ: 0000000000871754 [15:45:06]line ФД: 191837 [15:45:06]line ФПД: 167151303021949 [15:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154519&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191837&fm=167151303021949&tin=02508201610067®Number=0000000000091776&sum=30000 [15:45:06]OFD Sender: Processing packet 191837 [packets to send 75, broken 74] [15:45:06]ProducePacketName [15:45:06]name=ofd_packets/00191837 [15:45:06]OFD Sender: To server: pG, [15:45:06]CommunicateWithHost lk.salyk.kg:30040 [15:45:06]ConnectInit lk.salyk.kg [15:45:06]written 0, free lines is 4095 [15:45:06]Connected sock=8 [15:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B FB 07 01 35 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 8F 0E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D ED 02 00 35 04 06 00 98 05 F2 0A 55 7D 15 79 54 79 A1 8D 98 3A [15:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 36 91 47 00 04 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5D ED 02 00 F4 03 04 00 5A B3 1C 67 B6 04 01 00 00 A8 F0 3F 03 0A CD BA 97 [15:45:07]CommunicateWithHost err = 0 [15:45:07]CheckOFDResponse [15:45:07]1017 (14) - 77093643461234 [15:45:07]1041 (16) - 0000000000871754 [15:45:07]1040 (4) - 191837 [15:45:07]1012 (4) - 26.10.2024 09:16 [15:45:07]1206 (1) - 0 [15:45:07]OFD Sender: Remove packet 191837 [15:45:07]ProducePacketName [15:45:07]name=ofd_packets/00191837 [15:45:07]NVStorageDeleteData [15:45:07]Write to MH i2c: 01 00 00 87 17 9E [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 07 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: 01 07 00 87 17 00 00 00 00 00 BB 0C 6C [15:45:07]RasterBufferAndPrint [15:45:07]line [15:45:07]line [15:45:07]line [15:45:07]line [15:45:07]line [15:45:07]written 0, free lines is 3267 [15:45:07]MH_Cut [15:45:07]Write to MH i2c: D1 01 00 8E 17 01 77 [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: D1 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: D1 01 00 [15:45:07]MH_I2C_Read... [15:45:07]Read from MH i2c: D1 01 00 8E 17 00 76 [15:45:07]Write to MH i2c: 01 00 00 8F 17 A6 [15:45:07]Write i2c OK [15:45:07]MH_I2C_Read... [15:45:07]OFD Sender: No OFD packet to send [15:45:08]*** Cut start [15:45:08]*** Partial cut [15:45:08]*** CUTSNS_PIN = 1 [15:45:08]*** CUTSNS_PIN = 0 [15:45:08]*** Brake cut motor [15:45:08]Read from MH i2c: 01 [15:45:08]MH_I2C_Read... [15:45:08]*** Stop cut motor [15:45:08]*** Cut end [15:45:08]Read from MH i2c: 01 07 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: 01 07 00 8F 17 00 00 00 00 00 FF 0F BB [15:45:08]process_action close_receipt done [15:45:08]requested_data is exist [15:45:08]produce_requested_data [15:45:08]requested_item fm.sn is exist - process it [15:45:08]wFMCommunicate request_size=4 [15:45:08]MH_SAM_APDU [15:45:08]CAPDU: 80 11 00 00 [15:45:08]Write to MH i2c: E2 08 00 90 17 80 11 00 00 00 00 00 00 21 [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:08]Read from MH i2c: E2 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 17 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 17 00 90 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [15:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:45:08]wFMCommunicate OK [15:45:08]requested_item fd.num is exist - process it [15:45:08]SAM_PROTO_GetFieldsCounters [15:45:08]wFMCommunicate request_size=4 [15:45:08]MH_SAM_APDU [15:45:08]CAPDU: 80 13 00 00 [15:45:08]Write to MH i2c: E2 08 00 91 17 80 13 00 00 00 00 00 00 24 [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:08]Read from MH i2c: E2 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 62 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 62 00 91 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:08]wFMCommunicate OK [15:45:08]SAM_PROTO_GetFieldsCounters done [15:45:08]requested_item shift.num is exist - process it [15:45:08]requested_item shift.opened is exist - process it [15:45:08]req_shift_opened [15:45:08]FM_GetShiftState [15:45:08]SAM_PROTO_GetShiftState [15:45:08]wFMCommunicate request_size=4 [15:45:08]MH_SAM_APDU [15:45:08]CAPDU: 80 13 01 00 [15:45:08]Write to MH i2c: E2 08 00 92 17 80 13 01 00 00 00 00 00 26 [15:45:08]Write i2c OK [15:45:08]MH_I2C_Read... [15:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:08]Read from MH i2c: E2 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 0E 00 [15:45:08]MH_I2C_Read... [15:45:08]Read from MH i2c: E2 0E 00 92 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9F [15:45:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:45:08]wFMCommunicate OK [15:45:08]SAM_PROTO_GetShiftState done [15:45:08]FM_GetShiftState done [15:45:08]req_shift_opened done [15:45:08]requested_item shift.open_date is exist - process it [15:45:08]req_shift_open_date [15:45:08]req_shift_open_date done [15:45:08]produce_requested_data done [15:45:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191837,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:45:08]process_action_free close_receipt [15:45:08]json_value_free [15:45:08]json_value_free done [15:45:08]process_json_proto returns [15:45:08]Send response to host [15:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191837,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:45:08]free response buf [15:45:08]execute_script done [15:45:08]execute_script returns [15:45:08]free content buf [15:45:08]Sock 5.Close socket [15:45:08]Sock 5.Thread stoped [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:09]accept exits with 6 [15:47:09]New connection [15:47:09]New thread 3066961252 created [15:47:09]Thread 3066817892 joined [15:47:09]Waiting for new connection... [15:47:09] Sock 6.Parse request [15:47:09]Sock 6.Check first char [15:47:09]Sock 6.First char is OK [15:47:09]request: POST /json_proto HTTP/1.0 [15:47:09]Method: POST [15:47:09]URL: /json_proto [15:47:09]Method is POST - this is cgi request [15:47:09]url: /json_proto [15:47:09]query_string will be loaded in cgi processing [15:47:09]execute_cgi json_proto POST (null) [15:47:09]execute_cgi path=json_proto method=POST [15:47:09]POST find Content-Length [15:47:09]Host: 172.17.63.131:8080 [15:47:09]Content-Length: 862 [15:47:09]Content-Type: application/json [15:47:09] [15:47:09]POST finish read [15:47:09]Found Content-Length = 862 [15:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:09]execute_script... [15:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:09]POST & json_proto [15:47:09]process_json_proto [15:47:09]json parsed OK: [15:47:09]protocol is kg_v1.0 [15:47:09]action value=close_receipt [15:47:09]process_action close_receipt [15:47:09]cmd_close_receipt [15:47:09]MH_GetDate [15:47:09]Write to MH i2c: F0 00 00 93 17 99 [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: F0 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: F0 09 00 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: F0 09 00 93 17 00 0C 0F 1D 67 22 05 6E 64 3A [15:47:09]GetLastDocTimeStamp 1729957519 [15:47:09]current date 1729957644 [15:47:09]FM_GetShiftState [15:47:09]SAM_PROTO_GetShiftState [15:47:09]wFMCommunicate request_size=4 [15:47:09]MH_SAM_APDU [15:47:09]CAPDU: 80 13 01 00 [15:47:09]Write to MH i2c: E2 08 00 94 17 80 13 01 00 00 00 00 00 28 [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:09]Read from MH i2c: E2 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: E2 0E 00 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: E2 0E 00 94 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A1 [15:47:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:47:09]wFMCommunicate OK [15:47:09]SAM_PROTO_GetShiftState done [15:47:09]FM_GetShiftState done [15:47:09]opened in 1729902770 [15:47:09]opened+sec_in_day 1729989170 [15:47:09]quantity*price = 50041 [15:47:09]sum+1 = 50042 [15:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 201 26.10.2024 15:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191838 ФПД: 7236813572131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191838&fm=7236813572131&tin=02508201610067®Number=0000000000091776&sum=50041 [15:47:10]StoreToDocumentArchive [15:47:10]shift 541 fd 191838 [15:47:10]save to /storage/0541/doc_00191838 [15:47:10]save last doc name /storage/0541/doc_00191838 to /storage/kkm_last_doc_name [15:47:10]save OK [15:47:10]Clear old archive folders... [15:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:10]tlvbuf is 016CE5F0 [15:47:10]SAM_PROTO_ClearQueue [15:47:10]wFMCommunicate request_size=4 [15:47:10]MH_SAM_APDU [15:47:10]CAPDU: 80 09 00 00 [15:47:10]Write to MH i2c: E2 08 00 A1 17 80 09 00 00 00 00 00 00 2A [15:47:10]Write i2c OK [15:47:10]MH_I2C_Read... [15:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:10]Read from MH i2c: E2 [15:47:10]MH_I2C_Read... [15:47:10]Read from MH i2c: E2 03 00 [15:47:10]MH_I2C_Read... [15:47:10]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [15:47:10]RAPDU: 90 00 [15:47:10]wFMCommunicate OK [15:47:10]SAM_PROTO_ClearQueue done [15:47:10]KKMCreateOFDPacket [15:47:10]OFDProtocolAddRootSTLVToBuf [15:47:10]FM_MakeSignedData [15:47:10]FM_MakeSignedData [15:47:10]SAM_PROTO_SignData [15:47:10]wFMCommunicate request_size=4 [15:47:10]MH_SAM_APDU [15:47:10]CAPDU: 80 0D 01 02 [15:47:10]Write to MH i2c: E2 08 00 A2 17 80 0D 01 02 00 00 00 00 32 [15:47:10]Write i2c OK [15:47:10]MH_I2C_Read... [15:47:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:10]Read from MH i2c: E2 [15:47:10]MH_I2C_Read... [15:47:10]Read from MH i2c: E2 03 00 [15:47:10]MH_I2C_Read... [15:47:10]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [15:47:10]RAPDU: 90 00 [15:47:10]wFMCommunicate OK [15:47:10]wFMCommunicate request_size=255 [15:47:10]MH_SAM_APDU [15:47: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 0C 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E ED 02 00 35 04 06 00 06 [15:47:10]Write to MH i2c: E2 02 01 A3 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 0C 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E ED 02 00 35 04 06 00 06 00 00 F2 [15:47:10]Write i2c OK [15:47:10]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 03 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 03 00 A3 17 00 90 00 2E [15:47:11]RAPDU: 90 00 [15:47:11]wFMCommunicate OK [15:47:11]wFMCommunicate request_size=10 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 0D 02 02 05 94 F3 B3 C8 23 [15:47:11]Write to MH i2c: E2 0D 00 A4 17 80 0D 02 02 05 00 94 F3 B3 C8 23 00 00 64 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 03 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [15:47:11]RAPDU: 90 00 [15:47:11]wFMCommunicate OK [15:47:11]wFMCommunicate request_size=4 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 0D 03 02 [15:47:11]Write to MH i2c: E2 08 00 A5 17 80 0D 03 02 00 00 00 00 37 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 0B 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 0B 00 A5 17 00 89 AD 19 EE 31 74 5F E2 90 00 5B [15:47:11]RAPDU: 89 AD 19 EE 31 74 5F E2 90 00 [15:47:11]wFMCommunicate OK [15:47:11]SAM_PROTO_SignData done [15:47:11]FM_MakeSignedData done [15:47:11]CreateOFDProtocolMessage [15:47:11]wFMCommunicate request_size=4 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 11 00 00 [15:47:11]Write to MH i2c: E2 08 00 A6 17 80 11 00 00 00 00 00 00 37 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 17 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 17 00 A6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [15:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:11]wFMCommunicate OK [15:47:11]CreateOFDProtocolMessage done [15:47:11]OFDSenderStorePacket 191838 [15:47:11]StoreOFDPacket docnum=191838 [15:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 DF 07 01 FF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 0C 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E ED 02 00 35 04 06 00 06 94 F3 B3 C8 23 89 AD 19 EE 31 74 5F E2 [15:47:11]CheckFolder [15:47:11]dirname=/storage/ofd_packets [15:47:11]CheckFolder done [15:47:11]ProducePacketName [15:47:11]name=ofd_packets/00191838 [15:47:11]NVStorageSaveData ofd_packets/00191838 [15:47:11]File name is /storage/ofd_packets/00191838 [15:47:11]Write 301 bytes [15:47:11]NVStorageSaveData done [15:47:11]OFDSenderStorePacket done [15:47:11]KKMCreateOFDPacket done [15:47:11]NVStorageSaveData kkm_last_timestamp [15:47:11]File name is /storage/kkm_last_timestamp [15:47:11]Write 4 bytes [15:47:11]NVStorageSaveData done [15:47:11]ExternCall_PrintAddStr [15:47:11]wPrintStart [15:47:11]Write to MH i2c: 01 00 00 A7 17 BE [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: 01 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: 01 07 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: 01 07 00 A7 17 00 00 00 00 00 FF 0F D3 [15:47:11]RasterBufferAndPrint [15:47:11]line Счет N : (1)31145 [15:47:11]line ИНН: 02508201610067 [15:47:11]line Контрольно-Кассовый Чек [15:47:11]line ПРОДАЖА [15:47:11]line ТРК (МРК, ГНК) : 21 [15:47:11]line Товар: 2710124130 [15:47:11]line Аи-92-К-5 [15:47:11]line 7.480 * 66.90 [15:47:11]line = 500.41 [15:47:11]line НДС 12% НСП 1% [15:47:11]line > о реализуемом товаре [15:47:11]line ИТОГО: 500.41 [15:47:11]line НСП 1% : 4.43 [15:47:11]line НДС 12% : 53.14 [15:47:11]line Наличными: 0.00 [15:47:11]line Безнал.: 500.41 [15:47:11]line Место: АЗС № 170 "Партнер Нефть" [15:47:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:47:11]line СНО: Общий режим [15:47:11]line Чек 201 26.10.2024 15:47 [15:47:11]line Смена: 541 ФФД: 1.0 [15:47:11]line ЗНМ: 0300000110 [15:47:11]line РНМ: 0000000000091776 [15:47:11]line Версия ККМ: 001 [15:47:11]line Платежная система: Кыргызкоммерцбанк [15:47:11]line ФМ: 0000000000871754 [15:47:11]line ФД: 191838 [15:47:11]line ФПД: 7236813572131 [15:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191838&fm=7236813572131&tin=02508201610067®Number=0000000000091776&sum=50041 [15:47:11]written 0, free lines is 4095 [15:47:11]OFD Sender: Processing packet 191838 [packets to send 75, broken 74] [15:47:11]ProducePacketName [15:47:11]name=ofd_packets/00191838 [15:47:11]OFD Sender: To server: pG, [15:47:11]CommunicateWithHost lk.salyk.kg:30040 [15:47:11]ConnectInit lk.salyk.kg [15:47:11]Connected sock=8 [15:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 44 DF 07 01 FF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 0C 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E ED 02 00 35 04 06 00 06 94 F3 B3 C8 23 89 AD 19 EE 31 74 5F E2 [15:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DA 59 47 00 C6 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5E ED 02 00 F4 03 04 00 D7 B3 1C 67 B6 04 01 00 00 68 40 5D C0 29 B8 6D 1E [15:47:12]CommunicateWithHost err = 0 [15:47:12]CheckOFDResponse [15:47:12]1017 (14) - 77093643461234 [15:47:12]1041 (16) - 0000000000871754 [15:47:12]1040 (4) - 191838 [15:47:12]1012 (4) - 26.10.2024 09:18 [15:47:12]1206 (1) - 0 [15:47:12]OFD Sender: Remove packet 191838 [15:47:12]ProducePacketName [15:47:12]name=ofd_packets/00191838 [15:47:12]NVStorageDeleteData [15:47:12]Write to MH i2c: 01 00 00 D1 17 E8 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 07 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: 01 07 00 D1 17 00 00 00 00 00 CE 0C C9 [15:47:12]RasterBufferAndPrint [15:47:12]line [15:47:12]line [15:47:12]line [15:47:12]line [15:47:12]line [15:47:12]written 0, free lines is 3288 [15:47:12]MH_Cut [15:47:12]Write to MH i2c: D1 01 00 D8 17 01 C1 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: D1 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: D1 01 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: D1 01 00 D8 17 00 C0 [15:47:12]Write to MH i2c: 01 00 00 D9 17 F0 [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]OFD Sender: No OFD packet to send [15:47:12]*** Cut start [15:47:12]*** Partial cut [15:47:12]*** CUTSNS_PIN = 1 [15:47:12]*** CUTSNS_PIN = 0 [15:47:13]*** Brake cut motor [15:47:13]Read from MH i2c: 01 [15:47:13]MH_I2C_Read... [15:47:13]*** Stop cut motor [15:47:13]*** Cut end [15:47:13]Read from MH i2c: 01 07 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: 01 07 00 D9 17 00 00 00 00 00 FF 0F 05 [15:47:13]process_action close_receipt done [15:47:13]requested_data is exist [15:47:13]produce_requested_data [15:47:13]requested_item fm.sn is exist - process it [15:47:13]wFMCommunicate request_size=4 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 11 00 00 [15:47:13]Write to MH i2c: E2 08 00 DA 17 80 11 00 00 00 00 00 00 6B [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 17 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 17 00 DA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BE [15:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:13]wFMCommunicate OK [15:47:13]requested_item fd.num is exist - process it [15:47:13]SAM_PROTO_GetFieldsCounters [15:47:13]wFMCommunicate request_size=4 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 13 00 00 [15:47:13]Write to MH i2c: E2 08 00 DB 17 80 13 00 00 00 00 00 00 6E [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 62 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 62 00 DB 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [15:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:13]wFMCommunicate OK [15:47:13]SAM_PROTO_GetFieldsCounters done [15:47:13]requested_item shift.num is exist - process it [15:47:13]requested_item shift.opened is exist - process it [15:47:13]req_shift_opened [15:47:13]FM_GetShiftState [15:47:13]SAM_PROTO_GetShiftState [15:47:13]wFMCommunicate request_size=4 [15:47:13]MH_SAM_APDU [15:47:13]CAPDU: 80 13 01 00 [15:47:13]Write to MH i2c: E2 08 00 DC 17 80 13 01 00 00 00 00 00 70 [15:47:13]Write i2c OK [15:47:13]MH_I2C_Read... [15:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:13]Read from MH i2c: E2 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 0E 00 [15:47:13]MH_I2C_Read... [15:47:13]Read from MH i2c: E2 0E 00 DC 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E9 [15:47:13]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:47:13]wFMCommunicate OK [15:47:13]SAM_PROTO_GetShiftState done [15:47:13]FM_GetShiftState done [15:47:13]req_shift_opened done [15:47:13]requested_item shift.open_date is exist - process it [15:47:13]req_shift_open_date [15:47:13]req_shift_open_date done [15:47:13]produce_requested_data done [15:47:13]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191838,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:47:13]process_action_free close_receipt [15:47:13]json_value_free [15:47:13]json_value_free done [15:47:13]process_json_proto returns [15:47:13]Send response to host [15:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191838,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:47:13]free response buf [15:47:13]execute_script done [15:47:13]execute_script returns [15:47:13]free content buf [15:47:13]Sock 6.Close socket [15:47:13]Sock 6.Thread stoped [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:43]accept exits with 5 [15:47:43]New connection [15:47:43]New thread 3066817892 created [15:47:43]Thread 3066961252 joined [15:47:43]Waiting for new connection... [15:47:43] Sock 5.Parse request [15:47:43]Sock 5.Check first char [15:47:43]Sock 5.First char is OK [15:47:43]request: POST /json_proto HTTP/1.0 [15:47:43]Method: POST [15:47:43]URL: /json_proto [15:47:43]Method is POST - this is cgi request [15:47:43]url: /json_proto [15:47:43]query_string will be loaded in cgi processing [15:47:43]execute_cgi json_proto POST (null) [15:47:43]execute_cgi path=json_proto method=POST [15:47:43]POST find Content-Length [15:47:43]Host: 172.17.63.131:8080 [15:47:43]Content-Length: 670 [15:47:43]Content-Type: application/json [15:47:43] [15:47:43]POST finish read [15:47:43]Found Content-Length = 670 [15:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.030, "sum" : 2.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:43]execute_script... [15:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.030, "sum" : 2.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 2.00, "payments": [ { "type": 0, "sum" : 2.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:43]POST & json_proto [15:47:43]process_json_proto [15:47:43]json parsed OK: [15:47:43]protocol is kg_v1.0 [15:47:43]action value=close_receipt [15:47:43]process_action close_receipt [15:47:43]cmd_close_receipt [15:47:43]MH_GetDate [15:47:43]Write to MH i2c: F0 00 00 DD 17 E3 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: F0 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: F0 09 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: F0 09 00 DD 17 00 2E 0F 1D 67 22 05 6E 64 A6 [15:47:43]GetLastDocTimeStamp 1729957644 [15:47:43]current date 1729957678 [15:47:43]FM_GetShiftState [15:47:43]SAM_PROTO_GetShiftState [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 13 01 00 [15:47:43]Write to MH i2c: E2 08 00 DE 17 80 13 01 00 00 00 00 00 72 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0E 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0E 00 DE 17 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EB [15:47:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:47:43]wFMCommunicate OK [15:47:43]SAM_PROTO_GetShiftState done [15:47:43]FM_GetShiftState done [15:47:43]opened in 1729902770 [15:47:43]opened+sec_in_day 1729989170 [15:47:43]quantity*price = 200 [15:47:43]sum+1 = 202 [15:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 2.00 Внесено: 600.00 СДАЧА: 598.00 НСП 1% : 0.02 НДС 12% : 0.21 Наличными: 2.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 202 26.10.2024 15:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191839 ФПД: 145565957595404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154758&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191839&fm=145565957595404&tin=02508201610067®Number=0000000000091776&sum=200 [15:47:44]StoreToDocumentArchive [15:47:44]shift 541 fd 191839 [15:47:44]save to /storage/0541/doc_00191839 [15:47:44]save last doc name /storage/0541/doc_00191839 to /storage/kkm_last_doc_name [15:47:44]save OK [15:47:44]Clear old archive folders... [15:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:44]tlvbuf is 016BC260 [15:47:44]SAM_PROTO_ClearQueue [15:47:44]wFMCommunicate request_size=4 [15:47:44]MH_SAM_APDU [15:47:44]CAPDU: 80 09 00 00 [15:47:44]Write to MH i2c: E2 08 00 EB 17 80 09 00 00 00 00 00 00 74 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:44]Read from MH i2c: E2 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 03 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 03 00 EB 17 00 90 00 76 [15:47:44]RAPDU: 90 00 [15:47:44]wFMCommunicate OK [15:47:44]SAM_PROTO_ClearQueue done [15:47:44]KKMCreateOFDPacket [15:47:44]OFDProtocolAddRootSTLVToBuf [15:47:44]FM_MakeSignedData [15:47:44]FM_MakeSignedData [15:47:44]SAM_PROTO_SignData [15:47:44]wFMCommunicate request_size=4 [15:47:44]MH_SAM_APDU [15:47:44]CAPDU: 80 0D 01 02 [15:47:44]Write to MH i2c: E2 08 00 EC 17 80 0D 01 02 00 00 00 00 7C [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:44]Read from MH i2c: E2 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 03 00 [15:47:44]MH_I2C_Read... [15:47:44]Read from MH i2c: E2 03 00 EC 17 00 90 00 77 [15:47:44]RAPDU: 90 00 [15:47:44]wFMCommunicate OK [15:47:44]wFMCommunicate request_size=255 [15:47:44]MH_SAM_APDU [15:47:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C9 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2E 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F ED 02 00 35 04 06 00 84 [15:47:44]Write to MH i2c: E2 02 01 ED 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C9 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2E 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F ED 02 00 35 04 06 00 84 00 00 D1 [15:47:44]Write i2c OK [15:47:44]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 ED 17 00 90 00 78 [15:47:45]RAPDU: 90 00 [15:47:45]wFMCommunicate OK [15:47:45]wFMCommunicate request_size=10 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 0D 02 02 05 64 37 31 A1 0C [15:47:45]Write to MH i2c: E2 0D 00 EE 17 80 0D 02 02 05 00 64 37 31 A1 0C 00 00 02 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 03 00 EE 17 00 90 00 79 [15:47:45]RAPDU: 90 00 [15:47:45]wFMCommunicate OK [15:47:45]wFMCommunicate request_size=4 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 0D 03 02 [15:47:45]Write to MH i2c: E2 08 00 EF 17 80 0D 03 02 00 00 00 00 81 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 0B 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 0B 00 EF 17 00 42 52 D1 4D FD B1 12 8F 90 00 83 [15:47:45]RAPDU: 42 52 D1 4D FD B1 12 8F 90 00 [15:47:45]wFMCommunicate OK [15:47:45]SAM_PROTO_SignData done [15:47:45]FM_MakeSignedData done [15:47:45]CreateOFDProtocolMessage [15:47:45]wFMCommunicate request_size=4 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 11 00 00 [15:47:45]Write to MH i2c: E2 08 00 F0 17 80 11 00 00 00 00 00 00 81 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 17 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 17 00 F0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [15:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:45]wFMCommunicate OK [15:47:45]CreateOFDProtocolMessage done [15:47:45]OFDSenderStorePacket 191839 [15:47:45]StoreOFDPacket docnum=191839 [15:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 32 0C 07 01 EE 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 1E 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C9 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2E 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F ED 02 00 35 04 06 00 84 64 37 31 A1 0C 42 52 D1 4D FD B1 12 8F [15:47:45]CheckFolder [15:47:45]dirname=/storage/ofd_packets [15:47:45]CheckFolder done [15:47:45]ProducePacketName [15:47:45]name=ofd_packets/00191839 [15:47:45]NVStorageSaveData ofd_packets/00191839 [15:47:45]File name is /storage/ofd_packets/00191839 [15:47:45]Write 301 bytes [15:47:45]NVStorageSaveData done [15:47:45]OFDSenderStorePacket done [15:47:45]KKMCreateOFDPacket done [15:47:45]NVStorageSaveData kkm_last_timestamp [15:47:45]File name is /storage/kkm_last_timestamp [15:47:45]Write 4 bytes [15:47:45]NVStorageSaveData done [15:47:45]ExternCall_PrintAddStr [15:47:45]wPrintStart [15:47:45]Write to MH i2c: 01 00 00 F1 17 08 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: 01 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: 01 07 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: 01 07 00 F1 17 00 00 00 00 00 FF 0F 1D [15:47:45]RasterBufferAndPrint [15:47:45]line Счет N : (1)31146 [15:47:45]line ИНН: 02508201610067 [15:47:45]line Контрольно-Кассовый Чек [15:47:45]line ПРОДАЖА [15:47:45]line ТРК (МРК, ГНК) : 12 [15:47:45]line Товар: 2710124130 [15:47:45]line Аи-92-К-5 [15:47:45]line 0.030 * 66.90 [15:47:45]line = 2.01 [15:47:45]line НДС 12% НСП 1% [15:47:45]line > о реализуемом товаре [15:47:45]line ОКРУГЛЕНИЕ: -0.01 [15:47:45]line ИТОГО: 2.00 [15:47:45]line Внесено: 600.00 [15:47:45]line СДАЧА: 598.00 [15:47:45]line НСП 1% : 0.02 [15:47:45]line НДС 12% : 0.21 [15:47:45]line Наличными: 2.00 [15:47:45]line Безнал.: 0.00 [15:47:45]line Место: АЗС № 170 "Партнер Нефть" [15:47:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:47:45]line СНО: Общий режим [15:47:45]line Чек 202 26.10.2024 15:47 [15:47:45]line Смена: 541 ФФД: 1.0 [15:47:45]line ЗНМ: 0300000110 [15:47:45]line РНМ: 0000000000091776 [15:47:45]line Версия ККМ: 001 [15:47:45]line ФМ: 0000000000871754 [15:47:45]line ФД: 191839 [15:47:45]line ФПД: 145565957595404 [15:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154758&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191839&fm=145565957595404&tin=02508201610067®Number=0000000000091776&sum=200 [15:47:45]OFD Sender: Processing packet 191839 [packets to send 75, broken 74] [15:47:45]ProducePacketName [15:47:45]name=ofd_packets/00191839 [15:47:45]OFD Sender: To server: pG, [15:47:45]CommunicateWithHost lk.salyk.kg:30040 [15:47:45]ConnectInit lk.salyk.kg [15:47:45]written 0, free lines is 4095 [15:47:45]Connected sock=8 [15:47:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 32 0C 07 01 EE 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 1E 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C9 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 00 00 00 00 00 07 04 06 00 C8 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 2E 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F ED 02 00 35 04 06 00 84 64 37 31 A1 0C 42 52 D1 4D FD B1 12 8F [15:47:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E7 9E 47 00 61 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 5F ED 02 00 F4 03 04 00 F9 B3 1C 67 B6 04 01 00 00 7F C8 E1 25 33 F3 C2 86 [15:47:46]CommunicateWithHost err = 0 [15:47:46]CheckOFDResponse [15:47:46]1017 (14) - 77093643461234 [15:47:46]1041 (16) - 0000000000871754 [15:47:46]1040 (4) - 191839 [15:47:46]1012 (4) - 26.10.2024 09:18 [15:47:46]1206 (1) - 0 [15:47:46]OFD Sender: Remove packet 191839 [15:47:46]ProducePacketName [15:47:46]name=ofd_packets/00191839 [15:47:46]NVStorageDeleteData [15:47:46]Write to MH i2c: 01 00 00 1C 18 34 [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 07 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 B6 0C FD [15:47:46]RasterBufferAndPrint [15:47:46]line [15:47:46]line [15:47:46]line [15:47:46]line [15:47:46]line [15:47:46]written 0, free lines is 3260 [15:47:46]MH_Cut [15:47:46]Write to MH i2c: D1 01 00 23 18 01 0D [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: D1 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: D1 01 00 [15:47:46]MH_I2C_Read... [15:47:46]Read from MH i2c: D1 01 00 23 18 00 0C [15:47:46]Write to MH i2c: 01 00 00 24 18 3C [15:47:46]Write i2c OK [15:47:46]MH_I2C_Read... [15:47:46]OFD Sender: No OFD packet to send [15:47:46]*** Cut start [15:47:46]*** Partial cut [15:47:46]*** CUTSNS_PIN = 1 [15:47:47]*** CUTSNS_PIN = 0 [15:47:47]*** Brake cut motor [15:47:47]Read from MH i2c: 01 [15:47:47]MH_I2C_Read... [15:47:47]*** Stop cut motor [15:47:47]*** Cut end [15:47:47]Read from MH i2c: 01 07 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 24 18 00 00 00 00 00 FF 0F 51 [15:47:47]process_action close_receipt done [15:47:47]requested_data is exist [15:47:47]produce_requested_data [15:47:47]requested_item fm.sn is exist - process it [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 11 00 00 [15:47:47]Write to MH i2c: E2 08 00 25 18 80 11 00 00 00 00 00 00 B7 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 17 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 17 00 25 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [15:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:47:47]wFMCommunicate OK [15:47:47]requested_item fd.num is exist - process it [15:47:47]SAM_PROTO_GetFieldsCounters [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 13 00 00 [15:47:47]Write to MH i2c: E2 08 00 26 18 80 13 00 00 00 00 00 00 BA [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 62 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 62 00 26 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [15:47:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 5F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:47]wFMCommunicate OK [15:47:47]SAM_PROTO_GetFieldsCounters done [15:47:47]requested_item shift.num is exist - process it [15:47:47]requested_item shift.opened is exist - process it [15:47:47]req_shift_opened [15:47:47]FM_GetShiftState [15:47:47]SAM_PROTO_GetShiftState [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 13 01 00 [15:47:47]Write to MH i2c: E2 08 00 27 18 80 13 01 00 00 00 00 00 BC [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0E 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0E 00 27 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 35 [15:47:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:47:47]wFMCommunicate OK [15:47:47]SAM_PROTO_GetShiftState done [15:47:47]FM_GetShiftState done [15:47:47]req_shift_opened done [15:47:47]requested_item shift.open_date is exist - process it [15:47:47]req_shift_open_date [15:47:47]req_shift_open_date done [15:47:47]produce_requested_data done [15:47:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191839,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:47:47]process_action_free close_receipt [15:47:47]json_value_free [15:47:47]json_value_free done [15:47:47]process_json_proto returns [15:47:47]Send response to host [15:47:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191839,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:47:47]free response buf [15:47:47]execute_script done [15:47:47]execute_script returns [15:47:47]free content buf [15:47:47]Sock 5.Close socket [15:47:47]Sock 5.Thread stoped [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:44]accept exits with 6 [15:48:44]New connection [15:48:44]New thread 3066961252 created [15:48:44]Thread 3066817892 joined [15:48:44]Waiting for new connection... [15:48:44] Sock 6.Parse request [15:48:44]Sock 6.Check first char [15:48:44]Sock 6.First char is OK [15:48:44]request: POST /json_proto HTTP/1.0 [15:48:44]Method: POST [15:48:44]URL: /json_proto [15:48:44]Method is POST - this is cgi request [15:48:44]url: /json_proto [15:48:44]query_string will be loaded in cgi processing [15:48:44]execute_cgi json_proto POST (null) [15:48:44]execute_cgi path=json_proto method=POST [15:48:44]POST find Content-Length [15:48:44]Host: 172.17.63.131:8080 [15:48:44]Content-Length: 676 [15:48:44]Content-Type: application/json [15:48:44] [15:48:44]POST finish read [15:48:44]Found Content-Length = 676 [15:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.940, "sum" : 598.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 598.00, "total" : 598.00, "payments": [ { "type": 0, "sum" : 598.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:44]execute_script... [15:48: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)31147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.940, "sum" : 598.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 598.00, "total" : 598.00, "payments": [ { "type": 0, "sum" : 598.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:44]POST & json_proto [15:48:44]process_json_proto [15:48:44]json parsed OK: [15:48:44]protocol is kg_v1.0 [15:48:44]action value=close_receipt [15:48:44]process_action close_receipt [15:48:44]cmd_close_receipt [15:48:44]MH_GetDate [15:48:44]Write to MH i2c: F0 00 00 28 18 2F [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 09 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 09 00 28 18 00 6B 0F 1D 67 22 05 6E 64 2F [15:48:44]GetLastDocTimeStamp 1729957678 [15:48:44]current date 1729957739 [15:48:44]FM_GetShiftState [15:48:44]SAM_PROTO_GetShiftState [15:48:44]wFMCommunicate request_size=4 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 13 01 00 [15:48:44]Write to MH i2c: E2 08 00 29 18 80 13 01 00 00 00 00 00 BE [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 29 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 37 [15:48:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:48:44]wFMCommunicate OK [15:48:44]SAM_PROTO_GetShiftState done [15:48:44]FM_GetShiftState done [15:48:44]opened in 1729902770 [15:48:44]opened+sec_in_day 1729989170 [15:48:44]quantity*price = 59808 [15:48:44]sum+1 = 59810 [15:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 598.00 Внесено: 598.00 СДАЧА: 0.00 НСП 1% : 5.29 НДС 12% : 63.51 Наличными: 598.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 203 26.10.2024 15:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191840 ФПД: 177779789275893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191840&fm=177779789275893&tin=02508201610067®Number=0000000000091776&sum=59800 [15:48:45]StoreToDocumentArchive [15:48:45]shift 541 fd 191840 [15:48:45]save to /storage/0541/doc_00191840 [15:48:45]save last doc name /storage/0541/doc_00191840 to /storage/kkm_last_doc_name [15:48:45]save OK [15:48:45]Clear old archive folders... [15:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:45]tlvbuf is 01C26E00 [15:48:45]SAM_PROTO_ClearQueue [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 09 00 00 [15:48:45]Write to MH i2c: E2 08 00 36 18 80 09 00 00 00 00 00 00 C0 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 36 18 00 90 00 C2 [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]SAM_PROTO_ClearQueue done [15:48:45]KKMCreateOFDPacket [15:48:45]OFDProtocolAddRootSTLVToBuf [15:48:45]FM_MakeSignedData [15:48:45]FM_MakeSignedData [15:48:45]SAM_PROTO_SignData [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 0D 01 02 [15:48:45]Write to MH i2c: E2 08 00 37 18 80 0D 01 02 00 00 00 00 C8 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 37 18 00 90 00 C3 [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]wFMCommunicate request_size=255 [15:48:45]MH_SAM_APDU [15:48: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 EC 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 18 00 00 00 00 07 04 06 00 98 E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 ED 02 00 35 04 06 00 A1 [15:48:45]Write to MH i2c: E2 02 01 38 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 18 00 00 00 00 07 04 06 00 98 E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 ED 02 00 35 04 06 00 A1 00 00 7F [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 03 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 03 00 38 18 00 90 00 C4 [15:48:46]RAPDU: 90 00 [15:48:46]wFMCommunicate OK [15:48:46]wFMCommunicate request_size=10 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 0D 02 02 05 B0 95 30 22 F5 [15:48:46]Write to MH i2c: E2 0D 00 39 18 80 0D 02 02 05 00 B0 95 30 22 F5 00 00 61 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 03 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 03 00 39 18 00 90 00 C5 [15:48:46]RAPDU: 90 00 [15:48:46]wFMCommunicate OK [15:48:46]wFMCommunicate request_size=4 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 0D 03 02 [15:48:46]Write to MH i2c: E2 08 00 3A 18 80 0D 03 02 00 00 00 00 CD [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 0B 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 0B 00 3A 18 00 A4 9F D6 FF C9 4F 8D 17 90 00 A2 [15:48:46]RAPDU: A4 9F D6 FF C9 4F 8D 17 90 00 [15:48:46]wFMCommunicate OK [15:48:46]SAM_PROTO_SignData done [15:48:46]FM_MakeSignedData done [15:48:46]CreateOFDProtocolMessage [15:48:46]wFMCommunicate request_size=4 [15:48:46]MH_SAM_APDU [15:48:46]CAPDU: 80 11 00 00 [15:48:46]Write to MH i2c: E2 08 00 3B 18 80 11 00 00 00 00 00 00 CD [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:46]Read from MH i2c: E2 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 17 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: E2 17 00 3B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [15:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:48:46]wFMCommunicate OK [15:48:46]CreateOFDProtocolMessage done [15:48:46]OFDSenderStorePacket 191840 [15:48:46]StoreOFDPacket docnum=191840 [15:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 08 07 01 E3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 18 00 00 00 00 07 04 06 00 98 E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 ED 02 00 35 04 06 00 A1 B0 95 30 22 F5 A4 9F D6 FF C9 4F 8D 17 [15:48:46]CheckFolder [15:48:46]dirname=/storage/ofd_packets [15:48:46]CheckFolder done [15:48:46]ProducePacketName [15:48:46]name=ofd_packets/00191840 [15:48:46]NVStorageSaveData ofd_packets/00191840 [15:48:46]File name is /storage/ofd_packets/00191840 [15:48:46]Write 301 bytes [15:48:46]NVStorageSaveData done [15:48:46]OFDSenderStorePacket done [15:48:46]KKMCreateOFDPacket done [15:48:46]NVStorageSaveData kkm_last_timestamp [15:48:46]File name is /storage/kkm_last_timestamp [15:48:46]Write 4 bytes [15:48:46]NVStorageSaveData done [15:48:46]ExternCall_PrintAddStr [15:48:46]wPrintStart [15:48:46]Write to MH i2c: 01 00 00 3C 18 54 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 07 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 07 00 3C 18 00 00 00 00 00 FF 0F 69 [15:48:46]RasterBufferAndPrint [15:48:46]line Счет N : (1)31147 [15:48:46]line ИНН: 02508201610067 [15:48:46]line Контрольно-Кассовый Чек [15:48:46]line ПРОДАЖА [15:48:46]line ТРК (МРК, ГНК) : 12 [15:48:46]line Товар: 2710124130 [15:48:46]line Аи-92-К-5 [15:48:46]line 8.940 * 66.90 [15:48:46]line = 598.09 [15:48:46]line НДС 12% НСП 1% [15:48:46]line > о реализуемом товаре [15:48:46]line ОКРУГЛЕНИЕ: -0.09 [15:48:46]line ИТОГО: 598.00 [15:48:46]line Внесено: 598.00 [15:48:46]line СДАЧА: 0.00 [15:48:46]line НСП 1% : 5.29 [15:48:46]line НДС 12% : 63.51 [15:48:46]line Наличными: 598.00 [15:48:46]line Безнал.: 0.00 [15:48:46]line Место: АЗС № 170 "Партнер Нефть" [15:48:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:48:46]line СНО: Общий режим [15:48:46]line Чек 203 26.10.2024 15:48 [15:48:46]line Смена: 541 ФФД: 1.0 [15:48:46]line ЗНМ: 0300000110 [15:48:46]line РНМ: 0000000000091776 [15:48:46]line Версия ККМ: 001 [15:48:46]line ФМ: 0000000000871754 [15:48:46]line ФД: 191840 [15:48:46]line ФПД: 177779789275893 [15:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T154859&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191840&fm=177779789275893&tin=02508201610067®Number=0000000000091776&sum=59800 [15:48:46]OFD Sender: Processing packet 191840 [packets to send 75, broken 74] [15:48:46]ProducePacketName [15:48:46]name=ofd_packets/00191840 [15:48:46]OFD Sender: To server: pG, [15:48:46]CommunicateWithHost lk.salyk.kg:30040 [15:48:46]ConnectInit lk.salyk.kg [15:48:46]written 0, free lines is 4095 [15:48:46]Connected sock=8 [15:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C9 08 07 01 E3 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 22 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A1 E9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 18 00 00 00 00 07 04 06 00 98 E9 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 6B 0F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 ED 02 00 35 04 06 00 A1 B0 95 30 22 F5 A4 9F D6 FF C9 4F 8D 17 [15:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 D7 47 00 2F 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 60 ED 02 00 F4 03 04 00 36 B4 1C 67 B6 04 01 00 00 C0 E6 26 3B 3F 6D 10 ED [15:48:46]CommunicateWithHost err = 0 [15:48:46]CheckOFDResponse [15:48:46]1017 (14) - 77093643461234 [15:48:46]1041 (16) - 0000000000871754 [15:48:46]1040 (4) - 191840 [15:48:46]1012 (4) - 26.10.2024 09:19 [15:48:46]1206 (1) - 0 [15:48:46]OFD Sender: Remove packet 191840 [15:48:46]ProducePacketName [15:48:46]name=ofd_packets/00191840 [15:48:46]NVStorageDeleteData [15:48:47]Write to MH i2c: 01 00 00 67 18 7F [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: 01 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: 01 07 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: 01 07 00 67 18 00 00 00 00 00 D0 0C 62 [15:48:47]RasterBufferAndPrint [15:48:47]line [15:48:47]line [15:48:47]line [15:48:47]line [15:48:47]line [15:48:47]written 0, free lines is 3288 [15:48:47]MH_Cut [15:48:47]Write to MH i2c: D1 01 00 6E 18 01 58 [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: D1 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: D1 01 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: D1 01 00 6E 18 00 57 [15:48:47]Write to MH i2c: 01 00 00 6F 18 87 [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]OFD Sender: No OFD packet to send [15:48:47]*** Cut start [15:48:47]*** Partial cut [15:48:47]*** CUTSNS_PIN = 1 [15:48:47]*** CUTSNS_PIN = 0 [15:48:48]*** Brake cut motor [15:48:48]Read from MH i2c: 01 [15:48:48]MH_I2C_Read... [15:48:48]*** Stop cut motor [15:48:48]*** Cut end [15:48:48]Read from MH i2c: 01 07 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 FF 0F 9C [15:48:48]process_action close_receipt done [15:48:48]requested_data is exist [15:48:48]produce_requested_data [15:48:48]requested_item fm.sn is exist - process it [15:48:48]wFMCommunicate request_size=4 [15:48:48]MH_SAM_APDU [15:48:48]CAPDU: 80 11 00 00 [15:48:48]Write to MH i2c: E2 08 00 70 18 80 11 00 00 00 00 00 00 02 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:48]Read from MH i2c: E2 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 17 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 17 00 70 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [15:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:48:48]wFMCommunicate OK [15:48:48]requested_item fd.num is exist - process it [15:48:48]SAM_PROTO_GetFieldsCounters [15:48:48]wFMCommunicate request_size=4 [15:48:48]MH_SAM_APDU [15:48:48]CAPDU: 80 13 00 00 [15:48:48]Write to MH i2c: E2 08 00 71 18 80 13 00 00 00 00 00 00 05 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:48]Read from MH i2c: E2 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 62 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 62 00 71 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 60 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:48]wFMCommunicate OK [15:48:48]SAM_PROTO_GetFieldsCounters done [15:48:48]requested_item shift.num is exist - process it [15:48:48]requested_item shift.opened is exist - process it [15:48:48]req_shift_opened [15:48:48]FM_GetShiftState [15:48:48]SAM_PROTO_GetShiftState [15:48:48]wFMCommunicate request_size=4 [15:48:48]MH_SAM_APDU [15:48:48]CAPDU: 80 13 01 00 [15:48:48]Write to MH i2c: E2 08 00 72 18 80 13 01 00 00 00 00 00 07 [15:48:48]Write i2c OK [15:48:48]MH_I2C_Read... [15:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:48]Read from MH i2c: E2 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 0E 00 [15:48:48]MH_I2C_Read... [15:48:48]Read from MH i2c: E2 0E 00 72 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 80 [15:48:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:48:48]wFMCommunicate OK [15:48:48]SAM_PROTO_GetShiftState done [15:48:48]FM_GetShiftState done [15:48:48]req_shift_opened done [15:48:48]requested_item shift.open_date is exist - process it [15:48:48]req_shift_open_date [15:48:48]req_shift_open_date done [15:48:48]produce_requested_data done [15:48:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191840,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:48:48]process_action_free close_receipt [15:48:48]json_value_free [15:48:48]json_value_free done [15:48:48]process_json_proto returns [15:48:48]Send response to host [15:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191840,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:48:48]free response buf [15:48:48]execute_script done [15:48:48]execute_script returns [15:48:48]free content buf [15:48:48]Sock 6.Close socket [15:48:48]Sock 6.Thread stoped [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:52]accept exits with 5 [15:52:52]New connection [15:52:52]New thread 3066817892 created [15:52:52]Thread 3066961252 joined [15:52:52]Waiting for new connection... [15:52:52] Sock 5.Parse request [15:52:52]Sock 5.Check first char [15:52:52]Sock 5.First char is OK [15:52:52]request: POST /json_proto HTTP/1.0 [15:52:52]Method: POST [15:52:52]URL: /json_proto [15:52:52]Method is POST - this is cgi request [15:52:52]url: /json_proto [15:52:52]query_string will be loaded in cgi processing [15:52:52]execute_cgi json_proto POST (null) [15:52:52]execute_cgi path=json_proto method=POST [15:52:52]POST find Content-Length [15:52:52]Host: 172.17.63.131:8080 [15:52:52]Content-Length: 677 [15:52:52]Content-Type: application/json [15:52:52] [15:52:52]POST finish read [15:52:52]Found Content-Length = 677 [15:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:52]execute_script... [15:52: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)31148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:52]POST & json_proto [15:52:52]process_json_proto [15:52:52]json parsed OK: [15:52:52]protocol is kg_v1.0 [15:52:52]action value=close_receipt [15:52:52]process_action close_receipt [15:52:52]cmd_close_receipt [15:52:52]MH_GetDate [15:52:52]Write to MH i2c: F0 00 00 73 18 7A [15:52:52]Write i2c OK [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: F0 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: F0 09 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: F0 09 00 73 18 00 64 10 1D 67 22 05 6E 64 74 [15:52:52]GetLastDocTimeStamp 1729957739 [15:52:52]current date 1729957988 [15:52:52]FM_GetShiftState [15:52:52]SAM_PROTO_GetShiftState [15:52:52]wFMCommunicate request_size=4 [15:52:52]MH_SAM_APDU [15:52:52]CAPDU: 80 13 01 00 [15:52:52]Write to MH i2c: E2 08 00 74 18 80 13 01 00 00 00 00 00 09 [15:52:52]Write i2c OK [15:52:52]MH_I2C_Read... [15:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:52]Read from MH i2c: E2 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 0E 00 [15:52:52]MH_I2C_Read... [15:52:52]Read from MH i2c: E2 0E 00 74 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 82 [15:52:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:52:52]wFMCommunicate OK [15:52:52]SAM_PROTO_GetShiftState done [15:52:52]FM_GetShiftState done [15:52:52]opened in 1729902770 [15:52:52]opened+sec_in_day 1729989170 [15:52:52]quantity*price = 70044 [15:52:52]sum+1 = 70045 [15:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 204 26.10.2024 15:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191841 ФПД: 6672200062089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191841&fm=6672200062089&tin=02508201610067®Number=0000000000091776&sum=70000 [15:52:53]StoreToDocumentArchive [15:52:53]shift 541 fd 191841 [15:52:53]save to /storage/0541/doc_00191841 [15:52:53]save last doc name /storage/0541/doc_00191841 to /storage/kkm_last_doc_name [15:52:53]save OK [15:52:53]Clear old archive folders... [15:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:53]tlvbuf is 01614A40 [15:52:53]SAM_PROTO_ClearQueue [15:52:53]wFMCommunicate request_size=4 [15:52:53]MH_SAM_APDU [15:52:53]CAPDU: 80 09 00 00 [15:52:53]Write to MH i2c: E2 08 00 81 18 80 09 00 00 00 00 00 00 0B [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:53]Read from MH i2c: E2 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 03 00 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 03 00 81 18 00 90 00 0D [15:52:53]RAPDU: 90 00 [15:52:53]wFMCommunicate OK [15:52:53]SAM_PROTO_ClearQueue done [15:52:53]KKMCreateOFDPacket [15:52:53]OFDProtocolAddRootSTLVToBuf [15:52:53]FM_MakeSignedData [15:52:53]FM_MakeSignedData [15:52:53]SAM_PROTO_SignData [15:52:53]wFMCommunicate request_size=4 [15:52:53]MH_SAM_APDU [15:52:53]CAPDU: 80 0D 01 02 [15:52:53]Write to MH i2c: E2 08 00 82 18 80 0D 01 02 00 00 00 00 13 [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 82 18 00 90 00 0E [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=255 [15:52:54]MH_SAM_APDU [15:52: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 64 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 ED 02 00 35 04 06 00 06 [15:52:54]Write to MH i2c: E2 02 01 83 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 64 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 ED 02 00 35 04 06 00 06 00 00 F0 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 83 18 00 90 00 0F [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=10 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 02 02 05 11 7E 1D 54 89 [15:52:54]Write to MH i2c: E2 0D 00 84 18 80 0D 02 02 05 00 11 7E 1D 54 89 00 00 A9 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 03 00 84 18 00 90 00 10 [15:52:54]RAPDU: 90 00 [15:52:54]wFMCommunicate OK [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 0D 03 02 [15:52:54]Write to MH i2c: E2 08 00 85 18 80 0D 03 02 00 00 00 00 18 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0B 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0B 00 85 18 00 91 18 79 31 3F 86 06 DE 90 00 15 [15:52:54]RAPDU: 91 18 79 31 3F 86 06 DE 90 00 [15:52:54]wFMCommunicate OK [15:52:54]SAM_PROTO_SignData done [15:52:54]FM_MakeSignedData done [15:52:54]CreateOFDProtocolMessage [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 11 00 00 [15:52:54]Write to MH i2c: E2 08 00 86 18 80 11 00 00 00 00 00 00 18 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 17 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 17 00 86 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6B [15:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:52:54]wFMCommunicate OK [15:52:54]CreateOFDProtocolMessage done [15:52:54]OFDSenderStorePacket 191841 [15:52:54]StoreOFDPacket docnum=191841 [15:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 7E 07 01 7E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 64 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 ED 02 00 35 04 06 00 06 11 7E 1D 54 89 91 18 79 31 3F 86 06 DE [15:52:54]CheckFolder [15:52:54]dirname=/storage/ofd_packets [15:52:54]CheckFolder done [15:52:54]ProducePacketName [15:52:54]name=ofd_packets/00191841 [15:52:54]NVStorageSaveData ofd_packets/00191841 [15:52:54]File name is /storage/ofd_packets/00191841 [15:52:54]Write 301 bytes [15:52:54]NVStorageSaveData done [15:52:54]OFDSenderStorePacket done [15:52:54]KKMCreateOFDPacket done [15:52:54]NVStorageSaveData kkm_last_timestamp [15:52:54]File name is /storage/kkm_last_timestamp [15:52:54]Write 4 bytes [15:52:54]NVStorageSaveData done [15:52:54]ExternCall_PrintAddStr [15:52:54]wPrintStart [15:52:54]Write to MH i2c: 01 00 00 87 18 9F [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 87 18 00 00 00 00 00 FF 0F B4 [15:52:54]RasterBufferAndPrint [15:52:54]line Счет N : (1)31148 [15:52:54]line ИНН: 02508201610067 [15:52:54]line Контрольно-Кассовый Чек [15:52:54]line ПРОДАЖА [15:52:54]line ТРК (МРК, ГНК) : 21 [15:52:54]line Товар: 2710124130 [15:52:54]line Аи-92-К-5 [15:52:54]line 10.470 * 66.90 [15:52:54]line = 700.44 [15:52:54]line НДС 12% НСП 1% [15:52:54]line > о реализуемом товаре [15:52:54]line ОКРУГЛЕНИЕ: -0.44 [15:52:54]line ИТОГО: 700.00 [15:52:54]line Внесено: 700.00 [15:52:54]line СДАЧА: 0.00 [15:52:54]line НСП 1% : 6.20 [15:52:54]line НДС 12% : 74.38 [15:52:54]line Наличными: 700.00 [15:52:54]line Безнал.: 0.00 [15:52:54]line Место: АЗС № 170 "Партнер Нефть" [15:52:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:52:54]line СНО: Общий режим [15:52:54]line Чек 204 26.10.2024 15:53 [15:52:54]line Смена: 541 ФФД: 1.0 [15:52:54]line ЗНМ: 0300000110 [15:52:54]line РНМ: 0000000000091776 [15:52:54]line Версия ККМ: 001 [15:52:54]line ФМ: 0000000000871754 [15:52:54]line ФД: 191841 [15:52:54]line ФПД: 6672200062089 [15:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155308&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191841&fm=6672200062089&tin=02508201610067®Number=0000000000091776&sum=70000 [15:52:54]OFD Sender: Processing packet 191841 [packets to send 75, broken 74] [15:52:54]ProducePacketName [15:52:54]name=ofd_packets/00191841 [15:52:54]OFD Sender: To server: pG, [15:52:54]CommunicateWithHost lk.salyk.kg:30040 [15:52:54]ConnectInit lk.salyk.kg [15:52:54]written 0, free lines is 4095 [15:52:54]Connected sock=8 [15:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 7E 07 01 7E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 64 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 ED 02 00 35 04 06 00 06 11 7E 1D 54 89 91 18 79 31 3F 86 06 DE [15:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 93 47 00 AD FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 61 ED 02 00 F4 03 04 00 2E B5 1C 67 B6 04 01 00 00 F0 D3 22 13 6B 62 00 06 [15:52:55]CommunicateWithHost err = 0 [15:52:55]CheckOFDResponse [15:52:55]1017 (14) - 77093643461234 [15:52:55]1041 (16) - 0000000000871754 [15:52:55]1040 (4) - 191841 [15:52:55]1012 (4) - 26.10.2024 09:23 [15:52:55]1206 (1) - 0 [15:52:55]OFD Sender: Remove packet 191841 [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00191841 [15:52:55]NVStorageDeleteData [15:52:55]Write to MH i2c: 01 00 00 B2 18 CA [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 B2 18 00 00 00 00 00 AF 0C 8C [15:52:55]RasterBufferAndPrint [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]line [15:52:55]written 0, free lines is 3255 [15:52:55]MH_Cut [15:52:55]Write to MH i2c: D1 01 00 B9 18 01 A3 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 01 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: D1 01 00 B9 18 00 A2 [15:52:55]Write to MH i2c: 01 00 00 BA 18 D2 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]OFD Sender: No OFD packet to send [15:52:56]*** Cut start [15:52:56]*** Partial cut [15:52:56]*** CUTSNS_PIN = 1 [15:52:56]*** CUTSNS_PIN = 0 [15:52:56]*** Brake cut motor [15:52:56]Read from MH i2c: 01 [15:52:56]MH_I2C_Read... [15:52:56]*** Stop cut motor [15:52:56]*** Cut end [15:52:56]Read from MH i2c: 01 07 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 FF 0F E7 [15:52:56]process_action close_receipt done [15:52:56]requested_data is exist [15:52:56]produce_requested_data [15:52:56]requested_item fm.sn is exist - process it [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 11 00 00 [15:52:56]Write to MH i2c: E2 08 00 BB 18 80 11 00 00 00 00 00 00 4D [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 17 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 17 00 BB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [15:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:52:56]wFMCommunicate OK [15:52:56]requested_item fd.num is exist - process it [15:52:56]SAM_PROTO_GetFieldsCounters [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 13 00 00 [15:52:56]Write to MH i2c: E2 08 00 BC 18 80 13 00 00 00 00 00 00 50 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 62 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 62 00 BC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 61 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:56]wFMCommunicate OK [15:52:56]SAM_PROTO_GetFieldsCounters done [15:52:56]requested_item shift.num is exist - process it [15:52:56]requested_item shift.opened is exist - process it [15:52:56]req_shift_opened [15:52:56]FM_GetShiftState [15:52:56]SAM_PROTO_GetShiftState [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 13 01 00 [15:52:56]Write to MH i2c: E2 08 00 BD 18 80 13 01 00 00 00 00 00 52 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 BD 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CB [15:52:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:52:56]wFMCommunicate OK [15:52:56]SAM_PROTO_GetShiftState done [15:52:56]FM_GetShiftState done [15:52:56]req_shift_opened done [15:52:56]requested_item shift.open_date is exist - process it [15:52:56]req_shift_open_date [15:52:56]req_shift_open_date done [15:52:56]produce_requested_data done [15:52:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191841,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:52:56]process_action_free close_receipt [15:52:56]json_value_free [15:52:56]json_value_free done [15:52:56]process_json_proto returns [15:52:56]Send response to host [15:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191841,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:52:56]free response buf [15:52:56]execute_script done [15:52:56]execute_script returns [15:52:56]free content buf [15:52:56]Sock 5.Close socket [15:52:56]Sock 5.Thread stoped [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:06]accept exits with 6 [15:53:06]New connection [15:53:06]New thread 3066961252 created [15:53:06]Thread 3066817892 joined [15:53:06]Waiting for new connection... [15:53:06] Sock 6.Parse request [15:53:06]Sock 6.Check first char [15:53:06]Sock 6.First char is OK [15:53:06]request: POST /json_proto HTTP/1.0 [15:53:06]Method: POST [15:53:06]URL: /json_proto [15:53:06]Method is POST - this is cgi request [15:53:06]url: /json_proto [15:53:06]query_string will be loaded in cgi processing [15:53:06]execute_cgi json_proto POST (null) [15:53:06]execute_cgi path=json_proto method=POST [15:53:06]POST find Content-Length [15:53:06]Host: 172.17.63.131:8080 [15:53:06]Content-Length: 676 [15:53:06]Content-Type: application/json [15:53:06] [15:53:06]POST finish read [15:53:06]Found Content-Length = 676 [15:53:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:06]execute_script... [15:53: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)31149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:06]POST & json_proto [15:53:06]process_json_proto [15:53:06]json parsed OK: [15:53:06]protocol is kg_v1.0 [15:53:06]action value=close_receipt [15:53:06]process_action close_receipt [15:53:06]cmd_close_receipt [15:53:06]MH_GetDate [15:53:06]Write to MH i2c: F0 00 00 BE 18 C5 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: F0 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: F0 09 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: F0 09 00 BE 18 00 71 10 1D 67 22 05 6E 64 CC [15:53:06]GetLastDocTimeStamp 1729957988 [15:53:06]current date 1729958001 [15:53:06]FM_GetShiftState [15:53:06]SAM_PROTO_GetShiftState [15:53:06]wFMCommunicate request_size=4 [15:53:06]MH_SAM_APDU [15:53:06]CAPDU: 80 13 01 00 [15:53:06]Write to MH i2c: E2 08 00 BF 18 80 13 01 00 00 00 00 00 54 [15:53:06]Write i2c OK [15:53:06]MH_I2C_Read... [15:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:06]Read from MH i2c: E2 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0E 00 [15:53:06]MH_I2C_Read... [15:53:06]Read from MH i2c: E2 0E 00 BF 18 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CD [15:53:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:53:06]wFMCommunicate OK [15:53:06]SAM_PROTO_GetShiftState done [15:53:06]FM_GetShiftState done [15:53:06]opened in 1729902770 [15:53:06]opened+sec_in_day 1729989170 [15:53:06]quantity*price = 50041 [15:53:06]sum+1 = 50042 [15:53:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 205 26.10.2024 15:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191842 ФПД: 41038392908836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155321&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191842&fm=41038392908836&tin=02508201610067®Number=0000000000091776&sum=50000 [15:53:07]StoreToDocumentArchive [15:53:07]shift 541 fd 191842 [15:53:07]save to /storage/0541/doc_00191842 [15:53:07]save last doc name /storage/0541/doc_00191842 to /storage/kkm_last_doc_name [15:53:07]save OK [15:53:07]Clear old archive folders... [15:53:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:07]tlvbuf is 01614750 [15:53:07]SAM_PROTO_ClearQueue [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 09 00 00 [15:53:07]Write to MH i2c: E2 08 00 CC 18 80 09 00 00 00 00 00 00 56 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 CC 18 00 90 00 58 [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]SAM_PROTO_ClearQueue done [15:53:07]KKMCreateOFDPacket [15:53:07]OFDProtocolAddRootSTLVToBuf [15:53:07]FM_MakeSignedData [15:53:07]FM_MakeSignedData [15:53:07]SAM_PROTO_SignData [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 01 02 [15:53:07]Write to MH i2c: E2 08 00 CD 18 80 0D 01 02 00 00 00 00 5E [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=255 [15:53:07]MH_SAM_APDU [15:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 71 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 ED 02 00 35 04 06 00 25 [15:53:07]Write to MH i2c: E2 02 01 CE 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 71 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 ED 02 00 35 04 06 00 25 00 00 59 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=10 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 02 02 05 52 FE D4 DC 24 [15:53:07]Write to MH i2c: E2 0D 00 CF 18 80 0D 02 02 05 00 52 FE D4 DC 24 00 00 8F [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [15:53:07]RAPDU: 90 00 [15:53:07]wFMCommunicate OK [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 0D 03 02 [15:53:07]Write to MH i2c: E2 08 00 D0 18 80 0D 03 02 00 00 00 00 63 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 0B 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 0B 00 D0 18 00 D2 CD E0 52 67 B5 70 BD 90 00 7E [15:53:07]RAPDU: D2 CD E0 52 67 B5 70 BD 90 00 [15:53:07]wFMCommunicate OK [15:53:07]SAM_PROTO_SignData done [15:53:07]FM_MakeSignedData done [15:53:07]CreateOFDProtocolMessage [15:53:07]wFMCommunicate request_size=4 [15:53:07]MH_SAM_APDU [15:53:07]CAPDU: 80 11 00 00 [15:53:07]Write to MH i2c: E2 08 00 D1 18 80 11 00 00 00 00 00 00 63 [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:07]Read from MH i2c: E2 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 17 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: E2 17 00 D1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B6 [15:53:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:53:07]wFMCommunicate OK [15:53:07]CreateOFDProtocolMessage done [15:53:07]OFDSenderStorePacket 191842 [15:53:07]StoreOFDPacket docnum=191842 [15:53:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A5 9E 07 01 00 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 71 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 ED 02 00 35 04 06 00 25 52 FE D4 DC 24 D2 CD E0 52 67 B5 70 BD [15:53:07]CheckFolder [15:53:07]dirname=/storage/ofd_packets [15:53:07]CheckFolder done [15:53:07]ProducePacketName [15:53:07]name=ofd_packets/00191842 [15:53:07]NVStorageSaveData ofd_packets/00191842 [15:53:07]File name is /storage/ofd_packets/00191842 [15:53:07]Write 301 bytes [15:53:07]NVStorageSaveData done [15:53:07]OFDSenderStorePacket done [15:53:07]KKMCreateOFDPacket done [15:53:07]NVStorageSaveData kkm_last_timestamp [15:53:07]File name is /storage/kkm_last_timestamp [15:53:07]Write 4 bytes [15:53:07]NVStorageSaveData done [15:53:07]ExternCall_PrintAddStr [15:53:07]wPrintStart [15:53:07]Write to MH i2c: 01 00 00 D2 18 EA [15:53:07]Write i2c OK [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 [15:53:07]MH_I2C_Read... [15:53:07]Read from MH i2c: 01 07 00 D2 18 00 00 00 00 00 FF 0F FF [15:53:07]RasterBufferAndPrint [15:53:07]line Счет N : (1)31149 [15:53:07]line ИНН: 02508201610067 [15:53:07]line Контрольно-Кассовый Чек [15:53:07]line ПРОДАЖА [15:53:07]line ТРК (МРК, ГНК) : 12 [15:53:07]line Товар: 2710124130 [15:53:07]line Аи-92-К-5 [15:53:07]line 7.480 * 66.90 [15:53:07]line = 500.41 [15:53:07]line НДС 12% НСП 1% [15:53:07]line > о реализуемом товаре [15:53:07]line ОКРУГЛЕНИЕ: -0.41 [15:53:07]line ИТОГО: 500.00 [15:53:07]line Внесено: 500.00 [15:53:07]line СДАЧА: 0.00 [15:53:07]line НСП 1% : 4.43 [15:53:07]line НДС 12% : 53.14 [15:53:07]line Наличными: 500.00 [15:53:07]line Безнал.: 0.00 [15:53:07]line Место: АЗС № 170 "Партнер Нефть" [15:53:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:53:07]line СНО: Общий режим [15:53:07]line Чек 205 26.10.2024 15:53 [15:53:07]line Смена: 541 ФФД: 1.0 [15:53:07]line ЗНМ: 0300000110 [15:53:07]line РНМ: 0000000000091776 [15:53:07]line Версия ККМ: 001 [15:53:07]line ФМ: 0000000000871754 [15:53:07]line ФД: 191842 [15:53:07]line ФПД: 41038392908836 [15:53:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155321&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191842&fm=41038392908836&tin=02508201610067®Number=0000000000091776&sum=50000 [15:53:07]written 0, free lines is 4095 [15:53:07]OFD Sender: Processing packet 191842 [packets to send 75, broken 74] [15:53:07]ProducePacketName [15:53:07]name=ofd_packets/00191842 [15:53:07]OFD Sender: To server: pG, [15:53:07]CommunicateWithHost lk.salyk.kg:30040 [15:53:07]ConnectInit lk.salyk.kg [15:53:08]Connected sock=8 [15:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A5 9E 07 01 00 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 71 10 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 ED 02 00 35 04 06 00 25 52 FE D4 DC 24 D2 CD E0 52 67 B5 70 BD [15:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FD 8B 47 00 54 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 62 ED 02 00 F4 03 04 00 3B B5 1C 67 B6 04 01 00 00 57 53 A8 05 43 7D 94 2F [15:53:08]CommunicateWithHost err = 0 [15:53:08]CheckOFDResponse [15:53:08]1017 (14) - 77093643461234 [15:53:08]1041 (16) - 0000000000871754 [15:53:08]1040 (4) - 191842 [15:53:08]1012 (4) - 26.10.2024 09:24 [15:53:08]1206 (1) - 0 [15:53:08]OFD Sender: Remove packet 191842 [15:53:08]ProducePacketName [15:53:08]name=ofd_packets/00191842 [15:53:08]NVStorageDeleteData [15:53:08]Write to MH i2c: 01 00 00 FD 18 15 [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: 01 07 00 FD 18 00 00 00 00 00 CE 0C F6 [15:53:08]RasterBufferAndPrint [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]line [15:53:08]written 0, free lines is 3288 [15:53:08]MH_Cut [15:53:08]Write to MH i2c: D1 01 00 04 19 01 EF [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 [15:53:08]MH_I2C_Read... [15:53:08]Read from MH i2c: D1 01 00 04 19 00 EE [15:53:08]Write to MH i2c: 01 00 00 05 19 1E [15:53:08]Write i2c OK [15:53:08]MH_I2C_Read... [15:53:08]OFD Sender: No OFD packet to send [15:53:09]*** Cut start [15:53:09]*** Partial cut [15:53:09]*** CUTSNS_PIN = 1 [15:53:09]*** CUTSNS_PIN = 0 [15:53:09]*** Brake cut motor [15:53:09]Read from MH i2c: 01 [15:53:09]MH_I2C_Read... [15:53:09]*** Stop cut motor [15:53:09]*** Cut end [15:53:09]Read from MH i2c: 01 07 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 FF 0F 33 [15:53:09]process_action close_receipt done [15:53:09]requested_data is exist [15:53:09]produce_requested_data [15:53:09]requested_item fm.sn is exist - process it [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 11 00 00 [15:53:09]Write to MH i2c: E2 08 00 06 19 80 11 00 00 00 00 00 00 99 [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:09]Read from MH i2c: E2 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 [15:53:09]MH_I2C_Read... [15:53:09]Read from MH i2c: E2 17 00 06 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [15:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:53:09]wFMCommunicate OK [15:53:09]requested_item fd.num is exist - process it [15:53:09]SAM_PROTO_GetFieldsCounters [15:53:09]wFMCommunicate request_size=4 [15:53:09]MH_SAM_APDU [15:53:09]CAPDU: 80 13 00 00 [15:53:09]Write to MH i2c: E2 08 00 07 19 80 13 00 00 00 00 00 00 9C [15:53:09]Write i2c OK [15:53:09]MH_I2C_Read... [15:53:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:10]Read from MH i2c: E2 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: E2 62 00 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: E2 62 00 07 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [15:53:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 62 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:10]wFMCommunicate OK [15:53:10]SAM_PROTO_GetFieldsCounters done [15:53:10]requested_item shift.num is exist - process it [15:53:10]requested_item shift.opened is exist - process it [15:53:10]req_shift_opened [15:53:10]FM_GetShiftState [15:53:10]SAM_PROTO_GetShiftState [15:53:10]wFMCommunicate request_size=4 [15:53:10]MH_SAM_APDU [15:53:10]CAPDU: 80 13 01 00 [15:53:10]Write to MH i2c: E2 08 00 08 19 80 13 01 00 00 00 00 00 9E [15:53:10]Write i2c OK [15:53:10]MH_I2C_Read... [15:53:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:10]Read from MH i2c: E2 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: E2 0E 00 [15:53:10]MH_I2C_Read... [15:53:10]Read from MH i2c: E2 0E 00 08 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 17 [15:53:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:53:10]wFMCommunicate OK [15:53:10]SAM_PROTO_GetShiftState done [15:53:10]FM_GetShiftState done [15:53:10]req_shift_opened done [15:53:10]requested_item shift.open_date is exist - process it [15:53:10]req_shift_open_date [15:53:10]req_shift_open_date done [15:53:10]produce_requested_data done [15:53:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191842,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:53:10]process_action_free close_receipt [15:53:10]json_value_free [15:53:10]json_value_free done [15:53:10]process_json_proto returns [15:53:10]Send response to host [15:53:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191842,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:53:10]free response buf [15:53:10]execute_script done [15:53:10]execute_script returns [15:53:10]free content buf [15:53:10]Sock 6.Close socket [15:53:10]Sock 6.Thread stoped [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:36]accept exits with 5 [15:55:36]New connection [15:55:36]New thread 3066817892 created [15:55:36]Thread 3066961252 joined [15:55:36]Waiting for new connection... [15:55:36] Sock 5.Parse request [15:55:36]Sock 5.Check first char [15:55:36]Sock 5.First char is OK [15:55:36]request: POST /json_proto HTTP/1.0 [15:55:36]Method: POST [15:55:36]URL: /json_proto [15:55:36]Method is POST - this is cgi request [15:55:36]url: /json_proto [15:55:36]query_string will be loaded in cgi processing [15:55:36]execute_cgi json_proto POST (null) [15:55:36]execute_cgi path=json_proto method=POST [15:55:36]POST find Content-Length [15:55:36]Host: 172.17.63.131:8080 [15:55:36]Content-Length: 676 [15:55:36]Content-Type: application/json [15:55:36] [15:55:36]POST finish read [15:55:36]Found Content-Length = 676 [15:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:36]execute_script... [15:55:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:36]POST & json_proto [15:55:36]process_json_proto [15:55:36]json parsed OK: [15:55:36]protocol is kg_v1.0 [15:55:36]action value=close_receipt [15:55:36]process_action close_receipt [15:55:36]cmd_close_receipt [15:55:36]MH_GetDate [15:55:36]Write to MH i2c: F0 00 00 09 19 11 [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: F0 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: F0 09 00 [15:55:36]MH_I2C_Read... [15:55:36]Read from MH i2c: F0 09 00 09 19 00 08 11 1D 67 22 05 6E 64 B0 [15:55:36]GetLastDocTimeStamp 1729958001 [15:55:36]current date 1729958152 [15:55:36]FM_GetShiftState [15:55:36]SAM_PROTO_GetShiftState [15:55:36]wFMCommunicate request_size=4 [15:55:36]MH_SAM_APDU [15:55:36]CAPDU: 80 13 01 00 [15:55:36]Write to MH i2c: E2 08 00 0A 19 80 13 01 00 00 00 00 00 A0 [15:55:36]Write i2c OK [15:55:36]MH_I2C_Read... [15:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:37]Read from MH i2c: E2 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0E 00 [15:55:37]MH_I2C_Read... [15:55:37]Read from MH i2c: E2 0E 00 0A 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 19 [15:55:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:55:37]wFMCommunicate OK [15:55:37]SAM_PROTO_GetShiftState done [15:55:37]FM_GetShiftState done [15:55:37]opened in 1729902770 [15:55:37]opened+sec_in_day 1729989170 [15:55:37]quantity*price = 40006 [15:55:37]sum+1 = 40007 [15:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 206 26.10.2024 15:55 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191843 ФПД: 127358328425789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191843&fm=127358328425789&tin=02508201610067®Number=0000000000091776&sum=40000 [15:55:38]StoreToDocumentArchive [15:55:38]shift 541 fd 191843 [15:55:38]save to /storage/0541/doc_00191843 [15:55:38]save last doc name /storage/0541/doc_00191843 to /storage/kkm_last_doc_name [15:55:38]save OK [15:55:38]Clear old archive folders... [15:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:38]tlvbuf is 0160B3F0 [15:55:38]SAM_PROTO_ClearQueue [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 09 00 00 [15:55:38]Write to MH i2c: E2 08 00 17 19 80 09 00 00 00 00 00 00 A2 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 17 19 00 90 00 A4 [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]SAM_PROTO_ClearQueue done [15:55:38]KKMCreateOFDPacket [15:55:38]OFDProtocolAddRootSTLVToBuf [15:55:38]FM_MakeSignedData [15:55:38]FM_MakeSignedData [15:55:38]SAM_PROTO_SignData [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 0D 01 02 [15:55:38]Write to MH i2c: E2 08 00 18 19 80 0D 01 02 00 00 00 00 AA [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]wFMCommunicate request_size=255 [15:55:38]MH_SAM_APDU [15:55: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 08 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 ED 02 00 35 04 06 00 73 [15:55:38]Write to MH i2c: E2 02 01 19 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 08 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 ED 02 00 35 04 06 00 73 00 00 5C [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 19 19 00 90 00 A6 [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]wFMCommunicate request_size=10 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 0D 02 02 05 D4 EB EC CD 3D [15:55:38]Write to MH i2c: E2 0D 00 1A 19 80 0D 02 02 05 00 D4 EB EC CD 3D 00 00 6C [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [15:55:38]RAPDU: 90 00 [15:55:38]wFMCommunicate OK [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 0D 03 02 [15:55:38]Write to MH i2c: E2 08 00 1B 19 80 0D 03 02 00 00 00 00 AF [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 0B 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 0B 00 1B 19 00 C0 AE 97 9D 19 B3 F4 A6 90 00 B8 [15:55:38]RAPDU: C0 AE 97 9D 19 B3 F4 A6 90 00 [15:55:38]wFMCommunicate OK [15:55:38]SAM_PROTO_SignData done [15:55:38]FM_MakeSignedData done [15:55:38]CreateOFDProtocolMessage [15:55:38]wFMCommunicate request_size=4 [15:55:38]MH_SAM_APDU [15:55:38]CAPDU: 80 11 00 00 [15:55:38]Write to MH i2c: E2 08 00 1C 19 80 11 00 00 00 00 00 00 AF [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:38]Read from MH i2c: E2 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 17 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: E2 17 00 1C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 02 [15:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:55:38]wFMCommunicate OK [15:55:38]CreateOFDProtocolMessage done [15:55:38]OFDSenderStorePacket 191843 [15:55:38]StoreOFDPacket docnum=191843 [15:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 17 07 01 C6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 08 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 ED 02 00 35 04 06 00 73 D4 EB EC CD 3D C0 AE 97 9D 19 B3 F4 A6 [15:55:38]CheckFolder [15:55:38]dirname=/storage/ofd_packets [15:55:38]CheckFolder done [15:55:38]ProducePacketName [15:55:38]name=ofd_packets/00191843 [15:55:38]NVStorageSaveData ofd_packets/00191843 [15:55:38]File name is /storage/ofd_packets/00191843 [15:55:38]Write 301 bytes [15:55:38]NVStorageSaveData done [15:55:38]OFDSenderStorePacket done [15:55:38]KKMCreateOFDPacket done [15:55:38]NVStorageSaveData kkm_last_timestamp [15:55:38]File name is /storage/kkm_last_timestamp [15:55:38]Write 4 bytes [15:55:38]NVStorageSaveData done [15:55:38]ExternCall_PrintAddStr [15:55:38]wPrintStart [15:55:38]Write to MH i2c: 01 00 00 1D 19 36 [15:55:38]Write i2c OK [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 07 00 [15:55:38]MH_I2C_Read... [15:55:38]Read from MH i2c: 01 07 00 1D 19 00 00 00 00 00 FF 0F 4B [15:55:38]RasterBufferAndPrint [15:55:38]line Счет N : (1)31150 [15:55:38]line ИНН: 02508201610067 [15:55:38]line Контрольно-Кассовый Чек [15:55:38]line ПРОДАЖА [15:55:38]line ТРК (МРК, ГНК) : 12 [15:55:38]line Товар: 2710124130 [15:55:38]line Аи-92-К-5 [15:55:38]line 5.980 * 66.90 [15:55:38]line = 400.06 [15:55:38]line НДС 12% НСП 1% [15:55:38]line > о реализуемом товаре [15:55:38]line ОКРУГЛЕНИЕ: -0.06 [15:55:38]line ИТОГО: 400.00 [15:55:38]line Внесено: 400.00 [15:55:38]line СДАЧА: 0.00 [15:55:38]line НСП 1% : 3.54 [15:55:38]line НДС 12% : 42.48 [15:55:38]line Наличными: 400.00 [15:55:38]line Безнал.: 0.00 [15:55:38]line Место: АЗС № 170 "Партнер Нефть" [15:55:38]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:55:38]line СНО: Общий режим [15:55:38]line Чек 206 26.10.2024 15:55 [15:55:38]line Смена: 541 ФФД: 1.0 [15:55:38]line ЗНМ: 0300000110 [15:55:38]line РНМ: 0000000000091776 [15:55:38]line Версия ККМ: 001 [15:55:38]line ФМ: 0000000000871754 [15:55:38]line ФД: 191843 [15:55:38]line ФПД: 127358328425789 [15:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155552&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191843&fm=127358328425789&tin=02508201610067®Number=0000000000091776&sum=40000 [15:55:39]OFD Sender: Processing packet 191843 [packets to send 75, broken 74] [15:55:39]ProducePacketName [15:55:39]name=ofd_packets/00191843 [15:55:39]OFD Sender: To server: pG, [15:55:39]CommunicateWithHost lk.salyk.kg:30040 [15:55:39]ConnectInit lk.salyk.kg [15:55:39]written 0, free lines is 4095 [15:55:39]Connected sock=8 [15:55:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DC 17 07 01 C6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 08 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 ED 02 00 35 04 06 00 73 D4 EB EC CD 3D C0 AE 97 9D 19 B3 F4 A6 [15:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1E 29 47 00 ED 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 63 ED 02 00 F4 03 04 00 D3 B5 1C 67 B6 04 01 00 00 90 36 57 A4 DC E3 4F FB [15:55:39]CommunicateWithHost err = 0 [15:55:39]CheckOFDResponse [15:55:39]1017 (14) - 77093643461234 [15:55:39]1041 (16) - 0000000000871754 [15:55:39]1040 (4) - 191843 [15:55:39]1012 (4) - 26.10.2024 09:26 [15:55:39]1206 (1) - 0 [15:55:39]OFD Sender: Remove packet 191843 [15:55:39]ProducePacketName [15:55:39]name=ofd_packets/00191843 [15:55:39]NVStorageDeleteData [15:55:39]Write to MH i2c: 01 00 00 48 19 61 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: 01 07 00 48 19 00 00 00 00 00 BF 0C 33 [15:55:39]RasterBufferAndPrint [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]line [15:55:39]written 0, free lines is 3269 [15:55:39]MH_Cut [15:55:39]Write to MH i2c: D1 01 00 4F 19 01 3A [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 01 00 [15:55:39]MH_I2C_Read... [15:55:39]Read from MH i2c: D1 01 00 4F 19 00 39 [15:55:39]Write to MH i2c: 01 00 00 50 19 69 [15:55:39]Write i2c OK [15:55:39]MH_I2C_Read... [15:55:39]OFD Sender: No OFD packet to send [15:55:40]*** Cut start [15:55:40]*** Partial cut [15:55:40]*** CUTSNS_PIN = 1 [15:55:40]*** CUTSNS_PIN = 0 [15:55:40]*** Brake cut motor [15:55:40]Read from MH i2c: 01 [15:55:40]MH_I2C_Read... [15:55:40]*** Stop cut motor [15:55:40]*** Cut end [15:55:40]Read from MH i2c: 01 07 00 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: 01 07 00 50 19 00 00 00 00 00 FF 0F 7E [15:55:40]process_action close_receipt done [15:55:40]requested_data is exist [15:55:40]produce_requested_data [15:55:40]requested_item fm.sn is exist - process it [15:55:40]wFMCommunicate request_size=4 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 11 00 00 [15:55:40]Write to MH i2c: E2 08 00 51 19 80 11 00 00 00 00 00 00 E4 [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:40]Read from MH i2c: E2 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 17 00 [15:55:40]MH_I2C_Read... [15:55:40]Read from MH i2c: E2 17 00 51 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [15:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:55:40]wFMCommunicate OK [15:55:40]requested_item fd.num is exist - process it [15:55:40]SAM_PROTO_GetFieldsCounters [15:55:40]wFMCommunicate request_size=4 [15:55:40]MH_SAM_APDU [15:55:40]CAPDU: 80 13 00 00 [15:55:40]Write to MH i2c: E2 08 00 52 19 80 13 00 00 00 00 00 00 E7 [15:55:40]Write i2c OK [15:55:40]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 62 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 62 00 52 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:55:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 63 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:41]wFMCommunicate OK [15:55:41]SAM_PROTO_GetFieldsCounters done [15:55:41]requested_item shift.num is exist - process it [15:55:41]requested_item shift.opened is exist - process it [15:55:41]req_shift_opened [15:55:41]FM_GetShiftState [15:55:41]SAM_PROTO_GetShiftState [15:55:41]wFMCommunicate request_size=4 [15:55:41]MH_SAM_APDU [15:55:41]CAPDU: 80 13 01 00 [15:55:41]Write to MH i2c: E2 08 00 53 19 80 13 01 00 00 00 00 00 E9 [15:55:41]Write i2c OK [15:55:41]MH_I2C_Read... [15:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:41]Read from MH i2c: E2 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0E 00 [15:55:41]MH_I2C_Read... [15:55:41]Read from MH i2c: E2 0E 00 53 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 62 [15:55:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:55:41]wFMCommunicate OK [15:55:41]SAM_PROTO_GetShiftState done [15:55:41]FM_GetShiftState done [15:55:41]req_shift_opened done [15:55:41]requested_item shift.open_date is exist - process it [15:55:41]req_shift_open_date [15:55:41]req_shift_open_date done [15:55:41]produce_requested_data done [15:55:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191843,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:55:41]process_action_free close_receipt [15:55:41]json_value_free [15:55:41]json_value_free done [15:55:41]process_json_proto returns [15:55:41]Send response to host [15:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191843,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:55:41]free response buf [15:55:41]execute_script done [15:55:41]execute_script returns [15:55:41]free content buf [15:55:41]Sock 5.Close socket [15:55:41]Sock 5.Thread stoped [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:46]accept exits with 6 [15:57:46]New connection [15:57:46]New thread 3066961252 created [15:57:46]Thread 3066817892 joined [15:57:46]Waiting for new connection... [15:57:46] Sock 6.Parse request [15:57:46]Sock 6.Check first char [15:57:46]Sock 6.First char is OK [15:57:46]request: POST /json_proto HTTP/1.0 [15:57:46]Method: POST [15:57:46]URL: /json_proto [15:57:46]Method is POST - this is cgi request [15:57:46]url: /json_proto [15:57:46]query_string will be loaded in cgi processing [15:57:46]execute_cgi json_proto POST (null) [15:57:46]execute_cgi path=json_proto method=POST [15:57:46]POST find Content-Length [15:57:46]Host: 172.17.63.131:8080 [15:57:46]Content-Length: 674 [15:57:46]Content-Type: application/json [15:57:46] [15:57:46]POST finish read [15:57:46]Found Content-Length = 674 [15:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31151", "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" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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:57:46]execute_script... [15: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)31151", "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" : 76.20, "quantity" : 11.820, "sum" : 900.68, "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:57:46]POST & json_proto [15:57:46]process_json_proto [15:57:46]json parsed OK: [15:57:46]protocol is kg_v1.0 [15:57:46]action value=close_receipt [15:57:46]process_action close_receipt [15:57:46]cmd_close_receipt [15:57:46]MH_GetDate [15:57:46]Write to MH i2c: F0 00 00 54 19 5C [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: F0 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: F0 09 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: F0 09 00 54 19 00 89 11 1D 67 22 05 6E 64 7C [15:57:46]GetLastDocTimeStamp 1729958152 [15:57:46]current date 1729958281 [15:57:46]FM_GetShiftState [15:57:46]SAM_PROTO_GetShiftState [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 13 01 00 [15:57:46]Write to MH i2c: E2 08 00 55 19 80 13 01 00 00 00 00 00 EB [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0E 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0E 00 55 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 64 [15:57:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:57:46]wFMCommunicate OK [15:57:46]SAM_PROTO_GetShiftState done [15:57:46]FM_GetShiftState done [15:57:46]opened in 1729902770 [15:57:46]opened+sec_in_day 1729989170 [15:57:46]quantity*price = 90068 [15:57:46]sum+1 = 90069 [15:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 207 26.10.2024 15:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191844 ФПД: 72543633923350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191844&fm=72543633923350&tin=02508201610067®Number=0000000000091776&sum=90000 [15:57:47]StoreToDocumentArchive [15:57:47]shift 541 fd 191844 [15:57:47]save to /storage/0541/doc_00191844 [15:57:47]save last doc name /storage/0541/doc_00191844 to /storage/kkm_last_doc_name [15:57:47]save OK [15:57:47]Clear old archive folders... [15:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:47]tlvbuf is 017F18A0 [15:57:47]SAM_PROTO_ClearQueue [15:57:47]wFMCommunicate request_size=4 [15:57:47]MH_SAM_APDU [15:57:47]CAPDU: 80 09 00 00 [15:57:47]Write to MH i2c: E2 08 00 62 19 80 09 00 00 00 00 00 00 ED [15:57:47]Write i2c OK [15:57:47]MH_I2C_Read... [15:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:47]Read from MH i2c: E2 [15:57:47]MH_I2C_Read... [15:57:47]Read from MH i2c: E2 03 00 [15:57:47]MH_I2C_Read... [15:57:47]Read from MH i2c: E2 03 00 62 19 00 90 00 EF [15:57:47]RAPDU: 90 00 [15:57:47]wFMCommunicate OK [15:57:47]SAM_PROTO_ClearQueue done [15:57:47]KKMCreateOFDPacket [15:57:47]OFDProtocolAddRootSTLVToBuf [15:57:47]FM_MakeSignedData [15:57:47]FM_MakeSignedData [15:57:47]SAM_PROTO_SignData [15:57:47]wFMCommunicate request_size=4 [15:57:47]MH_SAM_APDU [15:57:47]CAPDU: 80 0D 01 02 [15:57:47]Write to MH i2c: E2 08 00 63 19 80 0D 01 02 00 00 00 00 F5 [15:57:47]Write i2c OK [15:57:47]MH_I2C_Read... [15:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:47]Read from MH i2c: E2 [15:57:47]MH_I2C_Read... [15:57:47]Read from MH i2c: E2 03 00 [15:57:47]MH_I2C_Read... [15:57:47]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [15:57:47]RAPDU: 90 00 [15:57:47]wFMCommunicate OK [15:57:47]wFMCommunicate request_size=255 [15:57:47]MH_SAM_APDU [15:57:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 CF 00 00 00 F4 03 04 00 89 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 ED 02 00 35 04 06 00 41 FA 61 87 [15:57:47]Write to MH i2c: E2 02 01 64 19 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 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 CF 00 00 00 F4 03 04 00 89 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 ED 02 00 35 04 06 00 41 FA 61 87 00 00 CA [15:57:47]Write i2c OK [15:57:47]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 03 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 03 00 64 19 00 90 00 F1 [15:57:48]RAPDU: 90 00 [15:57:48]wFMCommunicate OK [15:57:48]wFMCommunicate request_size=7 [15:57:48]MH_SAM_APDU [15:57:48]CAPDU: 80 0D 02 02 02 DD 16 [15:57:48]Write to MH i2c: E2 0A 00 65 19 80 0D 02 02 02 00 DD 16 00 00 EF [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 03 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 03 00 65 19 00 90 00 F2 [15:57:48]RAPDU: 90 00 [15:57:48]wFMCommunicate OK [15:57:48]wFMCommunicate request_size=4 [15:57:48]MH_SAM_APDU [15:57:48]CAPDU: 80 0D 03 02 [15:57:48]Write to MH i2c: E2 08 00 66 19 80 0D 03 02 00 00 00 00 FA [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:48]Read from MH i2c: E2 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 0B 00 [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: E2 0B 00 66 19 00 D1 DF BB 43 65 E9 38 15 90 00 44 [15:57:48]RAPDU: D1 DF BB 43 65 E9 38 15 90 00 [15:57:48]wFMCommunicate OK [15:57:48]SAM_PROTO_SignData done [15:57:48]FM_MakeSignedData done [15:57:48]CreateOFDProtocolMessage [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 67 19 80 11 00 00 00 00 00 00 FA [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 67 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [15:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:57:48]wFMCommunicate OK [15:57:48]CreateOFDProtocolMessage done [15:57:48]OFDSenderStorePacket 191844 [15:57:48]StoreOFDPacket docnum=191844 [15:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 0F 04 01 0C 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 CF 00 00 00 F4 03 04 00 89 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 ED 02 00 35 04 06 00 41 FA 61 87 DD 16 D1 DF BB 43 65 E9 38 15 [15:57:48]CheckFolder [15:57:48]dirname=/storage/ofd_packets [15:57:48]CheckFolder done [15:57:48]ProducePacketName [15:57:48]name=ofd_packets/00191844 [15:57:48]NVStorageSaveData ofd_packets/00191844 [15:57:48]File name is /storage/ofd_packets/00191844 [15:57:48]Write 298 bytes [15:57:48]NVStorageSaveData done [15:57:48]OFDSenderStorePacket done [15:57:48]KKMCreateOFDPacket done [15:57:48]NVStorageSaveData kkm_last_timestamp [15:57:48]File name is /storage/kkm_last_timestamp [15:57:48]Write 4 bytes [15:57:48]NVStorageSaveData done [15:57:48]ExternCall_PrintAddStr [15:57:48]wPrintStart [15:57:48]Write to MH i2c: 01 00 00 68 19 81 [15:57:48]Write i2c OK [15:57:48]MH_I2C_Read... [15:57:48]Read from MH i2c: 01 [15:57:48]MH_I2C_Read... [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 68 19 00 00 00 00 00 FF 0F 96 [15:57:48]RasterBufferAndPrint [15:57:48]line Счет N : (1)31151 [15:57:48]line ИНН: 02508201610067 [15:57:48]line Контрольно-Кассовый Чек [15:57:48]line ПРОДАЖА [15:57:48]line ТРК (МРК, ГНК) : 22 [15:57:48]line Товар: 2710194210 [15:57:48]line ДТ-К-5 [15:57:48]line 11.820 * 76.20 [15:57:48]line = 900.68 [15:57:48]line НДС 12% НСП 1% [15:57:48]line > о реализуемом товаре [15:57:48]line ОКРУГЛЕНИЕ: -0.68 [15:57:48]line ИТОГО: 900.00 [15:57:48]line Внесено: 900.00 [15:57:48]line СДАЧА: 0.00 [15:57:48]line НСП 1% : 7.97 [15:57:48]line НДС 12% : 95.65 [15:57:48]line Наличными: 900.00 [15:57:48]line Безнал.: 0.00 [15:57:48]line Место: АЗС № 170 "Партнер Нефть" [15:57:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:57:48]line СНО: Общий режим [15:57:48]line Чек 207 26.10.2024 15:58 [15:57:48]line Смена: 541 ФФД: 1.0 [15:57:48]line ЗНМ: 0300000110 [15:57:48]line РНМ: 0000000000091776 [15:57:48]line Версия ККМ: 001 [15:57:48]line ФМ: 0000000000871754 [15:57:48]line ФД: 191844 [15:57:48]line ФПД: 72543633923350 [15:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155801&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191844&fm=72543633923350&tin=02508201610067®Number=0000000000091776&sum=90000 [15:57:48]OFD Sender: Processing packet 191844 [packets to send 75, broken 74] [15:57:48]ProducePacketName [15:57:48]name=ofd_packets/00191844 [15:57:48]OFD Sender: To server: pG, [15:57:48]CommunicateWithHost lk.salyk.kg:30040 [15:57:48]ConnectInit lk.salyk.kg [15:57:48]written 0, free lines is 4095 [15:57:48]Connected sock=8 [15:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 64 0F 04 01 0C 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 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 5D 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 CF 00 00 00 F4 03 04 00 89 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 ED 02 00 35 04 06 00 41 FA 61 87 DD 16 D1 DF BB 43 65 E9 38 15 [15:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4F A5 47 00 56 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 64 ED 02 00 F4 03 04 00 54 B6 1C 67 B6 04 01 00 00 1C E0 77 7C 5A 23 DB 82 [15:57:49]CommunicateWithHost err = 0 [15:57:49]CheckOFDResponse [15:57:49]1017 (14) - 77093643461234 [15:57:49]1041 (16) - 0000000000871754 [15:57:49]1040 (4) - 191844 [15:57:49]1012 (4) - 26.10.2024 09:28 [15:57:49]1206 (1) - 0 [15:57:49]OFD Sender: Remove packet 191844 [15:57:49]ProducePacketName [15:57:49]name=ofd_packets/00191844 [15:57:49]NVStorageDeleteData [15:57:49]Write to MH i2c: 01 00 00 93 19 AC [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: 01 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: 01 07 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 BA 0C 79 [15:57:49]RasterBufferAndPrint [15:57:49]line [15:57:49]line [15:57:49]line [15:57:49]line [15:57:49]line [15:57:49]written 0, free lines is 3265 [15:57:49]MH_Cut [15:57:49]Write to MH i2c: D1 01 00 9A 19 01 85 [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: D1 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: D1 01 00 [15:57:49]MH_I2C_Read... [15:57:49]Read from MH i2c: D1 01 00 9A 19 00 84 [15:57:49]Write to MH i2c: 01 00 00 9B 19 B4 [15:57:49]Write i2c OK [15:57:49]MH_I2C_Read... [15:57:49]OFD Sender: No OFD packet to send [15:57:49]*** Cut start [15:57:49]*** Partial cut [15:57:49]*** CUTSNS_PIN = 1 [15:57:49]*** CUTSNS_PIN = 0 [15:57:50]*** Brake cut motor [15:57:50]Read from MH i2c: 01 [15:57:50]MH_I2C_Read... [15:57:50]*** Stop cut motor [15:57:50]*** Cut end [15:57:50]Read from MH i2c: 01 07 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 FF 0F C9 [15:57:50]process_action close_receipt done [15:57:50]requested_data is exist [15:57:50]produce_requested_data [15:57:50]requested_item fm.sn is exist - process it [15:57:50]wFMCommunicate request_size=4 [15:57:50]MH_SAM_APDU [15:57:50]CAPDU: 80 11 00 00 [15:57:50]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [15:57:50]Write i2c OK [15:57:50]MH_I2C_Read... [15:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:50]Read from MH i2c: E2 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 17 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [15:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:57:50]wFMCommunicate OK [15:57:50]requested_item fd.num is exist - process it [15:57:50]SAM_PROTO_GetFieldsCounters [15:57:50]wFMCommunicate request_size=4 [15:57:50]MH_SAM_APDU [15:57:50]CAPDU: 80 13 00 00 [15:57:50]Write to MH i2c: E2 08 00 9D 19 80 13 00 00 00 00 00 00 32 [15:57:50]Write i2c OK [15:57:50]MH_I2C_Read... [15:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:50]Read from MH i2c: E2 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 62 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 62 00 9D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 64 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:50]wFMCommunicate OK [15:57:50]SAM_PROTO_GetFieldsCounters done [15:57:50]requested_item shift.num is exist - process it [15:57:50]requested_item shift.opened is exist - process it [15:57:50]req_shift_opened [15:57:50]FM_GetShiftState [15:57:50]SAM_PROTO_GetShiftState [15:57:50]wFMCommunicate request_size=4 [15:57:50]MH_SAM_APDU [15:57:50]CAPDU: 80 13 01 00 [15:57:50]Write to MH i2c: E2 08 00 9E 19 80 13 01 00 00 00 00 00 34 [15:57:50]Write i2c OK [15:57:50]MH_I2C_Read... [15:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:50]Read from MH i2c: E2 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 0E 00 [15:57:50]MH_I2C_Read... [15:57:50]Read from MH i2c: E2 0E 00 9E 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AD [15:57:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:57:50]wFMCommunicate OK [15:57:50]SAM_PROTO_GetShiftState done [15:57:50]FM_GetShiftState done [15:57:50]req_shift_opened done [15:57:50]requested_item shift.open_date is exist - process it [15:57:50]req_shift_open_date [15:57:50]req_shift_open_date done [15:57:50]produce_requested_data done [15:57:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191844,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:57:50]process_action_free close_receipt [15:57:50]json_value_free [15:57:50]json_value_free done [15:57:50]process_json_proto returns [15:57:50]Send response to host [15:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191844,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:57:50]free response buf [15:57:50]execute_script done [15:57:50]execute_script returns [15:57:50]free content buf [15:57:50]Sock 6.Close socket [15:57:50]Sock 6.Thread stoped [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:53]accept exits with 5 [15:58:53]New connection [15:58:53]New thread 3066817892 created [15:58:53]Thread 3066961252 joined [15:58:53]Waiting for new connection... [15:58:53] Sock 5.Parse request [15:58:53]Sock 5.Check first char [15:58:53]Sock 5.First char is OK [15:58:53]request: POST /json_proto HTTP/1.0 [15:58:53]Method: POST [15:58:53]URL: /json_proto [15:58:53]Method is POST - this is cgi request [15:58:53]url: /json_proto [15:58:53]query_string will be loaded in cgi processing [15:58:53]execute_cgi json_proto POST (null) [15:58:53]execute_cgi path=json_proto method=POST [15:58:53]POST find Content-Length [15:58:53]Host: 172.17.63.131:8080 [15:58:53]Content-Length: 681 [15:58:53]Content-Type: application/json [15:58:53] [15:58:53]POST finish read [15:58:53]Found Content-Length = 681 [15:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:53]execute_script... [15:58:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:53]POST & json_proto [15:58:53]process_json_proto [15:58:53]json parsed OK: [15:58:53]protocol is kg_v1.0 [15:58:53]action value=close_receipt [15:58:53]process_action close_receipt [15:58:53]cmd_close_receipt [15:58:53]MH_GetDate [15:58:53]Write to MH i2c: F0 00 00 9F 19 A7 [15:58:53]Write i2c OK [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: F0 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: F0 09 00 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: F0 09 00 9F 19 00 CD 11 1D 67 22 05 6E 64 0B [15:58:53]GetLastDocTimeStamp 1729958281 [15:58:53]current date 1729958349 [15:58:53]FM_GetShiftState [15:58:53]SAM_PROTO_GetShiftState [15:58:53]wFMCommunicate request_size=4 [15:58:53]MH_SAM_APDU [15:58:53]CAPDU: 80 13 01 00 [15:58:53]Write to MH i2c: E2 08 00 A0 19 80 13 01 00 00 00 00 00 36 [15:58:53]Write i2c OK [15:58:53]MH_I2C_Read... [15:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:53]Read from MH i2c: E2 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: E2 0E 00 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: E2 0E 00 A0 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AF [15:58:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:58:53]wFMCommunicate OK [15:58:53]SAM_PROTO_GetShiftState done [15:58:53]FM_GetShiftState done [15:58:53]opened in 1729902770 [15:58:53]opened+sec_in_day 1729989170 [15:58:53]quantity*price = 100015 [15:58:53]sum+1 = 100017 [15:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 208 26.10.2024 15:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191845 ФПД: 61398605697073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191845&fm=61398605697073&tin=02508201610067®Number=0000000000091776&sum=100000 [15:58:55]StoreToDocumentArchive [15:58:55]shift 541 fd 191845 [15:58:55]save to /storage/0541/doc_00191845 [15:58:55]save last doc name /storage/0541/doc_00191845 to /storage/kkm_last_doc_name [15:58:55]save OK [15:58:55]Clear old archive folders... [15:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:55]tlvbuf is 01A242D0 [15:58:55]SAM_PROTO_ClearQueue [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 09 00 00 [15:58:55]Write to MH i2c: E2 08 00 AD 19 80 09 00 00 00 00 00 00 38 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 AD 19 00 90 00 3A [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_ClearQueue done [15:58:55]KKMCreateOFDPacket [15:58:55]OFDProtocolAddRootSTLVToBuf [15:58:55]FM_MakeSignedData [15:58:55]FM_MakeSignedData [15:58:55]SAM_PROTO_SignData [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 01 02 [15:58:55]Write to MH i2c: E2 08 00 AE 19 80 0D 01 02 00 00 00 00 40 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=255 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CD 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 ED 02 00 35 04 06 00 37 [15:58:55]Write to MH i2c: E2 02 01 AF 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CD 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 ED 02 00 35 04 06 00 37 00 00 AA [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=10 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 02 02 05 D7 7A 15 10 31 [15:58:55]Write to MH i2c: E2 0D 00 B0 19 80 0D 02 02 05 00 D7 7A 15 10 31 00 00 F4 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 03 00 B0 19 00 90 00 3D [15:58:55]RAPDU: 90 00 [15:58:55]wFMCommunicate OK [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 0D 03 02 [15:58:55]Write to MH i2c: E2 08 00 B1 19 80 0D 03 02 00 00 00 00 45 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0B 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0B 00 B1 19 00 45 EF 46 46 2A 3A 45 A7 90 00 56 [15:58:55]RAPDU: 45 EF 46 46 2A 3A 45 A7 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_SignData done [15:58:55]FM_MakeSignedData done [15:58:55]CreateOFDProtocolMessage [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 11 00 00 [15:58:55]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 17 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [15:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:58:55]wFMCommunicate OK [15:58:55]CreateOFDProtocolMessage done [15:58:55]OFDSenderStorePacket 191845 [15:58:55]StoreOFDPacket docnum=191845 [15:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 DD 07 01 15 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CD 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 ED 02 00 35 04 06 00 37 D7 7A 15 10 31 45 EF 46 46 2A 3A 45 A7 [15:58:55]CheckFolder [15:58:55]dirname=/storage/ofd_packets [15:58:55]CheckFolder done [15:58:55]ProducePacketName [15:58:55]name=ofd_packets/00191845 [15:58:55]NVStorageSaveData ofd_packets/00191845 [15:58:55]File name is /storage/ofd_packets/00191845 [15:58:55]Write 301 bytes [15:58:55]NVStorageSaveData done [15:58:55]OFDSenderStorePacket done [15:58:55]KKMCreateOFDPacket done [15:58:55]NVStorageSaveData kkm_last_timestamp [15:58:55]File name is /storage/kkm_last_timestamp [15:58:55]Write 4 bytes [15:58:55]NVStorageSaveData done [15:58:55]ExternCall_PrintAddStr [15:58:55]wPrintStart [15:58:55]Write to MH i2c: 01 00 00 B3 19 CC [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 07 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: 01 07 00 B3 19 00 00 00 00 00 FF 0F E1 [15:58:55]RasterBufferAndPrint [15:58:55]line Счет N : (1)31152 [15:58:55]line ИНН: 02508201610067 [15:58:55]line Контрольно-Кассовый Чек [15:58:55]line ПРОДАЖА [15:58:55]line ТРК (МРК, ГНК) : 12 [15:58:55]line Товар: 2710124130 [15:58:55]line Аи-92-К-5 [15:58:55]line 14.950 * 66.90 [15:58:55]line = 1000.16 [15:58:55]line НДС 12% НСП 1% [15:58:55]line > о реализуемом товаре [15:58:55]line ОКРУГЛЕНИЕ: -0.16 [15:58:55]line ИТОГО: 1000.00 [15:58:55]line Внесено: 1000.00 [15:58:55]line СДАЧА: 0.00 [15:58:55]line НСП 1% : 8.85 [15:58:55]line НДС 12% : 106.21 [15:58:55]line Наличными: 1000.00 [15:58:55]line Безнал.: 0.00 [15:58:55]line Место: АЗС № 170 "Партнер Нефть" [15:58:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [15:58:55]line СНО: Общий режим [15:58:55]line Чек 208 26.10.2024 15:59 [15:58:55]line Смена: 541 ФФД: 1.0 [15:58:55]line ЗНМ: 0300000110 [15:58:55]line РНМ: 0000000000091776 [15:58:55]line Версия ККМ: 001 [15:58:55]line ФМ: 0000000000871754 [15:58:55]line ФД: 191845 [15:58:55]line ФПД: 61398605697073 [15:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T155909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191845&fm=61398605697073&tin=02508201610067®Number=0000000000091776&sum=100000 [15:58:55]OFD Sender: Processing packet 191845 [packets to send 75, broken 74] [15:58:55]ProducePacketName [15:58:55]name=ofd_packets/00191845 [15:58:55]OFD Sender: To server: pG, [15:58:55]CommunicateWithHost lk.salyk.kg:30040 [15:58:55]ConnectInit lk.salyk.kg [15:58:55]written 0, free lines is 4095 [15:58:56]Connected sock=8 [15:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 DD 07 01 15 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 CD 11 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 ED 02 00 35 04 06 00 37 D7 7A 15 10 31 45 EF 46 46 2A 3A 45 A7 [15:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B5 DB 47 00 EA BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 65 ED 02 00 F4 03 04 00 97 B6 1C 67 B6 04 01 00 00 06 F6 7B EA 5A 31 39 67 [15:58:56]CommunicateWithHost err = 0 [15:58:56]CheckOFDResponse [15:58:56]1017 (14) - 77093643461234 [15:58:56]1041 (16) - 0000000000871754 [15:58:56]1040 (4) - 191845 [15:58:56]1012 (4) - 26.10.2024 09:29 [15:58:56]1206 (1) - 0 [15:58:56]OFD Sender: Remove packet 191845 [15:58:56]ProducePacketName [15:58:56]name=ofd_packets/00191845 [15:58:56]NVStorageDeleteData [15:58:56]Write to MH i2c: 01 00 00 DE 19 F7 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 C5 0C CF [15:58:56]RasterBufferAndPrint [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]line [15:58:56]written 0, free lines is 3276 [15:58:56]MH_Cut [15:58:56]Write to MH i2c: D1 01 00 E5 19 01 D0 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 01 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: D1 01 00 E5 19 00 CF [15:58:56]Write to MH i2c: 01 00 00 E6 19 FF [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]OFD Sender: No OFD packet to send [15:58:57]*** Cut start [15:58:57]*** Partial cut [15:58:57]*** CUTSNS_PIN = 1 [15:58:57]*** CUTSNS_PIN = 0 [15:58:57]*** Brake cut motor [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]*** Stop cut motor [15:58:57]*** Cut end [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [15:58:57]process_action close_receipt done [15:58:57]requested_data is exist [15:58:57]produce_requested_data [15:58:57]requested_item fm.sn is exist - process it [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 11 00 00 [15:58:57]Write to MH i2c: E2 08 00 E7 19 80 11 00 00 00 00 00 00 7A [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 E7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [15:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [15:58:57]wFMCommunicate OK [15:58:57]requested_item fd.num is exist - process it [15:58:57]SAM_PROTO_GetFieldsCounters [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 13 00 00 [15:58:57]Write to MH i2c: E2 08 00 E8 19 80 13 00 00 00 00 00 00 7D [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:58]Read from MH i2c: E2 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 62 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 62 00 E8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [15:58:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 65 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:58]wFMCommunicate OK [15:58:58]SAM_PROTO_GetFieldsCounters done [15:58:58]requested_item shift.num is exist - process it [15:58:58]requested_item shift.opened is exist - process it [15:58:58]req_shift_opened [15:58:58]FM_GetShiftState [15:58:58]SAM_PROTO_GetShiftState [15:58:58]wFMCommunicate request_size=4 [15:58:58]MH_SAM_APDU [15:58:58]CAPDU: 80 13 01 00 [15:58:58]Write to MH i2c: E2 08 00 E9 19 80 13 01 00 00 00 00 00 7F [15:58:58]Write i2c OK [15:58:58]MH_I2C_Read... [15:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:58]Read from MH i2c: E2 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 0E 00 [15:58:58]MH_I2C_Read... [15:58:58]Read from MH i2c: E2 0E 00 E9 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F8 [15:58:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [15:58:58]wFMCommunicate OK [15:58:58]SAM_PROTO_GetShiftState done [15:58:58]FM_GetShiftState done [15:58:58]req_shift_opened done [15:58:58]requested_item shift.open_date is exist - process it [15:58:58]req_shift_open_date [15:58:58]req_shift_open_date done [15:58:58]produce_requested_data done [15:58:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191845,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [15:58:58]process_action_free close_receipt [15:58:58]json_value_free [15:58:58]json_value_free done [15:58:58]process_json_proto returns [15:58:58]Send response to host [15:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191845,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [15:58:58]free response buf [15:58:58]execute_script done [15:58:58]execute_script returns [15:58:58]free content buf [15:58:58]Sock 5.Close socket [15:58:58]Sock 5.Thread stoped [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:17]accept exits with 6 [16:00:17]New connection [16:00:17]New thread 3066961252 created [16:00:17]Thread 3066817892 joined [16:00:17]Waiting for new connection... [16:00:17] Sock 6.Parse request [16:00:17]Sock 6.Check first char [16:00:17]Sock 6.First char is OK [16:00:17]request: POST /json_proto HTTP/1.0 [16:00:17]Method: POST [16:00:17]URL: /json_proto [16:00:17]Method is POST - this is cgi request [16:00:17]url: /json_proto [16:00:17]query_string will be loaded in cgi processing [16:00:17]execute_cgi json_proto POST (null) [16:00:17]execute_cgi path=json_proto method=POST [16:00:17]POST find Content-Length [16:00:17]Host: 172.17.63.131:8080 [16:00:17]Content-Length: 678 [16:00:17]Content-Type: application/json [16:00:17] [16:00:17]POST finish read [16:00:17]Found Content-Length = 678 [16:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31153", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:17]execute_script... [16:00:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31153", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:17]POST & json_proto [16:00:17]process_json_proto [16:00:17]json parsed OK: [16:00:17]protocol is kg_v1.0 [16:00:17]action value=close_receipt [16:00:17]process_action close_receipt [16:00:17]cmd_close_receipt [16:00:17]MH_GetDate [16:00:17]Write to MH i2c: F0 00 00 EA 19 F2 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: F0 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: F0 09 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: F0 09 00 EA 19 00 20 12 1D 67 22 05 6E 64 AA [16:00:17]GetLastDocTimeStamp 1729958349 [16:00:17]current date 1729958432 [16:00:17]FM_GetShiftState [16:00:17]SAM_PROTO_GetShiftState [16:00:17]wFMCommunicate request_size=4 [16:00:17]MH_SAM_APDU [16:00:17]CAPDU: 80 13 01 00 [16:00:17]Write to MH i2c: E2 08 00 EB 19 80 13 01 00 00 00 00 00 81 [16:00:17]Write i2c OK [16:00:17]MH_I2C_Read... [16:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:17]Read from MH i2c: E2 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 0E 00 [16:00:17]MH_I2C_Read... [16:00:17]Read from MH i2c: E2 0E 00 EB 19 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FA [16:00:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:00:17]wFMCommunicate OK [16:00:17]SAM_PROTO_GetShiftState done [16:00:17]FM_GetShiftState done [16:00:17]opened in 1729902770 [16:00:17]opened+sec_in_day 1729989170 [16:00:17]quantity*price = 160020 [16:00:17]sum+1 = 160021 [16:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 209 26.10.2024 16:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191846 ФПД: 106692271438997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191846&fm=106692271438997&tin=02508201610067®Number=0000000000091776&sum=160000 [16:00:18]StoreToDocumentArchive [16:00:18]shift 541 fd 191846 [16:00:18]save to /storage/0541/doc_00191846 [16:00:18]save last doc name /storage/0541/doc_00191846 to /storage/kkm_last_doc_name [16:00:18]save OK [16:00:18]Clear old archive folders... [16:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:18]tlvbuf is 0162FF50 [16:00:18]SAM_PROTO_ClearQueue [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 09 00 00 [16:00:18]Write to MH i2c: E2 08 00 F8 19 80 09 00 00 00 00 00 00 83 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [16:00:18]RAPDU: 90 00 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_ClearQueue done [16:00:18]KKMCreateOFDPacket [16:00:18]OFDProtocolAddRootSTLVToBuf [16:00:18]FM_MakeSignedData [16:00:18]FM_MakeSignedData [16:00:18]SAM_PROTO_SignData [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 0D 01 02 [16:00:18]Write to MH i2c: E2 08 00 F9 19 80 0D 01 02 00 00 00 00 8B [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [16:00:18]RAPDU: 90 00 [16:00:18]wFMCommunicate OK [16:00:18]wFMCommunicate request_size=255 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 20 12 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 ED 02 00 35 04 06 00 61 09 3A F0 [16:00:18]Write to MH i2c: E2 02 01 FA 19 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 20 12 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 ED 02 00 35 04 06 00 61 09 3A F0 00 00 54 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 FA 19 00 90 00 87 [16:00:18]RAPDU: 90 00 [16:00:18]wFMCommunicate OK [16:00:18]wFMCommunicate request_size=7 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 0D 02 02 02 7C 95 [16:00:18]Write to MH i2c: E2 0A 00 FB 19 80 0D 02 02 02 00 7C 95 00 00 A3 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 03 00 FB 19 00 90 00 88 [16:00:18]RAPDU: 90 00 [16:00:18]wFMCommunicate OK [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 0D 03 02 [16:00:18]Write to MH i2c: E2 08 00 FC 19 80 0D 03 02 00 00 00 00 90 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0B 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 0B 00 FC 19 00 4B 44 48 82 71 F5 4E 4A 90 00 E8 [16:00:18]RAPDU: 4B 44 48 82 71 F5 4E 4A 90 00 [16:00:18]wFMCommunicate OK [16:00:18]SAM_PROTO_SignData done [16:00:18]FM_MakeSignedData done [16:00:18]CreateOFDProtocolMessage [16:00:18]wFMCommunicate request_size=4 [16:00:18]MH_SAM_APDU [16:00:18]CAPDU: 80 11 00 00 [16:00:18]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:18]Read from MH i2c: E2 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [16:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:18]wFMCommunicate OK [16:00:18]CreateOFDProtocolMessage done [16:00:18]OFDSenderStorePacket 191846 [16:00:18]StoreOFDPacket docnum=191846 [16:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DE 6E 04 01 25 DF 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 20 12 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 ED 02 00 35 04 06 00 61 09 3A F0 7C 95 4B 44 48 82 71 F5 4E 4A [16:00:18]CheckFolder [16:00:18]dirname=/storage/ofd_packets [16:00:18]CheckFolder done [16:00:18]ProducePacketName [16:00:18]name=ofd_packets/00191846 [16:00:18]NVStorageSaveData ofd_packets/00191846 [16:00:18]File name is /storage/ofd_packets/00191846 [16:00:18]Write 298 bytes [16:00:18]NVStorageSaveData done [16:00:18]OFDSenderStorePacket done [16:00:18]KKMCreateOFDPacket done [16:00:18]NVStorageSaveData kkm_last_timestamp [16:00:18]File name is /storage/kkm_last_timestamp [16:00:18]Write 4 bytes [16:00:18]NVStorageSaveData done [16:00:18]ExternCall_PrintAddStr [16:00:18]wPrintStart [16:00:18]Write to MH i2c: 01 00 00 FE 19 17 [16:00:18]Write i2c OK [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 [16:00:18]MH_I2C_Read... [16:00:18]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [16:00:18]RasterBufferAndPrint [16:00:18]line Счет N : (1)31153 [16:00:18]line ИНН: 02508201610067 [16:00:18]line Контрольно-Кассовый Чек [16:00:18]line ПРОДАЖА [16:00:18]line ТРК (МРК, ГНК) : 22 [16:00:18]line Товар: 2710194210 [16:00:18]line ДТ-К-5 [16:00:18]line 21.000 * 76.20 [16:00:18]line = 1600.20 [16:00:18]line НДС 12% НСП 1% [16:00:18]line > о реализуемом товаре [16:00:18]line ОКРУГЛЕНИЕ: -0.20 [16:00:18]line ИТОГО: 1600.00 [16:00:18]line Внесено: 1600.00 [16:00:18]line СДАЧА: 0.00 [16:00:18]line НСП 1% : 14.16 [16:00:18]line НДС 12% : 169.93 [16:00:18]line Наличными: 1600.00 [16:00:18]line Безнал.: 0.00 [16:00:18]line Место: АЗС № 170 "Партнер Нефть" [16:00:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:00:18]line СНО: Общий режим [16:00:18]line Чек 209 26.10.2024 16:00 [16:00:18]line Смена: 541 ФФД: 1.0 [16:00:18]line ЗНМ: 0300000110 [16:00:18]line РНМ: 0000000000091776 [16:00:18]line Версия ККМ: 001 [16:00:18]line ФМ: 0000000000871754 [16:00:18]line ФД: 191846 [16:00:19]line ФПД: 106692271438997 [16:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191846&fm=106692271438997&tin=02508201610067®Number=0000000000091776&sum=160000 [16:00:19]OFD Sender: Processing packet 191846 [packets to send 75, broken 74] [16:00:19]ProducePacketName [16:00:19]name=ofd_packets/00191846 [16:00:19]OFD Sender: To server: pG, [16:00:19]CommunicateWithHost lk.salyk.kg:30040 [16:00:19]ConnectInit lk.salyk.kg [16:00:19]written 0, free lines is 4095 [16:00:19]Connected sock=8 [16:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DE 6E 04 01 25 DF 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 20 12 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 ED 02 00 35 04 06 00 61 09 3A F0 7C 95 4B 44 48 82 71 F5 4E 4A [16:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 75 AF 47 00 64 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 66 ED 02 00 F4 03 04 00 EB B6 1C 67 B6 04 01 00 00 EC 6B CE 18 F9 44 9A 8E [16:00:19]CommunicateWithHost err = 0 [16:00:19]CheckOFDResponse [16:00:19]1017 (14) - 77093643461234 [16:00:19]1041 (16) - 0000000000871754 [16:00:19]1040 (4) - 191846 [16:00:19]1012 (4) - 26.10.2024 09:31 [16:00:19]1206 (1) - 0 [16:00:19]OFD Sender: Remove packet 191846 [16:00:19]ProducePacketName [16:00:19]name=ofd_packets/00191846 [16:00:19]NVStorageDeleteData [16:00:19]Write to MH i2c: 01 00 00 29 1A 43 [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: 01 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: 01 07 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: 01 07 00 29 1A 00 00 00 00 00 BF 0C 15 [16:00:19]RasterBufferAndPrint [16:00:19]line [16:00:19]line [16:00:19]line [16:00:19]line [16:00:19]line [16:00:19]written 0, free lines is 3269 [16:00:19]MH_Cut [16:00:19]Write to MH i2c: D1 01 00 30 1A 01 1C [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: D1 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: D1 01 00 [16:00:19]MH_I2C_Read... [16:00:19]Read from MH i2c: D1 01 00 30 1A 00 1B [16:00:19]Write to MH i2c: 01 00 00 31 1A 4B [16:00:19]Write i2c OK [16:00:19]MH_I2C_Read... [16:00:20]OFD Sender: No OFD packet to send [16:00:20]*** Cut start [16:00:20]*** Partial cut [16:00:20]*** CUTSNS_PIN = 1 [16:00:20]*** CUTSNS_PIN = 0 [16:00:20]*** Brake cut motor [16:00:21]Read from MH i2c: 01 [16:00:21]MH_I2C_Read... [16:00:21]*** Stop cut motor [16:00:21]*** Cut end [16:00:21]Read from MH i2c: 01 07 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [16:00:21]process_action close_receipt done [16:00:21]requested_data is exist [16:00:21]produce_requested_data [16:00:21]requested_item fm.sn is exist - process it [16:00:21]wFMCommunicate request_size=4 [16:00:21]MH_SAM_APDU [16:00:21]CAPDU: 80 11 00 00 [16:00:21]Write to MH i2c: E2 08 00 32 1A 80 11 00 00 00 00 00 00 C6 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:21]Read from MH i2c: E2 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 17 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 17 00 32 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [16:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:00:21]wFMCommunicate OK [16:00:21]requested_item fd.num is exist - process it [16:00:21]SAM_PROTO_GetFieldsCounters [16:00:21]wFMCommunicate request_size=4 [16:00:21]MH_SAM_APDU [16:00:21]CAPDU: 80 13 00 00 [16:00:21]Write to MH i2c: E2 08 00 33 1A 80 13 00 00 00 00 00 00 C9 [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:21]Read from MH i2c: E2 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 62 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 62 00 33 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:00:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 66 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:21]wFMCommunicate OK [16:00:21]SAM_PROTO_GetFieldsCounters done [16:00:21]requested_item shift.num is exist - process it [16:00:21]requested_item shift.opened is exist - process it [16:00:21]req_shift_opened [16:00:21]FM_GetShiftState [16:00:21]SAM_PROTO_GetShiftState [16:00:21]wFMCommunicate request_size=4 [16:00:21]MH_SAM_APDU [16:00:21]CAPDU: 80 13 01 00 [16:00:21]Write to MH i2c: E2 08 00 34 1A 80 13 01 00 00 00 00 00 CB [16:00:21]Write i2c OK [16:00:21]MH_I2C_Read... [16:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:21]Read from MH i2c: E2 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 0E 00 [16:00:21]MH_I2C_Read... [16:00:21]Read from MH i2c: E2 0E 00 34 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 44 [16:00:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:00:21]wFMCommunicate OK [16:00:21]SAM_PROTO_GetShiftState done [16:00:21]FM_GetShiftState done [16:00:21]req_shift_opened done [16:00:21]requested_item shift.open_date is exist - process it [16:00:21]req_shift_open_date [16:00:21]req_shift_open_date done [16:00:21]produce_requested_data done [16:00:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191846,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:00:21]process_action_free close_receipt [16:00:21]json_value_free [16:00:21]json_value_free done [16:00:21]process_json_proto returns [16:00:21]Send response to host [16:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191846,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:00:21]free response buf [16:00:21]execute_script done [16:00:21]execute_script returns [16:00:21]free content buf [16:00:21]Sock 6.Close socket [16:00:21]Sock 6.Thread stoped [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:00]OFD Sender: No OFD packet to send [16:02:05]OFD Sender: No OFD packet to send [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:32]accept exits with 5 [16:05:32]New connection [16:05:32]New thread 3066817892 created [16:05:32]Thread 3066961252 joined [16:05:32]Waiting for new connection... [16:05:32] Sock 5.Parse request [16:05:32]Sock 5.Check first char [16:05:32]Sock 5.First char is OK [16:05:32]request: POST /json_proto HTTP/1.0 [16:05:32]Method: POST [16:05:32]URL: /json_proto [16:05:32]Method is POST - this is cgi request [16:05:32]url: /json_proto [16:05:32]query_string will be loaded in cgi processing [16:05:32]execute_cgi json_proto POST (null) [16:05:32]execute_cgi path=json_proto method=POST [16:05:32]POST find Content-Length [16:05:32]Host: 172.17.63.131:8080 [16:05:32]Content-Length: 676 [16:05:32]Content-Type: application/json [16:05:32] [16:05:32]POST finish read [16:05:32]Found Content-Length = 676 [16:05:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:32]execute_script... [16:05: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)31154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:32]POST & json_proto [16:05:32]process_json_proto [16:05:32]json parsed OK: [16:05:32]protocol is kg_v1.0 [16:05:32]action value=close_receipt [16:05:32]process_action close_receipt [16:05:32]cmd_close_receipt [16:05:32]MH_GetDate [16:05:32]Write to MH i2c: F0 00 00 35 1A 3E [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 09 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: F0 09 00 35 1A 00 5C 13 1D 67 22 05 6E 64 33 [16:05:32]GetLastDocTimeStamp 1729958432 [16:05:32]current date 1729958748 [16:05:32]FM_GetShiftState [16:05:32]SAM_PROTO_GetShiftState [16:05:32]wFMCommunicate request_size=4 [16:05:32]MH_SAM_APDU [16:05:32]CAPDU: 80 13 01 00 [16:05:32]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [16:05:32]Write i2c OK [16:05:32]MH_I2C_Read... [16:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:32]Read from MH i2c: E2 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 0E 00 [16:05:32]MH_I2C_Read... [16:05:32]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 46 [16:05:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:05:32]wFMCommunicate OK [16:05:32]SAM_PROTO_GetShiftState done [16:05:32]FM_GetShiftState done [16:05:32]opened in 1729902770 [16:05:32]opened+sec_in_day 1729989170 [16:05:32]quantity*price = 28031 [16:05:32]sum+1 = 28032 [16:05:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 210 26.10.2024 16:05 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191847 ФПД: 196150942559762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191847&fm=196150942559762&tin=02508201610067®Number=0000000000091776&sum=28000 [16:05:33]StoreToDocumentArchive [16:05:33]shift 541 fd 191847 [16:05:33]save to /storage/0541/doc_00191847 [16:05:33]save last doc name /storage/0541/doc_00191847 to /storage/kkm_last_doc_name [16:05:33]save OK [16:05:33]Clear old archive folders... [16:05:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:33]tlvbuf is 01A93EF0 [16:05:33]SAM_PROTO_ClearQueue [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 09 00 00 [16:05:33]Write to MH i2c: E2 08 00 43 1A 80 09 00 00 00 00 00 00 CF [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]SAM_PROTO_ClearQueue done [16:05:33]KKMCreateOFDPacket [16:05:33]OFDProtocolAddRootSTLVToBuf [16:05:33]FM_MakeSignedData [16:05:33]FM_MakeSignedData [16:05:33]SAM_PROTO_SignData [16:05:33]wFMCommunicate request_size=4 [16:05:33]MH_SAM_APDU [16:05:33]CAPDU: 80 0D 01 02 [16:05:33]Write to MH i2c: E2 08 00 44 1A 80 0D 01 02 00 00 00 00 D7 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:33]Read from MH i2c: E2 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 [16:05:33]MH_I2C_Read... [16:05:33]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [16:05:33]RAPDU: 90 00 [16:05:33]wFMCommunicate OK [16:05:33]wFMCommunicate request_size=255 [16:05:33]MH_SAM_APDU [16:05: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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 13 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 ED 02 00 35 04 06 00 B2 [16:05:33]Write to MH i2c: E2 02 01 45 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 13 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 ED 02 00 35 04 06 00 B2 00 00 A6 [16:05:33]Write i2c OK [16:05:33]MH_I2C_Read... [16:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:34]Read from MH i2c: E2 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 03 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [16:05:34]RAPDU: 90 00 [16:05:34]wFMCommunicate OK [16:05:34]wFMCommunicate request_size=10 [16:05:34]MH_SAM_APDU [16:05:34]CAPDU: 80 0D 02 02 05 65 F3 40 EE 12 [16:05:34]Write to MH i2c: E2 0D 00 46 1A 80 0D 02 02 05 00 65 F3 40 EE 12 00 00 7C [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:34]Read from MH i2c: E2 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 03 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [16:05:34]RAPDU: 90 00 [16:05:34]wFMCommunicate OK [16:05:34]wFMCommunicate request_size=4 [16:05:34]MH_SAM_APDU [16:05:34]CAPDU: 80 0D 03 02 [16:05:34]Write to MH i2c: E2 08 00 47 1A 80 0D 03 02 00 00 00 00 DC [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:34]Read from MH i2c: E2 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 0B 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 0B 00 47 1A 00 D5 FF 73 92 86 33 E1 96 90 00 E6 [16:05:34]RAPDU: D5 FF 73 92 86 33 E1 96 90 00 [16:05:34]wFMCommunicate OK [16:05:34]SAM_PROTO_SignData done [16:05:34]FM_MakeSignedData done [16:05:34]CreateOFDProtocolMessage [16:05:34]wFMCommunicate request_size=4 [16:05:34]MH_SAM_APDU [16:05:34]CAPDU: 80 11 00 00 [16:05:34]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:34]Read from MH i2c: E2 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 17 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2F [16:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:05:34]wFMCommunicate OK [16:05:34]CreateOFDProtocolMessage done [16:05:34]OFDSenderStorePacket 191847 [16:05:34]StoreOFDPacket docnum=191847 [16:05:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 DD 07 01 78 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 13 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 ED 02 00 35 04 06 00 B2 65 F3 40 EE 12 D5 FF 73 92 86 33 E1 96 [16:05:34]CheckFolder [16:05:34]dirname=/storage/ofd_packets [16:05:34]CheckFolder done [16:05:34]ProducePacketName [16:05:34]name=ofd_packets/00191847 [16:05:34]NVStorageSaveData ofd_packets/00191847 [16:05:34]File name is /storage/ofd_packets/00191847 [16:05:34]Write 301 bytes [16:05:34]NVStorageSaveData done [16:05:34]OFDSenderStorePacket done [16:05:34]KKMCreateOFDPacket done [16:05:34]NVStorageSaveData kkm_last_timestamp [16:05:34]File name is /storage/kkm_last_timestamp [16:05:34]Write 4 bytes [16:05:34]NVStorageSaveData done [16:05:34]ExternCall_PrintAddStr [16:05:34]wPrintStart [16:05:34]Write to MH i2c: 01 00 00 49 1A 63 [16:05:34]OFD Sender: Processing packet 191847 [packets to send 75, broken 74] [16:05:34]ProducePacketName [16:05:34]name=ofd_packets/00191847 [16:05:34]OFD Sender: To server: pG, [16:05:34]CommunicateWithHost lk.salyk.kg:30040 [16:05:34]ConnectInit lk.salyk.kg [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [16:05:34]RasterBufferAndPrint [16:05:34]line Счет N : (1)31154 [16:05:34]line ИНН: 02508201610067 [16:05:34]line Контрольно-Кассовый Чек [16:05:34]line ПРОДАЖА [16:05:34]line ТРК (МРК, ГНК) : 21 [16:05:34]line Товар: 2710124130 [16:05:34]line Аи-92-К-5 [16:05:34]line 4.190 * 66.90 [16:05:34]line = 280.31 [16:05:34]line НДС 12% НСП 1% [16:05:34]line > о реализуемом товаре [16:05:34]line ОКРУГЛЕНИЕ: -0.31 [16:05:34]line ИТОГО: 280.00 [16:05:34]line Внесено: 280.00 [16:05:34]line СДАЧА: 0.00 [16:05:34]line НСП 1% : 2.48 [16:05:34]line НДС 12% : 29.77 [16:05:34]line Наличными: 280.00 [16:05:34]line Безнал.: 0.00 [16:05:34]line Место: АЗС № 170 "Партнер Нефть" [16:05:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:05:34]line СНО: Общий режим [16:05:34]line Чек 210 26.10.2024 16:05 [16:05:34]line Смена: 541 ФФД: 1.0 [16:05:34]line ЗНМ: 0300000110 [16:05:34]line РНМ: 0000000000091776 [16:05:34]line Версия ККМ: 001 [16:05:34]line ФМ: 0000000000871754 [16:05:34]line ФД: 191847 [16:05:34]line ФПД: 196150942559762 [16:05:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160548&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191847&fm=196150942559762&tin=02508201610067®Number=0000000000091776&sum=28000 [16:05:34]written 0, free lines is 4095 [16:05:34]Connected sock=8 [16:05:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 98 DD 07 01 78 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 13 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 ED 02 00 35 04 06 00 B2 65 F3 40 EE 12 D5 FF 73 92 86 33 E1 96 [16:05:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D0 88 47 00 D8 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 67 ED 02 00 F4 03 04 00 26 B8 1C 67 B6 04 01 00 00 04 89 79 94 AE D9 19 8E [16:05:34]CommunicateWithHost err = 0 [16:05:34]CheckOFDResponse [16:05:34]1017 (14) - 77093643461234 [16:05:34]1041 (16) - 0000000000871754 [16:05:34]1040 (4) - 191847 [16:05:34]1012 (4) - 26.10.2024 09:36 [16:05:34]1206 (1) - 0 [16:05:34]OFD Sender: Remove packet 191847 [16:05:34]ProducePacketName [16:05:34]name=ofd_packets/00191847 [16:05:34]NVStorageDeleteData [16:05:34]Write to MH i2c: 01 00 00 74 1A 8E [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 C2 0C 63 [16:05:34]RasterBufferAndPrint [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]line [16:05:34]written 0, free lines is 3274 [16:05:34]MH_Cut [16:05:34]Write to MH i2c: D1 01 00 7B 1A 01 67 [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 01 00 [16:05:34]MH_I2C_Read... [16:05:34]Read from MH i2c: D1 01 00 7B 1A 00 66 [16:05:34]Write to MH i2c: 01 00 00 7C 1A 96 [16:05:34]Write i2c OK [16:05:34]MH_I2C_Read... [16:05:35]OFD Sender: No OFD packet to send [16:05:35]*** Cut start [16:05:35]*** Partial cut [16:05:35]*** CUTSNS_PIN = 1 [16:05:35]*** CUTSNS_PIN = 0 [16:05:36]*** Brake cut motor [16:05:36]Read from MH i2c: 01 [16:05:36]MH_I2C_Read... [16:05:36]*** Stop cut motor [16:05:36]*** Cut end [16:05:36]Read from MH i2c: 01 07 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 FF 0F AB [16:05:36]process_action close_receipt done [16:05:36]requested_data is exist [16:05:36]produce_requested_data [16:05:36]requested_item fm.sn is exist - process it [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 11 00 00 [16:05:36]Write to MH i2c: E2 08 00 7D 1A 80 11 00 00 00 00 00 00 11 [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 17 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 17 00 7D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [16:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:05:36]wFMCommunicate OK [16:05:36]requested_item fd.num is exist - process it [16:05:36]SAM_PROTO_GetFieldsCounters [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 13 00 00 [16:05:36]Write to MH i2c: E2 08 00 7E 1A 80 13 00 00 00 00 00 00 14 [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 62 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 62 00 7E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:05:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 67 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:36]wFMCommunicate OK [16:05:36]SAM_PROTO_GetFieldsCounters done [16:05:36]requested_item shift.num is exist - process it [16:05:36]requested_item shift.opened is exist - process it [16:05:36]req_shift_opened [16:05:36]FM_GetShiftState [16:05:36]SAM_PROTO_GetShiftState [16:05:36]wFMCommunicate request_size=4 [16:05:36]MH_SAM_APDU [16:05:36]CAPDU: 80 13 01 00 [16:05:36]Write to MH i2c: E2 08 00 7F 1A 80 13 01 00 00 00 00 00 16 [16:05:36]Write i2c OK [16:05:36]MH_I2C_Read... [16:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:36]Read from MH i2c: E2 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 0E 00 [16:05:36]MH_I2C_Read... [16:05:36]Read from MH i2c: E2 0E 00 7F 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8F [16:05:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:05:36]wFMCommunicate OK [16:05:36]SAM_PROTO_GetShiftState done [16:05:36]FM_GetShiftState done [16:05:36]req_shift_opened done [16:05:36]requested_item shift.open_date is exist - process it [16:05:36]req_shift_open_date [16:05:36]req_shift_open_date done [16:05:36]produce_requested_data done [16:05:36]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191847,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:05:36]process_action_free close_receipt [16:05:36]json_value_free [16:05:36]json_value_free done [16:05:36]process_json_proto returns [16:05:36]Send response to host [16:05:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191847,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:05:36]free response buf [16:05:36]execute_script done [16:05:36]execute_script returns [16:05:36]free content buf [16:05:36]Sock 5.Close socket [16:05:36]Sock 5.Thread stoped [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:37]accept exits with 6 [16:08:37]New connection [16:08:37]New thread 3066961252 created [16:08:37]Thread 3066817892 joined [16:08:37]Waiting for new connection... [16:08:37] Sock 6.Parse request [16:08:37]Sock 6.Check first char [16:08:37]Sock 6.First char is OK [16:08:37]request: POST /json_proto HTTP/1.0 [16:08:37]Method: POST [16:08:37]URL: /json_proto [16:08:37]Method is POST - this is cgi request [16:08:37]url: /json_proto [16:08:37]query_string will be loaded in cgi processing [16:08:37]execute_cgi json_proto POST (null) [16:08:37]execute_cgi path=json_proto method=POST [16:08:37]POST find Content-Length [16:08:37]Host: 172.17.63.131:8080 [16:08:37]Content-Length: 676 [16:08:37]Content-Type: application/json [16:08:37] [16:08:37]POST finish read [16:08:37]Found Content-Length = 676 [16:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:37]execute_script... [16:08: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)31156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:37]POST & json_proto [16:08:37]process_json_proto [16:08:37]json parsed OK: [16:08:37]protocol is kg_v1.0 [16:08:37]action value=close_receipt [16:08:37]process_action close_receipt [16:08:37]cmd_close_receipt [16:08:37]MH_GetDate [16:08:37]Write to MH i2c: F0 00 00 80 1A 89 [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: F0 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: F0 09 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: F0 09 00 80 1A 00 15 14 1D 67 22 05 6E 64 38 [16:08:37]GetLastDocTimeStamp 1729958748 [16:08:37]current date 1729958933 [16:08:37]FM_GetShiftState [16:08:37]SAM_PROTO_GetShiftState [16:08:37]wFMCommunicate request_size=4 [16:08:37]MH_SAM_APDU [16:08:37]CAPDU: 80 13 01 00 [16:08:37]Write to MH i2c: E2 08 00 81 1A 80 13 01 00 00 00 00 00 18 [16:08:37]Write i2c OK [16:08:37]MH_I2C_Read... [16:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:37]Read from MH i2c: E2 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 0E 00 [16:08:37]MH_I2C_Read... [16:08:37]Read from MH i2c: E2 0E 00 81 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 91 [16:08:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:08:37]wFMCommunicate OK [16:08:37]SAM_PROTO_GetShiftState done [16:08:37]FM_GetShiftState done [16:08:37]opened in 1729902770 [16:08:37]opened+sec_in_day 1729989170 [16:08:37]quantity*price = 30038 [16:08:37]sum+1 = 30039 [16:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 211 26.10.2024 16:08 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191848 ФПД: 64772524352935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191848&fm=64772524352935&tin=02508201610067®Number=0000000000091776&sum=30000 [16:08:38]StoreToDocumentArchive [16:08:38]shift 541 fd 191848 [16:08:38]save to /storage/0541/doc_00191848 [16:08:38]save last doc name /storage/0541/doc_00191848 to /storage/kkm_last_doc_name [16:08:38]save OK [16:08:38]Clear old archive folders... [16:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:38]tlvbuf is 01A76210 [16:08:38]SAM_PROTO_ClearQueue [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 09 00 00 [16:08:38]Write to MH i2c: E2 08 00 8E 1A 80 09 00 00 00 00 00 00 1A [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 03 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [16:08:38]RAPDU: 90 00 [16:08:38]wFMCommunicate OK [16:08:38]SAM_PROTO_ClearQueue done [16:08:38]KKMCreateOFDPacket [16:08:38]OFDProtocolAddRootSTLVToBuf [16:08:38]FM_MakeSignedData [16:08:38]FM_MakeSignedData [16:08:38]SAM_PROTO_SignData [16:08:38]wFMCommunicate request_size=4 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 0D 01 02 [16:08:38]Write to MH i2c: E2 08 00 8F 1A 80 0D 01 02 00 00 00 00 22 [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:38]Read from MH i2c: E2 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 03 00 [16:08:38]MH_I2C_Read... [16:08:38]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [16:08:38]RAPDU: 90 00 [16:08:38]wFMCommunicate OK [16:08:38]wFMCommunicate request_size=255 [16:08:38]MH_SAM_APDU [16:08:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 15 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 ED 02 00 35 04 06 00 3A [16:08:38]Write to MH i2c: E2 02 01 90 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 15 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 ED 02 00 35 04 06 00 3A 00 00 DA [16:08:38]Write i2c OK [16:08:38]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=10 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 02 02 05 E9 07 4E 25 A7 [16:08:39]Write to MH i2c: E2 0D 00 91 1A 80 0D 02 02 05 00 E9 07 4E 25 A7 00 00 39 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 03 00 91 1A 00 90 00 1F [16:08:39]RAPDU: 90 00 [16:08:39]wFMCommunicate OK [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 0D 03 02 [16:08:39]Write to MH i2c: E2 08 00 92 1A 80 0D 03 02 00 00 00 00 27 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 0B 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 0B 00 92 1A 00 43 A2 7F D9 5B 99 2B BF 90 00 43 [16:08:39]RAPDU: 43 A2 7F D9 5B 99 2B BF 90 00 [16:08:39]wFMCommunicate OK [16:08:39]SAM_PROTO_SignData done [16:08:39]FM_MakeSignedData done [16:08:39]CreateOFDProtocolMessage [16:08:39]wFMCommunicate request_size=4 [16:08:39]MH_SAM_APDU [16:08:39]CAPDU: 80 11 00 00 [16:08:39]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:39]Read from MH i2c: E2 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 17 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7A [16:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:08:39]wFMCommunicate OK [16:08:39]CreateOFDProtocolMessage done [16:08:39]OFDSenderStorePacket 191848 [16:08:39]StoreOFDPacket docnum=191848 [16:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 12 07 01 F1 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 15 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 ED 02 00 35 04 06 00 3A E9 07 4E 25 A7 43 A2 7F D9 5B 99 2B BF [16:08:39]CheckFolder [16:08:39]dirname=/storage/ofd_packets [16:08:39]CheckFolder done [16:08:39]ProducePacketName [16:08:39]name=ofd_packets/00191848 [16:08:39]NVStorageSaveData ofd_packets/00191848 [16:08:39]File name is /storage/ofd_packets/00191848 [16:08:39]Write 301 bytes [16:08:39]NVStorageSaveData done [16:08:39]OFDSenderStorePacket done [16:08:39]KKMCreateOFDPacket done [16:08:39]NVStorageSaveData kkm_last_timestamp [16:08:39]File name is /storage/kkm_last_timestamp [16:08:39]Write 4 bytes [16:08:39]NVStorageSaveData done [16:08:39]ExternCall_PrintAddStr [16:08:39]wPrintStart [16:08:39]Write to MH i2c: 01 00 00 94 1A AE [16:08:39]Write i2c OK [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 07 00 [16:08:39]MH_I2C_Read... [16:08:39]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [16:08:39]RasterBufferAndPrint [16:08:39]line Счет N : (1)31156 [16:08:39]line ИНН: 02508201610067 [16:08:39]line Контрольно-Кассовый Чек [16:08:39]line ПРОДАЖА [16:08:39]line ТРК (МРК, ГНК) : 21 [16:08:39]line Товар: 2710124130 [16:08:39]line Аи-92-К-5 [16:08:39]line 4.490 * 66.90 [16:08:39]line = 300.38 [16:08:39]line НДС 12% НСП 1% [16:08:39]line > о реализуемом товаре [16:08:39]line ОКРУГЛЕНИЕ: -0.38 [16:08:39]line ИТОГО: 300.00 [16:08:39]line Внесено: 300.00 [16:08:39]line СДАЧА: 0.00 [16:08:39]line НСП 1% : 2.66 [16:08:39]line НДС 12% : 31.90 [16:08:39]line Наличными: 300.00 [16:08:39]line Безнал.: 0.00 [16:08:39]line Место: АЗС № 170 "Партнер Нефть" [16:08:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:08:39]line СНО: Общий режим [16:08:39]line Чек 211 26.10.2024 16:08 [16:08:39]line Смена: 541 ФФД: 1.0 [16:08:39]line ЗНМ: 0300000110 [16:08:39]line РНМ: 0000000000091776 [16:08:39]line Версия ККМ: 001 [16:08:39]line ФМ: 0000000000871754 [16:08:39]line ФД: 191848 [16:08:39]line ФПД: 64772524352935 [16:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160853&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191848&fm=64772524352935&tin=02508201610067®Number=0000000000091776&sum=30000 [16:08:39]OFD Sender: Processing packet 191848 [packets to send 75, broken 74] [16:08:39]ProducePacketName [16:08:39]name=ofd_packets/00191848 [16:08:39]OFD Sender: To server: pG, [16:08:39]CommunicateWithHost lk.salyk.kg:30040 [16:08:39]ConnectInit lk.salyk.kg [16:08:39]written 0, free lines is 4095 [16:08:39]Connected sock=8 [16:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 26 12 07 01 F1 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 15 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 ED 02 00 35 04 06 00 3A E9 07 4E 25 A7 43 A2 7F D9 5B 99 2B BF [16:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 8D 47 00 39 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 68 ED 02 00 F4 03 04 00 DF B8 1C 67 B6 04 01 00 00 56 C7 61 1B 12 47 6D D7 [16:08:40]CommunicateWithHost err = 0 [16:08:40]CheckOFDResponse [16:08:40]1017 (14) - 77093643461234 [16:08:40]1041 (16) - 0000000000871754 [16:08:40]1040 (4) - 191848 [16:08:40]1012 (4) - 26.10.2024 09:39 [16:08:40]1206 (1) - 0 [16:08:40]OFD Sender: Remove packet 191848 [16:08:40]ProducePacketName [16:08:40]name=ofd_packets/00191848 [16:08:40]NVStorageDeleteData [16:08:40]Write to MH i2c: 01 00 00 BF 1A D9 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: 01 07 00 BF 1A 00 00 00 00 00 C0 0C AC [16:08:40]RasterBufferAndPrint [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]line [16:08:40]written 0, free lines is 3273 [16:08:40]MH_Cut [16:08:40]Write to MH i2c: D1 01 00 C6 1A 01 B2 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 01 00 [16:08:40]MH_I2C_Read... [16:08:40]Read from MH i2c: D1 01 00 C6 1A 00 B1 [16:08:40]Write to MH i2c: 01 00 00 C7 1A E1 [16:08:40]Write i2c OK [16:08:40]MH_I2C_Read... [16:08:40]OFD Sender: No OFD packet to send [16:08:41]*** Cut start [16:08:41]*** Partial cut [16:08:41]*** CUTSNS_PIN = 1 [16:08:41]*** CUTSNS_PIN = 0 [16:08:41]*** Brake cut motor [16:08:41]Read from MH i2c: 01 [16:08:41]MH_I2C_Read... [16:08:41]*** Stop cut motor [16:08:41]*** Cut end [16:08:41]Read from MH i2c: 01 07 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 FF 0F F6 [16:08:41]process_action close_receipt done [16:08:41]requested_data is exist [16:08:41]produce_requested_data [16:08:41]requested_item fm.sn is exist - process it [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 11 00 00 [16:08:41]Write to MH i2c: E2 08 00 C8 1A 80 11 00 00 00 00 00 00 5C [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 17 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 17 00 C8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [16:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:08:41]wFMCommunicate OK [16:08:41]requested_item fd.num is exist - process it [16:08:41]SAM_PROTO_GetFieldsCounters [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 13 00 00 [16:08:41]Write to MH i2c: E2 08 00 C9 1A 80 13 00 00 00 00 00 00 5F [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 62 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 62 00 C9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [16:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 68 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:41]wFMCommunicate OK [16:08:41]SAM_PROTO_GetFieldsCounters done [16:08:41]requested_item shift.num is exist - process it [16:08:41]requested_item shift.opened is exist - process it [16:08:41]req_shift_opened [16:08:41]FM_GetShiftState [16:08:41]SAM_PROTO_GetShiftState [16:08:41]wFMCommunicate request_size=4 [16:08:41]MH_SAM_APDU [16:08:41]CAPDU: 80 13 01 00 [16:08:41]Write to MH i2c: E2 08 00 CA 1A 80 13 01 00 00 00 00 00 61 [16:08:41]Write i2c OK [16:08:41]MH_I2C_Read... [16:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:41]Read from MH i2c: E2 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 0E 00 [16:08:41]MH_I2C_Read... [16:08:41]Read from MH i2c: E2 0E 00 CA 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DA [16:08:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:08:41]wFMCommunicate OK [16:08:41]SAM_PROTO_GetShiftState done [16:08:41]FM_GetShiftState done [16:08:41]req_shift_opened done [16:08:41]requested_item shift.open_date is exist - process it [16:08:41]req_shift_open_date [16:08:41]req_shift_open_date done [16:08:41]produce_requested_data done [16:08:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191848,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:08:41]process_action_free close_receipt [16:08:41]json_value_free [16:08:41]json_value_free done [16:08:41]process_json_proto returns [16:08:41]Send response to host [16:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191848,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:08:41]free response buf [16:08:41]execute_script done [16:08:41]execute_script returns [16:08:41]free content buf [16:08:41]Sock 6.Close socket [16:08:41]Sock 6.Thread stoped [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:02]accept exits with 5 [16:09:02]New connection [16:09:02]New thread 3066817892 created [16:09:02]Thread 3066961252 joined [16:09:02]Waiting for new connection... [16:09:02] Sock 5.Parse request [16:09:02]Sock 5.Check first char [16:09:02]Sock 5.First char is OK [16:09:02]request: POST /json_proto HTTP/1.0 [16:09:02]Method: POST [16:09:02]URL: /json_proto [16:09:02]Method is POST - this is cgi request [16:09:02]url: /json_proto [16:09:02]query_string will be loaded in cgi processing [16:09:02]execute_cgi json_proto POST (null) [16:09:02]execute_cgi path=json_proto method=POST [16:09:02]POST find Content-Length [16:09:02]Host: 172.17.63.131:8080 [16:09:02]Content-Length: 865 [16:09:02]Content-Type: application/json [16:09:02] [16:09:02]POST finish read [16:09:02]Found Content-Length = 865 [16:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:02]execute_script... [16:09:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:02]POST & json_proto [16:09:02]process_json_proto [16:09:02]json parsed OK: [16:09:02]protocol is kg_v1.0 [16:09:02]action value=close_receipt [16:09:02]process_action close_receipt [16:09:02]cmd_close_receipt [16:09:02]MH_GetDate [16:09:02]Write to MH i2c: F0 00 00 CB 1A D4 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: F0 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: F0 09 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: F0 09 00 CB 1A 00 2D 14 1D 67 22 05 6E 64 9B [16:09:02]GetLastDocTimeStamp 1729958933 [16:09:02]current date 1729958957 [16:09:02]FM_GetShiftState [16:09:02]SAM_PROTO_GetShiftState [16:09:02]wFMCommunicate request_size=4 [16:09:02]MH_SAM_APDU [16:09:02]CAPDU: 80 13 01 00 [16:09:02]Write to MH i2c: E2 08 00 CC 1A 80 13 01 00 00 00 00 00 63 [16:09:02]Write i2c OK [16:09:02]MH_I2C_Read... [16:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:02]Read from MH i2c: E2 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 0E 00 [16:09:02]MH_I2C_Read... [16:09:02]Read from MH i2c: E2 0E 00 CC 1A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DC [16:09:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:09:02]wFMCommunicate OK [16:09:02]SAM_PROTO_GetShiftState done [16:09:02]FM_GetShiftState done [16:09:02]opened in 1729902770 [16:09:02]opened+sec_in_day 1729989170 [16:09:02]quantity*price = 100015 [16:09:02]sum+1 = 100017 [16:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 212 26.10.2024 16:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191849 ФПД: 249668376063684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191849&fm=249668376063684&tin=02508201610067®Number=0000000000091776&sum=100016 [16:09:03]StoreToDocumentArchive [16:09:03]shift 541 fd 191849 [16:09:03]save to /storage/0541/doc_00191849 [16:09:03]save last doc name /storage/0541/doc_00191849 to /storage/kkm_last_doc_name [16:09:03]save OK [16:09:03]Clear old archive folders... [16:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:03]tlvbuf is 018316C0 [16:09:03]SAM_PROTO_ClearQueue [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 09 00 00 [16:09:03]Write to MH i2c: E2 08 00 D9 1A 80 09 00 00 00 00 00 00 65 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 D9 1A 00 90 00 67 [16:09:03]RAPDU: 90 00 [16:09:03]wFMCommunicate OK [16:09:03]SAM_PROTO_ClearQueue done [16:09:03]KKMCreateOFDPacket [16:09:03]OFDProtocolAddRootSTLVToBuf [16:09:03]FM_MakeSignedData [16:09:03]FM_MakeSignedData [16:09:03]SAM_PROTO_SignData [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 0D 01 02 [16:09:03]Write to MH i2c: E2 08 00 DA 1A 80 0D 01 02 00 00 00 00 6D [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 DA 1A 00 90 00 68 [16:09:03]RAPDU: 90 00 [16:09:03]wFMCommunicate OK [16:09:03]wFMCommunicate request_size=255 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2D 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 ED 02 00 35 04 06 00 E3 [16:09:03]Write to MH i2c: E2 02 01 DB 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2D 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 ED 02 00 35 04 06 00 E3 00 00 0E [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 DB 1A 00 90 00 69 [16:09:03]RAPDU: 90 00 [16:09:03]wFMCommunicate OK [16:09:03]wFMCommunicate request_size=10 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 0D 02 02 05 12 72 DD EE C4 [16:09:03]Write to MH i2c: E2 0D 00 DC 1A 80 0D 02 02 05 00 12 72 DD EE C4 00 00 8D [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [16:09:03]RAPDU: 90 00 [16:09:03]wFMCommunicate OK [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 0D 03 02 [16:09:03]Write to MH i2c: E2 08 00 DD 1A 80 0D 03 02 00 00 00 00 72 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 0B 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 0B 00 DD 1A 00 D8 FD 23 D1 DA 22 43 10 90 00 8B [16:09:03]RAPDU: D8 FD 23 D1 DA 22 43 10 90 00 [16:09:03]wFMCommunicate OK [16:09:03]SAM_PROTO_SignData done [16:09:03]FM_MakeSignedData done [16:09:03]CreateOFDProtocolMessage [16:09:03]wFMCommunicate request_size=4 [16:09:03]MH_SAM_APDU [16:09:03]CAPDU: 80 11 00 00 [16:09:03]Write to MH i2c: E2 08 00 DE 1A 80 11 00 00 00 00 00 00 72 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:03]Read from MH i2c: E2 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 17 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: E2 17 00 DE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [16:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:03]wFMCommunicate OK [16:09:03]CreateOFDProtocolMessage done [16:09:03]OFDSenderStorePacket 191849 [16:09:03]StoreOFDPacket docnum=191849 [16:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 C1 07 01 4A 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2D 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 ED 02 00 35 04 06 00 E3 12 72 DD EE C4 D8 FD 23 D1 DA 22 43 10 [16:09:03]CheckFolder [16:09:03]dirname=/storage/ofd_packets [16:09:03]CheckFolder done [16:09:03]ProducePacketName [16:09:03]name=ofd_packets/00191849 [16:09:03]NVStorageSaveData ofd_packets/00191849 [16:09:03]File name is /storage/ofd_packets/00191849 [16:09:03]Write 301 bytes [16:09:03]NVStorageSaveData done [16:09:03]OFDSenderStorePacket done [16:09:03]KKMCreateOFDPacket done [16:09:03]NVStorageSaveData kkm_last_timestamp [16:09:03]File name is /storage/kkm_last_timestamp [16:09:03]Write 4 bytes [16:09:03]NVStorageSaveData done [16:09:03]ExternCall_PrintAddStr [16:09:03]wPrintStart [16:09:03]Write to MH i2c: 01 00 00 DF 1A F9 [16:09:03]Write i2c OK [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: 01 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: 01 07 00 [16:09:03]MH_I2C_Read... [16:09:03]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [16:09:03]RasterBufferAndPrint [16:09:03]line Счет N : (1)31155 [16:09:03]line ИНН: 02508201610067 [16:09:03]line Контрольно-Кассовый Чек [16:09:03]line ПРОДАЖА [16:09:03]line ТРК (МРК, ГНК) : 12 [16:09:03]line Товар: 2710124130 [16:09:03]line Аи-92-К-5 [16:09:03]line 14.950 * 66.90 [16:09:03]line = 1000.16 [16:09:03]line НДС 12% НСП 1% [16:09:03]line > о реализуемом товаре [16:09:03]line ИТОГО: 1000.16 [16:09:03]line НСП 1% : 8.85 [16:09:03]line НДС 12% : 106.21 [16:09:03]line Наличными: 0.00 [16:09:03]line Безнал.: 1000.16 [16:09:03]line Место: АЗС № 170 "Партнер Нефть" [16:09:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:09:03]line СНО: Общий режим [16:09:03]line Чек 212 26.10.2024 16:09 [16:09:03]line Смена: 541 ФФД: 1.0 [16:09:03]line ЗНМ: 0300000110 [16:09:03]line РНМ: 0000000000091776 [16:09:03]line Версия ККМ: 001 [16:09:03]line Платежная система: Кыргызкоммерцбанк [16:09:03]line ФМ: 0000000000871754 [16:09:03]line ФД: 191849 [16:09:03]line ФПД: 249668376063684 [16:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T160917&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191849&fm=249668376063684&tin=02508201610067®Number=0000000000091776&sum=100016 [16:09:03]written 0, free lines is 4095 [16:09:03]OFD Sender: Processing packet 191849 [packets to send 75, broken 74] [16:09:03]ProducePacketName [16:09:03]name=ofd_packets/00191849 [16:09:03]OFD Sender: To server: pG, [16:09:03]CommunicateWithHost lk.salyk.kg:30040 [16:09:03]ConnectInit lk.salyk.kg [16:09:03]Connected sock=9 [16:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 96 C1 07 01 4A 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2D 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 ED 02 00 35 04 06 00 E3 12 72 DD EE C4 D8 FD 23 D1 DA 22 43 10 [16:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E E8 47 00 02 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 69 ED 02 00 F4 03 04 00 F7 B8 1C 67 B6 04 01 00 00 46 8B 71 EF 86 2D 73 5D [16:09:04]CommunicateWithHost err = 0 [16:09:04]CheckOFDResponse [16:09:04]1017 (14) - 77093643461234 [16:09:04]1041 (16) - 0000000000871754 [16:09:04]1040 (4) - 191849 [16:09:04]1012 (4) - 26.10.2024 09:40 [16:09:04]1206 (1) - 0 [16:09:04]OFD Sender: Remove packet 191849 [16:09:04]ProducePacketName [16:09:04]name=ofd_packets/00191849 [16:09:04]NVStorageDeleteData [16:09:04]Write to MH i2c: 01 00 00 09 1B 24 [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: 01 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: 01 07 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: 01 07 00 09 1B 00 00 00 00 00 DA 0C 11 [16:09:04]RasterBufferAndPrint [16:09:04]line [16:09:04]line [16:09:04]line [16:09:04]line [16:09:04]line [16:09:04]written 0, free lines is 3296 [16:09:04]MH_Cut [16:09:04]Write to MH i2c: D1 01 00 10 1B 01 FD [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: D1 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: D1 01 00 [16:09:04]MH_I2C_Read... [16:09:04]Read from MH i2c: D1 01 00 10 1B 00 FC [16:09:04]Write to MH i2c: 01 00 00 11 1B 2C [16:09:04]Write i2c OK [16:09:04]MH_I2C_Read... [16:09:04]OFD Sender: No OFD packet to send [16:09:05]*** Cut start [16:09:05]*** Partial cut [16:09:05]*** CUTSNS_PIN = 1 [16:09:05]*** CUTSNS_PIN = 0 [16:09:05]*** Brake cut motor [16:09:05]Read from MH i2c: 01 [16:09:05]MH_I2C_Read... [16:09:05]*** Stop cut motor [16:09:05]*** Cut end [16:09:05]Read from MH i2c: 01 07 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: 01 07 00 11 1B 00 00 00 00 00 FF 0F 41 [16:09:05]process_action close_receipt done [16:09:05]requested_data is exist [16:09:05]produce_requested_data [16:09:05]requested_item fm.sn is exist - process it [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 11 00 00 [16:09:05]Write to MH i2c: E2 08 00 12 1B 80 11 00 00 00 00 00 00 A7 [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 17 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 17 00 12 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [16:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:09:05]wFMCommunicate OK [16:09:05]requested_item fd.num is exist - process it [16:09:05]SAM_PROTO_GetFieldsCounters [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 13 00 00 [16:09:05]Write to MH i2c: E2 08 00 13 1B 80 13 00 00 00 00 00 00 AA [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 62 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 62 00 13 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [16:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 69 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:05]wFMCommunicate OK [16:09:05]SAM_PROTO_GetFieldsCounters done [16:09:05]requested_item shift.num is exist - process it [16:09:05]requested_item shift.opened is exist - process it [16:09:05]req_shift_opened [16:09:05]FM_GetShiftState [16:09:05]SAM_PROTO_GetShiftState [16:09:05]wFMCommunicate request_size=4 [16:09:05]MH_SAM_APDU [16:09:05]CAPDU: 80 13 01 00 [16:09:05]Write to MH i2c: E2 08 00 14 1B 80 13 01 00 00 00 00 00 AC [16:09:05]Write i2c OK [16:09:05]MH_I2C_Read... [16:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:05]Read from MH i2c: E2 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0E 00 [16:09:05]MH_I2C_Read... [16:09:05]Read from MH i2c: E2 0E 00 14 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 25 [16:09:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:09:05]wFMCommunicate OK [16:09:05]SAM_PROTO_GetShiftState done [16:09:05]FM_GetShiftState done [16:09:05]req_shift_opened done [16:09:05]requested_item shift.open_date is exist - process it [16:09:05]req_shift_open_date [16:09:05]req_shift_open_date done [16:09:05]produce_requested_data done [16:09:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191849,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:09:05]process_action_free close_receipt [16:09:05]json_value_free [16:09:05]json_value_free done [16:09:05]process_json_proto returns [16:09:05]Send response to host [16:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191849,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:09:05]free response buf [16:09:05]execute_script done [16:09:05]execute_script returns [16:09:05]free content buf [16:09:05]Sock 5.Close socket [16:09:05]Sock 5.Thread stoped [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:12]accept exits with 6 [16:10:12]New connection [16:10:12]New thread 3066961252 created [16:10:12]Thread 3066817892 joined [16:10:12]Waiting for new connection... [16:10:12] Sock 6.Parse request [16:10:12]Sock 6.Check first char [16:10:12]Sock 6.First char is OK [16:10:12]request: POST /json_proto HTTP/1.0 [16:10:12]Method: POST [16:10:12]URL: /json_proto [16:10:12]Method is POST - this is cgi request [16:10:12]url: /json_proto [16:10:12]query_string will be loaded in cgi processing [16:10:12]execute_cgi json_proto POST (null) [16:10:12]execute_cgi path=json_proto method=POST [16:10:12]POST find Content-Length [16:10:12]Host: 172.17.63.131:8080 [16:10:12]Content-Length: 676 [16:10:12]Content-Type: application/json [16:10:12] [16:10:12]POST finish read [16:10:12]Found Content-Length = 676 [16:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:12]execute_script... [16:10: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)31157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:12]POST & json_proto [16:10:12]process_json_proto [16:10:12]json parsed OK: [16:10:12]protocol is kg_v1.0 [16:10:12]action value=close_receipt [16:10:12]process_action close_receipt [16:10:12]cmd_close_receipt [16:10:12]MH_GetDate [16:10:12]Write to MH i2c: F0 00 00 15 1B 1F [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 09 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: F0 09 00 15 1B 00 73 14 1D 67 22 05 6E 64 2C [16:10:12]GetLastDocTimeStamp 1729958957 [16:10:12]current date 1729959027 [16:10:12]FM_GetShiftState [16:10:12]SAM_PROTO_GetShiftState [16:10:12]wFMCommunicate request_size=4 [16:10:12]MH_SAM_APDU [16:10:12]CAPDU: 80 13 01 00 [16:10:12]Write to MH i2c: E2 08 00 16 1B 80 13 01 00 00 00 00 00 AE [16:10:12]Write i2c OK [16:10:12]MH_I2C_Read... [16:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:12]Read from MH i2c: E2 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 [16:10:12]MH_I2C_Read... [16:10:12]Read from MH i2c: E2 0E 00 16 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 27 [16:10:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:10:12]wFMCommunicate OK [16:10:12]SAM_PROTO_GetShiftState done [16:10:12]FM_GetShiftState done [16:10:12]opened in 1729902770 [16:10:12]opened+sec_in_day 1729989170 [16:10:12]quantity*price = 20003 [16:10:12]sum+1 = 20004 [16:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 213 26.10.2024 16:10 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191850 ФПД: 5932936051235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191850&fm=5932936051235&tin=02508201610067®Number=0000000000091776&sum=20000 [16:10:13]StoreToDocumentArchive [16:10:13]shift 541 fd 191850 [16:10:13]save to /storage/0541/doc_00191850 [16:10:13]save last doc name /storage/0541/doc_00191850 to /storage/kkm_last_doc_name [16:10:13]save OK [16:10:13]Clear old archive folders... [16:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:13]tlvbuf is 015C8A30 [16:10:13]SAM_PROTO_ClearQueue [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 09 00 00 [16:10:13]Write to MH i2c: E2 08 00 23 1B 80 09 00 00 00 00 00 00 B0 [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 23 1B 00 90 00 B2 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]SAM_PROTO_ClearQueue done [16:10:13]KKMCreateOFDPacket [16:10:13]OFDProtocolAddRootSTLVToBuf [16:10:13]FM_MakeSignedData [16:10:13]FM_MakeSignedData [16:10:13]SAM_PROTO_SignData [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 0D 01 02 [16:10:13]Write to MH i2c: E2 08 00 24 1B 80 0D 01 02 00 00 00 00 B8 [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]wFMCommunicate request_size=255 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 73 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A ED 02 00 35 04 06 00 05 [16:10:13]Write to MH i2c: E2 02 01 25 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 73 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A ED 02 00 35 04 06 00 05 00 00 6B [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]wFMCommunicate request_size=10 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 0D 02 02 05 65 5E 8B BA 23 [16:10:13]Write to MH i2c: E2 0D 00 26 1B 80 0D 02 02 05 00 65 5E 8B BA 23 00 00 F0 [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:13]Read from MH i2c: E2 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 [16:10:13]MH_I2C_Read... [16:10:13]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [16:10:13]RAPDU: 90 00 [16:10:13]wFMCommunicate OK [16:10:13]wFMCommunicate request_size=4 [16:10:13]MH_SAM_APDU [16:10:13]CAPDU: 80 0D 03 02 [16:10:13]Write to MH i2c: E2 08 00 27 1B 80 0D 03 02 00 00 00 00 BD [16:10:13]Write i2c OK [16:10:13]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0B 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 0B 00 27 1B 00 09 E7 46 03 88 21 0D 63 90 00 10 [16:10:14]RAPDU: 09 E7 46 03 88 21 0D 63 90 00 [16:10:14]wFMCommunicate OK [16:10:14]SAM_PROTO_SignData done [16:10:14]FM_MakeSignedData done [16:10:14]CreateOFDProtocolMessage [16:10:14]wFMCommunicate request_size=4 [16:10:14]MH_SAM_APDU [16:10:14]CAPDU: 80 11 00 00 [16:10:14]Write to MH i2c: E2 08 00 28 1B 80 11 00 00 00 00 00 00 BD [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:14]Read from MH i2c: E2 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 17 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: E2 17 00 28 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [16:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:10:14]wFMCommunicate OK [16:10:14]CreateOFDProtocolMessage done [16:10:14]OFDSenderStorePacket 191850 [16:10:14]StoreOFDPacket docnum=191850 [16:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 33 07 01 41 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 73 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A ED 02 00 35 04 06 00 05 65 5E 8B BA 23 09 E7 46 03 88 21 0D 63 [16:10:14]CheckFolder [16:10:14]dirname=/storage/ofd_packets [16:10:14]CheckFolder done [16:10:14]ProducePacketName [16:10:14]name=ofd_packets/00191850 [16:10:14]NVStorageSaveData ofd_packets/00191850 [16:10:14]File name is /storage/ofd_packets/00191850 [16:10:14]Write 301 bytes [16:10:14]NVStorageSaveData done [16:10:14]OFDSenderStorePacket done [16:10:14]KKMCreateOFDPacket done [16:10:14]NVStorageSaveData kkm_last_timestamp [16:10:14]File name is /storage/kkm_last_timestamp [16:10:14]Write 4 bytes [16:10:14]NVStorageSaveData done [16:10:14]ExternCall_PrintAddStr [16:10:14]wPrintStart [16:10:14]Write to MH i2c: 01 00 00 29 1B 44 [16:10:14]OFD Sender: Processing packet 191850 [packets to send 75, broken 74] [16:10:14]ProducePacketName [16:10:14]name=ofd_packets/00191850 [16:10:14]OFD Sender: To server: pG, [16:10:14]CommunicateWithHost lk.salyk.kg:30040 [16:10:14]ConnectInit lk.salyk.kg [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 29 1B 00 00 00 00 00 FF 0F 59 [16:10:14]RasterBufferAndPrint [16:10:14]line Счет N : (1)31157 [16:10:14]line ИНН: 02508201610067 [16:10:14]line Контрольно-Кассовый Чек [16:10:14]line ПРОДАЖА [16:10:14]line ТРК (МРК, ГНК) : 21 [16:10:14]line Товар: 2710124130 [16:10:14]line Аи-92-К-5 [16:10:14]line 2.990 * 66.90 [16:10:14]line = 200.03 [16:10:14]line НДС 12% НСП 1% [16:10:14]line > о реализуемом товаре [16:10:14]line ОКРУГЛЕНИЕ: -0.03 [16:10:14]line ИТОГО: 200.00 [16:10:14]line Внесено: 200.00 [16:10:14]line СДАЧА: 0.00 [16:10:14]line НСП 1% : 1.77 [16:10:14]line НДС 12% : 21.24 [16:10:14]line Наличными: 200.00 [16:10:14]line Безнал.: 0.00 [16:10:14]line Место: АЗС № 170 "Партнер Нефть" [16:10:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:10:14]line СНО: Общий режим [16:10:14]line Чек 213 26.10.2024 16:10 [16:10:14]line Смена: 541 ФФД: 1.0 [16:10:14]line ЗНМ: 0300000110 [16:10:14]line РНМ: 0000000000091776 [16:10:14]line Версия ККМ: 001 [16:10:14]line ФМ: 0000000000871754 [16:10:14]line ФД: 191850 [16:10:14]line ФПД: 5932936051235 [16:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161027&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191850&fm=5932936051235&tin=02508201610067®Number=0000000000091776&sum=20000 [16:10:14]Connected sock=8 [16:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 33 07 01 41 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 73 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A ED 02 00 35 04 06 00 05 65 5E 8B BA 23 09 E7 46 03 88 21 0D 63 [16:10:14]written 0, free lines is 4095 [16:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BB A7 47 00 3E 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6A ED 02 00 F4 03 04 00 3E B9 1C 67 B6 04 01 00 00 5D D6 D3 0B 82 FA 34 2A [16:10:14]CommunicateWithHost err = 0 [16:10:14]CheckOFDResponse [16:10:14]1017 (14) - 77093643461234 [16:10:14]1041 (16) - 0000000000871754 [16:10:14]1040 (4) - 191850 [16:10:14]1012 (4) - 26.10.2024 09:41 [16:10:14]1206 (1) - 0 [16:10:14]OFD Sender: Remove packet 191850 [16:10:14]ProducePacketName [16:10:14]name=ofd_packets/00191850 [16:10:14]NVStorageDeleteData [16:10:14]Write to MH i2c: 01 00 00 54 1B 6F [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: 01 07 00 54 1B 00 00 00 00 00 B9 0C 3B [16:10:14]RasterBufferAndPrint [16:10:14]line [16:10:14]line [16:10:14]line [16:10:14]line [16:10:14]line [16:10:14]written 0, free lines is 3264 [16:10:14]MH_Cut [16:10:14]Write to MH i2c: D1 01 00 5B 1B 01 48 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: D1 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: D1 01 00 [16:10:14]MH_I2C_Read... [16:10:14]Read from MH i2c: D1 01 00 5B 1B 00 47 [16:10:14]Write to MH i2c: 01 00 00 5C 1B 77 [16:10:14]Write i2c OK [16:10:14]MH_I2C_Read... [16:10:15]OFD Sender: No OFD packet to send [16:10:15]*** Cut start [16:10:15]*** Partial cut [16:10:15]*** CUTSNS_PIN = 1 [16:10:15]*** CUTSNS_PIN = 0 [16:10:16]*** Brake cut motor [16:10:16]Read from MH i2c: 01 [16:10:16]MH_I2C_Read... [16:10:16]*** Stop cut motor [16:10:16]*** Cut end [16:10:16]Read from MH i2c: 01 07 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: 01 07 00 5C 1B 00 00 00 00 00 FF 0F 8C [16:10:16]process_action close_receipt done [16:10:16]requested_data is exist [16:10:16]produce_requested_data [16:10:16]requested_item fm.sn is exist - process it [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 11 00 00 [16:10:16]Write to MH i2c: E2 08 00 5D 1B 80 11 00 00 00 00 00 00 F2 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 17 00 5D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [16:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:10:16]wFMCommunicate OK [16:10:16]requested_item fd.num is exist - process it [16:10:16]SAM_PROTO_GetFieldsCounters [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 13 00 00 [16:10:16]Write to MH i2c: E2 08 00 5E 1B 80 13 00 00 00 00 00 00 F5 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 62 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 62 00 5E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_GetFieldsCounters done [16:10:16]requested_item shift.num is exist - process it [16:10:16]requested_item shift.opened is exist - process it [16:10:16]req_shift_opened [16:10:16]FM_GetShiftState [16:10:16]SAM_PROTO_GetShiftState [16:10:16]wFMCommunicate request_size=4 [16:10:16]MH_SAM_APDU [16:10:16]CAPDU: 80 13 01 00 [16:10:16]Write to MH i2c: E2 08 00 5F 1B 80 13 01 00 00 00 00 00 F7 [16:10:16]Write i2c OK [16:10:16]MH_I2C_Read... [16:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:16]Read from MH i2c: E2 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0E 00 [16:10:16]MH_I2C_Read... [16:10:16]Read from MH i2c: E2 0E 00 5F 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 70 [16:10:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:10:16]wFMCommunicate OK [16:10:16]SAM_PROTO_GetShiftState done [16:10:16]FM_GetShiftState done [16:10:16]req_shift_opened done [16:10:16]requested_item shift.open_date is exist - process it [16:10:16]req_shift_open_date [16:10:16]req_shift_open_date done [16:10:16]produce_requested_data done [16:10:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191850,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:10:16]process_action_free close_receipt [16:10:16]json_value_free [16:10:16]json_value_free done [16:10:16]process_json_proto returns [16:10:16]Send response to host [16:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191850,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:10:16]free response buf [16:10:16]execute_script done [16:10:16]execute_script returns [16:10:16]free content buf [16:10:16]Sock 6.Close socket [16:10:16]Sock 6.Thread stoped [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]accept exits with 5 [16:12:15]New connection [16:12:15]New thread 3066817892 created [16:12:15]Thread 3066961252 joined [16:12:15]Waiting for new connection... [16:12:15] Sock 5.Parse request [16:12:15]Sock 5.Check first char [16:12:15]Sock 5.First char is OK [16:12:15]request: POST /json_proto HTTP/1.0 [16:12:15]Method: POST [16:12:15]URL: /json_proto [16:12:15]Method is POST - this is cgi request [16:12:15]url: /json_proto [16:12:15]query_string will be loaded in cgi processing [16:12:15]execute_cgi json_proto POST (null) [16:12:15]execute_cgi path=json_proto method=POST [16:12:15]POST find Content-Length [16:12:15]Host: 172.17.63.131:8080 [16:12:15]Content-Length: 678 [16:12:15]Content-Type: application/json [16:12:15] [16:12:15]POST finish read [16:12:15]Found Content-Length = 678 [16:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31158", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:15]execute_script... [16:12:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31158", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:15]POST & json_proto [16:12:15]process_json_proto [16:12:15]json parsed OK: [16:12:15]protocol is kg_v1.0 [16:12:15]action value=close_receipt [16:12:15]process_action close_receipt [16:12:15]cmd_close_receipt [16:12:15]MH_GetDate [16:12:15]Write to MH i2c: F0 00 00 60 1B 6A [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: F0 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: F0 09 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: F0 09 00 60 1B 00 EE 14 1D 67 22 05 6E 64 F2 [16:12:15]GetLastDocTimeStamp 1729959027 [16:12:15]current date 1729959150 [16:12:15]FM_GetShiftState [16:12:15]SAM_PROTO_GetShiftState [16:12:15]wFMCommunicate request_size=4 [16:12:15]MH_SAM_APDU [16:12:15]CAPDU: 80 13 01 00 [16:12:15]Write to MH i2c: E2 08 00 61 1B 80 13 01 00 00 00 00 00 F9 [16:12:15]Write i2c OK [16:12:15]MH_I2C_Read... [16:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:15]Read from MH i2c: E2 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0E 00 [16:12:15]MH_I2C_Read... [16:12:15]Read from MH i2c: E2 0E 00 61 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 72 [16:12:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:12:15]wFMCommunicate OK [16:12:15]SAM_PROTO_GetShiftState done [16:12:15]FM_GetShiftState done [16:12:15]opened in 1729902770 [16:12:15]opened+sec_in_day 1729989170 [16:12:15]quantity*price = 100050 [16:12:15]sum+1 = 100052 [16:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 214 26.10.2024 16:12 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191851 ФПД: 130583870773275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191851&fm=130583870773275&tin=02508201610067®Number=0000000000091776&sum=100000 [16:12:16]StoreToDocumentArchive [16:12:16]shift 541 fd 191851 [16:12:16]save to /storage/0541/doc_00191851 [16:12:16]save last doc name /storage/0541/doc_00191851 to /storage/kkm_last_doc_name [16:12:16]save OK [16:12:16]Clear old archive folders... [16:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:16]tlvbuf is 01625460 [16:12:16]SAM_PROTO_ClearQueue [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 09 00 00 [16:12:16]Write to MH i2c: E2 08 00 6E 1B 80 09 00 00 00 00 00 00 FB [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 6E 1B 00 90 00 FD [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]SAM_PROTO_ClearQueue done [16:12:16]KKMCreateOFDPacket [16:12:16]OFDProtocolAddRootSTLVToBuf [16:12:16]FM_MakeSignedData [16:12:16]FM_MakeSignedData [16:12:16]SAM_PROTO_SignData [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 01 02 [16:12:16]Write to MH i2c: E2 08 00 6F 1B 80 0D 01 02 00 00 00 00 03 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=255 [16:12:16]MH_SAM_APDU [16:12: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 EE 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B ED 02 00 35 04 06 00 76 C3 ED 3B [16:12:16]Write to MH i2c: E2 02 01 70 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 EE 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B ED 02 00 35 04 06 00 76 C3 ED 3B 00 00 C3 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=7 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 02 02 02 18 1B [16:12:16]Write to MH i2c: E2 0A 00 71 1B 80 0D 02 02 02 00 18 1B 00 00 3D [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 03 02 [16:12:16]Write to MH i2c: E2 08 00 72 1B 80 0D 03 02 00 00 00 00 08 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 72 1B 00 E7 1A 3D 79 7F F0 05 02 90 00 36 [16:12:16]RAPDU: E7 1A 3D 79 7F F0 05 02 90 00 [16:12:16]wFMCommunicate OK [16:12:16]SAM_PROTO_SignData done [16:12:16]FM_MakeSignedData done [16:12:16]CreateOFDProtocolMessage [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 11 00 00 [16:12:16]Write to MH i2c: E2 08 00 73 1B 80 11 00 00 00 00 00 00 08 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 17 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 17 00 73 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [16:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:16]wFMCommunicate OK [16:12:16]CreateOFDProtocolMessage done [16:12:16]OFDSenderStorePacket 191851 [16:12:16]StoreOFDPacket docnum=191851 [16:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 AF 04 01 50 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 EE 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B ED 02 00 35 04 06 00 76 C3 ED 3B 18 1B E7 1A 3D 79 7F F0 05 02 [16:12:16]CheckFolder [16:12:16]dirname=/storage/ofd_packets [16:12:16]CheckFolder done [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00191851 [16:12:16]NVStorageSaveData ofd_packets/00191851 [16:12:16]File name is /storage/ofd_packets/00191851 [16:12:16]Write 298 bytes [16:12:16]NVStorageSaveData done [16:12:16]OFDSenderStorePacket done [16:12:16]KKMCreateOFDPacket done [16:12:16]NVStorageSaveData kkm_last_timestamp [16:12:16]File name is /storage/kkm_last_timestamp [16:12:16]Write 4 bytes [16:12:16]NVStorageSaveData done [16:12:16]ExternCall_PrintAddStr [16:12:16]wPrintStart [16:12:16]Write to MH i2c: 01 00 00 74 1B 8F [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 74 1B 00 00 00 00 00 FF 0F A4 [16:12:16]RasterBufferAndPrint [16:12:16]line Счет N : (1)31158 [16:12:16]line ИНН: 02508201610067 [16:12:16]line Контрольно-Кассовый Чек [16:12:16]line ПРОДАЖА [16:12:16]line ТРК (МРК, ГНК) : 22 [16:12:16]line Товар: 2710194210 [16:12:16]line ДТ-К-5 [16:12:16]line 13.130 * 76.20 [16:12:16]line = 1000.51 [16:12:16]line НДС 12% НСП 1% [16:12:16]line > о реализуемом товаре [16:12:16]line ОКРУГЛЕНИЕ: -0.51 [16:12:16]line ИТОГО: 1000.00 [16:12:16]line Внесено: 1000.00 [16:12:16]line СДАЧА: 0.00 [16:12:16]line НСП 1% : 8.85 [16:12:16]line НДС 12% : 106.25 [16:12:16]line Наличными: 1000.00 [16:12:16]line Безнал.: 0.00 [16:12:16]line Место: АЗС № 170 "Партнер Нефть" [16:12:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:12:16]line СНО: Общий режим [16:12:16]line Чек 214 26.10.2024 16:12 [16:12:16]line Смена: 541 ФФД: 1.0 [16:12:16]line ЗНМ: 0300000110 [16:12:16]line РНМ: 0000000000091776 [16:12:16]line Версия ККМ: 001 [16:12:16]line ФМ: 0000000000871754 [16:12:16]line ФД: 191851 [16:12:16]line ФПД: 130583870773275 [16:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161230&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191851&fm=130583870773275&tin=02508201610067®Number=0000000000091776&sum=100000 [16:12:17]OFD Sender: Processing packet 191851 [packets to send 75, broken 74] [16:12:17]ProducePacketName [16:12:17]name=ofd_packets/00191851 [16:12:17]OFD Sender: To server: pG, [16:12:17]CommunicateWithHost lk.salyk.kg:30040 [16:12:17]ConnectInit lk.salyk.kg [16:12:17]written 0, free lines is 4095 [16:12:17]Connected sock=8 [16:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 98 AF 04 01 50 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 EE 14 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B ED 02 00 35 04 06 00 76 C3 ED 3B 18 1B E7 1A 3D 79 7F F0 05 02 [16:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 72 4A 47 00 AB 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6B ED 02 00 F4 03 04 00 B9 B9 1C 67 B6 04 01 00 00 89 52 F9 B7 BF 6A E7 8D [16:12:17]CommunicateWithHost err = 0 [16:12:17]CheckOFDResponse [16:12:17]1017 (14) - 77093643461234 [16:12:17]1041 (16) - 0000000000871754 [16:12:17]1040 (4) - 191851 [16:12:17]1012 (4) - 26.10.2024 09:43 [16:12:17]1206 (1) - 0 [16:12:17]OFD Sender: Remove packet 191851 [16:12:17]ProducePacketName [16:12:17]name=ofd_packets/00191851 [16:12:17]NVStorageDeleteData [16:12:17]Write to MH i2c: 01 00 00 9F 1B BA [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 9F 1B 00 00 00 00 00 A5 0C 72 [16:12:17]RasterBufferAndPrint [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]written 0, free lines is 3245 [16:12:17]MH_Cut [16:12:17]Write to MH i2c: D1 01 00 A6 1B 01 93 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 A6 1B 00 92 [16:12:17]Write to MH i2c: 01 00 00 A7 1B C2 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]OFD Sender: No OFD packet to send [16:12:18]*** Cut start [16:12:18]*** Partial cut [16:12:18]*** CUTSNS_PIN = 1 [16:12:18]*** CUTSNS_PIN = 0 [16:12:18]*** Brake cut motor [16:12:18]Read from MH i2c: 01 [16:12:18]MH_I2C_Read... [16:12:18]*** Stop cut motor [16:12:18]*** Cut end [16:12:18]Read from MH i2c: 01 07 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 07 00 A7 1B 00 00 00 00 00 FF 0F D7 [16:12:18]process_action close_receipt done [16:12:18]requested_data is exist [16:12:18]produce_requested_data [16:12:18]requested_item fm.sn is exist - process it [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 11 00 00 [16:12:18]Write to MH i2c: E2 08 00 A8 1B 80 11 00 00 00 00 00 00 3D [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 17 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 17 00 A8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [16:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:12:19]wFMCommunicate OK [16:12:19]requested_item fd.num is exist - process it [16:12:19]SAM_PROTO_GetFieldsCounters [16:12:19]wFMCommunicate request_size=4 [16:12:19]MH_SAM_APDU [16:12:19]CAPDU: 80 13 00 00 [16:12:19]Write to MH i2c: E2 08 00 A9 1B 80 13 00 00 00 00 00 00 40 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 62 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 62 00 A9 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [16:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:19]wFMCommunicate OK [16:12:19]SAM_PROTO_GetFieldsCounters done [16:12:19]requested_item shift.num is exist - process it [16:12:19]requested_item shift.opened is exist - process it [16:12:19]req_shift_opened [16:12:19]FM_GetShiftState [16:12:19]SAM_PROTO_GetShiftState [16:12:19]wFMCommunicate request_size=4 [16:12:19]MH_SAM_APDU [16:12:19]CAPDU: 80 13 01 00 [16:12:19]Write to MH i2c: E2 08 00 AA 1B 80 13 01 00 00 00 00 00 42 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 0E 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 0E 00 AA 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BB [16:12:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:12:19]wFMCommunicate OK [16:12:19]SAM_PROTO_GetShiftState done [16:12:19]FM_GetShiftState done [16:12:19]req_shift_opened done [16:12:19]requested_item shift.open_date is exist - process it [16:12:19]req_shift_open_date [16:12:19]req_shift_open_date done [16:12:19]produce_requested_data done [16:12:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191851,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:12:19]process_action_free close_receipt [16:12:19]json_value_free [16:12:19]json_value_free done [16:12:19]process_json_proto returns [16:12:19]Send response to host [16:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191851,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:12:19]free response buf [16:12:19]execute_script done [16:12:19]execute_script returns [16:12:19]free content buf [16:12:19]Sock 5.Close socket [16:12:19]Sock 5.Thread stoped [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:03]accept exits with 6 [16:13:03]New connection [16:13:03]New thread 3066961252 created [16:13:03]Thread 3066817892 joined [16:13:03]Waiting for new connection... [16:13:03] Sock 6.Parse request [16:13:03]Sock 6.Check first char [16:13:03]Sock 6.First char is OK [16:13:03]request: POST /json_proto HTTP/1.0 [16:13:03]Method: POST [16:13:03]URL: /json_proto [16:13:03]Method is POST - this is cgi request [16:13:03]url: /json_proto [16:13:03]query_string will be loaded in cgi processing [16:13:03]execute_cgi json_proto POST (null) [16:13:03]execute_cgi path=json_proto method=POST [16:13:03]POST find Content-Length [16:13:03]Host: 172.17.63.131:8080 [16:13:03]Content-Length: 676 [16:13:03]Content-Type: application/json [16:13:03] [16:13:03]POST finish read [16:13:03]Found Content-Length = 676 [16:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:03]execute_script... [16:13: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)31160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:03]POST & json_proto [16:13:03]process_json_proto [16:13:03]json parsed OK: [16:13:03]protocol is kg_v1.0 [16:13:03]action value=close_receipt [16:13:03]process_action close_receipt [16:13:03]cmd_close_receipt [16:13:03]MH_GetDate [16:13:03]Write to MH i2c: F0 00 00 AB 1B B5 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 09 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: F0 09 00 AB 1B 00 1E 15 1D 67 22 05 6E 64 6E [16:13:03]GetLastDocTimeStamp 1729959150 [16:13:03]current date 1729959198 [16:13:03]FM_GetShiftState [16:13:03]SAM_PROTO_GetShiftState [16:13:03]wFMCommunicate request_size=4 [16:13:03]MH_SAM_APDU [16:13:03]CAPDU: 80 13 01 00 [16:13:03]Write to MH i2c: E2 08 00 AC 1B 80 13 01 00 00 00 00 00 44 [16:13:03]Write i2c OK [16:13:03]MH_I2C_Read... [16:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:03]Read from MH i2c: E2 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 [16:13:03]MH_I2C_Read... [16:13:03]Read from MH i2c: E2 0E 00 AC 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BD [16:13:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:13:03]wFMCommunicate OK [16:13:03]SAM_PROTO_GetShiftState done [16:13:03]FM_GetShiftState done [16:13:03]opened in 1729902770 [16:13:03]opened+sec_in_day 1729989170 [16:13:03]quantity*price = 30038 [16:13:03]sum+1 = 30039 [16:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 215 26.10.2024 16:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191852 ФПД: 213019068055724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191852&fm=213019068055724&tin=02508201610067®Number=0000000000091776&sum=30000 [16:13:04]StoreToDocumentArchive [16:13:04]shift 541 fd 191852 [16:13:04]save to /storage/0541/doc_00191852 [16:13:04]save last doc name /storage/0541/doc_00191852 to /storage/kkm_last_doc_name [16:13:04]save OK [16:13:04]Clear old archive folders... [16:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:04]tlvbuf is 015C8730 [16:13:04]SAM_PROTO_ClearQueue [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 09 00 00 [16:13:04]Write to MH i2c: E2 08 00 B9 1B 80 09 00 00 00 00 00 00 46 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 B9 1B 00 90 00 48 [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_ClearQueue done [16:13:04]KKMCreateOFDPacket [16:13:04]OFDProtocolAddRootSTLVToBuf [16:13:04]FM_MakeSignedData [16:13:04]FM_MakeSignedData [16:13:04]SAM_PROTO_SignData [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 01 02 [16:13:04]Write to MH i2c: E2 08 00 BA 1B 80 0D 01 02 00 00 00 00 4E [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 BA 1B 00 90 00 49 [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=255 [16:13:04]MH_SAM_APDU [16:13: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1E 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C ED 02 00 35 04 06 00 C1 [16:13:04]Write to MH i2c: E2 02 01 BB 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1E 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C ED 02 00 35 04 06 00 C1 00 00 9F [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 BB 1B 00 90 00 4A [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=10 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 02 02 05 BD 5D E1 C0 AC [16:13:04]Write to MH i2c: E2 0D 00 BC 1B 80 0D 02 02 05 00 BD 5D E1 C0 AC 00 00 C2 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [16:13:04]RAPDU: 90 00 [16:13:04]wFMCommunicate OK [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 0D 03 02 [16:13:04]Write to MH i2c: E2 08 00 BD 1B 80 0D 03 02 00 00 00 00 53 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0B 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0B 00 BD 1B 00 25 D2 46 AF FB 7F 7F 55 90 00 8E [16:13:04]RAPDU: 25 D2 46 AF FB 7F 7F 55 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_SignData done [16:13:04]FM_MakeSignedData done [16:13:04]CreateOFDProtocolMessage [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 11 00 00 [16:13:04]Write to MH i2c: E2 08 00 BE 1B 80 11 00 00 00 00 00 00 53 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 17 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 17 00 BE 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [16:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:04]wFMCommunicate OK [16:13:04]CreateOFDProtocolMessage done [16:13:04]OFDSenderStorePacket 191852 [16:13:04]StoreOFDPacket docnum=191852 [16:13:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF FC 07 01 62 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1E 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C ED 02 00 35 04 06 00 C1 BD 5D E1 C0 AC 25 D2 46 AF FB 7F 7F 55 [16:13:04]CheckFolder [16:13:04]dirname=/storage/ofd_packets [16:13:04]CheckFolder done [16:13:04]ProducePacketName [16:13:04]name=ofd_packets/00191852 [16:13:04]NVStorageSaveData ofd_packets/00191852 [16:13:04]File name is /storage/ofd_packets/00191852 [16:13:04]Write 301 bytes [16:13:04]NVStorageSaveData done [16:13:04]OFDSenderStorePacket done [16:13:04]KKMCreateOFDPacket done [16:13:04]NVStorageSaveData kkm_last_timestamp [16:13:04]File name is /storage/kkm_last_timestamp [16:13:04]Write 4 bytes [16:13:04]NVStorageSaveData done [16:13:04]ExternCall_PrintAddStr [16:13:04]wPrintStart [16:13:04]Write to MH i2c: 01 00 00 BF 1B DA [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 07 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: 01 07 00 BF 1B 00 00 00 00 00 FF 0F EF [16:13:04]RasterBufferAndPrint [16:13:04]line Счет N : (1)31160 [16:13:04]line ИНН: 02508201610067 [16:13:04]line Контрольно-Кассовый Чек [16:13:04]line ПРОДАЖА [16:13:04]line ТРК (МРК, ГНК) : 21 [16:13:04]line Товар: 2710124130 [16:13:04]line Аи-92-К-5 [16:13:04]line 4.490 * 66.90 [16:13:04]line = 300.38 [16:13:04]line НДС 12% НСП 1% [16:13:04]line > о реализуемом товаре [16:13:04]line ОКРУГЛЕНИЕ: -0.38 [16:13:04]line ИТОГО: 300.00 [16:13:04]line Внесено: 300.00 [16:13:04]line СДАЧА: 0.00 [16:13:04]line НСП 1% : 2.66 [16:13:04]line НДС 12% : 31.90 [16:13:04]line Наличными: 300.00 [16:13:04]line Безнал.: 0.00 [16:13:04]line Место: АЗС № 170 "Партнер Нефть" [16:13:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:13:04]line СНО: Общий режим [16:13:04]line Чек 215 26.10.2024 16:13 [16:13:04]line Смена: 541 ФФД: 1.0 [16:13:04]line ЗНМ: 0300000110 [16:13:04]line РНМ: 0000000000091776 [16:13:04]line Версия ККМ: 001 [16:13:04]line ФМ: 0000000000871754 [16:13:04]line ФД: 191852 [16:13:04]line ФПД: 213019068055724 [16:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191852&fm=213019068055724&tin=02508201610067®Number=0000000000091776&sum=30000 [16:13:05]OFD Sender: Processing packet 191852 [packets to send 75, broken 74] [16:13:05]ProducePacketName [16:13:05]name=ofd_packets/00191852 [16:13:05]OFD Sender: To server: pG, [16:13:05]CommunicateWithHost lk.salyk.kg:30040 [16:13:05]ConnectInit lk.salyk.kg [16:13:05]written 0, free lines is 4095 [16:13:05]Connected sock=8 [16:13:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BF FC 07 01 62 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 1E 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C ED 02 00 35 04 06 00 C1 BD 5D E1 C0 AC 25 D2 46 AF FB 7F 7F 55 [16:13:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF B5 47 00 C5 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6C ED 02 00 F4 03 04 00 E9 B9 1C 67 B6 04 01 00 00 DF 8D 5F B0 8D 33 93 BE [16:13:05]CommunicateWithHost err = 0 [16:13:05]CheckOFDResponse [16:13:05]1017 (14) - 77093643461234 [16:13:05]1041 (16) - 0000000000871754 [16:13:05]1040 (4) - 191852 [16:13:05]1012 (4) - 26.10.2024 09:44 [16:13:05]1206 (1) - 0 [16:13:05]OFD Sender: Remove packet 191852 [16:13:05]ProducePacketName [16:13:05]name=ofd_packets/00191852 [16:13:05]NVStorageDeleteData [16:13:05]Write to MH i2c: 01 00 00 EA 1B 05 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 B2 0C CA [16:13:05]RasterBufferAndPrint [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]line [16:13:05]written 0, free lines is 3257 [16:13:05]MH_Cut [16:13:05]Write to MH i2c: D1 01 00 F1 1B 01 DE [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 01 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: D1 01 00 F1 1B 00 DD [16:13:05]Write to MH i2c: 01 00 00 F2 1B 0D [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:06]OFD Sender: No OFD packet to send [16:13:06]*** Cut start [16:13:06]*** Partial cut [16:13:06]*** CUTSNS_PIN = 1 [16:13:06]*** CUTSNS_PIN = 0 [16:13:06]*** Brake cut motor [16:13:07]Read from MH i2c: 01 [16:13:07]MH_I2C_Read... [16:13:07]*** Stop cut motor [16:13:07]*** Cut end [16:13:07]Read from MH i2c: 01 07 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 FF 0F 22 [16:13:07]process_action close_receipt done [16:13:07]requested_data is exist [16:13:07]produce_requested_data [16:13:07]requested_item fm.sn is exist - process it [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 11 00 00 [16:13:07]Write to MH i2c: E2 08 00 F3 1B 80 11 00 00 00 00 00 00 88 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 F3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [16:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:07]wFMCommunicate OK [16:13:07]requested_item fd.num is exist - process it [16:13:07]SAM_PROTO_GetFieldsCounters [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 00 00 [16:13:07]Write to MH i2c: E2 08 00 F4 1B 80 13 00 00 00 00 00 00 8B [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 F4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [16:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetFieldsCounters done [16:13:07]requested_item shift.num is exist - process it [16:13:07]requested_item shift.opened is exist - process it [16:13:07]req_shift_opened [16:13:07]FM_GetShiftState [16:13:07]SAM_PROTO_GetShiftState [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 01 00 [16:13:07]Write to MH i2c: E2 08 00 F5 1B 80 13 01 00 00 00 00 00 8D [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 F5 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 06 [16:13:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetShiftState done [16:13:07]FM_GetShiftState done [16:13:07]req_shift_opened done [16:13:07]requested_item shift.open_date is exist - process it [16:13:07]req_shift_open_date [16:13:07]req_shift_open_date done [16:13:07]produce_requested_data done [16:13:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191852,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:13:07]process_action_free close_receipt [16:13:07]json_value_free [16:13:07]json_value_free done [16:13:07]process_json_proto returns [16:13:07]Send response to host [16:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191852,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:13:07]free response buf [16:13:07]execute_script done [16:13:07]execute_script returns [16:13:07]free content buf [16:13:07]Sock 6.Close socket [16:13:07]Sock 6.Thread stoped [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:54]accept exits with 5 [16:13:54]New connection [16:13:54]New thread 3066817892 created [16:13:54]Thread 3066961252 joined [16:13:54]Waiting for new connection... [16:13:54] Sock 5.Parse request [16:13:54]Sock 5.Check first char [16:13:54]Sock 5.First char is OK [16:13:54]request: POST /json_proto HTTP/1.0 [16:13:54]Method: POST [16:13:54]URL: /json_proto [16:13:54]Method is POST - this is cgi request [16:13:54]url: /json_proto [16:13:54]query_string will be loaded in cgi processing [16:13:54]execute_cgi json_proto POST (null) [16:13:54]execute_cgi path=json_proto method=POST [16:13:54]POST find Content-Length [16:13:54]Host: 172.17.63.131:8080 [16:13:54]Content-Length: 678 [16:13:54]Content-Type: application/json [16:13:54] [16:13:54]POST finish read [16:13:54]Found Content-Length = 678 [16:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31161", "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" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [16:13:54]execute_script... [16:13: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)31161", "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" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [16:13:54]POST & json_proto [16:13:54]process_json_proto [16:13:54]json parsed OK: [16:13:54]protocol is kg_v1.0 [16:13:54]action value=close_receipt [16:13:54]process_action close_receipt [16:13:54]cmd_close_receipt [16:13:54]MH_GetDate [16:13:54]Write to MH i2c: F0 00 00 F6 1B 00 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: F0 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: F0 09 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: F0 09 00 F6 1B 00 51 15 1D 67 22 05 6E 64 EC [16:13:54]GetLastDocTimeStamp 1729959198 [16:13:54]current date 1729959249 [16:13:54]FM_GetShiftState [16:13:54]SAM_PROTO_GetShiftState [16:13:54]wFMCommunicate request_size=4 [16:13:54]MH_SAM_APDU [16:13:54]CAPDU: 80 13 01 00 [16:13:54]Write to MH i2c: E2 08 00 F7 1B 80 13 01 00 00 00 00 00 8F [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:54]Read from MH i2c: E2 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 0E 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: E2 0E 00 F7 1B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [16:13:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:13:54]wFMCommunicate OK [16:13:54]SAM_PROTO_GetShiftState done [16:13:54]FM_GetShiftState done [16:13:54]opened in 1729902770 [16:13:54]opened+sec_in_day 1729989170 [16:13:54]quantity*price = 110032 [16:13:54]sum+1 = 110034 [16:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 216 26.10.2024 16:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191853 ФПД: 4990166751343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161409&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191853&fm=4990166751343&tin=02508201610067®Number=0000000000091776&sum=110000 [16:13:55]StoreToDocumentArchive [16:13:55]shift 541 fd 191853 [16:13:55]save to /storage/0541/doc_00191853 [16:13:55]save last doc name /storage/0541/doc_00191853 to /storage/kkm_last_doc_name [16:13:55]save OK [16:13:55]Clear old archive folders... [16:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:55]tlvbuf is 01AA70F0 [16:13:55]SAM_PROTO_ClearQueue [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 09 00 00 [16:13:55]Write to MH i2c: E2 08 00 04 1C 80 09 00 00 00 00 00 00 92 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 04 1C 00 90 00 94 [16:13:55]RAPDU: 90 00 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_ClearQueue done [16:13:55]KKMCreateOFDPacket [16:13:55]OFDProtocolAddRootSTLVToBuf [16:13:55]FM_MakeSignedData [16:13:55]FM_MakeSignedData [16:13:55]SAM_PROTO_SignData [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 0D 01 02 [16:13:55]Write to MH i2c: E2 08 00 05 1C 80 0D 01 02 00 00 00 00 9A [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [16:13:55]RAPDU: 90 00 [16:13:55]wFMCommunicate OK [16:13:55]wFMCommunicate request_size=255 [16:13:55]MH_SAM_APDU [16:13: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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 51 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D ED 02 00 35 04 06 00 04 89 DD 1D [16:13:55]Write to MH i2c: E2 02 01 06 1C 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 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 51 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D ED 02 00 35 04 06 00 04 89 DD 1D 00 00 1F [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [16:13:55]RAPDU: 90 00 [16:13:55]wFMCommunicate OK [16:13:55]wFMCommunicate request_size=7 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 0D 02 02 02 D8 6F [16:13:55]Write to MH i2c: E2 0A 00 07 1C 80 0D 02 02 02 00 D8 6F 00 00 E8 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [16:13:55]RAPDU: 90 00 [16:13:55]wFMCommunicate OK [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 0D 03 02 [16:13:55]Write to MH i2c: E2 08 00 08 1C 80 0D 03 02 00 00 00 00 9F [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0B 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0B 00 08 1C 00 7B 6E 35 05 1D 14 14 BE 90 00 C6 [16:13:55]RAPDU: 7B 6E 35 05 1D 14 14 BE 90 00 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_SignData done [16:13:55]FM_MakeSignedData done [16:13:55]CreateOFDProtocolMessage [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 11 00 00 [16:13:55]Write to MH i2c: E2 08 00 09 1C 80 11 00 00 00 00 00 00 9F [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 09 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [16:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:55]wFMCommunicate OK [16:13:55]CreateOFDProtocolMessage done [16:13:55]OFDSenderStorePacket 191853 [16:13:55]StoreOFDPacket docnum=191853 [16:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D7 4F 04 01 F6 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 51 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D ED 02 00 35 04 06 00 04 89 DD 1D D8 6F 7B 6E 35 05 1D 14 14 BE [16:13:55]CheckFolder [16:13:55]dirname=/storage/ofd_packets [16:13:55]CheckFolder done [16:13:55]ProducePacketName [16:13:55]name=ofd_packets/00191853 [16:13:55]NVStorageSaveData ofd_packets/00191853 [16:13:55]File name is /storage/ofd_packets/00191853 [16:13:55]Write 298 bytes [16:13:55]NVStorageSaveData done [16:13:55]OFDSenderStorePacket done [16:13:55]KKMCreateOFDPacket done [16:13:55]NVStorageSaveData kkm_last_timestamp [16:13:55]File name is /storage/kkm_last_timestamp [16:13:55]Write 4 bytes [16:13:55]NVStorageSaveData done [16:13:55]ExternCall_PrintAddStr [16:13:55]wPrintStart [16:13:55]Write to MH i2c: 01 00 00 0A 1C 26 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 0A 1C 00 00 00 00 00 FF 0F 3B [16:13:55]RasterBufferAndPrint [16:13:55]line Счет N : (1)31161 [16:13:55]line ИНН: 02508201610067 [16:13:55]line Контрольно-Кассовый Чек [16:13:55]line ПРОДАЖА [16:13:55]line ТРК (МРК, ГНК) : 22 [16:13:55]line Товар: 2710194210 [16:13:55]line ДТ-К-5 [16:13:55]line 14.440 * 76.20 [16:13:55]line = 1100.33 [16:13:55]line НДС 12% НСП 1% [16:13:55]line > о реализуемом товаре [16:13:55]line ОКРУГЛЕНИЕ: -0.33 [16:13:55]line ИТОГО: 1100.00 [16:13:55]line Внесено: 1100.00 [16:13:55]line СДАЧА: 0.00 [16:13:55]line НСП 1% : 9.74 [16:13:55]line НДС 12% : 116.85 [16:13:55]line Наличными: 1100.00 [16:13:55]line Безнал.: 0.00 [16:13:55]line Место: АЗС № 170 "Партнер Нефть" [16:13:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:13:55]line СНО: Общий режим [16:13:55]line Чек 216 26.10.2024 16:14 [16:13:55]line Смена: 541 ФФД: 1.0 [16:13:55]line ЗНМ: 0300000110 [16:13:55]line РНМ: 0000000000091776 [16:13:55]line Версия ККМ: 001 [16:13:55]line ФМ: 0000000000871754 [16:13:55]line ФД: 191853 [16:13:55]line ФПД: 4990166751343 [16:13:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161409&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191853&fm=4990166751343&tin=02508201610067®Number=0000000000091776&sum=110000 [16:13:56]OFD Sender: Processing packet 191853 [packets to send 75, broken 74] [16:13:56]ProducePacketName [16:13:56]name=ofd_packets/00191853 [16:13:56]OFD Sender: To server: pG, [16:13:56]CommunicateWithHost lk.salyk.kg:30040 [16:13:56]ConnectInit lk.salyk.kg [16:13:56]written 0, free lines is 4095 [16:13:56]Connected sock=8 [16:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D7 4F 04 01 F6 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 51 15 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D ED 02 00 35 04 06 00 04 89 DD 1D D8 6F 7B 6E 35 05 1D 14 14 BE [16:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6B 17 47 00 DD 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6D ED 02 00 F4 03 04 00 1C BA 1C 67 B6 04 01 00 00 C8 34 22 04 C8 4D 47 76 [16:13:56]CommunicateWithHost err = 0 [16:13:56]CheckOFDResponse [16:13:56]1017 (14) - 77093643461234 [16:13:56]1041 (16) - 0000000000871754 [16:13:56]1040 (4) - 191853 [16:13:56]1012 (4) - 26.10.2024 09:45 [16:13:56]1206 (1) - 0 [16:13:56]OFD Sender: Remove packet 191853 [16:13:56]ProducePacketName [16:13:56]name=ofd_packets/00191853 [16:13:56]NVStorageDeleteData [16:13:56]Write to MH i2c: 01 00 00 35 1C 51 [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: 01 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: 01 07 00 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 B6 0C 1A [16:13:56]RasterBufferAndPrint [16:13:56]line [16:13:56]line [16:13:56]line [16:13:56]line [16:13:56]line [16:13:56]written 0, free lines is 3259 [16:13:56]MH_Cut [16:13:56]Write to MH i2c: D1 01 00 3C 1C 01 2A [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: D1 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: D1 01 00 [16:13:56]MH_I2C_Read... [16:13:56]Read from MH i2c: D1 01 00 3C 1C 00 29 [16:13:56]Write to MH i2c: 01 00 00 3D 1C 59 [16:13:56]Write i2c OK [16:13:56]MH_I2C_Read... [16:13:56]OFD Sender: No OFD packet to send [16:13:57]*** Cut start [16:13:57]*** Partial cut [16:13:57]*** CUTSNS_PIN = 1 [16:13:57]*** CUTSNS_PIN = 0 [16:13:57]*** Brake cut motor [16:13:58]Read from MH i2c: 01 [16:13:58]MH_I2C_Read... [16:13:58]*** Stop cut motor [16:13:58]*** Cut end [16:13:58]Read from MH i2c: 01 07 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 FF 0F 6E [16:13:58]process_action close_receipt done [16:13:58]requested_data is exist [16:13:58]produce_requested_data [16:13:58]requested_item fm.sn is exist - process it [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 11 00 00 [16:13:58]Write to MH i2c: E2 08 00 3E 1C 80 11 00 00 00 00 00 00 D4 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 17 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 17 00 3E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [16:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:13:58]wFMCommunicate OK [16:13:58]requested_item fd.num is exist - process it [16:13:58]SAM_PROTO_GetFieldsCounters [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 13 00 00 [16:13:58]Write to MH i2c: E2 08 00 3F 1C 80 13 00 00 00 00 00 00 D7 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 62 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 62 00 3F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [16:13:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:58]wFMCommunicate OK [16:13:58]SAM_PROTO_GetFieldsCounters done [16:13:58]requested_item shift.num is exist - process it [16:13:58]requested_item shift.opened is exist - process it [16:13:58]req_shift_opened [16:13:58]FM_GetShiftState [16:13:58]SAM_PROTO_GetShiftState [16:13:58]wFMCommunicate request_size=4 [16:13:58]MH_SAM_APDU [16:13:58]CAPDU: 80 13 01 00 [16:13:58]Write to MH i2c: E2 08 00 40 1C 80 13 01 00 00 00 00 00 D9 [16:13:58]Write i2c OK [16:13:58]MH_I2C_Read... [16:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:58]Read from MH i2c: E2 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 0E 00 [16:13:58]MH_I2C_Read... [16:13:58]Read from MH i2c: E2 0E 00 40 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 52 [16:13:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:13:58]wFMCommunicate OK [16:13:58]SAM_PROTO_GetShiftState done [16:13:58]FM_GetShiftState done [16:13:58]req_shift_opened done [16:13:58]requested_item shift.open_date is exist - process it [16:13:58]req_shift_open_date [16:13:58]req_shift_open_date done [16:13:58]produce_requested_data done [16:13:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191853,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:13:58]process_action_free close_receipt [16:13:58]json_value_free [16:13:58]json_value_free done [16:13:58]process_json_proto returns [16:13:58]Send response to host [16:13:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191853,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:13:58]free response buf [16:13:58]execute_script done [16:13:58]execute_script returns [16:13:58]free content buf [16:13:58]Sock 5.Close socket [16:13:58]Sock 5.Thread stoped [16:14:01]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:52]accept exits with 6 [16:16:52]New connection [16:16:52]New thread 3066961252 created [16:16:52]Thread 3066817892 joined [16:16:52]Waiting for new connection... [16:16:52] Sock 6.Parse request [16:16:52]Sock 6.Check first char [16:16:52]Sock 6.First char is OK [16:16:52]request: POST /json_proto HTTP/1.0 [16:16:52]Method: POST [16:16:52]URL: /json_proto [16:16:52]Method is POST - this is cgi request [16:16:52]url: /json_proto [16:16:52]query_string will be loaded in cgi processing [16:16:52]execute_cgi json_proto POST (null) [16:16:52]execute_cgi path=json_proto method=POST [16:16:52]POST find Content-Length [16:16:52]Host: 172.17.63.131:8080 [16:16:52]Content-Length: 681 [16:16:52]Content-Type: application/json [16:16:52] [16:16:52]POST finish read [16:16:52]Found Content-Length = 681 [16:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]execute_script... [16:16: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)31162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:52]POST & json_proto [16:16:52]process_json_proto [16:16:52]json parsed OK: [16:16:52]protocol is kg_v1.0 [16:16:52]action value=close_receipt [16:16:52]process_action close_receipt [16:16:52]cmd_close_receipt [16:16:52]MH_GetDate [16:16:52]Write to MH i2c: F0 00 00 41 1C 4C [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: F0 09 00 41 1C 00 04 16 1D 67 22 05 6E 64 EC [16:16:52]GetLastDocTimeStamp 1729959249 [16:16:52]current date 1729959428 [16:16:52]FM_GetShiftState [16:16:52]SAM_PROTO_GetShiftState [16:16:52]wFMCommunicate request_size=4 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 13 01 00 [16:16:52]Write to MH i2c: E2 08 00 42 1C 80 13 01 00 00 00 00 00 DB [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:52]Read from MH i2c: E2 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 0E 00 42 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 54 [16:16:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:16:52]wFMCommunicate OK [16:16:52]SAM_PROTO_GetShiftState done [16:16:52]FM_GetShiftState done [16:16:52]opened in 1729902770 [16:16:52]opened+sec_in_day 1729989170 [16:16:52]quantity*price = 100015 [16:16:52]sum+1 = 100017 [16:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 217 26.10.2024 16:17 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191854 ФПД: 280669136619967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191854&fm=280669136619967&tin=02508201610067®Number=0000000000091776&sum=100000 [16:16:54]StoreToDocumentArchive [16:16:54]shift 541 fd 191854 [16:16:54]save to /storage/0541/doc_00191854 [16:16:54]save last doc name /storage/0541/doc_00191854 to /storage/kkm_last_doc_name [16:16:54]save OK [16:16:54]Clear old archive folders... [16:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:54]tlvbuf is 01C24EB0 [16:16:54]SAM_PROTO_ClearQueue [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 09 00 00 [16:16:54]Write to MH i2c: E2 08 00 4F 1C 80 09 00 00 00 00 00 00 DD [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 4F 1C 00 90 00 DF [16:16:54]RAPDU: 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_ClearQueue done [16:16:54]KKMCreateOFDPacket [16:16:54]OFDProtocolAddRootSTLVToBuf [16:16:54]FM_MakeSignedData [16:16:54]FM_MakeSignedData [16:16:54]SAM_PROTO_SignData [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 0D 01 02 [16:16:54]Write to MH i2c: E2 08 00 50 1C 80 0D 01 02 00 00 00 00 E5 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 50 1C 00 90 00 E0 [16:16:54]RAPDU: 90 00 [16:16:54]wFMCommunicate OK [16:16:54]wFMCommunicate request_size=255 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 04 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E ED 02 00 35 04 06 00 FF [16:16:54]Write to MH i2c: E2 02 01 51 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 04 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E ED 02 00 35 04 06 00 FF 00 00 65 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 51 1C 00 90 00 E1 [16:16:54]RAPDU: 90 00 [16:16:54]wFMCommunicate OK [16:16:54]wFMCommunicate request_size=10 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 0D 02 02 05 44 60 30 09 BF [16:16:54]Write to MH i2c: E2 0D 00 52 1C 80 0D 02 02 05 00 44 60 30 09 BF 00 00 8E [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 03 00 52 1C 00 90 00 E2 [16:16:54]RAPDU: 90 00 [16:16:54]wFMCommunicate OK [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 0D 03 02 [16:16:54]Write to MH i2c: E2 08 00 53 1C 80 0D 03 02 00 00 00 00 EA [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0B 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0B 00 53 1C 00 07 BE DB 0F B5 7F 75 E6 90 00 29 [16:16:54]RAPDU: 07 BE DB 0F B5 7F 75 E6 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_SignData done [16:16:54]FM_MakeSignedData done [16:16:54]CreateOFDProtocolMessage [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 11 00 00 [16:16:54]Write to MH i2c: E2 08 00 54 1C 80 11 00 00 00 00 00 00 EA [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 54 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [16:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:16:54]wFMCommunicate OK [16:16:54]CreateOFDProtocolMessage done [16:16:54]OFDSenderStorePacket 191854 [16:16:54]StoreOFDPacket docnum=191854 [16:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 2C 07 01 4A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 04 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E ED 02 00 35 04 06 00 FF 44 60 30 09 BF 07 BE DB 0F B5 7F 75 E6 [16:16:54]CheckFolder [16:16:54]dirname=/storage/ofd_packets [16:16:54]CheckFolder done [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00191854 [16:16:54]NVStorageSaveData ofd_packets/00191854 [16:16:54]File name is /storage/ofd_packets/00191854 [16:16:54]Write 301 bytes [16:16:54]NVStorageSaveData done [16:16:54]OFDSenderStorePacket done [16:16:54]KKMCreateOFDPacket done [16:16:54]NVStorageSaveData kkm_last_timestamp [16:16:54]File name is /storage/kkm_last_timestamp [16:16:54]Write 4 bytes [16:16:54]NVStorageSaveData done [16:16:54]ExternCall_PrintAddStr [16:16:54]wPrintStart [16:16:54]Write to MH i2c: 01 00 00 55 1C 71 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 FF 0F 86 [16:16:54]RasterBufferAndPrint [16:16:54]line Счет N : (1)31162 [16:16:54]line ИНН: 02508201610067 [16:16:54]line Контрольно-Кассовый Чек [16:16:54]line ПРОДАЖА [16:16:54]line ТРК (МРК, ГНК) : 21 [16:16:54]line Товар: 2710124130 [16:16:54]line Аи-92-К-5 [16:16:54]line 14.950 * 66.90 [16:16:54]line = 1000.16 [16:16:54]line НДС 12% НСП 1% [16:16:54]line > о реализуемом товаре [16:16:54]line ОКРУГЛЕНИЕ: -0.16 [16:16:54]line ИТОГО: 1000.00 [16:16:54]line Внесено: 1000.00 [16:16:54]line СДАЧА: 0.00 [16:16:54]line НСП 1% : 8.85 [16:16:54]line НДС 12% : 106.21 [16:16:54]line Наличными: 1000.00 [16:16:54]line Безнал.: 0.00 [16:16:54]line Место: АЗС № 170 "Партнер Нефть" [16:16:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:16:54]line СНО: Общий режим [16:16:54]line Чек 217 26.10.2024 16:17 [16:16:54]line Смена: 541 ФФД: 1.0 [16:16:54]line ЗНМ: 0300000110 [16:16:54]line РНМ: 0000000000091776 [16:16:54]line Версия ККМ: 001 [16:16:54]line ФМ: 0000000000871754 [16:16:54]line ФД: 191854 [16:16:54]line ФПД: 280669136619967 [16:16:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161708&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191854&fm=280669136619967&tin=02508201610067®Number=0000000000091776&sum=100000 [16:16:54]OFD Sender: Processing packet 191854 [packets to send 75, broken 74] [16:16:54]ProducePacketName [16:16:54]name=ofd_packets/00191854 [16:16:54]OFD Sender: To server: pG, [16:16:54]CommunicateWithHost lk.salyk.kg:30040 [16:16:54]ConnectInit lk.salyk.kg [16:16:54]written 0, free lines is 4095 [16:16:55]Connected sock=8 [16:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 11 2C 07 01 4A D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 04 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E ED 02 00 35 04 06 00 FF 44 60 30 09 BF 07 BE DB 0F B5 7F 75 E6 [16:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C9 B6 47 00 C4 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6E ED 02 00 F4 03 04 00 CE BA 1C 67 B6 04 01 00 00 B3 29 C9 C4 11 E1 7F 19 [16:16:55]CommunicateWithHost err = 0 [16:16:55]CheckOFDResponse [16:16:55]1017 (14) - 77093643461234 [16:16:55]1041 (16) - 0000000000871754 [16:16:55]1040 (4) - 191854 [16:16:55]1012 (4) - 26.10.2024 09:47 [16:16:55]1206 (1) - 0 [16:16:55]OFD Sender: Remove packet 191854 [16:16:55]ProducePacketName [16:16:55]name=ofd_packets/00191854 [16:16:55]NVStorageDeleteData [16:16:55]Write to MH i2c: 01 00 00 80 1C 9C [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 07 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 BC 0C 6B [16:16:55]RasterBufferAndPrint [16:16:55]line [16:16:55]line [16:16:55]line [16:16:55]line [16:16:55]line [16:16:55]written 0, free lines is 3268 [16:16:55]MH_Cut [16:16:55]Write to MH i2c: D1 01 00 87 1C 01 75 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: D1 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: D1 01 00 [16:16:55]MH_I2C_Read... [16:16:55]Read from MH i2c: D1 01 00 87 1C 00 74 [16:16:55]Write to MH i2c: 01 00 00 88 1C A4 [16:16:55]Write i2c OK [16:16:55]MH_I2C_Read... [16:16:55]OFD Sender: No OFD packet to send [16:16:56]*** Cut start [16:16:56]*** Partial cut [16:16:56]*** CUTSNS_PIN = 1 [16:16:56]*** CUTSNS_PIN = 0 [16:16:56]*** Brake cut motor [16:16:56]Read from MH i2c: 01 [16:16:56]MH_I2C_Read... [16:16:56]*** Stop cut motor [16:16:56]*** Cut end [16:16:56]Read from MH i2c: 01 07 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 FF 0F B9 [16:16:56]process_action close_receipt done [16:16:56]requested_data is exist [16:16:56]produce_requested_data [16:16:56]requested_item fm.sn is exist - process it [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 11 00 00 [16:16:56]Write to MH i2c: E2 08 00 89 1C 80 11 00 00 00 00 00 00 1F [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 17 00 89 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [16:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:16:56]wFMCommunicate OK [16:16:56]requested_item fd.num is exist - process it [16:16:56]SAM_PROTO_GetFieldsCounters [16:16:56]wFMCommunicate request_size=4 [16:16:56]MH_SAM_APDU [16:16:56]CAPDU: 80 13 00 00 [16:16:56]Write to MH i2c: E2 08 00 8A 1C 80 13 00 00 00 00 00 00 22 [16:16:56]Write i2c OK [16:16:56]MH_I2C_Read... [16:16:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:56]Read from MH i2c: E2 [16:16:56]MH_I2C_Read... [16:16:56]Read from MH i2c: E2 62 00 [16:16:56]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 62 00 8A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:57]wFMCommunicate OK [16:16:57]SAM_PROTO_GetFieldsCounters done [16:16:57]requested_item shift.num is exist - process it [16:16:57]requested_item shift.opened is exist - process it [16:16:57]req_shift_opened [16:16:57]FM_GetShiftState [16:16:57]SAM_PROTO_GetShiftState [16:16:57]wFMCommunicate request_size=4 [16:16:57]MH_SAM_APDU [16:16:57]CAPDU: 80 13 01 00 [16:16:57]Write to MH i2c: E2 08 00 8B 1C 80 13 01 00 00 00 00 00 24 [16:16:57]Write i2c OK [16:16:57]MH_I2C_Read... [16:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:57]Read from MH i2c: E2 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 [16:16:57]MH_I2C_Read... [16:16:57]Read from MH i2c: E2 0E 00 8B 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9D [16:16:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:16:57]wFMCommunicate OK [16:16:57]SAM_PROTO_GetShiftState done [16:16:57]FM_GetShiftState done [16:16:57]req_shift_opened done [16:16:57]requested_item shift.open_date is exist - process it [16:16:57]req_shift_open_date [16:16:57]req_shift_open_date done [16:16:57]produce_requested_data done [16:16:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191854,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:16:57]process_action_free close_receipt [16:16:57]json_value_free [16:16:57]json_value_free done [16:16:57]process_json_proto returns [16:16:57]Send response to host [16:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191854,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:16:57]free response buf [16:16:57]execute_script done [16:16:57]execute_script returns [16:16:57]free content buf [16:16:57]Sock 6.Close socket [16:16:57]Sock 6.Thread stoped [16:17:00]OFD Sender: No OFD packet to send [16:17:05]OFD Sender: No OFD packet to send [16:17:10]OFD Sender: No OFD packet to send [16:17:15]OFD Sender: No OFD packet to send [16:17:20]OFD Sender: No OFD packet to send [16:17:25]OFD Sender: No OFD packet to send [16:17:30]OFD Sender: No OFD packet to send [16:17:35]OFD Sender: No OFD packet to send [16:17:40]OFD Sender: No OFD packet to send [16:17:45]OFD Sender: No OFD packet to send [16:17:50]OFD Sender: No OFD packet to send [16:17:55]OFD Sender: No OFD packet to send [16:18:00]OFD Sender: No OFD packet to send [16:18:05]OFD Sender: No OFD packet to send [16:18:10]OFD Sender: No OFD packet to send [16:18:11]accept exits with 5 [16:18:11]New connection [16:18:11]New thread 3066817892 created [16:18:11]Thread 3066961252 joined [16:18:11]Waiting for new connection... [16:18:11] Sock 5.Parse request [16:18:11]Sock 5.Check first char [16:18:11]Sock 5.First char is OK [16:18:11]request: POST /json_proto HTTP/1.0 [16:18:11]Method: POST [16:18:11]URL: /json_proto [16:18:11]Method is POST - this is cgi request [16:18:11]url: /json_proto [16:18:11]query_string will be loaded in cgi processing [16:18:11]execute_cgi json_proto POST (null) [16:18:11]execute_cgi path=json_proto method=POST [16:18:11]POST find Content-Length [16:18:11]Host: 172.17.63.131:8080 [16:18:11]Content-Length: 676 [16:18:11]Content-Type: application/json [16:18:11] [16:18:11]POST finish read [16:18:11]Found Content-Length = 676 [16:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:11]execute_script... [16:18: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)31163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:11]POST & json_proto [16:18:11]process_json_proto [16:18:11]json parsed OK: [16:18:11]protocol is kg_v1.0 [16:18:11]action value=close_receipt [16:18:11]process_action close_receipt [16:18:11]cmd_close_receipt [16:18:11]MH_GetDate [16:18:11]Write to MH i2c: F0 00 00 8C 1C 97 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: F0 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: F0 09 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: F0 09 00 8C 1C 00 52 16 1D 67 22 05 6E 64 85 [16:18:11]GetLastDocTimeStamp 1729959428 [16:18:11]current date 1729959506 [16:18:11]FM_GetShiftState [16:18:11]SAM_PROTO_GetShiftState [16:18:11]wFMCommunicate request_size=4 [16:18:11]MH_SAM_APDU [16:18:11]CAPDU: 80 13 01 00 [16:18:11]Write to MH i2c: E2 08 00 8D 1C 80 13 01 00 00 00 00 00 26 [16:18:11]Write i2c OK [16:18:11]MH_I2C_Read... [16:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:11]Read from MH i2c: E2 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 0E 00 [16:18:11]MH_I2C_Read... [16:18:11]Read from MH i2c: E2 0E 00 8D 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9F [16:18:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:18:11]wFMCommunicate OK [16:18:11]SAM_PROTO_GetShiftState done [16:18:11]FM_GetShiftState done [16:18:11]opened in 1729902770 [16:18:11]opened+sec_in_day 1729989170 [16:18:11]quantity*price = 50041 [16:18:11]sum+1 = 50042 [16:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 218 26.10.2024 16:18 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191855 ФПД: 109424141019363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191855&fm=109424141019363&tin=02508201610067®Number=0000000000091776&sum=50000 [16:18:12]StoreToDocumentArchive [16:18:12]shift 541 fd 191855 [16:18:12]save to /storage/0541/doc_00191855 [16:18:12]save last doc name /storage/0541/doc_00191855 to /storage/kkm_last_doc_name [16:18:12]save OK [16:18:12]Clear old archive folders... [16:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:12]tlvbuf is 01960AC0 [16:18:12]SAM_PROTO_ClearQueue [16:18:12]wFMCommunicate request_size=4 [16:18:12]MH_SAM_APDU [16:18:12]CAPDU: 80 09 00 00 [16:18:12]Write to MH i2c: E2 08 00 9A 1C 80 09 00 00 00 00 00 00 28 [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:12]Read from MH i2c: E2 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 9A 1C 00 90 00 2A [16:18:12]RAPDU: 90 00 [16:18:12]wFMCommunicate OK [16:18:12]SAM_PROTO_ClearQueue done [16:18:12]KKMCreateOFDPacket [16:18:12]OFDProtocolAddRootSTLVToBuf [16:18:12]FM_MakeSignedData [16:18:12]FM_MakeSignedData [16:18:12]SAM_PROTO_SignData [16:18:12]wFMCommunicate request_size=4 [16:18:12]MH_SAM_APDU [16:18:12]CAPDU: 80 0D 01 02 [16:18:12]Write to MH i2c: E2 08 00 9B 1C 80 0D 01 02 00 00 00 00 30 [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:12]Read from MH i2c: E2 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 9B 1C 00 90 00 2B [16:18:12]RAPDU: 90 00 [16:18:12]wFMCommunicate OK [16:18:12]wFMCommunicate request_size=255 [16:18:12]MH_SAM_APDU [16:18:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 52 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F ED 02 00 35 04 06 00 63 [16:18:12]Write to MH i2c: E2 02 01 9C 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 52 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F ED 02 00 35 04 06 00 63 00 00 6A [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:12]Read from MH i2c: E2 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 9C 1C 00 90 00 2C [16:18:12]RAPDU: 90 00 [16:18:12]wFMCommunicate OK [16:18:12]wFMCommunicate request_size=10 [16:18:12]MH_SAM_APDU [16:18:12]CAPDU: 80 0D 02 02 05 85 4B 0E 28 E3 [16:18:12]Write to MH i2c: E2 0D 00 9D 1C 80 0D 02 02 05 00 85 4B 0E 28 E3 00 00 26 [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:12]Read from MH i2c: E2 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 [16:18:12]MH_I2C_Read... [16:18:12]Read from MH i2c: E2 03 00 9D 1C 00 90 00 2D [16:18:12]RAPDU: 90 00 [16:18:12]wFMCommunicate OK [16:18:12]wFMCommunicate request_size=4 [16:18:12]MH_SAM_APDU [16:18:12]CAPDU: 80 0D 03 02 [16:18:12]Write to MH i2c: E2 08 00 9E 1C 80 0D 03 02 00 00 00 00 35 [16:18:12]Write i2c OK [16:18:12]MH_I2C_Read... [16:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:13]Read from MH i2c: E2 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 0B 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 0B 00 9E 1C 00 F3 DD 87 2D B0 A4 0A 98 90 00 B0 [16:18:13]RAPDU: F3 DD 87 2D B0 A4 0A 98 90 00 [16:18:13]wFMCommunicate OK [16:18:13]SAM_PROTO_SignData done [16:18:13]FM_MakeSignedData done [16:18:13]CreateOFDProtocolMessage [16:18:13]wFMCommunicate request_size=4 [16:18:13]MH_SAM_APDU [16:18:13]CAPDU: 80 11 00 00 [16:18:13]Write to MH i2c: E2 08 00 9F 1C 80 11 00 00 00 00 00 00 35 [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:13]Read from MH i2c: E2 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 17 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: E2 17 00 9F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [16:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:13]wFMCommunicate OK [16:18:13]CreateOFDProtocolMessage done [16:18:13]OFDSenderStorePacket 191855 [16:18:13]StoreOFDPacket docnum=191855 [16:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 41 07 01 6E ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 52 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F ED 02 00 35 04 06 00 63 85 4B 0E 28 E3 F3 DD 87 2D B0 A4 0A 98 [16:18:13]CheckFolder [16:18:13]dirname=/storage/ofd_packets [16:18:13]CheckFolder done [16:18:13]ProducePacketName [16:18:13]name=ofd_packets/00191855 [16:18:13]NVStorageSaveData ofd_packets/00191855 [16:18:13]File name is /storage/ofd_packets/00191855 [16:18:13]Write 301 bytes [16:18:13]NVStorageSaveData done [16:18:13]OFDSenderStorePacket done [16:18:13]KKMCreateOFDPacket done [16:18:13]NVStorageSaveData kkm_last_timestamp [16:18:13]File name is /storage/kkm_last_timestamp [16:18:13]Write 4 bytes [16:18:13]NVStorageSaveData done [16:18:13]ExternCall_PrintAddStr [16:18:13]wPrintStart [16:18:13]Write to MH i2c: 01 00 00 A0 1C BC [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 07 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [16:18:13]RasterBufferAndPrint [16:18:13]line Счет N : (1)31163 [16:18:13]line ИНН: 02508201610067 [16:18:13]line Контрольно-Кассовый Чек [16:18:13]line ПРОДАЖА [16:18:13]line ТРК (МРК, ГНК) : 21 [16:18:13]line Товар: 2710124130 [16:18:13]line Аи-92-К-5 [16:18:13]line 7.480 * 66.90 [16:18:13]line = 500.41 [16:18:13]line НДС 12% НСП 1% [16:18:13]line > о реализуемом товаре [16:18:13]line ОКРУГЛЕНИЕ: -0.41 [16:18:13]line ИТОГО: 500.00 [16:18:13]line Внесено: 500.00 [16:18:13]line СДАЧА: 0.00 [16:18:13]line НСП 1% : 4.43 [16:18:13]line НДС 12% : 53.14 [16:18:13]line Наличными: 500.00 [16:18:13]line Безнал.: 0.00 [16:18:13]line Место: АЗС № 170 "Партнер Нефть" [16:18:13]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:18:13]line СНО: Общий режим [16:18:13]line Чек 218 26.10.2024 16:18 [16:18:13]line Смена: 541 ФФД: 1.0 [16:18:13]line ЗНМ: 0300000110 [16:18:13]line РНМ: 0000000000091776 [16:18:13]line Версия ККМ: 001 [16:18:13]line ФМ: 0000000000871754 [16:18:13]line ФД: 191855 [16:18:13]line ФПД: 109424141019363 [16:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T161826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191855&fm=109424141019363&tin=02508201610067®Number=0000000000091776&sum=50000 [16:18:13]OFD Sender: Processing packet 191855 [packets to send 75, broken 74] [16:18:13]ProducePacketName [16:18:13]name=ofd_packets/00191855 [16:18:13]OFD Sender: To server: pG, [16:18:13]CommunicateWithHost lk.salyk.kg:30040 [16:18:13]ConnectInit lk.salyk.kg [16:18:13]written 0, free lines is 4095 [16:18:13]Connected sock=8 [16:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 1F 41 07 01 6E ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 52 16 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F ED 02 00 35 04 06 00 63 85 4B 0E 28 E3 F3 DD 87 2D B0 A4 0A 98 [16:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 B6 47 00 A2 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 6F ED 02 00 F4 03 04 00 1D BB 1C 67 B6 04 01 00 00 54 A0 02 C0 7C 45 56 56 [16:18:13]CommunicateWithHost err = 0 [16:18:13]CheckOFDResponse [16:18:13]1017 (14) - 77093643461234 [16:18:13]1041 (16) - 0000000000871754 [16:18:13]1040 (4) - 191855 [16:18:13]1012 (4) - 26.10.2024 09:49 [16:18:13]1206 (1) - 0 [16:18:13]OFD Sender: Remove packet 191855 [16:18:13]ProducePacketName [16:18:13]name=ofd_packets/00191855 [16:18:13]NVStorageDeleteData [16:18:13]Write to MH i2c: 01 00 00 CB 1C E7 [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 07 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 B9 0C B3 [16:18:13]RasterBufferAndPrint [16:18:13]line [16:18:13]line [16:18:13]line [16:18:13]line [16:18:13]line [16:18:13]written 0, free lines is 3264 [16:18:13]MH_Cut [16:18:13]Write to MH i2c: D1 01 00 D2 1C 01 C0 [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: D1 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: D1 01 00 [16:18:13]MH_I2C_Read... [16:18:13]Read from MH i2c: D1 01 00 D2 1C 00 BF [16:18:13]Write to MH i2c: 01 00 00 D3 1C EF [16:18:13]Write i2c OK [16:18:13]MH_I2C_Read... [16:18:14]OFD Sender: No OFD packet to send [16:18:14]*** Cut start [16:18:14]*** Partial cut [16:18:14]*** CUTSNS_PIN = 1 [16:18:14]*** CUTSNS_PIN = 0 [16:18:14]*** Brake cut motor [16:18:15]Read from MH i2c: 01 [16:18:15]MH_I2C_Read... [16:18:15]*** Stop cut motor [16:18:15]*** Cut end [16:18:15]Read from MH i2c: 01 07 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: 01 07 00 D3 1C 00 00 00 00 00 FF 0F 04 [16:18:15]process_action close_receipt done [16:18:15]requested_data is exist [16:18:15]produce_requested_data [16:18:15]requested_item fm.sn is exist - process it [16:18:15]wFMCommunicate request_size=4 [16:18:15]MH_SAM_APDU [16:18:15]CAPDU: 80 11 00 00 [16:18:15]Write to MH i2c: E2 08 00 D4 1C 80 11 00 00 00 00 00 00 6A [16:18:15]Write i2c OK [16:18:15]MH_I2C_Read... [16:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:15]Read from MH i2c: E2 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 17 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 17 00 D4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [16:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:18:15]wFMCommunicate OK [16:18:15]requested_item fd.num is exist - process it [16:18:15]SAM_PROTO_GetFieldsCounters [16:18:15]wFMCommunicate request_size=4 [16:18:15]MH_SAM_APDU [16:18:15]CAPDU: 80 13 00 00 [16:18:15]Write to MH i2c: E2 08 00 D5 1C 80 13 00 00 00 00 00 00 6D [16:18:15]Write i2c OK [16:18:15]MH_I2C_Read... [16:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:15]Read from MH i2c: E2 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 62 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 62 00 D5 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [16:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 6F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:15]wFMCommunicate OK [16:18:15]SAM_PROTO_GetFieldsCounters done [16:18:15]requested_item shift.num is exist - process it [16:18:15]requested_item shift.opened is exist - process it [16:18:15]req_shift_opened [16:18:15]FM_GetShiftState [16:18:15]SAM_PROTO_GetShiftState [16:18:15]wFMCommunicate request_size=4 [16:18:15]MH_SAM_APDU [16:18:15]CAPDU: 80 13 01 00 [16:18:15]Write to MH i2c: E2 08 00 D6 1C 80 13 01 00 00 00 00 00 6F [16:18:15]Write i2c OK [16:18:15]MH_I2C_Read... [16:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:15]Read from MH i2c: E2 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 0E 00 [16:18:15]MH_I2C_Read... [16:18:15]Read from MH i2c: E2 0E 00 D6 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E8 [16:18:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:18:15]wFMCommunicate OK [16:18:15]SAM_PROTO_GetShiftState done [16:18:15]FM_GetShiftState done [16:18:15]req_shift_opened done [16:18:15]requested_item shift.open_date is exist - process it [16:18:15]req_shift_open_date [16:18:15]req_shift_open_date done [16:18:15]produce_requested_data done [16:18:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191855,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:18:15]process_action_free close_receipt [16:18:15]json_value_free [16:18:15]json_value_free done [16:18:15]process_json_proto returns [16:18:15]Send response to host [16:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191855,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:18:15]free response buf [16:18:15]execute_script done [16:18:15]execute_script returns [16:18:15]free content buf [16:18:15]Sock 5.Close socket [16:18:15]Sock 5.Thread stoped [16:18:19]OFD Sender: No OFD packet to send [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:35]accept exits with 6 [16:23:35]New connection [16:23:35]New thread 3066961252 created [16:23:35]Thread 3066817892 joined [16:23:35]Waiting for new connection... [16:23:35] Sock 6.Parse request [16:23:35]Sock 6.Check first char [16:23:35]Sock 6.First char is OK [16:23:35]request: POST /json_proto HTTP/1.0 [16:23:35]Method: POST [16:23:35]URL: /json_proto [16:23:35]Method is POST - this is cgi request [16:23:35]url: /json_proto [16:23:35]query_string will be loaded in cgi processing [16:23:35]execute_cgi json_proto POST (null) [16:23:35]execute_cgi path=json_proto method=POST [16:23:35]POST find Content-Length [16:23:35]Host: 172.17.63.131:8080 [16:23:35]Content-Length: 676 [16:23:35]Content-Type: application/json [16:23:35] [16:23:35]POST finish read [16:23:35]Found Content-Length = 676 [16:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:35]execute_script... [16:23: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)31164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:35]POST & json_proto [16:23:35]process_json_proto [16:23:35]json parsed OK: [16:23:35]protocol is kg_v1.0 [16:23:35]action value=close_receipt [16:23:35]process_action close_receipt [16:23:35]cmd_close_receipt [16:23:35]MH_GetDate [16:23:35]Write to MH i2c: F0 00 00 D7 1C E2 [16:23:35]Write i2c OK [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: F0 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: F0 09 00 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: F0 09 00 D7 1C 00 96 17 1D 67 22 05 6E 64 15 [16:23:35]GetLastDocTimeStamp 1729959506 [16:23:35]current date 1729959830 [16:23:35]FM_GetShiftState [16:23:35]SAM_PROTO_GetShiftState [16:23:35]wFMCommunicate request_size=4 [16:23:35]MH_SAM_APDU [16:23:35]CAPDU: 80 13 01 00 [16:23:35]Write to MH i2c: E2 08 00 D8 1C 80 13 01 00 00 00 00 00 71 [16:23:35]Write i2c OK [16:23:35]MH_I2C_Read... [16:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:35]Read from MH i2c: E2 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: E2 0E 00 [16:23:35]MH_I2C_Read... [16:23:35]Read from MH i2c: E2 0E 00 D8 1C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EA [16:23:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:23:35]wFMCommunicate OK [16:23:35]SAM_PROTO_GetShiftState done [16:23:35]FM_GetShiftState done [16:23:35]opened in 1729902770 [16:23:35]opened+sec_in_day 1729989170 [16:23:35]quantity*price = 50041 [16:23:35]sum+1 = 50042 [16:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 219 26.10.2024 16:23 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191856 ФПД: 131849271266041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191856&fm=131849271266041&tin=02508201610067®Number=0000000000091776&sum=50000 [16:23:36]StoreToDocumentArchive [16:23:36]shift 541 fd 191856 [16:23:36]save to /storage/0541/doc_00191856 [16:23:36]save last doc name /storage/0541/doc_00191856 to /storage/kkm_last_doc_name [16:23:36]save OK [16:23:36]Clear old archive folders... [16:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:36]tlvbuf is 0160B740 [16:23:36]SAM_PROTO_ClearQueue [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 09 00 00 [16:23:36]Write to MH i2c: E2 08 00 E5 1C 80 09 00 00 00 00 00 00 73 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [16:23:36]RAPDU: 90 00 [16:23:36]wFMCommunicate OK [16:23:36]SAM_PROTO_ClearQueue done [16:23:36]KKMCreateOFDPacket [16:23:36]OFDProtocolAddRootSTLVToBuf [16:23:36]FM_MakeSignedData [16:23:36]FM_MakeSignedData [16:23:36]SAM_PROTO_SignData [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 0D 01 02 [16:23:36]Write to MH i2c: E2 08 00 E6 1C 80 0D 01 02 00 00 00 00 7B [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [16:23:36]RAPDU: 90 00 [16:23:36]wFMCommunicate OK [16:23:36]wFMCommunicate request_size=255 [16:23:36]MH_SAM_APDU [16:23: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 96 17 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 ED 02 00 35 04 06 00 77 [16:23:36]Write to MH i2c: E2 02 01 E7 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 96 17 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 ED 02 00 35 04 06 00 77 00 00 10 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [16:23:36]RAPDU: 90 00 [16:23:36]wFMCommunicate OK [16:23:36]wFMCommunicate request_size=10 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 0D 02 02 05 EA 8C FA 4A F9 [16:23:36]Write to MH i2c: E2 0D 00 E8 1C 80 0D 02 02 05 00 EA 8C FA 4A F9 00 00 3B [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 03 00 E8 1C 00 90 00 78 [16:23:36]RAPDU: 90 00 [16:23:36]wFMCommunicate OK [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 0D 03 02 [16:23:36]Write to MH i2c: E2 08 00 E9 1C 80 0D 03 02 00 00 00 00 80 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0B 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 0B 00 E9 1C 00 A1 0A 74 6D 60 13 21 29 90 00 CA [16:23:36]RAPDU: A1 0A 74 6D 60 13 21 29 90 00 [16:23:36]wFMCommunicate OK [16:23:36]SAM_PROTO_SignData done [16:23:36]FM_MakeSignedData done [16:23:36]CreateOFDProtocolMessage [16:23:36]wFMCommunicate request_size=4 [16:23:36]MH_SAM_APDU [16:23:36]CAPDU: 80 11 00 00 [16:23:36]Write to MH i2c: E2 08 00 EA 1C 80 11 00 00 00 00 00 00 80 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:36]Read from MH i2c: E2 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 17 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: E2 17 00 EA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [16:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:36]wFMCommunicate OK [16:23:36]CreateOFDProtocolMessage done [16:23:36]OFDSenderStorePacket 191856 [16:23:36]StoreOFDPacket docnum=191856 [16:23:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 38 07 01 F2 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 96 17 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 ED 02 00 35 04 06 00 77 EA 8C FA 4A F9 A1 0A 74 6D 60 13 21 29 [16:23:36]CheckFolder [16:23:36]dirname=/storage/ofd_packets [16:23:36]CheckFolder done [16:23:36]ProducePacketName [16:23:36]name=ofd_packets/00191856 [16:23:36]NVStorageSaveData ofd_packets/00191856 [16:23:36]File name is /storage/ofd_packets/00191856 [16:23:36]Write 301 bytes [16:23:36]NVStorageSaveData done [16:23:36]OFDSenderStorePacket done [16:23:36]KKMCreateOFDPacket done [16:23:36]NVStorageSaveData kkm_last_timestamp [16:23:36]File name is /storage/kkm_last_timestamp [16:23:36]Write 4 bytes [16:23:36]NVStorageSaveData done [16:23:36]ExternCall_PrintAddStr [16:23:36]wPrintStart [16:23:36]Write to MH i2c: 01 00 00 EB 1C 07 [16:23:36]Write i2c OK [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: 01 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: 01 07 00 [16:23:36]MH_I2C_Read... [16:23:36]Read from MH i2c: 01 07 00 EB 1C 00 00 00 00 00 FF 0F 1C [16:23:36]RasterBufferAndPrint [16:23:36]line Счет N : (1)31164 [16:23:36]line ИНН: 02508201610067 [16:23:36]line Контрольно-Кассовый Чек [16:23:36]line ПРОДАЖА [16:23:36]line ТРК (МРК, ГНК) : 12 [16:23:36]line Товар: 2710124130 [16:23:36]line Аи-92-К-5 [16:23:36]line 7.480 * 66.90 [16:23:36]line = 500.41 [16:23:36]line НДС 12% НСП 1% [16:23:36]line > о реализуемом товаре [16:23:36]line ОКРУГЛЕНИЕ: -0.41 [16:23:36]line ИТОГО: 500.00 [16:23:36]line Внесено: 500.00 [16:23:36]line СДАЧА: 0.00 [16:23:36]line НСП 1% : 4.43 [16:23:36]line НДС 12% : 53.14 [16:23:36]line Наличными: 500.00 [16:23:36]line Безнал.: 0.00 [16:23:36]line Место: АЗС № 170 "Партнер Нефть" [16:23:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:23:36]line СНО: Общий режим [16:23:36]line Чек 219 26.10.2024 16:23 [16:23:36]line Смена: 541 ФФД: 1.0 [16:23:36]line ЗНМ: 0300000110 [16:23:36]line РНМ: 0000000000091776 [16:23:36]line Версия ККМ: 001 [16:23:36]line ФМ: 0000000000871754 [16:23:36]line ФД: 191856 [16:23:36]line ФПД: 131849271266041 [16:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162350&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191856&fm=131849271266041&tin=02508201610067®Number=0000000000091776&sum=50000 [16:23:37]OFD Sender: Processing packet 191856 [packets to send 75, broken 74] [16:23:37]ProducePacketName [16:23:37]name=ofd_packets/00191856 [16:23:37]OFD Sender: To server: pG, [16:23:37]CommunicateWithHost lk.salyk.kg:30040 [16:23:37]ConnectInit lk.salyk.kg [16:23:37]written 0, free lines is 4095 [16:23:37]Connected sock=8 [16:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 38 07 01 F2 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 96 17 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 ED 02 00 35 04 06 00 77 EA 8C FA 4A F9 A1 0A 74 6D 60 13 21 29 [16:23:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 D2 47 00 76 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 70 ED 02 00 F4 03 04 00 61 BC 1C 67 B6 04 01 00 00 AB DE 36 05 56 BF AC 73 [16:23:37]CommunicateWithHost err = 0 [16:23:37]CheckOFDResponse [16:23:37]1017 (14) - 77093643461234 [16:23:37]1041 (16) - 0000000000871754 [16:23:37]1040 (4) - 191856 [16:23:37]1012 (4) - 26.10.2024 09:54 [16:23:37]1206 (1) - 0 [16:23:37]OFD Sender: Remove packet 191856 [16:23:37]ProducePacketName [16:23:37]name=ofd_packets/00191856 [16:23:37]NVStorageDeleteData [16:23:37]Write to MH i2c: 01 00 00 16 1D 33 [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: 01 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: 01 07 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: 01 07 00 16 1D 00 00 00 00 00 BF 0C 05 [16:23:37]RasterBufferAndPrint [16:23:37]line [16:23:37]line [16:23:37]line [16:23:37]line [16:23:37]line [16:23:37]written 0, free lines is 3272 [16:23:37]MH_Cut [16:23:37]Write to MH i2c: D1 01 00 1D 1D 01 0C [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: D1 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: D1 01 00 [16:23:37]MH_I2C_Read... [16:23:37]Read from MH i2c: D1 01 00 1D 1D 00 0B [16:23:37]Write to MH i2c: 01 00 00 1E 1D 3B [16:23:37]Write i2c OK [16:23:37]MH_I2C_Read... [16:23:38]OFD Sender: No OFD packet to send [16:23:38]*** Cut start [16:23:38]*** Partial cut [16:23:38]*** CUTSNS_PIN = 1 [16:23:38]*** CUTSNS_PIN = 0 [16:23:38]*** Brake cut motor [16:23:39]Read from MH i2c: 01 [16:23:39]MH_I2C_Read... [16:23:39]*** Stop cut motor [16:23:39]*** Cut end [16:23:39]Read from MH i2c: 01 07 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: 01 07 00 1E 1D 00 00 00 00 00 FF 0F 50 [16:23:39]process_action close_receipt done [16:23:39]requested_data is exist [16:23:39]produce_requested_data [16:23:39]requested_item fm.sn is exist - process it [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 11 00 00 [16:23:39]Write to MH i2c: E2 08 00 1F 1D 80 11 00 00 00 00 00 00 B6 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 17 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 17 00 1F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [16:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:23:39]wFMCommunicate OK [16:23:39]requested_item fd.num is exist - process it [16:23:39]SAM_PROTO_GetFieldsCounters [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 13 00 00 [16:23:39]Write to MH i2c: E2 08 00 20 1D 80 13 00 00 00 00 00 00 B9 [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 62 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 62 00 20 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [16:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 70 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:39]wFMCommunicate OK [16:23:39]SAM_PROTO_GetFieldsCounters done [16:23:39]requested_item shift.num is exist - process it [16:23:39]requested_item shift.opened is exist - process it [16:23:39]req_shift_opened [16:23:39]FM_GetShiftState [16:23:39]SAM_PROTO_GetShiftState [16:23:39]wFMCommunicate request_size=4 [16:23:39]MH_SAM_APDU [16:23:39]CAPDU: 80 13 01 00 [16:23:39]Write to MH i2c: E2 08 00 21 1D 80 13 01 00 00 00 00 00 BB [16:23:39]Write i2c OK [16:23:39]MH_I2C_Read... [16:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:39]Read from MH i2c: E2 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0E 00 [16:23:39]MH_I2C_Read... [16:23:39]Read from MH i2c: E2 0E 00 21 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 34 [16:23:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:23:39]wFMCommunicate OK [16:23:39]SAM_PROTO_GetShiftState done [16:23:39]FM_GetShiftState done [16:23:39]req_shift_opened done [16:23:39]requested_item shift.open_date is exist - process it [16:23:39]req_shift_open_date [16:23:39]req_shift_open_date done [16:23:39]produce_requested_data done [16:23:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191856,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:23:39]process_action_free close_receipt [16:23:39]json_value_free [16:23:39]json_value_free done [16:23:39]process_json_proto returns [16:23:39]Send response to host [16:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191856,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:23:39]free response buf [16:23:39]execute_script done [16:23:39]execute_script returns [16:23:39]free content buf [16:23:39]Sock 6.Close socket [16:23:39]Sock 6.Thread stoped [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:05]accept exits with 5 [16:27:05]New connection [16:27:05]New thread 3066817892 created [16:27:05]Thread 3066961252 joined [16:27:05]Waiting for new connection... [16:27:05] Sock 5.Parse request [16:27:05]Sock 5.Check first char [16:27:05]Sock 5.First char is OK [16:27:05]request: POST /json_proto HTTP/1.0 [16:27:05]Method: POST [16:27:05]URL: /json_proto [16:27:05]Method is POST - this is cgi request [16:27:05]url: /json_proto [16:27:05]query_string will be loaded in cgi processing [16:27:05]execute_cgi json_proto POST (null) [16:27:05]execute_cgi path=json_proto method=POST [16:27:05]POST find Content-Length [16:27:05]Host: 172.17.63.131:8080 [16:27:05]Content-Length: 863 [16:27:05]Content-Type: application/json [16:27:05] [16:27:05]POST finish read [16:27:05]Found Content-Length = 863 [16:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:05]execute_script... [16:27: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)31165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:05]POST & json_proto [16:27:05]process_json_proto [16:27:05]json parsed OK: [16:27:05]protocol is kg_v1.0 [16:27:05]action value=close_receipt [16:27:05]process_action close_receipt [16:27:05]cmd_close_receipt [16:27:05]MH_GetDate [16:27:05]Write to MH i2c: F0 00 00 22 1D 2E [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 09 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: F0 09 00 22 1D 00 68 18 1D 67 22 05 6E 64 34 [16:27:05]GetLastDocTimeStamp 1729959830 [16:27:05]current date 1729960040 [16:27:05]FM_GetShiftState [16:27:05]SAM_PROTO_GetShiftState [16:27:05]wFMCommunicate request_size=4 [16:27:05]MH_SAM_APDU [16:27:05]CAPDU: 80 13 01 00 [16:27:05]Write to MH i2c: E2 08 00 23 1D 80 13 01 00 00 00 00 00 BD [16:27:05]Write i2c OK [16:27:05]MH_I2C_Read... [16:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:05]Read from MH i2c: E2 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 [16:27:05]MH_I2C_Read... [16:27:05]Read from MH i2c: E2 0E 00 23 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 36 [16:27:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:27:05]wFMCommunicate OK [16:27:05]SAM_PROTO_GetShiftState done [16:27:05]FM_GetShiftState done [16:27:05]opened in 1729902770 [16:27:05]opened+sec_in_day 1729989170 [16:27:05]quantity*price = 70044 [16:27:05]sum+1 = 70045 [16:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 220 26.10.2024 16:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191857 ФПД: 144432308165518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191857&fm=144432308165518&tin=02508201610067®Number=0000000000091776&sum=70044 [16:27:06]StoreToDocumentArchive [16:27:06]shift 541 fd 191857 [16:27:06]save to /storage/0541/doc_00191857 [16:27:06]save last doc name /storage/0541/doc_00191857 to /storage/kkm_last_doc_name [16:27:06]save OK [16:27:06]Clear old archive folders... [16:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:06]tlvbuf is 01BE1780 [16:27:06]SAM_PROTO_ClearQueue [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 09 00 00 [16:27:06]Write to MH i2c: E2 08 00 30 1D 80 09 00 00 00 00 00 00 BF [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [16:27:06]RAPDU: 90 00 [16:27:06]wFMCommunicate OK [16:27:06]SAM_PROTO_ClearQueue done [16:27:06]KKMCreateOFDPacket [16:27:06]OFDProtocolAddRootSTLVToBuf [16:27:06]FM_MakeSignedData [16:27:06]FM_MakeSignedData [16:27:06]SAM_PROTO_SignData [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 0D 01 02 [16:27:06]Write to MH i2c: E2 08 00 31 1D 80 0D 01 02 00 00 00 00 C7 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [16:27:06]RAPDU: 90 00 [16:27:06]wFMCommunicate OK [16:27:06]wFMCommunicate request_size=255 [16:27:06]MH_SAM_APDU [16:27: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 68 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 ED 02 00 35 04 06 00 83 [16:27:06]Write to MH i2c: E2 02 01 32 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 68 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 ED 02 00 35 04 06 00 83 00 00 A5 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 32 1D 00 90 00 C3 [16:27:06]RAPDU: 90 00 [16:27:06]wFMCommunicate OK [16:27:06]wFMCommunicate request_size=10 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 0D 02 02 05 5C 44 6C 1B 8E [16:27:06]Write to MH i2c: E2 0D 00 33 1D 80 0D 02 02 05 00 5C 44 6C 1B 8E 00 00 89 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 03 00 33 1D 00 90 00 C4 [16:27:06]RAPDU: 90 00 [16:27:06]wFMCommunicate OK [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 0D 03 02 [16:27:06]Write to MH i2c: E2 08 00 34 1D 80 0D 03 02 00 00 00 00 CC [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 0B 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 0B 00 34 1D 00 B1 67 FA DB 23 CB FB 94 90 00 37 [16:27:06]RAPDU: B1 67 FA DB 23 CB FB 94 90 00 [16:27:06]wFMCommunicate OK [16:27:06]SAM_PROTO_SignData done [16:27:06]FM_MakeSignedData done [16:27:06]CreateOFDProtocolMessage [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 11 00 00 [16:27:06]Write to MH i2c: E2 08 00 35 1D 80 11 00 00 00 00 00 00 CC [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 17 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 17 00 35 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [16:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:27:06]wFMCommunicate OK [16:27:06]CreateOFDProtocolMessage done [16:27:06]OFDSenderStorePacket 191857 [16:27:06]StoreOFDPacket docnum=191857 [16:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 60 07 01 2F 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 68 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 ED 02 00 35 04 06 00 83 5C 44 6C 1B 8E B1 67 FA DB 23 CB FB 94 [16:27:06]CheckFolder [16:27:06]dirname=/storage/ofd_packets [16:27:06]CheckFolder done [16:27:06]ProducePacketName [16:27:06]name=ofd_packets/00191857 [16:27:06]NVStorageSaveData ofd_packets/00191857 [16:27:06]File name is /storage/ofd_packets/00191857 [16:27:06]Write 301 bytes [16:27:06]NVStorageSaveData done [16:27:06]OFDSenderStorePacket done [16:27:06]KKMCreateOFDPacket done [16:27:06]NVStorageSaveData kkm_last_timestamp [16:27:06]File name is /storage/kkm_last_timestamp [16:27:06]Write 4 bytes [16:27:06]NVStorageSaveData done [16:27:06]ExternCall_PrintAddStr [16:27:06]wPrintStart [16:27:06]Write to MH i2c: 01 00 00 36 1D 53 [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 07 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [16:27:06]RasterBufferAndPrint [16:27:06]line Счет N : (1)31165 [16:27:06]line ИНН: 02508201610067 [16:27:06]line Контрольно-Кассовый Чек [16:27:06]line ПРОДАЖА [16:27:06]line ТРК (МРК, ГНК) : 21 [16:27:06]line Товар: 2710124130 [16:27:06]line Аи-92-К-5 [16:27:06]line 10.470 * 66.90 [16:27:06]line = 700.44 [16:27:06]line НДС 12% НСП 1% [16:27:06]line > о реализуемом товаре [16:27:06]line ИТОГО: 700.44 [16:27:06]line НСП 1% : 6.20 [16:27:06]line НДС 12% : 74.38 [16:27:06]line Наличными: 0.00 [16:27:06]line Безнал.: 700.44 [16:27:06]line Место: АЗС № 170 "Партнер Нефть" [16:27:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:27:06]line СНО: Общий режим [16:27:06]line Чек 220 26.10.2024 16:27 [16:27:06]line Смена: 541 ФФД: 1.0 [16:27:06]line ЗНМ: 0300000110 [16:27:06]line РНМ: 0000000000091776 [16:27:06]line Версия ККМ: 001 [16:27:06]line Платежная система: Кыргызкоммерцбанк [16:27:06]line ФМ: 0000000000871754 [16:27:06]line ФД: 191857 [16:27:06]line ФПД: 144432308165518 [16:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191857&fm=144432308165518&tin=02508201610067®Number=0000000000091776&sum=70044 [16:27:07]OFD Sender: Processing packet 191857 [packets to send 75, broken 74] [16:27:07]ProducePacketName [16:27:07]name=ofd_packets/00191857 [16:27:07]OFD Sender: To server: pG, [16:27:07]CommunicateWithHost lk.salyk.kg:30040 [16:27:07]ConnectInit lk.salyk.kg [16:27:07]written 0, free lines is 4095 [16:27:07]Connected sock=8 [16:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E3 60 07 01 2F 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 68 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 ED 02 00 35 04 06 00 83 5C 44 6C 1B 8E B1 67 FA DB 23 CB FB 94 [16:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FF CE 47 00 7A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 71 ED 02 00 F4 03 04 00 33 BD 1C 67 B6 04 01 00 00 8B 97 EC 99 FD 28 C6 34 [16:27:07]CommunicateWithHost err = 0 [16:27:07]CheckOFDResponse [16:27:07]1017 (14) - 77093643461234 [16:27:07]1041 (16) - 0000000000871754 [16:27:07]1040 (4) - 191857 [16:27:07]1012 (4) - 26.10.2024 09:58 [16:27:07]1206 (1) - 0 [16:27:07]OFD Sender: Remove packet 191857 [16:27:07]ProducePacketName [16:27:07]name=ofd_packets/00191857 [16:27:07]NVStorageDeleteData [16:27:07]Write to MH i2c: 01 00 00 60 1D 7D [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 60 1D 00 00 00 00 00 D7 0C 67 [16:27:07]RasterBufferAndPrint [16:27:07]line [16:27:07]line [16:27:07]line [16:27:07]line [16:27:07]line [16:27:07]written 0, free lines is 3295 [16:27:07]MH_Cut [16:27:07]Write to MH i2c: D1 01 00 67 1D 01 56 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: D1 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: D1 01 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: D1 01 00 67 1D 00 55 [16:27:07]Write to MH i2c: 01 00 00 68 1D 85 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:08]OFD Sender: No OFD packet to send [16:27:08]*** Cut start [16:27:08]*** Partial cut [16:27:08]*** CUTSNS_PIN = 1 [16:27:08]*** CUTSNS_PIN = 0 [16:27:08]*** Brake cut motor [16:27:09]Read from MH i2c: 01 [16:27:09]MH_I2C_Read... [16:27:09]*** Stop cut motor [16:27:09]*** Cut end [16:27:09]Read from MH i2c: 01 07 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: 01 07 00 68 1D 00 00 00 00 00 FF 0F 9A [16:27:09]process_action close_receipt done [16:27:09]requested_data is exist [16:27:09]produce_requested_data [16:27:09]requested_item fm.sn is exist - process it [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 11 00 00 [16:27:09]Write to MH i2c: E2 08 00 69 1D 80 11 00 00 00 00 00 00 00 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 17 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 17 00 69 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [16:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:27:09]wFMCommunicate OK [16:27:09]requested_item fd.num is exist - process it [16:27:09]SAM_PROTO_GetFieldsCounters [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 13 00 00 [16:27:09]Write to MH i2c: E2 08 00 6A 1D 80 13 00 00 00 00 00 00 03 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 62 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 62 00 6A 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [16:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 71 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_GetFieldsCounters done [16:27:09]requested_item shift.num is exist - process it [16:27:09]requested_item shift.opened is exist - process it [16:27:09]req_shift_opened [16:27:09]FM_GetShiftState [16:27:09]SAM_PROTO_GetShiftState [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 13 01 00 [16:27:09]Write to MH i2c: E2 08 00 6B 1D 80 13 01 00 00 00 00 00 05 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:09]Read from MH i2c: E2 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: E2 0E 00 6B 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7E [16:27:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:27:09]wFMCommunicate OK [16:27:09]SAM_PROTO_GetShiftState done [16:27:09]FM_GetShiftState done [16:27:09]req_shift_opened done [16:27:09]requested_item shift.open_date is exist - process it [16:27:09]req_shift_open_date [16:27:09]req_shift_open_date done [16:27:09]produce_requested_data done [16:27:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191857,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:27:09]process_action_free close_receipt [16:27:09]json_value_free [16:27:09]json_value_free done [16:27:09]process_json_proto returns [16:27:09]Send response to host [16:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191857,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:27:09]free response buf [16:27:09]execute_script done [16:27:09]execute_script returns [16:27:09]free content buf [16:27:09]Sock 5.Close socket [16:27:09]Sock 5.Thread stoped [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:34]accept exits with 6 [16:29:34]New connection [16:29:34]New thread 3066961252 created [16:29:34]Thread 3066817892 joined [16:29:34]Waiting for new connection... [16:29:34] Sock 6.Parse request [16:29:34]Sock 6.Check first char [16:29:34]Sock 6.First char is OK [16:29:34]request: POST /json_proto HTTP/1.0 [16:29:34]Method: POST [16:29:34]URL: /json_proto [16:29:34]Method is POST - this is cgi request [16:29:34]url: /json_proto [16:29:34]query_string will be loaded in cgi processing [16:29:34]execute_cgi json_proto POST (null) [16:29:34]execute_cgi path=json_proto method=POST [16:29:34]POST find Content-Length [16:29:34]Host: 172.17.63.131:8080 [16:29:34]Content-Length: 673 [16:29:34]Content-Type: application/json [16:29:34] [16:29:34]POST finish read [16:29:34]Found Content-Length = 673 [16:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31166", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:34]execute_script... [16:29:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31166", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:34]POST & json_proto [16:29:34]process_json_proto [16:29:34]json parsed OK: [16:29:34]protocol is kg_v1.0 [16:29:34]action value=close_receipt [16:29:34]process_action close_receipt [16:29:34]cmd_close_receipt [16:29:34]MH_GetDate [16:29:34]Write to MH i2c: F0 00 00 6C 1D 78 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 09 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: F0 09 00 6C 1D 00 FE 18 1D 67 22 05 6E 64 14 [16:29:34]GetLastDocTimeStamp 1729960040 [16:29:34]current date 1729960190 [16:29:34]FM_GetShiftState [16:29:34]SAM_PROTO_GetShiftState [16:29:34]wFMCommunicate request_size=4 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 13 01 00 [16:29:34]Write to MH i2c: E2 08 00 6D 1D 80 13 01 00 00 00 00 00 07 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0E 00 6D 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 80 [16:29:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:29:34]wFMCommunicate OK [16:29:34]SAM_PROTO_GetShiftState done [16:29:34]FM_GetShiftState done [16:29:34]opened in 1729902770 [16:29:34]opened+sec_in_day 1729989170 [16:29:34]quantity*price = 50063 [16:29:34]sum+1 = 50064 [16:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 221 26.10.2024 16:29 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191858 ФПД: 105207931359009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191858&fm=105207931359009&tin=02508201610067®Number=0000000000091776&sum=50000 [16:29:36]StoreToDocumentArchive [16:29:36]shift 541 fd 191858 [16:29:36]save to /storage/0541/doc_00191858 [16:29:36]save last doc name /storage/0541/doc_00191858 to /storage/kkm_last_doc_name [16:29:36]save OK [16:29:36]Clear old archive folders... [16:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:29:36]tlvbuf is 01A765C0 [16:29:36]SAM_PROTO_ClearQueue [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 09 00 00 [16:29:36]Write to MH i2c: E2 08 00 7A 1D 80 09 00 00 00 00 00 00 09 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7A 1D 00 90 00 0B [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_ClearQueue done [16:29:36]KKMCreateOFDPacket [16:29:36]OFDProtocolAddRootSTLVToBuf [16:29:36]FM_MakeSignedData [16:29:36]FM_MakeSignedData [16:29:36]SAM_PROTO_SignData [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 01 02 [16:29:36]Write to MH i2c: E2 08 00 7B 1D 80 0D 01 02 00 00 00 00 11 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=255 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 ED 02 00 35 04 06 00 5F AF A1 60 [16:29:36]Write to MH i2c: E2 02 01 7C 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 ED 02 00 35 04 06 00 5F AF A1 60 00 00 29 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7C 1D 00 90 00 0D [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=7 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 02 02 02 4F 21 [16:29:36]Write to MH i2c: E2 0A 00 7D 1D 80 0D 02 02 02 00 4F 21 00 00 88 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [16:29:36]RAPDU: 90 00 [16:29:36]wFMCommunicate OK [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 0D 03 02 [16:29:36]Write to MH i2c: E2 08 00 7E 1D 80 0D 03 02 00 00 00 00 16 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 0B 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 0B 00 7E 1D 00 0E 58 66 26 AB E7 07 8D 90 00 2F [16:29:36]RAPDU: 0E 58 66 26 AB E7 07 8D 90 00 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_SignData done [16:29:36]FM_MakeSignedData done [16:29:36]CreateOFDProtocolMessage [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 11 00 00 [16:29:36]Write to MH i2c: E2 08 00 7F 1D 80 11 00 00 00 00 00 00 16 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 7F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [16:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:29:36]wFMCommunicate OK [16:29:36]CreateOFDProtocolMessage done [16:29:36]OFDSenderStorePacket 191858 [16:29:36]StoreOFDPacket docnum=191858 [16:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 01 04 01 C7 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 ED 02 00 35 04 06 00 5F AF A1 60 4F 21 0E 58 66 26 AB E7 07 8D [16:29:36]CheckFolder [16:29:36]dirname=/storage/ofd_packets [16:29:36]CheckFolder done [16:29:36]ProducePacketName [16:29:36]name=ofd_packets/00191858 [16:29:36]NVStorageSaveData ofd_packets/00191858 [16:29:36]File name is /storage/ofd_packets/00191858 [16:29:36]Write 298 bytes [16:29:36]NVStorageSaveData done [16:29:36]OFDSenderStorePacket done [16:29:36]KKMCreateOFDPacket done [16:29:36]NVStorageSaveData kkm_last_timestamp [16:29:36]File name is /storage/kkm_last_timestamp [16:29:36]Write 4 bytes [16:29:36]NVStorageSaveData done [16:29:36]ExternCall_PrintAddStr [16:29:36]wPrintStart [16:29:36]Write to MH i2c: 01 00 00 80 1D 9D [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 07 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 07 00 80 1D 00 00 00 00 00 FF 0F B2 [16:29:36]RasterBufferAndPrint [16:29:36]line Счет N : (1)31166 [16:29:36]line ИНН: 02508201610067 [16:29:36]line Контрольно-Кассовый Чек [16:29:36]line ПРОДАЖА [16:29:36]line ТРК (МРК, ГНК) : 22 [16:29:36]line Товар: 2710194210 [16:29:36]line ДТ-К-5 [16:29:36]line 6.570 * 76.20 [16:29:36]line = 500.63 [16:29:36]line НДС 12% НСП 1% [16:29:36]line > о реализуемом товаре [16:29:36]line ОКРУГЛЕНИЕ: -0.63 [16:29:36]line ИТОГО: 500.00 [16:29:36]line Внесено: 500.00 [16:29:36]line СДАЧА: 0.00 [16:29:36]line НСП 1% : 4.43 [16:29:36]line НДС 12% : 53.16 [16:29:36]line Наличными: 500.00 [16:29:36]line Безнал.: 0.00 [16:29:36]line Место: АЗС № 170 "Партнер Нефть" [16:29:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:29:36]line СНО: Общий режим [16:29:36]line Чек 221 26.10.2024 16:29 [16:29:36]line Смена: 541 ФФД: 1.0 [16:29:36]line ЗНМ: 0300000110 [16:29:36]line РНМ: 0000000000091776 [16:29:36]line Версия ККМ: 001 [16:29:36]line ФМ: 0000000000871754 [16:29:36]line ФД: 191858 [16:29:36]line ФПД: 105207931359009 [16:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T162950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191858&fm=105207931359009&tin=02508201610067®Number=0000000000091776&sum=50000 [16:29:36]OFD Sender: Processing packet 191858 [packets to send 75, broken 74] [16:29:36]ProducePacketName [16:29:36]name=ofd_packets/00191858 [16:29:36]OFD Sender: To server: pG, [16:29:36]CommunicateWithHost lk.salyk.kg:30040 [16:29:36]ConnectInit lk.salyk.kg [16:29:36]written 0, free lines is 4095 [16:29:37]Connected sock=8 [16:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 59 01 04 01 C7 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FE 18 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 ED 02 00 35 04 06 00 5F AF A1 60 4F 21 0E 58 66 26 AB E7 07 8D [16:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D3 CF 47 00 57 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 72 ED 02 00 F4 03 04 00 C8 BD 1C 67 B6 04 01 00 00 70 F9 CF 57 79 BB 01 BF [16:29:37]CommunicateWithHost err = 0 [16:29:37]CheckOFDResponse [16:29:37]1017 (14) - 77093643461234 [16:29:37]1041 (16) - 0000000000871754 [16:29:37]1040 (4) - 191858 [16:29:37]1012 (4) - 26.10.2024 10:00 [16:29:37]1206 (1) - 0 [16:29:37]OFD Sender: Remove packet 191858 [16:29:37]ProducePacketName [16:29:37]name=ofd_packets/00191858 [16:29:37]NVStorageDeleteData [16:29:37]Write to MH i2c: 01 00 00 AB 1D C8 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 B2 0C 8D [16:29:37]RasterBufferAndPrint [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]line [16:29:37]written 0, free lines is 3257 [16:29:37]MH_Cut [16:29:37]Write to MH i2c: D1 01 00 B2 1D 01 A1 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 01 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: D1 01 00 B2 1D 00 A0 [16:29:37]Write to MH i2c: 01 00 00 B3 1D D0 [16:29:37]Write i2c OK [16:29:37]MH_I2C_Read... [16:29:37]OFD Sender: No OFD packet to send [16:29:38]*** Cut start [16:29:38]*** Partial cut [16:29:38]*** CUTSNS_PIN = 1 [16:29:38]*** CUTSNS_PIN = 0 [16:29:38]*** Brake cut motor [16:29:38]Read from MH i2c: 01 [16:29:38]MH_I2C_Read... [16:29:38]*** Stop cut motor [16:29:38]*** Cut end [16:29:38]Read from MH i2c: 01 07 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FF 0F E5 [16:29:38]process_action close_receipt done [16:29:38]requested_data is exist [16:29:38]produce_requested_data [16:29:38]requested_item fm.sn is exist - process it [16:29:38]wFMCommunicate request_size=4 [16:29:38]MH_SAM_APDU [16:29:38]CAPDU: 80 11 00 00 [16:29:38]Write to MH i2c: E2 08 00 B4 1D 80 11 00 00 00 00 00 00 4B [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:38]Read from MH i2c: E2 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 17 00 [16:29:38]MH_I2C_Read... [16:29:38]Read from MH i2c: E2 17 00 B4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [16:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:29:38]wFMCommunicate OK [16:29:38]requested_item fd.num is exist - process it [16:29:38]SAM_PROTO_GetFieldsCounters [16:29:38]wFMCommunicate request_size=4 [16:29:38]MH_SAM_APDU [16:29:38]CAPDU: 80 13 00 00 [16:29:38]Write to MH i2c: E2 08 00 B5 1D 80 13 00 00 00 00 00 00 4E [16:29:38]Write i2c OK [16:29:38]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 62 00 B5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [16:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 72 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetFieldsCounters done [16:29:39]requested_item shift.num is exist - process it [16:29:39]requested_item shift.opened is exist - process it [16:29:39]req_shift_opened [16:29:39]FM_GetShiftState [16:29:39]SAM_PROTO_GetShiftState [16:29:39]wFMCommunicate request_size=4 [16:29:39]MH_SAM_APDU [16:29:39]CAPDU: 80 13 01 00 [16:29:39]Write to MH i2c: E2 08 00 B6 1D 80 13 01 00 00 00 00 00 50 [16:29:39]Write i2c OK [16:29:39]MH_I2C_Read... [16:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:39]Read from MH i2c: E2 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 [16:29:39]MH_I2C_Read... [16:29:39]Read from MH i2c: E2 0E 00 B6 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C9 [16:29:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:29:39]wFMCommunicate OK [16:29:39]SAM_PROTO_GetShiftState done [16:29:39]FM_GetShiftState done [16:29:39]req_shift_opened done [16:29:39]requested_item shift.open_date is exist - process it [16:29:39]req_shift_open_date [16:29:39]req_shift_open_date done [16:29:39]produce_requested_data done [16:29:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191858,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:29:39]process_action_free close_receipt [16:29:39]json_value_free [16:29:39]json_value_free done [16:29:39]process_json_proto returns [16:29:39]Send response to host [16:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191858,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:29:39]free response buf [16:29:39]execute_script done [16:29:39]execute_script returns [16:29:39]free content buf [16:29:39]Sock 6.Close socket [16:29:39]Sock 6.Thread stoped [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:29]accept exits with 5 [16:36:29]New connection [16:36:29]New thread 3066817892 created [16:36:29]Thread 3066961252 joined [16:36:29]Waiting for new connection... [16:36:29] Sock 5.Parse request [16:36:29]Sock 5.Check first char [16:36:29]Sock 5.First char is OK [16:36:29]request: POST /json_proto HTTP/1.0 [16:36:29]Method: POST [16:36:29]URL: /json_proto [16:36:29]Method is POST - this is cgi request [16:36:29]url: /json_proto [16:36:29]query_string will be loaded in cgi processing [16:36:29]execute_cgi json_proto POST (null) [16:36:29]execute_cgi path=json_proto method=POST [16:36:29]POST find Content-Length [16:36:29]Host: 172.17.63.131:8080 [16:36:29]Content-Length: 676 [16:36:29]Content-Type: application/json [16:36:29] [16:36:29]POST finish read [16:36:29]Found Content-Length = 676 [16:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:29]execute_script... [16:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:29]POST & json_proto [16:36:29]process_json_proto [16:36:29]json parsed OK: [16:36:29]protocol is kg_v1.0 [16:36:29]action value=close_receipt [16:36:29]process_action close_receipt [16:36:29]cmd_close_receipt [16:36:29]MH_GetDate [16:36:29]Write to MH i2c: F0 00 00 B7 1D C3 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: F0 09 00 B7 1D 00 9D 1A 1D 67 22 05 6E 64 00 [16:36:29]GetLastDocTimeStamp 1729960190 [16:36:29]current date 1729960605 [16:36:29]FM_GetShiftState [16:36:29]SAM_PROTO_GetShiftState [16:36:29]wFMCommunicate request_size=4 [16:36:29]MH_SAM_APDU [16:36:29]CAPDU: 80 13 01 00 [16:36:29]Write to MH i2c: E2 08 00 B8 1D 80 13 01 00 00 00 00 00 52 [16:36:29]Write i2c OK [16:36:29]MH_I2C_Read... [16:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:29]Read from MH i2c: E2 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 [16:36:29]MH_I2C_Read... [16:36:29]Read from MH i2c: E2 0E 00 B8 1D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 CB [16:36:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:36:29]wFMCommunicate OK [16:36:29]SAM_PROTO_GetShiftState done [16:36:29]FM_GetShiftState done [16:36:29]opened in 1729902770 [16:36:29]opened+sec_in_day 1729989170 [16:36:29]quantity*price = 50041 [16:36:29]sum+1 = 50042 [16:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 222 26.10.2024 16:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191859 ФПД: 52691987690684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163645&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191859&fm=52691987690684&tin=02508201610067®Number=0000000000091776&sum=50000 [16:36:30]StoreToDocumentArchive [16:36:30]shift 541 fd 191859 [16:36:30]save to /storage/0541/doc_00191859 [16:36:30]save last doc name /storage/0541/doc_00191859 to /storage/kkm_last_doc_name [16:36:30]save OK [16:36:30]Clear old archive folders... [16:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:30]tlvbuf is 015B0FE0 [16:36:30]SAM_PROTO_ClearQueue [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 09 00 00 [16:36:30]Write to MH i2c: E2 08 00 C5 1D 80 09 00 00 00 00 00 00 54 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]SAM_PROTO_ClearQueue done [16:36:30]KKMCreateOFDPacket [16:36:30]OFDProtocolAddRootSTLVToBuf [16:36:30]FM_MakeSignedData [16:36:30]FM_MakeSignedData [16:36:30]SAM_PROTO_SignData [16:36:30]wFMCommunicate request_size=4 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 0D 01 02 [16:36:30]Write to MH i2c: E2 08 00 C6 1D 80 0D 01 02 00 00 00 00 5C [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:30]Read from MH i2c: E2 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 [16:36:30]MH_I2C_Read... [16:36:30]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [16:36:30]RAPDU: 90 00 [16:36:30]wFMCommunicate OK [16:36:30]wFMCommunicate request_size=255 [16:36:30]MH_SAM_APDU [16:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 9D 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 ED 02 00 35 04 06 00 2F [16:36:30]Write to MH i2c: E2 02 01 C7 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 9D 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 ED 02 00 35 04 06 00 2F 00 00 B9 [16:36:30]Write i2c OK [16:36:30]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=10 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 02 02 05 EC 4F 35 74 BC [16:36:31]Write to MH i2c: E2 0D 00 C8 1D 80 0D 02 02 05 00 EC 4F 35 74 BC 00 00 09 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [16:36:31]RAPDU: 90 00 [16:36:31]wFMCommunicate OK [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 0D 03 02 [16:36:31]Write to MH i2c: E2 08 00 C9 1D 80 0D 03 02 00 00 00 00 61 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 0B 00 C9 1D 00 63 B8 25 3C 77 A2 3D 2D 90 00 61 [16:36:31]RAPDU: 63 B8 25 3C 77 A2 3D 2D 90 00 [16:36:31]wFMCommunicate OK [16:36:31]SAM_PROTO_SignData done [16:36:31]FM_MakeSignedData done [16:36:31]CreateOFDProtocolMessage [16:36:31]wFMCommunicate request_size=4 [16:36:31]MH_SAM_APDU [16:36:31]CAPDU: 80 11 00 00 [16:36:31]Write to MH i2c: E2 08 00 CA 1D 80 11 00 00 00 00 00 00 61 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:31]Read from MH i2c: E2 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: E2 17 00 CA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [16:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:31]wFMCommunicate OK [16:36:31]CreateOFDProtocolMessage done [16:36:31]OFDSenderStorePacket 191859 [16:36:31]StoreOFDPacket docnum=191859 [16:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B 8A 07 01 23 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 9D 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 ED 02 00 35 04 06 00 2F EC 4F 35 74 BC 63 B8 25 3C 77 A2 3D 2D [16:36:31]CheckFolder [16:36:31]dirname=/storage/ofd_packets [16:36:31]CheckFolder done [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00191859 [16:36:31]NVStorageSaveData ofd_packets/00191859 [16:36:31]File name is /storage/ofd_packets/00191859 [16:36:31]Write 301 bytes [16:36:31]NVStorageSaveData done [16:36:31]OFDSenderStorePacket done [16:36:31]KKMCreateOFDPacket done [16:36:31]NVStorageSaveData kkm_last_timestamp [16:36:31]File name is /storage/kkm_last_timestamp [16:36:31]Write 4 bytes [16:36:31]NVStorageSaveData done [16:36:31]ExternCall_PrintAddStr [16:36:31]wPrintStart [16:36:31]Write to MH i2c: 01 00 00 CB 1D E8 [16:36:31]Write i2c OK [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 [16:36:31]MH_I2C_Read... [16:36:31]Read from MH i2c: 01 07 00 CB 1D 00 00 00 00 00 FF 0F FD [16:36:31]RasterBufferAndPrint [16:36:31]line Счет N : (1)31167 [16:36:31]line ИНН: 02508201610067 [16:36:31]line Контрольно-Кассовый Чек [16:36:31]line ПРОДАЖА [16:36:31]line ТРК (МРК, ГНК) : 12 [16:36:31]line Товар: 2710124130 [16:36:31]line Аи-92-К-5 [16:36:31]line 7.480 * 66.90 [16:36:31]line = 500.41 [16:36:31]line НДС 12% НСП 1% [16:36:31]line > о реализуемом товаре [16:36:31]line ОКРУГЛЕНИЕ: -0.41 [16:36:31]line ИТОГО: 500.00 [16:36:31]line Внесено: 500.00 [16:36:31]line СДАЧА: 0.00 [16:36:31]line НСП 1% : 4.43 [16:36:31]line НДС 12% : 53.14 [16:36:31]line Наличными: 500.00 [16:36:31]line Безнал.: 0.00 [16:36:31]line Место: АЗС № 170 "Партнер Нефть" [16:36:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:36:31]line СНО: Общий режим [16:36:31]line Чек 222 26.10.2024 16:36 [16:36:31]line Смена: 541 ФФД: 1.0 [16:36:31]line ЗНМ: 0300000110 [16:36:31]line РНМ: 0000000000091776 [16:36:31]line Версия ККМ: 001 [16:36:31]line ФМ: 0000000000871754 [16:36:31]line ФД: 191859 [16:36:31]line ФПД: 52691987690684 [16:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163645&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191859&fm=52691987690684&tin=02508201610067®Number=0000000000091776&sum=50000 [16:36:31]OFD Sender: Processing packet 191859 [packets to send 75, broken 74] [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00191859 [16:36:31]OFD Sender: To server: pG, [16:36:31]CommunicateWithHost lk.salyk.kg:30040 [16:36:31]ConnectInit lk.salyk.kg [16:36:31]written 0, free lines is 4095 [16:36:31]Connected sock=8 [16:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7B 8A 07 01 23 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 9D 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 ED 02 00 35 04 06 00 2F EC 4F 35 74 BC 63 B8 25 3C 77 A2 3D 2D [16:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 28 47 00 17 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 73 ED 02 00 F4 03 04 00 67 BF 1C 67 B6 04 01 00 00 EA 95 06 72 E2 30 22 C6 [16:36:31]CommunicateWithHost err = 0 [16:36:31]CheckOFDResponse [16:36:31]1017 (14) - 77093643461234 [16:36:31]1041 (16) - 0000000000871754 [16:36:31]1040 (4) - 191859 [16:36:31]1012 (4) - 26.10.2024 10:07 [16:36:31]1206 (1) - 0 [16:36:31]OFD Sender: Remove packet 191859 [16:36:31]ProducePacketName [16:36:31]name=ofd_packets/00191859 [16:36:31]NVStorageDeleteData [16:36:32]Write to MH i2c: 01 00 00 F6 1D 13 [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 07 00 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: 01 07 00 F6 1D 00 00 00 00 00 D6 0C FC [16:36:32]RasterBufferAndPrint [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]line [16:36:32]written 0, free lines is 3294 [16:36:32]MH_Cut [16:36:32]Write to MH i2c: D1 01 00 FD 1D 01 EC [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 01 00 [16:36:32]MH_I2C_Read... [16:36:32]Read from MH i2c: D1 01 00 FD 1D 00 EB [16:36:32]Write to MH i2c: 01 00 00 FE 1D 1B [16:36:32]Write i2c OK [16:36:32]MH_I2C_Read... [16:36:32]OFD Sender: No OFD packet to send [16:36:32]*** Cut start [16:36:32]*** Partial cut [16:36:32]*** CUTSNS_PIN = 1 [16:36:32]*** CUTSNS_PIN = 0 [16:36:33]*** Brake cut motor [16:36:33]Read from MH i2c: 01 [16:36:33]MH_I2C_Read... [16:36:33]*** Stop cut motor [16:36:33]*** Cut end [16:36:33]Read from MH i2c: 01 07 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: 01 07 00 FE 1D 00 00 00 00 00 FF 0F 30 [16:36:33]process_action close_receipt done [16:36:33]requested_data is exist [16:36:33]produce_requested_data [16:36:33]requested_item fm.sn is exist - process it [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 11 00 00 [16:36:33]Write to MH i2c: E2 08 00 FF 1D 80 11 00 00 00 00 00 00 96 [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 17 00 FF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [16:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:33]wFMCommunicate OK [16:36:33]requested_item fd.num is exist - process it [16:36:33]SAM_PROTO_GetFieldsCounters [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 00 00 [16:36:33]Write to MH i2c: E2 08 00 00 1E 80 13 00 00 00 00 00 00 9A [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 62 00 00 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [16:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 73 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetFieldsCounters done [16:36:33]requested_item shift.num is exist - process it [16:36:33]requested_item shift.opened is exist - process it [16:36:33]req_shift_opened [16:36:33]FM_GetShiftState [16:36:33]SAM_PROTO_GetShiftState [16:36:33]wFMCommunicate request_size=4 [16:36:33]MH_SAM_APDU [16:36:33]CAPDU: 80 13 01 00 [16:36:33]Write to MH i2c: E2 08 00 01 1E 80 13 01 00 00 00 00 00 9C [16:36:33]Write i2c OK [16:36:33]MH_I2C_Read... [16:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:33]Read from MH i2c: E2 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 [16:36:33]MH_I2C_Read... [16:36:33]Read from MH i2c: E2 0E 00 01 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 15 [16:36:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:36:33]wFMCommunicate OK [16:36:33]SAM_PROTO_GetShiftState done [16:36:33]FM_GetShiftState done [16:36:33]req_shift_opened done [16:36:33]requested_item shift.open_date is exist - process it [16:36:33]req_shift_open_date [16:36:33]req_shift_open_date done [16:36:33]produce_requested_data done [16:36:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191859,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:36:33]process_action_free close_receipt [16:36:33]json_value_free [16:36:33]json_value_free done [16:36:33]process_json_proto returns [16:36:33]Send response to host [16:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191859,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:36:33]free response buf [16:36:33]execute_script done [16:36:33]execute_script returns [16:36:33]free content buf [16:36:33]Sock 5.Close socket [16:36:33]Sock 5.Thread stoped [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:54]accept exits with 6 [16:36:54]New connection [16:36:54]New thread 3066961252 created [16:36:54]Thread 3066817892 joined [16:36:54]Waiting for new connection... [16:36:54] Sock 6.Parse request [16:36:54]Sock 6.Check first char [16:36:54]Sock 6.First char is OK [16:36:54]request: POST /json_proto HTTP/1.0 [16:36:54]Method: POST [16:36:54]URL: /json_proto [16:36:54]Method is POST - this is cgi request [16:36:54]url: /json_proto [16:36:54]query_string will be loaded in cgi processing [16:36:54]execute_cgi json_proto POST (null) [16:36:54]execute_cgi path=json_proto method=POST [16:36:54]POST find Content-Length [16:36:54]Host: 172.17.63.131:8080 [16:36:54]Content-Length: 676 [16:36:54]Content-Type: application/json [16:36:54] [16:36:54]POST finish read [16:36:54]Found Content-Length = 676 [16:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:54]execute_script... [16:36: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)31168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:54]POST & json_proto [16:36:54]process_json_proto [16:36:54]json parsed OK: [16:36:54]protocol is kg_v1.0 [16:36:54]action value=close_receipt [16:36:54]process_action close_receipt [16:36:54]cmd_close_receipt [16:36:54]MH_GetDate [16:36:54]Write to MH i2c: F0 00 00 02 1E 0F [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: F0 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: F0 09 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: F0 09 00 02 1E 00 B5 1A 1D 67 22 05 6E 64 64 [16:36:54]GetLastDocTimeStamp 1729960605 [16:36:54]current date 1729960629 [16:36:54]FM_GetShiftState [16:36:54]SAM_PROTO_GetShiftState [16:36:54]wFMCommunicate request_size=4 [16:36:54]MH_SAM_APDU [16:36:54]CAPDU: 80 13 01 00 [16:36:54]Write to MH i2c: E2 08 00 03 1E 80 13 01 00 00 00 00 00 9E [16:36:54]Write i2c OK [16:36:54]MH_I2C_Read... [16:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:54]Read from MH i2c: E2 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 0E 00 [16:36:54]MH_I2C_Read... [16:36:54]Read from MH i2c: E2 0E 00 03 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 17 [16:36:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:36:54]wFMCommunicate OK [16:36:54]SAM_PROTO_GetShiftState done [16:36:54]FM_GetShiftState done [16:36:54]opened in 1729902770 [16:36:54]opened+sec_in_day 1729989170 [16:36:54]quantity*price = 60009 [16:36:54]sum+1 = 60010 [16:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 223 26.10.2024 16:37 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191860 ФПД: 107678141565560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191860&fm=107678141565560&tin=02508201610067®Number=0000000000091776&sum=60000 [16:36:55]StoreToDocumentArchive [16:36:55]shift 541 fd 191860 [16:36:55]save to /storage/0541/doc_00191860 [16:36:55]save last doc name /storage/0541/doc_00191860 to /storage/kkm_last_doc_name [16:36:55]save OK [16:36:55]Clear old archive folders... [16:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:36:55]tlvbuf is 01BE1740 [16:36:55]SAM_PROTO_ClearQueue [16:36:55]wFMCommunicate request_size=4 [16:36:55]MH_SAM_APDU [16:36:55]CAPDU: 80 09 00 00 [16:36:55]Write to MH i2c: E2 08 00 10 1E 80 09 00 00 00 00 00 00 A0 [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:55]Read from MH i2c: E2 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 10 1E 00 90 00 A2 [16:36:55]RAPDU: 90 00 [16:36:55]wFMCommunicate OK [16:36:55]SAM_PROTO_ClearQueue done [16:36:55]KKMCreateOFDPacket [16:36:55]OFDProtocolAddRootSTLVToBuf [16:36:55]FM_MakeSignedData [16:36:55]FM_MakeSignedData [16:36:55]SAM_PROTO_SignData [16:36:55]wFMCommunicate request_size=4 [16:36:55]MH_SAM_APDU [16:36:55]CAPDU: 80 0D 01 02 [16:36:55]Write to MH i2c: E2 08 00 11 1E 80 0D 01 02 00 00 00 00 A8 [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:55]Read from MH i2c: E2 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [16:36:55]RAPDU: 90 00 [16:36:55]wFMCommunicate OK [16:36:55]wFMCommunicate request_size=255 [16:36:55]MH_SAM_APDU [16:36: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B5 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 ED 02 00 35 04 06 00 61 [16:36:55]Write to MH i2c: E2 02 01 12 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B5 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 ED 02 00 35 04 06 00 61 00 00 2E [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:55]Read from MH i2c: E2 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [16:36:55]RAPDU: 90 00 [16:36:55]wFMCommunicate OK [16:36:55]wFMCommunicate request_size=10 [16:36:55]MH_SAM_APDU [16:36:55]CAPDU: 80 0D 02 02 05 EE C5 60 CA 78 [16:36:55]Write to MH i2c: E2 0D 00 13 1E 80 0D 02 02 05 00 EE C5 60 CA 78 00 00 0A [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:55]Read from MH i2c: E2 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 [16:36:55]MH_I2C_Read... [16:36:55]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [16:36:55]RAPDU: 90 00 [16:36:55]wFMCommunicate OK [16:36:55]wFMCommunicate request_size=4 [16:36:55]MH_SAM_APDU [16:36:55]CAPDU: 80 0D 03 02 [16:36:55]Write to MH i2c: E2 08 00 14 1E 80 0D 03 02 00 00 00 00 AD [16:36:55]Write i2c OK [16:36:55]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0B 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 0B 00 14 1E 00 C8 B3 02 33 01 12 61 CF 90 00 A1 [16:36:56]RAPDU: C8 B3 02 33 01 12 61 CF 90 00 [16:36:56]wFMCommunicate OK [16:36:56]SAM_PROTO_SignData done [16:36:56]FM_MakeSignedData done [16:36:56]CreateOFDProtocolMessage [16:36:56]wFMCommunicate request_size=4 [16:36:56]MH_SAM_APDU [16:36:56]CAPDU: 80 11 00 00 [16:36:56]Write to MH i2c: E2 08 00 15 1E 80 11 00 00 00 00 00 00 AD [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:56]Read from MH i2c: E2 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: E2 17 00 15 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [16:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:56]wFMCommunicate OK [16:36:56]CreateOFDProtocolMessage done [16:36:56]OFDSenderStorePacket 191860 [16:36:56]StoreOFDPacket docnum=191860 [16:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 B5 07 01 D7 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B5 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 ED 02 00 35 04 06 00 61 EE C5 60 CA 78 C8 B3 02 33 01 12 61 CF [16:36:56]CheckFolder [16:36:56]dirname=/storage/ofd_packets [16:36:56]CheckFolder done [16:36:56]ProducePacketName [16:36:56]name=ofd_packets/00191860 [16:36:56]NVStorageSaveData ofd_packets/00191860 [16:36:56]File name is /storage/ofd_packets/00191860 [16:36:56]Write 301 bytes [16:36:56]NVStorageSaveData done [16:36:56]OFDSenderStorePacket done [16:36:56]KKMCreateOFDPacket done [16:36:56]NVStorageSaveData kkm_last_timestamp [16:36:56]File name is /storage/kkm_last_timestamp [16:36:56]Write 4 bytes [16:36:56]NVStorageSaveData done [16:36:56]ExternCall_PrintAddStr [16:36:56]wPrintStart [16:36:56]Write to MH i2c: 01 00 00 16 1E 34 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 FF 0F 49 [16:36:56]RasterBufferAndPrint [16:36:56]line Счет N : (1)31168 [16:36:56]line ИНН: 02508201610067 [16:36:56]line Контрольно-Кассовый Чек [16:36:56]line ПРОДАЖА [16:36:56]line ТРК (МРК, ГНК) : 21 [16:36:56]line Товар: 2710124130 [16:36:56]line Аи-92-К-5 [16:36:56]line 8.970 * 66.90 [16:36:56]line = 600.09 [16:36:56]line НДС 12% НСП 1% [16:36:56]line > о реализуемом товаре [16:36:56]line ОКРУГЛЕНИЕ: -0.09 [16:36:56]line ИТОГО: 600.00 [16:36:56]line Внесено: 600.00 [16:36:56]line СДАЧА: 0.00 [16:36:56]line НСП 1% : 5.31 [16:36:56]line НДС 12% : 63.73 [16:36:56]line Наличными: 600.00 [16:36:56]line Безнал.: 0.00 [16:36:56]line Место: АЗС № 170 "Партнер Нефть" [16:36:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:36:56]line СНО: Общий режим [16:36:56]line Чек 223 26.10.2024 16:37 [16:36:56]line Смена: 541 ФФД: 1.0 [16:36:56]line ЗНМ: 0300000110 [16:36:56]line РНМ: 0000000000091776 [16:36:56]line Версия ККМ: 001 [16:36:56]line ФМ: 0000000000871754 [16:36:56]line ФД: 191860 [16:36:56]line ФПД: 107678141565560 [16:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T163709&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191860&fm=107678141565560&tin=02508201610067®Number=0000000000091776&sum=60000 [16:36:56]OFD Sender: Processing packet 191860 [packets to send 75, broken 74] [16:36:56]ProducePacketName [16:36:56]name=ofd_packets/00191860 [16:36:56]OFD Sender: To server: pG, [16:36:56]CommunicateWithHost lk.salyk.kg:30040 [16:36:56]ConnectInit lk.salyk.kg [16:36:56]written 0, free lines is 4095 [16:36:56]Connected sock=5 [16:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 55 B5 07 01 D7 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B5 1A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 ED 02 00 35 04 06 00 61 EE C5 60 CA 78 C8 B3 02 33 01 12 61 CF [16:36:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 54 53 47 00 2F A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 74 ED 02 00 F4 03 04 00 80 BF 1C 67 B6 04 01 00 00 35 3A BC 00 F9 E8 25 A5 [16:36:56]CommunicateWithHost err = 0 [16:36:56]CheckOFDResponse [16:36:56]1017 (14) - 77093643461234 [16:36:56]1041 (16) - 0000000000871754 [16:36:56]1040 (4) - 191860 [16:36:56]1012 (4) - 26.10.2024 10:08 [16:36:56]1206 (1) - 0 [16:36:56]OFD Sender: Remove packet 191860 [16:36:56]ProducePacketName [16:36:56]name=ofd_packets/00191860 [16:36:56]NVStorageDeleteData [16:36:56]Write to MH i2c: 01 00 00 41 1E 5F [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: 01 07 00 41 1E 00 00 00 00 00 C4 0C 36 [16:36:56]RasterBufferAndPrint [16:36:56]line [16:36:56]line [16:36:56]line [16:36:56]line [16:36:56]line [16:36:56]written 0, free lines is 3277 [16:36:56]MH_Cut [16:36:56]Write to MH i2c: D1 01 00 48 1E 01 38 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: D1 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: D1 01 00 [16:36:56]MH_I2C_Read... [16:36:56]Read from MH i2c: D1 01 00 48 1E 00 37 [16:36:56]Write to MH i2c: 01 00 00 49 1E 67 [16:36:56]Write i2c OK [16:36:56]MH_I2C_Read... [16:36:57]OFD Sender: No OFD packet to send [16:36:57]*** Cut start [16:36:57]*** Partial cut [16:36:57]*** CUTSNS_PIN = 1 [16:36:57]*** CUTSNS_PIN = 0 [16:36:57]*** Brake cut motor [16:36:58]Read from MH i2c: 01 [16:36:58]MH_I2C_Read... [16:36:58]*** Stop cut motor [16:36:58]*** Cut end [16:36:58]Read from MH i2c: 01 07 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: 01 07 00 49 1E 00 00 00 00 00 FF 0F 7C [16:36:58]process_action close_receipt done [16:36:58]requested_data is exist [16:36:58]produce_requested_data [16:36:58]requested_item fm.sn is exist - process it [16:36:58]wFMCommunicate request_size=4 [16:36:58]MH_SAM_APDU [16:36:58]CAPDU: 80 11 00 00 [16:36:58]Write to MH i2c: E2 08 00 4A 1E 80 11 00 00 00 00 00 00 E2 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:58]Read from MH i2c: E2 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 17 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 17 00 4A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [16:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:36:58]wFMCommunicate OK [16:36:58]requested_item fd.num is exist - process it [16:36:58]SAM_PROTO_GetFieldsCounters [16:36:58]wFMCommunicate request_size=4 [16:36:58]MH_SAM_APDU [16:36:58]CAPDU: 80 13 00 00 [16:36:58]Write to MH i2c: E2 08 00 4B 1E 80 13 00 00 00 00 00 00 E5 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:58]Read from MH i2c: E2 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 62 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 62 00 4B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [16:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 74 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:58]wFMCommunicate OK [16:36:58]SAM_PROTO_GetFieldsCounters done [16:36:58]requested_item shift.num is exist - process it [16:36:58]requested_item shift.opened is exist - process it [16:36:58]req_shift_opened [16:36:58]FM_GetShiftState [16:36:58]SAM_PROTO_GetShiftState [16:36:58]wFMCommunicate request_size=4 [16:36:58]MH_SAM_APDU [16:36:58]CAPDU: 80 13 01 00 [16:36:58]Write to MH i2c: E2 08 00 4C 1E 80 13 01 00 00 00 00 00 E7 [16:36:58]Write i2c OK [16:36:58]MH_I2C_Read... [16:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:58]Read from MH i2c: E2 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 0E 00 [16:36:58]MH_I2C_Read... [16:36:58]Read from MH i2c: E2 0E 00 4C 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 60 [16:36:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:36:58]wFMCommunicate OK [16:36:58]SAM_PROTO_GetShiftState done [16:36:58]FM_GetShiftState done [16:36:58]req_shift_opened done [16:36:58]requested_item shift.open_date is exist - process it [16:36:58]req_shift_open_date [16:36:58]req_shift_open_date done [16:36:58]produce_requested_data done [16:36:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191860,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:36:58]process_action_free close_receipt [16:36:58]json_value_free [16:36:58]json_value_free done [16:36:58]process_json_proto returns [16:36:58]Send response to host [16:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191860,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:36:58]free response buf [16:36:58]execute_script done [16:36:58]execute_script returns [16:36:58]free content buf [16:36:58]Sock 6.Close socket [16:36:58]Sock 6.Thread stoped [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:44]accept exits with 8 [16:39:44]New connection [16:39:44]New thread 3066817892 created [16:39:44]Thread 3066961252 joined [16:39:44]Waiting for new connection... [16:39:44] Sock 8.Parse request [16:39:44]Sock 8.Check first char [16:39:44]Sock 8.First char is OK [16:39:44]request: POST /json_proto HTTP/1.0 [16:39:44]Method: POST [16:39:44]URL: /json_proto [16:39:44]Method is POST - this is cgi request [16:39:44]url: /json_proto [16:39:44]query_string will be loaded in cgi processing [16:39:44]execute_cgi json_proto POST (null) [16:39:44]execute_cgi path=json_proto method=POST [16:39:44]POST find Content-Length [16:39:44]Host: 172.17.63.131:8080 [16:39:44]Content-Length: 670 [16:39:44]Content-Type: application/json [16:39:44] [16:39:44]POST finish read [16:39:44]Found Content-Length = 670 [16:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:44]execute_script... [16:39: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)31169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:44]POST & json_proto [16:39:44]process_json_proto [16:39:44]json parsed OK: [16:39:44]protocol is kg_v1.0 [16:39:44]action value=close_receipt [16:39:44]process_action close_receipt [16:39:44]cmd_close_receipt [16:39:44]MH_GetDate [16:39:44]Write to MH i2c: F0 00 00 4D 1E 5A [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 09 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 09 00 4D 1E 00 60 1B 1D 67 22 05 6E 64 5B [16:39:44]GetLastDocTimeStamp 1729960629 [16:39:44]current date 1729960800 [16:39:44]FM_GetShiftState [16:39:44]SAM_PROTO_GetShiftState [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 13 01 00 [16:39:44]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 62 [16:39:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:39:44]wFMCommunicate OK [16:39:44]SAM_PROTO_GetShiftState done [16:39:44]FM_GetShiftState done [16:39:44]opened in 1729902770 [16:39:44]opened+sec_in_day 1729989170 [16:39:44]quantity*price = 66 [16:39:44]sum+1 = 68 [16:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 500.00 СДАЧА: 500.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 224 26.10.2024 16:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191861 ФПД: 69241862192035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164000&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191861&fm=69241862192035&tin=02508201610067®Number=0000000000091776&sum=0 [16:39:45]StoreToDocumentArchive [16:39:45]shift 541 fd 191861 [16:39:45]save to /storage/0541/doc_00191861 [16:39:45]save last doc name /storage/0541/doc_00191861 to /storage/kkm_last_doc_name [16:39:45]save OK [16:39:45]Clear old archive folders... [16:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:45]tlvbuf is 0187D3F0 [16:39:45]SAM_PROTO_ClearQueue [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 09 00 00 [16:39:45]Write to MH i2c: E2 08 00 5B 1E 80 09 00 00 00 00 00 00 EB [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 5B 1E 00 90 00 ED [16:39:45]RAPDU: 90 00 [16:39:45]wFMCommunicate OK [16:39:45]SAM_PROTO_ClearQueue done [16:39:45]KKMCreateOFDPacket [16:39:45]OFDProtocolAddRootSTLVToBuf [16:39:45]FM_MakeSignedData [16:39:45]FM_MakeSignedData [16:39:45]SAM_PROTO_SignData [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 0D 01 02 [16:39:45]Write to MH i2c: E2 08 00 5C 1E 80 0D 01 02 00 00 00 00 F3 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [16:39:45]RAPDU: 90 00 [16:39:45]wFMCommunicate OK [16:39:45]wFMCommunicate request_size=255 [16:39:45]MH_SAM_APDU [16:39: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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 60 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 ED 02 00 35 04 06 00 3E [16:39:45]Write to MH i2c: E2 02 01 5D 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 60 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 ED 02 00 35 04 06 00 3E 00 00 33 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [16:39:46]RAPDU: 90 00 [16:39:46]wFMCommunicate OK [16:39:46]wFMCommunicate request_size=10 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 0D 02 02 05 F9 A0 99 7B A3 [16:39:46]Write to MH i2c: E2 0D 00 5E 1E 80 0D 02 02 05 00 F9 A0 99 7B A3 00 00 50 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [16:39:46]RAPDU: 90 00 [16:39:46]wFMCommunicate OK [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 0D 03 02 [16:39:46]Write to MH i2c: E2 08 00 5F 1E 80 0D 03 02 00 00 00 00 F8 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0B 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0B 00 5F 1E 00 AE 94 EB 80 3C 70 D2 8E 90 00 B2 [16:39:46]RAPDU: AE 94 EB 80 3C 70 D2 8E 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_SignData done [16:39:46]FM_MakeSignedData done [16:39:46]CreateOFDProtocolMessage [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 11 00 00 [16:39:46]Write to MH i2c: E2 08 00 60 1E 80 11 00 00 00 00 00 00 F8 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 60 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [16:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:46]wFMCommunicate OK [16:39:46]CreateOFDProtocolMessage done [16:39:46]OFDSenderStorePacket 191861 [16:39:46]StoreOFDPacket docnum=191861 [16:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 9C 07 01 25 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 60 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 ED 02 00 35 04 06 00 3E F9 A0 99 7B A3 AE 94 EB 80 3C 70 D2 8E [16:39:46]CheckFolder [16:39:46]dirname=/storage/ofd_packets [16:39:46]CheckFolder done [16:39:46]ProducePacketName [16:39:46]name=ofd_packets/00191861 [16:39:46]NVStorageSaveData ofd_packets/00191861 [16:39:46]File name is /storage/ofd_packets/00191861 [16:39:46]Write 301 bytes [16:39:46]NVStorageSaveData done [16:39:46]OFDSenderStorePacket done [16:39:46]KKMCreateOFDPacket done [16:39:46]NVStorageSaveData kkm_last_timestamp [16:39:46]File name is /storage/kkm_last_timestamp [16:39:46]Write 4 bytes [16:39:46]NVStorageSaveData done [16:39:46]ExternCall_PrintAddStr [16:39:46]wPrintStart [16:39:46]Write to MH i2c: 01 00 00 61 1E 7F [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FF 0F 94 [16:39:46]RasterBufferAndPrint [16:39:46]line Счет N : (1)31169 [16:39:46]line ИНН: 02508201610067 [16:39:46]line Контрольно-Кассовый Чек [16:39:46]line ПРОДАЖА [16:39:46]line ТРК (МРК, ГНК) : 12 [16:39:46]line Товар: 2710124130 [16:39:46]line Аи-92-К-5 [16:39:46]line 0.010 * 66.90 [16:39:46]line = 0.67 [16:39:46]line НДС 12% НСП 1% [16:39:46]line > о реализуемом товаре [16:39:46]line ОКРУГЛЕНИЕ: -0.67 [16:39:46]line ИТОГО: 0.00 [16:39:46]line Внесено: 500.00 [16:39:46]line СДАЧА: 500.00 [16:39:46]line НСП 1% : 0.01 [16:39:46]line НДС 12% : 0.07 [16:39:46]line Наличными: 0.00 [16:39:46]line Безнал.: 0.00 [16:39:46]line Место: АЗС № 170 "Партнер Нефть" [16:39:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:39:46]line СНО: Общий режим [16:39:46]line Чек 224 26.10.2024 16:40 [16:39:46]line Смена: 541 ФФД: 1.0 [16:39:46]line ЗНМ: 0300000110 [16:39:46]line РНМ: 0000000000091776 [16:39:46]line Версия ККМ: 001 [16:39:46]line ФМ: 0000000000871754 [16:39:46]line ФД: 191861 [16:39:46]line ФПД: 69241862192035 [16:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164000&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191861&fm=69241862192035&tin=02508201610067®Number=0000000000091776&sum=0 [16:39:46]OFD Sender: Processing packet 191861 [packets to send 75, broken 74] [16:39:46]ProducePacketName [16:39:46]name=ofd_packets/00191861 [16:39:46]OFD Sender: To server: pG, [16:39:46]CommunicateWithHost lk.salyk.kg:30040 [16:39:46]ConnectInit lk.salyk.kg [16:39:46]written 0, free lines is 4095 [16:39:46]Connected sock=6 [16:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0D 9C 07 01 25 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 60 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 ED 02 00 35 04 06 00 3E F9 A0 99 7B A3 AE 94 EB 80 3C 70 D2 8E [16:39:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B8 25 47 00 78 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 75 ED 02 00 F4 03 04 00 2A C0 1C 67 B6 04 01 00 00 10 45 A3 BE 06 99 F8 DC [16:39:47]CommunicateWithHost err = 0 [16:39:47]CheckOFDResponse [16:39:47]1017 (14) - 77093643461234 [16:39:47]1041 (16) - 0000000000871754 [16:39:47]1040 (4) - 191861 [16:39:47]1012 (4) - 26.10.2024 10:10 [16:39:47]1206 (1) - 0 [16:39:47]OFD Sender: Remove packet 191861 [16:39:47]ProducePacketName [16:39:47]name=ofd_packets/00191861 [16:39:47]NVStorageDeleteData [16:39:47]Write to MH i2c: 01 00 00 8C 1E AA [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: 01 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: 01 07 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 C2 0C 7F [16:39:47]RasterBufferAndPrint [16:39:47]line [16:39:47]line [16:39:47]line [16:39:47]line [16:39:47]line [16:39:47]written 0, free lines is 3272 [16:39:47]MH_Cut [16:39:47]Write to MH i2c: D1 01 00 93 1E 01 83 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: D1 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: D1 01 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: D1 01 00 93 1E 00 82 [16:39:47]Write to MH i2c: 01 00 00 94 1E B2 [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]OFD Sender: No OFD packet to send [16:39:47]*** Cut start [16:39:47]*** Partial cut [16:39:47]*** CUTSNS_PIN = 1 [16:39:48]*** CUTSNS_PIN = 0 [16:39:48]*** Brake cut motor [16:39:48]Read from MH i2c: 01 [16:39:48]MH_I2C_Read... [16:39:48]*** Stop cut motor [16:39:48]*** Cut end [16:39:48]Read from MH i2c: 01 07 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 FF 0F C7 [16:39:48]process_action close_receipt done [16:39:48]requested_data is exist [16:39:48]produce_requested_data [16:39:48]requested_item fm.sn is exist - process it [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 11 00 00 [16:39:48]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [16:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:39:48]wFMCommunicate OK [16:39:48]requested_item fd.num is exist - process it [16:39:48]SAM_PROTO_GetFieldsCounters [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 13 00 00 [16:39:48]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 62 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 62 00 96 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [16:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 75 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_GetFieldsCounters done [16:39:48]requested_item shift.num is exist - process it [16:39:48]requested_item shift.opened is exist - process it [16:39:48]req_shift_opened [16:39:48]FM_GetShiftState [16:39:48]SAM_PROTO_GetShiftState [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 13 01 00 [16:39:48]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0E 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AB [16:39:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_GetShiftState done [16:39:48]FM_GetShiftState done [16:39:48]req_shift_opened done [16:39:48]requested_item shift.open_date is exist - process it [16:39:48]req_shift_open_date [16:39:48]req_shift_open_date done [16:39:48]produce_requested_data done [16:39:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191861,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:39:48]process_action_free close_receipt [16:39:48]json_value_free [16:39:48]json_value_free done [16:39:48]process_json_proto returns [16:39:48]Send response to host [16:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191861,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:39:48]free response buf [16:39:48]execute_script done [16:39:48]execute_script returns [16:39:48]free content buf [16:39:48]Sock 8.Close socket [16:39:48]Sock 8.Thread stoped [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]accept exits with 5 [16:40:17]New connection [16:40:17]New thread 3066961252 created [16:40:17]Thread 3066817892 joined [16:40:17]Waiting for new connection... [16:40:17] Sock 5.Parse request [16:40:17]Sock 5.Check first char [16:40:17]Sock 5.First char is OK [16:40:17]request: POST /json_proto HTTP/1.0 [16:40:17]Method: POST [16:40:17]URL: /json_proto [16:40:17]Method is POST - this is cgi request [16:40:17]url: /json_proto [16:40:17]query_string will be loaded in cgi processing [16:40:17]execute_cgi json_proto POST (null) [16:40:17]execute_cgi path=json_proto method=POST [16:40:17]POST find Content-Length [16:40:17]Host: 172.17.63.131:8080 [16:40:17]Content-Length: 676 [16:40:17]Content-Type: application/json [16:40:17] [16:40:17]POST finish read [16:40:17]Found Content-Length = 676 [16:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:17]execute_script... [16:40:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:17]POST & json_proto [16:40:17]process_json_proto [16:40:17]json parsed OK: [16:40:17]protocol is kg_v1.0 [16:40:17]action value=close_receipt [16:40:17]process_action close_receipt [16:40:17]cmd_close_receipt [16:40:17]MH_GetDate [16:40:17]Write to MH i2c: F0 00 00 98 1E A5 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 09 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: F0 09 00 98 1E 00 80 1B 1D 67 22 05 6E 64 C6 [16:40:17]GetLastDocTimeStamp 1729960800 [16:40:17]current date 1729960832 [16:40:17]FM_GetShiftState [16:40:17]SAM_PROTO_GetShiftState [16:40:17]wFMCommunicate request_size=4 [16:40:17]MH_SAM_APDU [16:40:17]CAPDU: 80 13 01 00 [16:40:17]Write to MH i2c: E2 08 00 99 1E 80 13 01 00 00 00 00 00 34 [16:40:17]Write i2c OK [16:40:17]MH_I2C_Read... [16:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:17]Read from MH i2c: E2 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 [16:40:17]MH_I2C_Read... [16:40:17]Read from MH i2c: E2 0E 00 99 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AD [16:40:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:40:17]wFMCommunicate OK [16:40:17]SAM_PROTO_GetShiftState done [16:40:17]FM_GetShiftState done [16:40:17]opened in 1729902770 [16:40:17]opened+sec_in_day 1729989170 [16:40:17]quantity*price = 50041 [16:40:17]sum+1 = 50042 [16:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 225 26.10.2024 16:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191862 ФПД: 155576703606415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191862&fm=155576703606415&tin=02508201610067®Number=0000000000091776&sum=50000 [16:40:18]StoreToDocumentArchive [16:40:18]shift 541 fd 191862 [16:40:18]save to /storage/0541/doc_00191862 [16:40:18]save last doc name /storage/0541/doc_00191862 to /storage/kkm_last_doc_name [16:40:18]save OK [16:40:18]Clear old archive folders... [16:40:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:18]tlvbuf is 01BE1620 [16:40:18]SAM_PROTO_ClearQueue [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 09 00 00 [16:40:18]Write to MH i2c: E2 08 00 A6 1E 80 09 00 00 00 00 00 00 36 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]SAM_PROTO_ClearQueue done [16:40:18]KKMCreateOFDPacket [16:40:18]OFDProtocolAddRootSTLVToBuf [16:40:18]FM_MakeSignedData [16:40:18]FM_MakeSignedData [16:40:18]SAM_PROTO_SignData [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 01 02 [16:40:18]Write to MH i2c: E2 08 00 A7 1E 80 0D 01 02 00 00 00 00 3E [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]wFMCommunicate request_size=255 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 80 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 ED 02 00 35 04 06 00 8D [16:40:18]Write to MH i2c: E2 02 01 A8 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 80 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 ED 02 00 35 04 06 00 8D 00 00 E3 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]wFMCommunicate request_size=10 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 02 02 05 7F 06 27 5E 8F [16:40:18]Write to MH i2c: E2 0D 00 A9 1E 80 0D 02 02 05 00 7F 06 27 5E 8F 00 00 E4 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [16:40:18]RAPDU: 90 00 [16:40:18]wFMCommunicate OK [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 0D 03 02 [16:40:18]Write to MH i2c: E2 08 00 AA 1E 80 0D 03 02 00 00 00 00 43 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 0B 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 0B 00 AA 1E 00 A0 74 FD 06 F3 56 85 B7 90 00 E0 [16:40:18]RAPDU: A0 74 FD 06 F3 56 85 B7 90 00 [16:40:18]wFMCommunicate OK [16:40:18]SAM_PROTO_SignData done [16:40:18]FM_MakeSignedData done [16:40:18]CreateOFDProtocolMessage [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 11 00 00 [16:40:18]Write to MH i2c: E2 08 00 AB 1E 80 11 00 00 00 00 00 00 43 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 17 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 17 00 AB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [16:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:18]wFMCommunicate OK [16:40:18]CreateOFDProtocolMessage done [16:40:18]OFDSenderStorePacket 191862 [16:40:18]StoreOFDPacket docnum=191862 [16:40:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 D4 07 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 80 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 ED 02 00 35 04 06 00 8D 7F 06 27 5E 8F A0 74 FD 06 F3 56 85 B7 [16:40:18]CheckFolder [16:40:18]dirname=/storage/ofd_packets [16:40:18]CheckFolder done [16:40:18]ProducePacketName [16:40:18]name=ofd_packets/00191862 [16:40:18]NVStorageSaveData ofd_packets/00191862 [16:40:18]File name is /storage/ofd_packets/00191862 [16:40:18]Write 301 bytes [16:40:18]NVStorageSaveData done [16:40:18]OFDSenderStorePacket done [16:40:18]KKMCreateOFDPacket done [16:40:18]NVStorageSaveData kkm_last_timestamp [16:40:18]File name is /storage/kkm_last_timestamp [16:40:18]Write 4 bytes [16:40:18]NVStorageSaveData done [16:40:18]ExternCall_PrintAddStr [16:40:18]wPrintStart [16:40:18]Write to MH i2c: 01 00 00 AC 1E CA [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 FF 0F DF [16:40:18]RasterBufferAndPrint [16:40:18]line Счет N : (1)31170 [16:40:18]line ИНН: 02508201610067 [16:40:18]line Контрольно-Кассовый Чек [16:40:18]line ПРОДАЖА [16:40:18]line ТРК (МРК, ГНК) : 12 [16:40:18]line Товар: 2710124130 [16:40:18]line Аи-92-К-5 [16:40:18]line 7.480 * 66.90 [16:40:18]line = 500.41 [16:40:18]line НДС 12% НСП 1% [16:40:18]line > о реализуемом товаре [16:40:18]line ОКРУГЛЕНИЕ: -0.41 [16:40:18]line ИТОГО: 500.00 [16:40:18]line Внесено: 500.00 [16:40:18]line СДАЧА: 0.00 [16:40:18]line НСП 1% : 4.43 [16:40:18]line НДС 12% : 53.14 [16:40:18]line Наличными: 500.00 [16:40:18]line Безнал.: 0.00 [16:40:18]line Место: АЗС № 170 "Партнер Нефть" [16:40:18]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:40:18]line СНО: Общий режим [16:40:18]line Чек 225 26.10.2024 16:40 [16:40:18]line Смена: 541 ФФД: 1.0 [16:40:18]line ЗНМ: 0300000110 [16:40:18]line РНМ: 0000000000091776 [16:40:18]line Версия ККМ: 001 [16:40:18]line ФМ: 0000000000871754 [16:40:18]line ФД: 191862 [16:40:18]line ФПД: 155576703606415 [16:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164032&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191862&fm=155576703606415&tin=02508201610067®Number=0000000000091776&sum=50000 [16:40:19]OFD Sender: Processing packet 191862 [packets to send 75, broken 74] [16:40:19]ProducePacketName [16:40:19]name=ofd_packets/00191862 [16:40:19]OFD Sender: To server: pG, [16:40:19]CommunicateWithHost lk.salyk.kg:30040 [16:40:19]ConnectInit lk.salyk.kg [16:40:19]written 0, free lines is 4095 [16:40:19]Connected sock=8 [16:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 67 D4 07 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 80 1B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 ED 02 00 35 04 06 00 8D 7F 06 27 5E 8F A0 74 FD 06 F3 56 85 B7 [16:40:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF 3C 47 00 A8 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 76 ED 02 00 F4 03 04 00 4B C0 1C 67 B6 04 01 00 00 5F 3C C2 D1 8B 31 CE E5 [16:40:19]CommunicateWithHost err = 0 [16:40:19]CheckOFDResponse [16:40:19]1017 (14) - 77093643461234 [16:40:19]1041 (16) - 0000000000871754 [16:40:19]1040 (4) - 191862 [16:40:19]1012 (4) - 26.10.2024 10:11 [16:40:19]1206 (1) - 0 [16:40:19]OFD Sender: Remove packet 191862 [16:40:19]ProducePacketName [16:40:19]name=ofd_packets/00191862 [16:40:19]NVStorageDeleteData [16:40:19]Write to MH i2c: 01 00 00 D7 1E F5 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 C3 0C CB [16:40:19]RasterBufferAndPrint [16:40:19]line [16:40:19]line [16:40:19]line [16:40:19]line [16:40:19]line [16:40:19]written 0, free lines is 3276 [16:40:19]MH_Cut [16:40:19]Write to MH i2c: D1 01 00 DE 1E 01 CE [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: D1 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: D1 01 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: D1 01 00 DE 1E 00 CD [16:40:19]Write to MH i2c: 01 00 00 DF 1E FD [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]OFD Sender: No OFD packet to send [16:40:20]*** Cut start [16:40:20]*** Partial cut [16:40:20]*** CUTSNS_PIN = 1 [16:40:20]*** CUTSNS_PIN = 0 [16:40:20]*** Brake cut motor [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]*** Stop cut motor [16:40:20]*** Cut end [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [16:40:20]process_action close_receipt done [16:40:20]requested_data is exist [16:40:20]produce_requested_data [16:40:20]requested_item fm.sn is exist - process it [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 11 00 00 [16:40:20]Write to MH i2c: E2 08 00 E0 1E 80 11 00 00 00 00 00 00 78 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:21]Read from MH i2c: E2 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 17 00 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 17 00 E0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [16:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:40:21]wFMCommunicate OK [16:40:21]requested_item fd.num is exist - process it [16:40:21]SAM_PROTO_GetFieldsCounters [16:40:21]wFMCommunicate request_size=4 [16:40:21]MH_SAM_APDU [16:40:21]CAPDU: 80 13 00 00 [16:40:21]Write to MH i2c: E2 08 00 E1 1E 80 13 00 00 00 00 00 00 7B [16:40:21]Write i2c OK [16:40:21]MH_I2C_Read... [16:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:21]Read from MH i2c: E2 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 62 00 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 62 00 E1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [16:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 76 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:21]wFMCommunicate OK [16:40:21]SAM_PROTO_GetFieldsCounters done [16:40:21]requested_item shift.num is exist - process it [16:40:21]requested_item shift.opened is exist - process it [16:40:21]req_shift_opened [16:40:21]FM_GetShiftState [16:40:21]SAM_PROTO_GetShiftState [16:40:21]wFMCommunicate request_size=4 [16:40:21]MH_SAM_APDU [16:40:21]CAPDU: 80 13 01 00 [16:40:21]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [16:40:21]Write i2c OK [16:40:21]MH_I2C_Read... [16:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:21]Read from MH i2c: E2 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 0E 00 [16:40:21]MH_I2C_Read... [16:40:21]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F6 [16:40:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:40:21]wFMCommunicate OK [16:40:21]SAM_PROTO_GetShiftState done [16:40:21]FM_GetShiftState done [16:40:21]req_shift_opened done [16:40:21]requested_item shift.open_date is exist - process it [16:40:21]req_shift_open_date [16:40:21]req_shift_open_date done [16:40:21]produce_requested_data done [16:40:21]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191862,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:40:21]process_action_free close_receipt [16:40:21]json_value_free [16:40:21]json_value_free done [16:40:21]process_json_proto returns [16:40:21]Send response to host [16:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191862,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:40:21]free response buf [16:40:21]execute_script done [16:40:21]execute_script returns [16:40:21]free content buf [16:40:21]Sock 5.Close socket [16:40:21]Sock 5.Thread stoped [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:21]accept exits with 6 [16:48:21]New connection [16:48:21]New thread 3066817892 created [16:48:21]Thread 3066961252 joined [16:48:21]Waiting for new connection... [16:48:21] Sock 6.Parse request [16:48:21]Sock 6.Check first char [16:48:21]Sock 6.First char is OK [16:48:21]request: POST /json_proto HTTP/1.0 [16:48:21]Method: POST [16:48:21]URL: /json_proto [16:48:21]Method is POST - this is cgi request [16:48:21]url: /json_proto [16:48:21]query_string will be loaded in cgi processing [16:48:21]execute_cgi json_proto POST (null) [16:48:21]execute_cgi path=json_proto method=POST [16:48:21]POST find Content-Length [16:48:21]Host: 172.17.63.131:8080 [16:48:21]Content-Length: 681 [16:48:21]Content-Type: application/json [16:48:21] [16:48:21]POST finish read [16:48:21]Found Content-Length = 681 [16:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:21]execute_script... [16:48: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)31171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:21]POST & json_proto [16:48:21]process_json_proto [16:48:21]json parsed OK: [16:48:21]protocol is kg_v1.0 [16:48:21]action value=close_receipt [16:48:21]process_action close_receipt [16:48:21]cmd_close_receipt [16:48:21]MH_GetDate [16:48:21]Write to MH i2c: F0 00 00 E3 1E F0 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: F0 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: F0 09 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: F0 09 00 E3 1E 00 64 1D 1D 67 22 05 6E 64 F7 [16:48:21]GetLastDocTimeStamp 1729960832 [16:48:21]current date 1729961316 [16:48:21]FM_GetShiftState [16:48:21]SAM_PROTO_GetShiftState [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 13 01 00 [16:48:21]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F8 [16:48:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetShiftState done [16:48:21]FM_GetShiftState done [16:48:21]opened in 1729902770 [16:48:21]opened+sec_in_day 1729989170 [16:48:21]quantity*price = 100015 [16:48:21]sum+1 = 100017 [16:48:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 226 26.10.2024 16:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191863 ФПД: 180313003025910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191863&fm=180313003025910&tin=02508201610067®Number=0000000000091776&sum=100000 [16:48:22]StoreToDocumentArchive [16:48:22]shift 541 fd 191863 [16:48:22]save to /storage/0541/doc_00191863 [16:48:22]save last doc name /storage/0541/doc_00191863 to /storage/kkm_last_doc_name [16:48:22]save OK [16:48:22]Clear old archive folders... [16:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:22]tlvbuf is 0187D580 [16:48:22]SAM_PROTO_ClearQueue [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 09 00 00 [16:48:22]Write to MH i2c: E2 08 00 F1 1E 80 09 00 00 00 00 00 00 81 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]SAM_PROTO_ClearQueue done [16:48:22]KKMCreateOFDPacket [16:48:22]OFDProtocolAddRootSTLVToBuf [16:48:22]FM_MakeSignedData [16:48:22]FM_MakeSignedData [16:48:22]SAM_PROTO_SignData [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 0D 01 02 [16:48:22]Write to MH i2c: E2 08 00 F2 1E 80 0D 01 02 00 00 00 00 89 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=255 [16:48:22]MH_SAM_APDU [16:48: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 64 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 ED 02 00 35 04 06 00 A3 [16:48:22]Write to MH i2c: E2 02 01 F3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 64 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 ED 02 00 35 04 06 00 A3 00 00 26 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=10 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 0D 02 02 05 FE 64 7E 65 F6 [16:48:22]Write to MH i2c: E2 0D 00 F4 1E 80 0D 02 02 05 00 FE 64 7E 65 F6 00 00 D1 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [16:48:22]RAPDU: 90 00 [16:48:22]wFMCommunicate OK [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 0D 03 02 [16:48:22]Write to MH i2c: E2 08 00 F5 1E 80 0D 03 02 00 00 00 00 8E [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 0B 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 0B 00 F5 1E 00 CD 28 BF AA 59 CC A4 14 90 00 CA [16:48:22]RAPDU: CD 28 BF AA 59 CC A4 14 90 00 [16:48:22]wFMCommunicate OK [16:48:22]SAM_PROTO_SignData done [16:48:22]FM_MakeSignedData done [16:48:22]CreateOFDProtocolMessage [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 11 00 00 [16:48:22]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E1 [16:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:48:22]wFMCommunicate OK [16:48:22]CreateOFDProtocolMessage done [16:48:22]OFDSenderStorePacket 191863 [16:48:22]StoreOFDPacket docnum=191863 [16:48:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 88 07 01 F3 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 64 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 ED 02 00 35 04 06 00 A3 FE 64 7E 65 F6 CD 28 BF AA 59 CC A4 14 [16:48:22]CheckFolder [16:48:22]dirname=/storage/ofd_packets [16:48:22]CheckFolder done [16:48:22]ProducePacketName [16:48:22]name=ofd_packets/00191863 [16:48:22]NVStorageSaveData ofd_packets/00191863 [16:48:22]File name is /storage/ofd_packets/00191863 [16:48:22]Write 301 bytes [16:48:22]NVStorageSaveData done [16:48:22]OFDSenderStorePacket done [16:48:22]KKMCreateOFDPacket done [16:48:22]NVStorageSaveData kkm_last_timestamp [16:48:22]File name is /storage/kkm_last_timestamp [16:48:22]Write 4 bytes [16:48:22]NVStorageSaveData done [16:48:22]ExternCall_PrintAddStr [16:48:22]wPrintStart [16:48:22]Write to MH i2c: 01 00 00 F7 1E 15 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 07 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 07 00 F7 1E 00 00 00 00 00 FF 0F 2A [16:48:22]RasterBufferAndPrint [16:48:22]line Счет N : (1)31171 [16:48:22]line ИНН: 02508201610067 [16:48:22]line Контрольно-Кассовый Чек [16:48:22]line ПРОДАЖА [16:48:22]line ТРК (МРК, ГНК) : 12 [16:48:22]line Товар: 2710124130 [16:48:22]line Аи-92-К-5 [16:48:22]line 14.950 * 66.90 [16:48:22]line = 1000.16 [16:48:22]line НДС 12% НСП 1% [16:48:22]line > о реализуемом товаре [16:48:22]line ОКРУГЛЕНИЕ: -0.16 [16:48:22]line ИТОГО: 1000.00 [16:48:22]line Внесено: 1000.00 [16:48:22]line СДАЧА: 0.00 [16:48:22]line НСП 1% : 8.85 [16:48:22]line НДС 12% : 106.21 [16:48:22]line Наличными: 1000.00 [16:48:22]line Безнал.: 0.00 [16:48:22]line Место: АЗС № 170 "Партнер Нефть" [16:48:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:48:22]line СНО: Общий режим [16:48:22]line Чек 226 26.10.2024 16:48 [16:48:22]line Смена: 541 ФФД: 1.0 [16:48:22]line ЗНМ: 0300000110 [16:48:22]line РНМ: 0000000000091776 [16:48:22]line Версия ККМ: 001 [16:48:22]line ФМ: 0000000000871754 [16:48:22]line ФД: 191863 [16:48:22]line ФПД: 180313003025910 [16:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T164836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191863&fm=180313003025910&tin=02508201610067®Number=0000000000091776&sum=100000 [16:48:23]OFD Sender: Processing packet 191863 [packets to send 75, broken 74] [16:48:23]ProducePacketName [16:48:23]name=ofd_packets/00191863 [16:48:23]OFD Sender: To server: pG, [16:48:23]CommunicateWithHost lk.salyk.kg:30040 [16:48:23]ConnectInit lk.salyk.kg [16:48:23]written 0, free lines is 4095 [16:48:23]Connected sock=8 [16:48:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 88 07 01 F3 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 64 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 ED 02 00 35 04 06 00 A3 FE 64 7E 65 F6 CD 28 BF AA 59 CC A4 14 [16:48:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FA 1A 47 00 28 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 77 ED 02 00 F4 03 04 00 2F C2 1C 67 B6 04 01 00 00 02 0C 79 13 66 4B 35 B5 [16:48:23]CommunicateWithHost err = 0 [16:48:23]CheckOFDResponse [16:48:23]1017 (14) - 77093643461234 [16:48:23]1041 (16) - 0000000000871754 [16:48:23]1040 (4) - 191863 [16:48:23]1012 (4) - 26.10.2024 10:19 [16:48:23]1206 (1) - 0 [16:48:23]OFD Sender: Remove packet 191863 [16:48:23]ProducePacketName [16:48:23]name=ofd_packets/00191863 [16:48:23]NVStorageDeleteData [16:48:23]Write to MH i2c: 01 00 00 22 1F 41 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: 01 07 00 22 1F 00 00 00 00 00 BB 0C 0F [16:48:23]RasterBufferAndPrint [16:48:23]line [16:48:23]line [16:48:23]line [16:48:23]line [16:48:23]line [16:48:23]written 0, free lines is 3267 [16:48:23]MH_Cut [16:48:23]Write to MH i2c: D1 01 00 29 1F 01 1A [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: D1 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: D1 01 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: D1 01 00 29 1F 00 19 [16:48:23]Write to MH i2c: 01 00 00 2A 1F 49 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]OFD Sender: No OFD packet to send [16:48:24]*** Cut start [16:48:24]*** Partial cut [16:48:24]*** CUTSNS_PIN = 1 [16:48:24]*** CUTSNS_PIN = 0 [16:48:24]*** Brake cut motor [16:48:24]Read from MH i2c: 01 [16:48:25]MH_I2C_Read... [16:48:25]*** Stop cut motor [16:48:25]*** Cut end [16:48:25]Read from MH i2c: 01 07 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: 01 07 00 2A 1F 00 00 00 00 00 FF 0F 5E [16:48:25]process_action close_receipt done [16:48:25]requested_data is exist [16:48:25]produce_requested_data [16:48:25]requested_item fm.sn is exist - process it [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 11 00 00 [16:48:25]Write to MH i2c: E2 08 00 2B 1F 80 11 00 00 00 00 00 00 C4 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 17 00 2B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [16:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:48:25]wFMCommunicate OK [16:48:25]requested_item fd.num is exist - process it [16:48:25]SAM_PROTO_GetFieldsCounters [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 13 00 00 [16:48:25]Write to MH i2c: E2 08 00 2C 1F 80 13 00 00 00 00 00 00 C7 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 62 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 62 00 2C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [16:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 77 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_GetFieldsCounters done [16:48:25]requested_item shift.num is exist - process it [16:48:25]requested_item shift.opened is exist - process it [16:48:25]req_shift_opened [16:48:25]FM_GetShiftState [16:48:25]SAM_PROTO_GetShiftState [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 13 01 00 [16:48:25]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 42 [16:48:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_GetShiftState done [16:48:25]FM_GetShiftState done [16:48:25]req_shift_opened done [16:48:25]requested_item shift.open_date is exist - process it [16:48:25]req_shift_open_date [16:48:25]req_shift_open_date done [16:48:25]produce_requested_data done [16:48:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191863,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:48:25]process_action_free close_receipt [16:48:25]json_value_free [16:48:25]json_value_free done [16:48:25]process_json_proto returns [16:48:25]Send response to host [16:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191863,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:48:25]free response buf [16:48:25]execute_script done [16:48:25]execute_script returns [16:48:25]free content buf [16:48:25]Sock 6.Close socket [16:48:25]Sock 6.Thread stoped [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49: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:26]accept exits with 5 [16:50:26]New connection [16:50:26]New thread 3066961252 created [16:50:26]Thread 3066817892 joined [16:50:26]Waiting for new connection... [16:50:26] Sock 5.Parse request [16:50:26]Sock 5.Check first char [16:50:26]Sock 5.First char is OK [16:50:26]request: POST /json_proto HTTP/1.0 [16:50:26]Method: POST [16:50:26]URL: /json_proto [16:50:26]Method is POST - this is cgi request [16:50:26]url: /json_proto [16:50:26]query_string will be loaded in cgi processing [16:50:26]execute_cgi json_proto POST (null) [16:50:26]execute_cgi path=json_proto method=POST [16:50:26]POST find Content-Length [16:50:26]Host: 172.17.63.131:8080 [16:50:26]Content-Length: 862 [16:50:26]Content-Type: application/json [16:50:26] [16:50:26]POST finish read [16:50:26]Found Content-Length = 862 [16:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:26]execute_script... [16:50: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)31172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:26]POST & json_proto [16:50:26]process_json_proto [16:50:26]json parsed OK: [16:50:26]protocol is kg_v1.0 [16:50:26]action value=close_receipt [16:50:26]process_action close_receipt [16:50:26]cmd_close_receipt [16:50:26]MH_GetDate [16:50:26]Write to MH i2c: F0 00 00 2E 1F 3C [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 09 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: F0 09 00 2E 1F 00 E2 1D 1D 67 22 05 6E 64 C1 [16:50:26]GetLastDocTimeStamp 1729961316 [16:50:26]current date 1729961442 [16:50:26]FM_GetShiftState [16:50:26]SAM_PROTO_GetShiftState [16:50:26]wFMCommunicate request_size=4 [16:50:26]MH_SAM_APDU [16:50:26]CAPDU: 80 13 01 00 [16:50:26]Write to MH i2c: E2 08 00 2F 1F 80 13 01 00 00 00 00 00 CB [16:50:26]Write i2c OK [16:50:26]MH_I2C_Read... [16:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:26]Read from MH i2c: E2 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 [16:50:26]MH_I2C_Read... [16:50:26]Read from MH i2c: E2 0E 00 2F 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 44 [16:50:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:50:26]wFMCommunicate OK [16:50:26]SAM_PROTO_GetShiftState done [16:50:26]FM_GetShiftState done [16:50:26]opened in 1729902770 [16:50:26]opened+sec_in_day 1729989170 [16:50:26]quantity*price = 50041 [16:50:26]sum+1 = 50042 [16:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 227 26.10.2024 16:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191864 ФПД: 40366234373633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191864&fm=40366234373633&tin=02508201610067®Number=0000000000091776&sum=50041 [16:50:27]StoreToDocumentArchive [16:50:27]shift 541 fd 191864 [16:50:27]save to /storage/0541/doc_00191864 [16:50:27]save last doc name /storage/0541/doc_00191864 to /storage/kkm_last_doc_name [16:50:27]save OK [16:50:27]Clear old archive folders... [16:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:27]tlvbuf is 01624EC0 [16:50:27]SAM_PROTO_ClearQueue [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 09 00 00 [16:50:27]Write to MH i2c: E2 08 00 3C 1F 80 09 00 00 00 00 00 00 CD [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]SAM_PROTO_ClearQueue done [16:50:27]KKMCreateOFDPacket [16:50:27]OFDProtocolAddRootSTLVToBuf [16:50:27]FM_MakeSignedData [16:50:27]FM_MakeSignedData [16:50:27]SAM_PROTO_SignData [16:50:27]wFMCommunicate request_size=4 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 01 02 [16:50:27]Write to MH i2c: E2 08 00 3D 1F 80 0D 01 02 00 00 00 00 D5 [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:27]Read from MH i2c: E2 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 [16:50:27]MH_I2C_Read... [16:50:27]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [16:50:27]RAPDU: 90 00 [16:50:27]wFMCommunicate OK [16:50:27]wFMCommunicate request_size=255 [16:50:27]MH_SAM_APDU [16:50:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E2 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 ED 02 00 35 04 06 00 24 [16:50:27]Write to MH i2c: E2 02 01 3E 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E2 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 ED 02 00 35 04 06 00 24 00 00 CB [16:50:27]Write i2c OK [16:50:27]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]wFMCommunicate request_size=10 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 02 02 05 B6 7F 0F 8E 01 [16:50:28]Write to MH i2c: E2 0D 00 3F 1F 80 0D 02 02 05 00 B6 7F 0F 8E 01 00 00 B5 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [16:50:28]RAPDU: 90 00 [16:50:28]wFMCommunicate OK [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 0D 03 02 [16:50:28]Write to MH i2c: E2 08 00 40 1F 80 0D 03 02 00 00 00 00 DA [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0B 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 0B 00 40 1F 00 1C 01 3E FC 6E 8C 1C AE 90 00 F6 [16:50:28]RAPDU: 1C 01 3E FC 6E 8C 1C AE 90 00 [16:50:28]wFMCommunicate OK [16:50:28]SAM_PROTO_SignData done [16:50:28]FM_MakeSignedData done [16:50:28]CreateOFDProtocolMessage [16:50:28]wFMCommunicate request_size=4 [16:50:28]MH_SAM_APDU [16:50:28]CAPDU: 80 11 00 00 [16:50:28]Write to MH i2c: E2 08 00 41 1F 80 11 00 00 00 00 00 00 DA [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:28]Read from MH i2c: E2 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: E2 17 00 41 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2D [16:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:28]wFMCommunicate OK [16:50:28]CreateOFDProtocolMessage done [16:50:28]OFDSenderStorePacket 191864 [16:50:28]StoreOFDPacket docnum=191864 [16:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E 8D 07 01 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E2 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 ED 02 00 35 04 06 00 24 B6 7F 0F 8E 01 1C 01 3E FC 6E 8C 1C AE [16:50:28]CheckFolder [16:50:28]dirname=/storage/ofd_packets [16:50:28]CheckFolder done [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00191864 [16:50:28]NVStorageSaveData ofd_packets/00191864 [16:50:28]File name is /storage/ofd_packets/00191864 [16:50:28]Write 301 bytes [16:50:28]NVStorageSaveData done [16:50:28]OFDSenderStorePacket done [16:50:28]KKMCreateOFDPacket done [16:50:28]NVStorageSaveData kkm_last_timestamp [16:50:28]File name is /storage/kkm_last_timestamp [16:50:28]Write 4 bytes [16:50:28]NVStorageSaveData done [16:50:28]ExternCall_PrintAddStr [16:50:28]wPrintStart [16:50:28]Write to MH i2c: 01 00 00 42 1F 61 [16:50:28]Write i2c OK [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 [16:50:28]MH_I2C_Read... [16:50:28]Read from MH i2c: 01 07 00 42 1F 00 00 00 00 00 FF 0F 76 [16:50:28]RasterBufferAndPrint [16:50:28]line Счет N : (1)31172 [16:50:28]line ИНН: 02508201610067 [16:50:28]line Контрольно-Кассовый Чек [16:50:28]line ПРОДАЖА [16:50:28]line ТРК (МРК, ГНК) : 12 [16:50:28]line Товар: 2710124130 [16:50:28]line Аи-92-К-5 [16:50:28]line 7.480 * 66.90 [16:50:28]line = 500.41 [16:50:28]line НДС 12% НСП 1% [16:50:28]line > о реализуемом товаре [16:50:28]line ИТОГО: 500.41 [16:50:28]line НСП 1% : 4.43 [16:50:28]line НДС 12% : 53.14 [16:50:28]line Наличными: 0.00 [16:50:28]line Безнал.: 500.41 [16:50:28]line Место: АЗС № 170 "Партнер Нефть" [16:50:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:50:28]line СНО: Общий режим [16:50:28]line Чек 227 26.10.2024 16:50 [16:50:28]line Смена: 541 ФФД: 1.0 [16:50:28]line ЗНМ: 0300000110 [16:50:28]line РНМ: 0000000000091776 [16:50:28]line Версия ККМ: 001 [16:50:28]line Платежная система: Кыргызкоммерцбанк [16:50:28]line ФМ: 0000000000871754 [16:50:28]line ФД: 191864 [16:50:28]line ФПД: 40366234373633 [16:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165042&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191864&fm=40366234373633&tin=02508201610067®Number=0000000000091776&sum=50041 [16:50:28]written 0, free lines is 4095 [16:50:28]OFD Sender: Processing packet 191864 [packets to send 75, broken 74] [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00191864 [16:50:28]OFD Sender: To server: pG, [16:50:28]CommunicateWithHost lk.salyk.kg:30040 [16:50:28]ConnectInit lk.salyk.kg [16:50:28]Connected sock=8 [16:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3E 8D 07 01 41 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 E2 1D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 ED 02 00 35 04 06 00 24 B6 7F 0F 8E 01 1C 01 3E FC 6E 8C 1C AE [16:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 8D 47 00 63 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 78 ED 02 00 F4 03 04 00 AC C2 1C 67 B6 04 01 00 00 09 2E 21 2D DF 48 DC 64 [16:50:28]CommunicateWithHost err = 0 [16:50:28]CheckOFDResponse [16:50:28]1017 (14) - 77093643461234 [16:50:28]1041 (16) - 0000000000871754 [16:50:28]1040 (4) - 191864 [16:50:28]1012 (4) - 26.10.2024 10:21 [16:50:28]1206 (1) - 0 [16:50:28]OFD Sender: Remove packet 191864 [16:50:28]ProducePacketName [16:50:28]name=ofd_packets/00191864 [16:50:28]NVStorageDeleteData [16:50:29]Write to MH i2c: 01 00 00 6C 1F 8B [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 07 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: 01 07 00 6C 1F 00 00 00 00 00 CF 0C 6D [16:50:29]RasterBufferAndPrint [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]line [16:50:29]written 0, free lines is 3288 [16:50:29]MH_Cut [16:50:29]Write to MH i2c: D1 01 00 73 1F 01 64 [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 01 00 [16:50:29]MH_I2C_Read... [16:50:29]Read from MH i2c: D1 01 00 73 1F 00 63 [16:50:29]Write to MH i2c: 01 00 00 74 1F 93 [16:50:29]Write i2c OK [16:50:29]MH_I2C_Read... [16:50:29]OFD Sender: No OFD packet to send [16:50:29]*** Cut start [16:50:29]*** Partial cut [16:50:29]*** CUTSNS_PIN = 1 [16:50:29]*** CUTSNS_PIN = 0 [16:50:30]*** Brake cut motor [16:50:30]Read from MH i2c: 01 [16:50:30]MH_I2C_Read... [16:50:30]*** Stop cut motor [16:50:30]*** Cut end [16:50:30]Read from MH i2c: 01 07 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 FF 0F A8 [16:50:30]process_action close_receipt done [16:50:30]requested_data is exist [16:50:30]produce_requested_data [16:50:30]requested_item fm.sn is exist - process it [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 11 00 00 [16:50:30]Write to MH i2c: E2 08 00 75 1F 80 11 00 00 00 00 00 00 0E [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 17 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 17 00 75 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [16:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:50:30]wFMCommunicate OK [16:50:30]requested_item fd.num is exist - process it [16:50:30]SAM_PROTO_GetFieldsCounters [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 13 00 00 [16:50:30]Write to MH i2c: E2 08 00 76 1F 80 13 00 00 00 00 00 00 11 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 62 00 76 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [16:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 78 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetFieldsCounters done [16:50:30]requested_item shift.num is exist - process it [16:50:30]requested_item shift.opened is exist - process it [16:50:30]req_shift_opened [16:50:30]FM_GetShiftState [16:50:30]SAM_PROTO_GetShiftState [16:50:30]wFMCommunicate request_size=4 [16:50:30]MH_SAM_APDU [16:50:30]CAPDU: 80 13 01 00 [16:50:30]Write to MH i2c: E2 08 00 77 1F 80 13 01 00 00 00 00 00 13 [16:50:30]Write i2c OK [16:50:30]MH_I2C_Read... [16:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:30]Read from MH i2c: E2 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 [16:50:30]MH_I2C_Read... [16:50:30]Read from MH i2c: E2 0E 00 77 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8C [16:50:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:50:30]wFMCommunicate OK [16:50:30]SAM_PROTO_GetShiftState done [16:50:30]FM_GetShiftState done [16:50:30]req_shift_opened done [16:50:30]requested_item shift.open_date is exist - process it [16:50:30]req_shift_open_date [16:50:30]req_shift_open_date done [16:50:30]produce_requested_data done [16:50:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191864,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:50:30]process_action_free close_receipt [16:50:30]json_value_free [16:50:30]json_value_free done [16:50:30]process_json_proto returns [16:50:30]Send response to host [16:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191864,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:50:30]free response buf [16:50:30]execute_script done [16:50:30]execute_script returns [16:50:30]free content buf [16:50:30]Sock 5.Close socket [16:50:30]Sock 5.Thread stoped [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:24]OFD Sender: No OFD packet to send [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:01]accept exits with 6 [16:52:01]New connection [16:52:01]New thread 3066817892 created [16:52:01]Thread 3066961252 joined [16:52:01]Waiting for new connection... [16:52:01] Sock 6.Parse request [16:52:01]Sock 6.Check first char [16:52:01]Sock 6.First char is OK [16:52:01]request: POST /json_proto HTTP/1.0 [16:52:01]Method: POST [16:52:01]URL: /json_proto [16:52:01]Method is POST - this is cgi request [16:52:01]url: /json_proto [16:52:01]query_string will be loaded in cgi processing [16:52:01]execute_cgi json_proto POST (null) [16:52:01]execute_cgi path=json_proto method=POST [16:52:01]POST find Content-Length [16:52:01]Host: 172.17.63.131:8080 [16:52:01]Content-Length: 676 [16:52:01]Content-Type: application/json [16:52:01] [16:52:01]POST finish read [16:52:01]Found Content-Length = 676 [16:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:01]execute_script... [16:52: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)31173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:01]POST & json_proto [16:52:01]process_json_proto [16:52:01]json parsed OK: [16:52:01]protocol is kg_v1.0 [16:52:01]action value=close_receipt [16:52:01]process_action close_receipt [16:52:01]cmd_close_receipt [16:52:01]MH_GetDate [16:52:01]Write to MH i2c: F0 00 00 78 1F 86 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: F0 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: F0 09 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: F0 09 00 78 1F 00 40 1E 1D 67 22 05 6E 64 6A [16:52:01]GetLastDocTimeStamp 1729961442 [16:52:01]current date 1729961536 [16:52:01]FM_GetShiftState [16:52:01]SAM_PROTO_GetShiftState [16:52:01]wFMCommunicate request_size=4 [16:52:01]MH_SAM_APDU [16:52:01]CAPDU: 80 13 01 00 [16:52:01]Write to MH i2c: E2 08 00 79 1F 80 13 01 00 00 00 00 00 15 [16:52:01]Write i2c OK [16:52:01]MH_I2C_Read... [16:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:01]Read from MH i2c: E2 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 0E 00 [16:52:01]MH_I2C_Read... [16:52:01]Read from MH i2c: E2 0E 00 79 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8E [16:52:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:52:01]wFMCommunicate OK [16:52:01]SAM_PROTO_GetShiftState done [16:52:01]FM_GetShiftState done [16:52:01]opened in 1729902770 [16:52:01]opened+sec_in_day 1729989170 [16:52:01]quantity*price = 50041 [16:52:01]sum+1 = 50042 [16:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 228 26.10.2024 16:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191865 ФПД: 10170320036478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191865&fm=10170320036478&tin=02508201610067®Number=0000000000091776&sum=50000 [16:52:02]StoreToDocumentArchive [16:52:02]shift 541 fd 191865 [16:52:02]save to /storage/0541/doc_00191865 [16:52:02]save last doc name /storage/0541/doc_00191865 to /storage/kkm_last_doc_name [16:52:02]save OK [16:52:02]Clear old archive folders... [16:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:02]tlvbuf is 01BE1C90 [16:52:02]SAM_PROTO_ClearQueue [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 09 00 00 [16:52:02]Write to MH i2c: E2 08 00 86 1F 80 09 00 00 00 00 00 00 17 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 86 1F 00 90 00 19 [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_ClearQueue done [16:52:02]KKMCreateOFDPacket [16:52:02]OFDProtocolAddRootSTLVToBuf [16:52:02]FM_MakeSignedData [16:52:02]FM_MakeSignedData [16:52:02]SAM_PROTO_SignData [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 01 02 [16:52:02]Write to MH i2c: E2 08 00 87 1F 80 0D 01 02 00 00 00 00 1F [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]wFMCommunicate request_size=255 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 40 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 ED 02 00 35 04 06 00 09 [16:52:02]Write to MH i2c: E2 02 01 88 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 40 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 ED 02 00 35 04 06 00 09 00 00 09 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]wFMCommunicate request_size=10 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 02 02 05 3F F6 50 22 7E [16:52:02]Write to MH i2c: E2 0D 00 89 1F 80 0D 02 02 05 00 3F F6 50 22 7E 00 00 51 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [16:52:02]RAPDU: 90 00 [16:52:02]wFMCommunicate OK [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 0D 03 02 [16:52:02]Write to MH i2c: E2 08 00 8A 1F 80 0D 03 02 00 00 00 00 24 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:02]Read from MH i2c: E2 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0B 00 [16:52:02]MH_I2C_Read... [16:52:02]Read from MH i2c: E2 0B 00 8A 1F 00 AF 3C FB 90 AF 1A B7 03 90 00 1E [16:52:02]RAPDU: AF 3C FB 90 AF 1A B7 03 90 00 [16:52:02]wFMCommunicate OK [16:52:02]SAM_PROTO_SignData done [16:52:02]FM_MakeSignedData done [16:52:02]CreateOFDProtocolMessage [16:52:02]wFMCommunicate request_size=4 [16:52:02]MH_SAM_APDU [16:52:02]CAPDU: 80 11 00 00 [16:52:02]Write to MH i2c: E2 08 00 8B 1F 80 11 00 00 00 00 00 00 24 [16:52:02]Write i2c OK [16:52:02]MH_I2C_Read... [16:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:03]Read from MH i2c: E2 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 17 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: E2 17 00 8B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [16:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:52:03]wFMCommunicate OK [16:52:03]CreateOFDProtocolMessage done [16:52:03]OFDSenderStorePacket 191865 [16:52:03]StoreOFDPacket docnum=191865 [16:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 9F 07 01 8F 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 40 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 ED 02 00 35 04 06 00 09 3F F6 50 22 7E AF 3C FB 90 AF 1A B7 03 [16:52:03]CheckFolder [16:52:03]dirname=/storage/ofd_packets [16:52:03]CheckFolder done [16:52:03]ProducePacketName [16:52:03]name=ofd_packets/00191865 [16:52:03]NVStorageSaveData ofd_packets/00191865 [16:52:03]File name is /storage/ofd_packets/00191865 [16:52:03]Write 301 bytes [16:52:03]NVStorageSaveData done [16:52:03]OFDSenderStorePacket done [16:52:03]KKMCreateOFDPacket done [16:52:03]NVStorageSaveData kkm_last_timestamp [16:52:03]File name is /storage/kkm_last_timestamp [16:52:03]Write 4 bytes [16:52:03]NVStorageSaveData done [16:52:03]ExternCall_PrintAddStr [16:52:03]wPrintStart [16:52:03]Write to MH i2c: 01 00 00 8C 1F AB [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 8C 1F 00 00 00 00 00 FF 0F C0 [16:52:03]RasterBufferAndPrint [16:52:03]line Счет N : (1)31173 [16:52:03]line ИНН: 02508201610067 [16:52:03]line Контрольно-Кассовый Чек [16:52:03]line ПРОДАЖА [16:52:03]line ТРК (МРК, ГНК) : 21 [16:52:03]line Товар: 2710124130 [16:52:03]line Аи-92-К-5 [16:52:03]line 7.480 * 66.90 [16:52:03]line = 500.41 [16:52:03]line НДС 12% НСП 1% [16:52:03]line > о реализуемом товаре [16:52:03]line ОКРУГЛЕНИЕ: -0.41 [16:52:03]line ИТОГО: 500.00 [16:52:03]line Внесено: 500.00 [16:52:03]line СДАЧА: 0.00 [16:52:03]line НСП 1% : 4.43 [16:52:03]line НДС 12% : 53.14 [16:52:03]line Наличными: 500.00 [16:52:03]line Безнал.: 0.00 [16:52:03]line Место: АЗС № 170 "Партнер Нефть" [16:52:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:52:03]line СНО: Общий режим [16:52:03]line Чек 228 26.10.2024 16:52 [16:52:03]line Смена: 541 ФФД: 1.0 [16:52:03]line ЗНМ: 0300000110 [16:52:03]line РНМ: 0000000000091776 [16:52:03]line Версия ККМ: 001 [16:52:03]line ФМ: 0000000000871754 [16:52:03]line ФД: 191865 [16:52:03]line ФПД: 10170320036478 [16:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165216&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191865&fm=10170320036478&tin=02508201610067®Number=0000000000091776&sum=50000 [16:52:03]OFD Sender: Processing packet 191865 [packets to send 75, broken 74] [16:52:03]ProducePacketName [16:52:03]name=ofd_packets/00191865 [16:52:03]OFD Sender: To server: pG, [16:52:03]CommunicateWithHost lk.salyk.kg:30040 [16:52:03]ConnectInit lk.salyk.kg [16:52:03]written 0, free lines is 4095 [16:52:03]Connected sock=8 [16:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 86 9F 07 01 8F 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 40 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 ED 02 00 35 04 06 00 09 3F F6 50 22 7E AF 3C FB 90 AF 1A B7 03 [16:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 24 FD 47 00 D4 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 79 ED 02 00 F4 03 04 00 0B C3 1C 67 B6 04 01 00 00 5E 2A 5F 44 70 61 BA 25 [16:52:03]CommunicateWithHost err = 0 [16:52:03]CheckOFDResponse [16:52:03]1017 (14) - 77093643461234 [16:52:03]1041 (16) - 0000000000871754 [16:52:03]1040 (4) - 191865 [16:52:03]1012 (4) - 26.10.2024 10:23 [16:52:03]1206 (1) - 0 [16:52:03]OFD Sender: Remove packet 191865 [16:52:03]ProducePacketName [16:52:03]name=ofd_packets/00191865 [16:52:03]NVStorageDeleteData [16:52:03]Write to MH i2c: 01 00 00 B7 1F D6 [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: 01 07 00 B7 1F 00 00 00 00 00 B7 0C A0 [16:52:03]RasterBufferAndPrint [16:52:03]line [16:52:03]line [16:52:03]line [16:52:03]line [16:52:03]line [16:52:03]written 0, free lines is 3262 [16:52:03]MH_Cut [16:52:03]Write to MH i2c: D1 01 00 BE 1F 01 AF [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: D1 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: D1 01 00 [16:52:03]MH_I2C_Read... [16:52:03]Read from MH i2c: D1 01 00 BE 1F 00 AE [16:52:03]Write to MH i2c: 01 00 00 BF 1F DE [16:52:03]Write i2c OK [16:52:03]MH_I2C_Read... [16:52:04]OFD Sender: No OFD packet to send [16:52:04]*** Cut start [16:52:04]*** Partial cut [16:52:04]*** CUTSNS_PIN = 1 [16:52:04]*** CUTSNS_PIN = 0 [16:52:04]*** Brake cut motor [16:52:05]Read from MH i2c: 01 [16:52:05]MH_I2C_Read... [16:52:05]*** Stop cut motor [16:52:05]*** Cut end [16:52:05]Read from MH i2c: 01 07 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [16:52:05]process_action close_receipt done [16:52:05]requested_data is exist [16:52:05]produce_requested_data [16:52:05]requested_item fm.sn is exist - process it [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 11 00 00 [16:52:05]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 17 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [16:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:52:05]wFMCommunicate OK [16:52:05]requested_item fd.num is exist - process it [16:52:05]SAM_PROTO_GetFieldsCounters [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 13 00 00 [16:52:05]Write to MH i2c: E2 08 00 C1 1F 80 13 00 00 00 00 00 00 5C [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 62 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 62 00 C1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 79 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:05]wFMCommunicate OK [16:52:05]SAM_PROTO_GetFieldsCounters done [16:52:05]requested_item shift.num is exist - process it [16:52:05]requested_item shift.opened is exist - process it [16:52:05]req_shift_opened [16:52:05]FM_GetShiftState [16:52:05]SAM_PROTO_GetShiftState [16:52:05]wFMCommunicate request_size=4 [16:52:05]MH_SAM_APDU [16:52:05]CAPDU: 80 13 01 00 [16:52:05]Write to MH i2c: E2 08 00 C2 1F 80 13 01 00 00 00 00 00 5E [16:52:05]Write i2c OK [16:52:05]MH_I2C_Read... [16:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:05]Read from MH i2c: E2 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 [16:52:05]MH_I2C_Read... [16:52:05]Read from MH i2c: E2 0E 00 C2 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D7 [16:52:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:52:05]wFMCommunicate OK [16:52:05]SAM_PROTO_GetShiftState done [16:52:05]FM_GetShiftState done [16:52:05]req_shift_opened done [16:52:05]requested_item shift.open_date is exist - process it [16:52:05]req_shift_open_date [16:52:05]req_shift_open_date done [16:52:05]produce_requested_data done [16:52:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191865,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:52:05]process_action_free close_receipt [16:52:05]json_value_free [16:52:05]json_value_free done [16:52:05]process_json_proto returns [16:52:05]Send response to host [16:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191865,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:52:05]free response buf [16:52:05]execute_script done [16:52:05]execute_script returns [16:52:05]free content buf [16:52:05]Sock 6.Close socket [16:52:05]Sock 6.Thread stoped [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:48]accept exits with 5 [16:53:48]New connection [16:53:48]New thread 3066961252 created [16:53:48]Thread 3066817892 joined [16:53:48]Waiting for new connection... [16:53:48] Sock 5.Parse request [16:53:48]Sock 5.Check first char [16:53:48]Sock 5.First char is OK [16:53:48]request: POST /json_proto HTTP/1.0 [16:53:48]Method: POST [16:53:48]URL: /json_proto [16:53:48]Method is POST - this is cgi request [16:53:48]url: /json_proto [16:53:48]query_string will be loaded in cgi processing [16:53:48]execute_cgi json_proto POST (null) [16:53:48]execute_cgi path=json_proto method=POST [16:53:48]POST find Content-Length [16:53:48]Host: 172.17.63.131:8080 [16:53:48]Content-Length: 781 [16:53:48]Content-Type: application/json [16:53:48] [16:53:48]POST finish read [16:53:48]Found Content-Length = 781 [16:53:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220288", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:48]execute_script... [16:53: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)31174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4220288", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:48]POST & json_proto [16:53:48]process_json_proto [16:53:48]json parsed OK: [16:53:48]protocol is kg_v1.0 [16:53:48]action value=close_receipt [16:53:48]process_action close_receipt [16:53:48]cmd_close_receipt [16:53:48]MH_GetDate [16:53:48]Write to MH i2c: F0 00 00 C3 1F D1 [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 09 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: F0 09 00 C3 1F 00 AC 1E 1D 67 22 05 6E 64 21 [16:53:48]GetLastDocTimeStamp 1729961536 [16:53:48]current date 1729961644 [16:53:48]FM_GetShiftState [16:53:48]SAM_PROTO_GetShiftState [16:53:48]wFMCommunicate request_size=4 [16:53:48]MH_SAM_APDU [16:53:48]CAPDU: 80 13 01 00 [16:53:48]Write to MH i2c: E2 08 00 C4 1F 80 13 01 00 00 00 00 00 60 [16:53:48]Write i2c OK [16:53:48]MH_I2C_Read... [16:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:48]Read from MH i2c: E2 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 0E 00 [16:53:48]MH_I2C_Read... [16:53:48]Read from MH i2c: E2 0E 00 C4 1F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D9 [16:53:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:53:48]wFMCommunicate OK [16:53:48]SAM_PROTO_GetShiftState done [16:53:48]FM_GetShiftState done [16:53:48]opened in 1729902770 [16:53:48]opened+sec_in_day 1729989170 [16:53:48]quantity*price = 0 [16:53:48]sum+1 = 1 [16:53:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 229 26.10.2024 16:54 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Партнер нефть 4220288 ФМ: 0000000000871754 ФД: 191866 ФПД: 107898641522340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191866&fm=107898641522340&tin=02508201610067®Number=0000000000091776&sum=0 [16:53:49]StoreToDocumentArchive [16:53:49]shift 541 fd 191866 [16:53:49]save to /storage/0541/doc_00191866 [16:53:49]save last doc name /storage/0541/doc_00191866 to /storage/kkm_last_doc_name [16:53:49]save OK [16:53:49]Clear old archive folders... [16:53:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:49]tlvbuf is 019D2740 [16:53:49]SAM_PROTO_ClearQueue [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 09 00 00 [16:53:49]Write to MH i2c: E2 08 00 D1 1F 80 09 00 00 00 00 00 00 62 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 D1 1F 00 90 00 64 [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]SAM_PROTO_ClearQueue done [16:53:49]KKMCreateOFDPacket [16:53:49]OFDProtocolAddRootSTLVToBuf [16:53:49]FM_MakeSignedData [16:53:49]FM_MakeSignedData [16:53:49]SAM_PROTO_SignData [16:53:49]wFMCommunicate request_size=4 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 01 02 [16:53:49]Write to MH i2c: E2 08 00 D2 1F 80 0D 01 02 00 00 00 00 6A [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:49]Read from MH i2c: E2 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 [16:53:49]MH_I2C_Read... [16:53:49]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [16:53:49]RAPDU: 90 00 [16:53:49]wFMCommunicate OK [16:53:49]wFMCommunicate request_size=255 [16:53:49]MH_SAM_APDU [16:53:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AC 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A ED 02 00 35 04 06 00 62 [16:53:49]Write to MH i2c: E2 02 01 D3 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AC 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A ED 02 00 35 04 06 00 62 00 00 04 [16:53:49]Write i2c OK [16:53:49]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]wFMCommunicate request_size=10 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 02 02 05 22 1C 33 1E A4 [16:53:50]Write to MH i2c: E2 0D 00 D4 1F 80 0D 02 02 05 00 22 1C 33 1E A4 00 00 AA [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [16:53:50]RAPDU: 90 00 [16:53:50]wFMCommunicate OK [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 0D 03 02 [16:53:50]Write to MH i2c: E2 08 00 D5 1F 80 0D 03 02 00 00 00 00 6F [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0B 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 0B 00 D5 1F 00 E7 3A CD 87 AA BC 8A 21 90 00 F6 [16:53:50]RAPDU: E7 3A CD 87 AA BC 8A 21 90 00 [16:53:50]wFMCommunicate OK [16:53:50]SAM_PROTO_SignData done [16:53:50]FM_MakeSignedData done [16:53:50]CreateOFDProtocolMessage [16:53:50]wFMCommunicate request_size=4 [16:53:50]MH_SAM_APDU [16:53:50]CAPDU: 80 11 00 00 [16:53:50]Write to MH i2c: E2 08 00 D6 1F 80 11 00 00 00 00 00 00 6F [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:50]Read from MH i2c: E2 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: E2 17 00 D6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [16:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:50]wFMCommunicate OK [16:53:50]CreateOFDProtocolMessage done [16:53:50]OFDSenderStorePacket 191866 [16:53:50]StoreOFDPacket docnum=191866 [16:53:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E D2 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AC 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A ED 02 00 35 04 06 00 62 22 1C 33 1E A4 E7 3A CD 87 AA BC 8A 21 [16:53:50]CheckFolder [16:53:50]dirname=/storage/ofd_packets [16:53:50]CheckFolder done [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00191866 [16:53:50]NVStorageSaveData ofd_packets/00191866 [16:53:50]File name is /storage/ofd_packets/00191866 [16:53:50]Write 301 bytes [16:53:50]NVStorageSaveData done [16:53:50]OFDSenderStorePacket done [16:53:50]KKMCreateOFDPacket done [16:53:50]NVStorageSaveData kkm_last_timestamp [16:53:50]File name is /storage/kkm_last_timestamp [16:53:50]Write 4 bytes [16:53:50]NVStorageSaveData done [16:53:50]ExternCall_PrintAddStr [16:53:50]wPrintStart [16:53:50]Write to MH i2c: 01 00 00 D7 1F F6 [16:53:50]Write i2c OK [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 [16:53:50]MH_I2C_Read... [16:53:50]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 FF 0F 0B [16:53:50]RasterBufferAndPrint [16:53:50]line Счет N : (1)31174 [16:53:50]line ИНН: 02508201610067 [16:53:50]line Контрольно-Кассовый Чек [16:53:50]line ПРОДАЖА [16:53:50]line ТРК (МРК, ГНК) : 12 [16:53:50]line Товар: 2710124130 [16:53:50]line Аи-92-К-5 [16:53:50]line 20.000 * 0.00 [16:53:50]line = 0.00 [16:53:50]line НДС 12% НСП 1% [16:53:50]line > о реализуемом товаре [16:53:50]line ИТОГО: 0.00 [16:53:50]line НСП 1% : 0.00 [16:53:50]line НДС 12% : 0.00 [16:53:50]line Наличными: 0.00 [16:53:50]line Безнал.: 0.00 [16:53:50]line Место: АЗС № 170 "Партнер Нефть" [16:53:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [16:53:50]line СНО: Общий режим [16:53:50]line Чек 229 26.10.2024 16:54 [16:53:50]line Смена: 541 ФФД: 1.0 [16:53:50]line ЗНМ: 0300000110 [16:53:50]line РНМ: 0000000000091776 [16:53:50]line Версия ККМ: 001 [16:53:50]line Талоны: Партнер нефть [16:53:50]line 4220288 [16:53:50]line ФМ: 0000000000871754 [16:53:50]line ФД: 191866 [16:53:50]line ФПД: 107898641522340 [16:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T165404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191866&fm=107898641522340&tin=02508201610067®Number=0000000000091776&sum=0 [16:53:50]written 0, free lines is 4095 [16:53:50]OFD Sender: Processing packet 191866 [packets to send 75, broken 74] [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00191866 [16:53:50]OFD Sender: To server: pG, [16:53:50]CommunicateWithHost lk.salyk.kg:30040 [16:53:50]ConnectInit lk.salyk.kg [16:53:50]Connected sock=8 [16:53:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5E D2 07 01 1F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AC 1E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A ED 02 00 35 04 06 00 62 22 1C 33 1E A4 E7 3A CD 87 AA BC 8A 21 [16:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 00 47 00 34 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7A ED 02 00 F4 03 04 00 76 C3 1C 67 B6 04 01 00 00 5E C5 2B 42 04 67 70 69 [16:53:50]CommunicateWithHost err = 0 [16:53:50]CheckOFDResponse [16:53:50]1017 (14) - 77093643461234 [16:53:50]1041 (16) - 0000000000871754 [16:53:50]1040 (4) - 191866 [16:53:50]1012 (4) - 26.10.2024 10:24 [16:53:50]1206 (1) - 0 [16:53:50]OFD Sender: Remove packet 191866 [16:53:50]ProducePacketName [16:53:50]name=ofd_packets/00191866 [16:53:50]NVStorageDeleteData [16:53:51]Write to MH i2c: 01 00 00 01 20 21 [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 07 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: 01 07 00 01 20 00 00 00 00 00 C9 0C FD [16:53:51]RasterBufferAndPrint [16:53:51]line [16:53:51]line [16:53:51]line [16:53:51]line [16:53:51]line [16:53:51]written 0, free lines is 3280 [16:53:51]MH_Cut [16:53:51]Write to MH i2c: D1 01 00 08 20 01 FA [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: D1 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: D1 01 00 [16:53:51]MH_I2C_Read... [16:53:51]Read from MH i2c: D1 01 00 08 20 00 F9 [16:53:51]Write to MH i2c: 01 00 00 09 20 29 [16:53:51]Write i2c OK [16:53:51]MH_I2C_Read... [16:53:51]OFD Sender: No OFD packet to send [16:53:51]*** Cut start [16:53:51]*** Partial cut [16:53:51]*** CUTSNS_PIN = 1 [16:53:51]*** CUTSNS_PIN = 0 [16:53:52]*** Brake cut motor [16:53:52]Read from MH i2c: 01 [16:53:52]MH_I2C_Read... [16:53:52]*** Stop cut motor [16:53:52]*** Cut end [16:53:52]Read from MH i2c: 01 07 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: 01 07 00 09 20 00 00 00 00 00 FF 0F 3E [16:53:52]process_action close_receipt done [16:53:52]requested_data is exist [16:53:52]produce_requested_data [16:53:52]requested_item fm.sn is exist - process it [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 11 00 00 [16:53:52]Write to MH i2c: E2 08 00 0A 20 80 11 00 00 00 00 00 00 A4 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 17 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 17 00 0A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F7 [16:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [16:53:52]wFMCommunicate OK [16:53:52]requested_item fd.num is exist - process it [16:53:52]SAM_PROTO_GetFieldsCounters [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 13 00 00 [16:53:52]Write to MH i2c: E2 08 00 0B 20 80 13 00 00 00 00 00 00 A7 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 62 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 62 00 0B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [16:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:52]wFMCommunicate OK [16:53:52]SAM_PROTO_GetFieldsCounters done [16:53:52]requested_item shift.num is exist - process it [16:53:52]requested_item shift.opened is exist - process it [16:53:52]req_shift_opened [16:53:52]FM_GetShiftState [16:53:52]SAM_PROTO_GetShiftState [16:53:52]wFMCommunicate request_size=4 [16:53:52]MH_SAM_APDU [16:53:52]CAPDU: 80 13 01 00 [16:53:52]Write to MH i2c: E2 08 00 0C 20 80 13 01 00 00 00 00 00 A9 [16:53:52]Write i2c OK [16:53:52]MH_I2C_Read... [16:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:52]Read from MH i2c: E2 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 0E 00 [16:53:52]MH_I2C_Read... [16:53:52]Read from MH i2c: E2 0E 00 0C 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 22 [16:53:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [16:53:52]wFMCommunicate OK [16:53:52]SAM_PROTO_GetShiftState done [16:53:52]FM_GetShiftState done [16:53:52]req_shift_opened done [16:53:52]requested_item shift.open_date is exist - process it [16:53:52]req_shift_open_date [16:53:52]req_shift_open_date done [16:53:52]produce_requested_data done [16:53:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191866,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [16:53:52]process_action_free close_receipt [16:53:52]json_value_free [16:53:52]json_value_free done [16:53:52]process_json_proto returns [16:53:52]Send response to host [16:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191866,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [16:53:52]free response buf [16:53:52]execute_script done [16:53:52]execute_script returns [16:53:52]free content buf [16:53:52]Sock 5.Close socket [16:53:52]Sock 5.Thread stoped [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]accept exits with 6 [17:01:26]New connection [17:01:26]New thread 3066817892 created [17:01:26]Thread 3066961252 joined [17:01:26]Waiting for new connection... [17:01:26] Sock 6.Parse request [17:01:26]Sock 6.Check first char [17:01:26]Sock 6.First char is OK [17:01:26]request: POST /json_proto HTTP/1.0 [17:01:26]Method: POST [17:01:26]URL: /json_proto [17:01:26]Method is POST - this is cgi request [17:01:26]url: /json_proto [17:01:26]query_string will be loaded in cgi processing [17:01:26]execute_cgi json_proto POST (null) [17:01:26]execute_cgi path=json_proto method=POST [17:01:26]POST find Content-Length [17:01:26]Host: 172.17.63.131:8080 [17:01:26]Content-Length: 676 [17:01:26]Content-Type: application/json [17:01:26] [17:01:26]POST finish read [17:01:26]Found Content-Length = 676 [17:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:26]execute_script... [17:01:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:26]POST & json_proto [17:01:26]process_json_proto [17:01:26]json parsed OK: [17:01:26]protocol is kg_v1.0 [17:01:26]action value=close_receipt [17:01:26]process_action close_receipt [17:01:26]cmd_close_receipt [17:01:26]MH_GetDate [17:01:26]Write to MH i2c: F0 00 00 0D 20 1C [17:01:26]Write i2c OK [17:01:26]MH_I2C_Read... [17:01:26]Read from MH i2c: F0 [17:01:26]MH_I2C_Read... [17:01:26]Read from MH i2c: F0 09 00 [17:01:26]MH_I2C_Read... [17:01:26]Read from MH i2c: F0 09 00 0D 20 00 76 20 1D 67 22 05 6E 64 38 [17:01:26]GetLastDocTimeStamp 1729961644 [17:01:26]current date 1729962102 [17:01:26]FM_GetShiftState [17:01:26]SAM_PROTO_GetShiftState [17:01:26]wFMCommunicate request_size=4 [17:01:26]MH_SAM_APDU [17:01:26]CAPDU: 80 13 01 00 [17:01:26]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [17:01:26]Write i2c OK [17:01:26]MH_I2C_Read... [17:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:26]Read from MH i2c: E2 [17:01:26]MH_I2C_Read... [17:01:26]Read from MH i2c: E2 0E 00 [17:01:26]MH_I2C_Read... [17:01:26]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 24 [17:01:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:01:26]wFMCommunicate OK [17:01:26]SAM_PROTO_GetShiftState done [17:01:26]FM_GetShiftState done [17:01:26]opened in 1729902770 [17:01:26]opened+sec_in_day 1729989170 [17:01:26]quantity*price = 25020 [17:01:26]sum+1 = 25022 [17:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 230 26.10.2024 17:01 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191867 ФПД: 50756862058703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191867&fm=50756862058703&tin=02508201610067®Number=0000000000091776&sum=25000 [17:01:27]StoreToDocumentArchive [17:01:27]shift 541 fd 191867 [17:01:27]save to /storage/0541/doc_00191867 [17:01:27]save last doc name /storage/0541/doc_00191867 to /storage/kkm_last_doc_name [17:01:27]save OK [17:01:27]Clear old archive folders... [17:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:27]tlvbuf is 01600CC0 [17:01:27]SAM_PROTO_ClearQueue [17:01:27]wFMCommunicate request_size=4 [17:01:27]MH_SAM_APDU [17:01:27]CAPDU: 80 09 00 00 [17:01:27]Write to MH i2c: E2 08 00 1B 20 80 09 00 00 00 00 00 00 AD [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:27]Read from MH i2c: E2 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 1B 20 00 90 00 AF [17:01:27]RAPDU: 90 00 [17:01:27]wFMCommunicate OK [17:01:27]SAM_PROTO_ClearQueue done [17:01:27]KKMCreateOFDPacket [17:01:27]OFDProtocolAddRootSTLVToBuf [17:01:27]FM_MakeSignedData [17:01:27]FM_MakeSignedData [17:01:27]SAM_PROTO_SignData [17:01:27]wFMCommunicate request_size=4 [17:01:27]MH_SAM_APDU [17:01:27]CAPDU: 80 0D 01 02 [17:01:27]Write to MH i2c: E2 08 00 1C 20 80 0D 01 02 00 00 00 00 B5 [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:27]Read from MH i2c: E2 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 [17:01:27]MH_I2C_Read... [17:01:27]Read from MH i2c: E2 03 00 1C 20 00 90 00 B0 [17:01:27]RAPDU: 90 00 [17:01:27]wFMCommunicate OK [17:01:27]wFMCommunicate request_size=255 [17:01:27]MH_SAM_APDU [17:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 76 20 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B ED 02 00 35 04 06 00 2E [17:01:27]Write to MH i2c: E2 02 01 1D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 76 20 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B ED 02 00 35 04 06 00 2E 00 00 D9 [17:01:27]Write i2c OK [17:01:27]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]wFMCommunicate request_size=10 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 0D 02 02 05 29 C0 BB A0 CF [17:01:28]Write to MH i2c: E2 0D 00 1E 20 80 0D 02 02 05 00 29 C0 BB A0 CF 00 00 D5 [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [17:01:28]RAPDU: 90 00 [17:01:28]wFMCommunicate OK [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 0D 03 02 [17:01:28]Write to MH i2c: E2 08 00 1F 20 80 0D 03 02 00 00 00 00 BA [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 0B 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 0B 00 1F 20 00 07 1C 6B 37 02 81 CF 75 90 00 47 [17:01:28]RAPDU: 07 1C 6B 37 02 81 CF 75 90 00 [17:01:28]wFMCommunicate OK [17:01:28]SAM_PROTO_SignData done [17:01:28]FM_MakeSignedData done [17:01:28]CreateOFDProtocolMessage [17:01:28]wFMCommunicate request_size=4 [17:01:28]MH_SAM_APDU [17:01:28]CAPDU: 80 11 00 00 [17:01:28]Write to MH i2c: E2 08 00 20 20 80 11 00 00 00 00 00 00 BA [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:28]Read from MH i2c: E2 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 17 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: E2 17 00 20 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [17:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:28]wFMCommunicate OK [17:01:28]CreateOFDProtocolMessage done [17:01:28]OFDSenderStorePacket 191867 [17:01:28]StoreOFDPacket docnum=191867 [17:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 30 07 01 79 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 76 20 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B ED 02 00 35 04 06 00 2E 29 C0 BB A0 CF 07 1C 6B 37 02 81 CF 75 [17:01:28]CheckFolder [17:01:28]dirname=/storage/ofd_packets [17:01:28]CheckFolder done [17:01:28]ProducePacketName [17:01:28]name=ofd_packets/00191867 [17:01:28]NVStorageSaveData ofd_packets/00191867 [17:01:28]File name is /storage/ofd_packets/00191867 [17:01:28]Write 301 bytes [17:01:28]NVStorageSaveData done [17:01:28]OFDSenderStorePacket done [17:01:28]KKMCreateOFDPacket done [17:01:28]NVStorageSaveData kkm_last_timestamp [17:01:28]File name is /storage/kkm_last_timestamp [17:01:28]Write 4 bytes [17:01:28]NVStorageSaveData done [17:01:28]ExternCall_PrintAddStr [17:01:28]wPrintStart [17:01:28]Write to MH i2c: 01 00 00 21 20 41 [17:01:28]OFD Sender: Processing packet 191867 [packets to send 75, broken 74] [17:01:28]ProducePacketName [17:01:28]name=ofd_packets/00191867 [17:01:28]OFD Sender: To server: pG, [17:01:28]CommunicateWithHost lk.salyk.kg:30040 [17:01:28]ConnectInit lk.salyk.kg [17:01:28]Write i2c OK [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 07 00 [17:01:28]MH_I2C_Read... [17:01:28]Read from MH i2c: 01 07 00 21 20 00 00 00 00 00 FF 0F 56 [17:01:28]RasterBufferAndPrint [17:01:28]line Счет N : (1)31175 [17:01:28]line ИНН: 02508201610067 [17:01:28]line Контрольно-Кассовый Чек [17:01:28]line ПРОДАЖА [17:01:28]line ТРК (МРК, ГНК) : 21 [17:01:28]line Товар: 2710124130 [17:01:28]line Аи-92-К-5 [17:01:28]line 3.740 * 66.90 [17:01:28]line = 250.21 [17:01:28]line НДС 12% НСП 1% [17:01:28]line > о реализуемом товаре [17:01:28]line ОКРУГЛЕНИЕ: -0.21 [17:01:28]line ИТОГО: 250.00 [17:01:28]line Внесено: 250.00 [17:01:28]line СДАЧА: 0.00 [17:01:28]line НСП 1% : 2.21 [17:01:28]line НДС 12% : 26.57 [17:01:28]line Наличными: 250.00 [17:01:28]line Безнал.: 0.00 [17:01:28]line Место: АЗС № 170 "Партнер Нефть" [17:01:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:01:28]line СНО: Общий режим [17:01:28]line Чек 230 26.10.2024 17:01 [17:01:28]line Смена: 541 ФФД: 1.0 [17:01:28]line ЗНМ: 0300000110 [17:01:28]line РНМ: 0000000000091776 [17:01:28]line Версия ККМ: 001 [17:01:28]line ФМ: 0000000000871754 [17:01:28]line ФД: 191867 [17:01:28]line ФПД: 50756862058703 [17:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170142&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191867&fm=50756862058703&tin=02508201610067®Number=0000000000091776&sum=25000 [17:01:28]Connected sock=8 [17:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B6 30 07 01 79 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 76 20 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B ED 02 00 35 04 06 00 2E 29 C0 BB A0 CF 07 1C 6B 37 02 81 CF 75 [17:01:28]written 0, free lines is 4095 [17:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 92 09 47 00 5B 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7B ED 02 00 F4 03 04 00 40 C5 1C 67 B6 04 01 00 00 11 40 29 3B AD 6E 39 DF [17:01:28]CommunicateWithHost err = 0 [17:01:28]CheckOFDResponse [17:01:28]1017 (14) - 77093643461234 [17:01:28]1041 (16) - 0000000000871754 [17:01:28]1040 (4) - 191867 [17:01:28]1012 (4) - 26.10.2024 10:32 [17:01:28]1206 (1) - 0 [17:01:28]OFD Sender: Remove packet 191867 [17:01:28]ProducePacketName [17:01:28]name=ofd_packets/00191867 [17:01:28]NVStorageDeleteData [17:01:29]Write to MH i2c: 01 00 00 4C 20 6C [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 07 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: 01 07 00 4C 20 00 00 00 00 00 B2 0C 31 [17:01:29]RasterBufferAndPrint [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]line [17:01:29]written 0, free lines is 3259 [17:01:29]MH_Cut [17:01:29]Write to MH i2c: D1 01 00 53 20 01 45 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 01 00 [17:01:29]MH_I2C_Read... [17:01:29]Read from MH i2c: D1 01 00 53 20 00 44 [17:01:29]Write to MH i2c: 01 00 00 54 20 74 [17:01:29]Write i2c OK [17:01:29]MH_I2C_Read... [17:01:29]OFD Sender: No OFD packet to send [17:01:29]*** Cut start [17:01:29]*** Partial cut [17:01:29]*** CUTSNS_PIN = 1 [17:01:30]*** CUTSNS_PIN = 0 [17:01:30]*** Brake cut motor [17:01:30]Read from MH i2c: 01 [17:01:30]MH_I2C_Read... [17:01:30]*** Stop cut motor [17:01:30]*** Cut end [17:01:30]Read from MH i2c: 01 07 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: 01 07 00 54 20 00 00 00 00 00 FF 0F 89 [17:01:30]process_action close_receipt done [17:01:30]requested_data is exist [17:01:30]produce_requested_data [17:01:30]requested_item fm.sn is exist - process it [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 11 00 00 [17:01:30]Write to MH i2c: E2 08 00 55 20 80 11 00 00 00 00 00 00 EF [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 17 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 17 00 55 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [17:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:01:30]wFMCommunicate OK [17:01:30]requested_item fd.num is exist - process it [17:01:30]SAM_PROTO_GetFieldsCounters [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 13 00 00 [17:01:30]Write to MH i2c: E2 08 00 56 20 80 13 00 00 00 00 00 00 F2 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 62 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 62 00 56 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [17:01:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:30]wFMCommunicate OK [17:01:30]SAM_PROTO_GetFieldsCounters done [17:01:30]requested_item shift.num is exist - process it [17:01:30]requested_item shift.opened is exist - process it [17:01:30]req_shift_opened [17:01:30]FM_GetShiftState [17:01:30]SAM_PROTO_GetShiftState [17:01:30]wFMCommunicate request_size=4 [17:01:30]MH_SAM_APDU [17:01:30]CAPDU: 80 13 01 00 [17:01:30]Write to MH i2c: E2 08 00 57 20 80 13 01 00 00 00 00 00 F4 [17:01:30]Write i2c OK [17:01:30]MH_I2C_Read... [17:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:30]Read from MH i2c: E2 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 [17:01:30]MH_I2C_Read... [17:01:30]Read from MH i2c: E2 0E 00 57 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6D [17:01:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:01:30]wFMCommunicate OK [17:01:30]SAM_PROTO_GetShiftState done [17:01:30]FM_GetShiftState done [17:01:30]req_shift_opened done [17:01:30]requested_item shift.open_date is exist - process it [17:01:30]req_shift_open_date [17:01:30]req_shift_open_date done [17:01:30]produce_requested_data done [17:01:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191867,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:01:30]process_action_free close_receipt [17:01:30]json_value_free [17:01:30]json_value_free done [17:01:30]process_json_proto returns [17:01:30]Send response to host [17:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191867,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:01:30]free response buf [17:01:30]execute_script done [17:01:30]execute_script returns [17:01:30]free content buf [17:01:30]Sock 6.Close socket [17:01:30]Sock 6.Thread stoped [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:15]accept exits with 5 [17:06:15]New connection [17:06:15]New thread 3066961252 created [17:06:15]Thread 3066817892 joined [17:06:15]Waiting for new connection... [17:06:15] Sock 5.Parse request [17:06:15]Sock 5.Check first char [17:06:15]Sock 5.First char is OK [17:06:15]request: POST /json_proto HTTP/1.0 [17:06:15]Method: POST [17:06:15]URL: /json_proto [17:06:15]Method is POST - this is cgi request [17:06:15]url: /json_proto [17:06:15]query_string will be loaded in cgi processing [17:06:15]execute_cgi json_proto POST (null) [17:06:15]execute_cgi path=json_proto method=POST [17:06:15]POST find Content-Length [17:06:15]Host: 172.17.63.131:8080 [17:06:15]Content-Length: 676 [17:06:15]Content-Type: application/json [17:06:15] [17:06:15]POST finish read [17:06:15]Found Content-Length = 676 [17:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:15]execute_script... [17:06: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)31176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:15]POST & json_proto [17:06:15]process_json_proto [17:06:15]json parsed OK: [17:06:15]protocol is kg_v1.0 [17:06:15]action value=close_receipt [17:06:15]process_action close_receipt [17:06:15]cmd_close_receipt [17:06:15]MH_GetDate [17:06:15]Write to MH i2c: F0 00 00 58 20 67 [17:06:15]Write i2c OK [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 09 00 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: F0 09 00 58 20 00 96 21 1D 67 22 05 6E 64 A4 [17:06:15]GetLastDocTimeStamp 1729962102 [17:06:15]current date 1729962390 [17:06:15]FM_GetShiftState [17:06:15]SAM_PROTO_GetShiftState [17:06:15]wFMCommunicate request_size=4 [17:06:15]MH_SAM_APDU [17:06:15]CAPDU: 80 13 01 00 [17:06:15]Write to MH i2c: E2 08 00 59 20 80 13 01 00 00 00 00 00 F6 [17:06:15]Write i2c OK [17:06:15]MH_I2C_Read... [17:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:15]Read from MH i2c: E2 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 0E 00 [17:06:15]MH_I2C_Read... [17:06:15]Read from MH i2c: E2 0E 00 59 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6F [17:06:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:06:15]wFMCommunicate OK [17:06:15]SAM_PROTO_GetShiftState done [17:06:15]FM_GetShiftState done [17:06:15]opened in 1729902770 [17:06:15]opened+sec_in_day 1729989170 [17:06:15]quantity*price = 26024 [17:06:15]sum+1 = 26025 [17:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 231 26.10.2024 17:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191868 ФПД: 171004334864976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191868&fm=171004334864976&tin=02508201610067®Number=0000000000091776&sum=26000 [17:06:16]StoreToDocumentArchive [17:06:16]shift 541 fd 191868 [17:06:16]save to /storage/0541/doc_00191868 [17:06:16]save last doc name /storage/0541/doc_00191868 to /storage/kkm_last_doc_name [17:06:16]save OK [17:06:16]Clear old archive folders... [17:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:16]tlvbuf is 018DC160 [17:06:16]SAM_PROTO_ClearQueue [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 09 00 00 [17:06:16]Write to MH i2c: E2 08 00 66 20 80 09 00 00 00 00 00 00 F8 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 66 20 00 90 00 FA [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]SAM_PROTO_ClearQueue done [17:06:16]KKMCreateOFDPacket [17:06:16]OFDProtocolAddRootSTLVToBuf [17:06:16]FM_MakeSignedData [17:06:16]FM_MakeSignedData [17:06:16]SAM_PROTO_SignData [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 01 02 [17:06:16]Write to MH i2c: E2 08 00 67 20 80 0D 01 02 00 00 00 00 00 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=255 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 96 21 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C ED 02 00 35 04 06 00 9B [17:06:16]Write to MH i2c: E2 02 01 68 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 96 21 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C ED 02 00 35 04 06 00 9B 00 00 86 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=10 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 02 02 05 87 0C A2 7A 50 [17:06:16]Write to MH i2c: E2 0D 00 69 20 80 0D 02 02 05 00 87 0C A2 7A 50 00 00 0C [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 03 00 69 20 00 90 00 FD [17:06:16]RAPDU: 90 00 [17:06:16]wFMCommunicate OK [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 0D 03 02 [17:06:16]Write to MH i2c: E2 08 00 6A 20 80 0D 03 02 00 00 00 00 05 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 0B 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 0B 00 6A 20 00 0E D4 24 7D 86 7C 76 A5 90 00 A6 [17:06:16]RAPDU: 0E D4 24 7D 86 7C 76 A5 90 00 [17:06:16]wFMCommunicate OK [17:06:16]SAM_PROTO_SignData done [17:06:16]FM_MakeSignedData done [17:06:16]CreateOFDProtocolMessage [17:06:16]wFMCommunicate request_size=4 [17:06:16]MH_SAM_APDU [17:06:16]CAPDU: 80 11 00 00 [17:06:16]Write to MH i2c: E2 08 00 6B 20 80 11 00 00 00 00 00 00 05 [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:16]Read from MH i2c: E2 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 17 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: E2 17 00 6B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 58 [17:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:06:16]wFMCommunicate OK [17:06:16]CreateOFDProtocolMessage done [17:06:16]OFDSenderStorePacket 191868 [17:06:16]StoreOFDPacket docnum=191868 [17:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 61 07 01 C4 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 96 21 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C ED 02 00 35 04 06 00 9B 87 0C A2 7A 50 0E D4 24 7D 86 7C 76 A5 [17:06:16]CheckFolder [17:06:16]dirname=/storage/ofd_packets [17:06:16]CheckFolder done [17:06:16]ProducePacketName [17:06:16]name=ofd_packets/00191868 [17:06:16]NVStorageSaveData ofd_packets/00191868 [17:06:16]File name is /storage/ofd_packets/00191868 [17:06:16]Write 301 bytes [17:06:16]NVStorageSaveData done [17:06:16]OFDSenderStorePacket done [17:06:16]KKMCreateOFDPacket done [17:06:16]NVStorageSaveData kkm_last_timestamp [17:06:16]File name is /storage/kkm_last_timestamp [17:06:16]Write 4 bytes [17:06:16]NVStorageSaveData done [17:06:16]ExternCall_PrintAddStr [17:06:16]wPrintStart [17:06:16]Write to MH i2c: 01 00 00 6C 20 8C [17:06:16]Write i2c OK [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: 01 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: 01 07 00 [17:06:16]MH_I2C_Read... [17:06:16]Read from MH i2c: 01 07 00 6C 20 00 00 00 00 00 FF 0F A1 [17:06:16]RasterBufferAndPrint [17:06:16]line Счет N : (1)31176 [17:06:16]line ИНН: 02508201610067 [17:06:16]line Контрольно-Кассовый Чек [17:06:16]line ПРОДАЖА [17:06:16]line ТРК (МРК, ГНК) : 12 [17:06:16]line Товар: 2710124130 [17:06:16]line Аи-92-К-5 [17:06:16]line 3.890 * 66.90 [17:06:16]line = 260.24 [17:06:16]line НДС 12% НСП 1% [17:06:16]line > о реализуемом товаре [17:06:16]line ОКРУГЛЕНИЕ: -0.24 [17:06:16]line ИТОГО: 260.00 [17:06:16]line Внесено: 260.00 [17:06:16]line СДАЧА: 0.00 [17:06:16]line НСП 1% : 2.30 [17:06:16]line НДС 12% : 27.64 [17:06:16]line Наличными: 260.00 [17:06:16]line Безнал.: 0.00 [17:06:16]line Место: АЗС № 170 "Партнер Нефть" [17:06:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:06:16]line СНО: Общий режим [17:06:16]line Чек 231 26.10.2024 17:06 [17:06:16]line Смена: 541 ФФД: 1.0 [17:06:16]line ЗНМ: 0300000110 [17:06:16]line РНМ: 0000000000091776 [17:06:16]line Версия ККМ: 001 [17:06:16]line ФМ: 0000000000871754 [17:06:16]line ФД: 191868 [17:06:16]line ФПД: 171004334864976 [17:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T170630&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191868&fm=171004334864976&tin=02508201610067®Number=0000000000091776&sum=26000 [17:06:17]OFD Sender: Processing packet 191868 [packets to send 75, broken 74] [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00191868 [17:06:17]OFD Sender: To server: pG, [17:06:17]CommunicateWithHost lk.salyk.kg:30040 [17:06:17]ConnectInit lk.salyk.kg [17:06:17]written 0, free lines is 4095 [17:06:17]Connected sock=8 [17:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 84 61 07 01 C4 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 96 21 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C ED 02 00 35 04 06 00 9B 87 0C A2 7A 50 0E D4 24 7D 86 7C 76 A5 [17:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 11 9E 47 00 0C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7C ED 02 00 F4 03 04 00 61 C6 1C 67 B6 04 01 00 00 CE 38 F7 0C BF 2B 23 81 [17:06:17]CommunicateWithHost err = 0 [17:06:17]CheckOFDResponse [17:06:17]1017 (14) - 77093643461234 [17:06:17]1041 (16) - 0000000000871754 [17:06:17]1040 (4) - 191868 [17:06:17]1012 (4) - 26.10.2024 10:37 [17:06:17]1206 (1) - 0 [17:06:17]OFD Sender: Remove packet 191868 [17:06:17]ProducePacketName [17:06:17]name=ofd_packets/00191868 [17:06:17]NVStorageDeleteData [17:06:17]Write to MH i2c: 01 00 00 97 20 B7 [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 07 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: 01 07 00 97 20 00 00 00 00 00 C6 0C 90 [17:06:17]RasterBufferAndPrint [17:06:17]line [17:06:17]line [17:06:17]line [17:06:17]line [17:06:17]line [17:06:17]written 0, free lines is 3276 [17:06:17]MH_Cut [17:06:17]Write to MH i2c: D1 01 00 9E 20 01 90 [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: D1 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: D1 01 00 [17:06:17]MH_I2C_Read... [17:06:17]Read from MH i2c: D1 01 00 9E 20 00 8F [17:06:17]Write to MH i2c: 01 00 00 9F 20 BF [17:06:17]Write i2c OK [17:06:17]MH_I2C_Read... [17:06:17]OFD Sender: No OFD packet to send [17:06:18]*** Cut start [17:06:18]*** Partial cut [17:06:18]*** CUTSNS_PIN = 1 [17:06:18]*** CUTSNS_PIN = 0 [17:06:18]*** Brake cut motor [17:06:19]Read from MH i2c: 01 [17:06:19]MH_I2C_Read... [17:06:19]*** Stop cut motor [17:06:19]*** Cut end [17:06:19]Read from MH i2c: 01 07 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 FF 0F D4 [17:06:19]process_action close_receipt done [17:06:19]requested_data is exist [17:06:19]produce_requested_data [17:06:19]requested_item fm.sn is exist - process it [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 11 00 00 [17:06:19]Write to MH i2c: E2 08 00 A0 20 80 11 00 00 00 00 00 00 3A [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 17 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 17 00 A0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [17:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:06:19]wFMCommunicate OK [17:06:19]requested_item fd.num is exist - process it [17:06:19]SAM_PROTO_GetFieldsCounters [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 13 00 00 [17:06:19]Write to MH i2c: E2 08 00 A1 20 80 13 00 00 00 00 00 00 3D [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 62 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 62 00 A1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:19]wFMCommunicate OK [17:06:19]SAM_PROTO_GetFieldsCounters done [17:06:19]requested_item shift.num is exist - process it [17:06:19]requested_item shift.opened is exist - process it [17:06:19]req_shift_opened [17:06:19]FM_GetShiftState [17:06:19]SAM_PROTO_GetShiftState [17:06:19]wFMCommunicate request_size=4 [17:06:19]MH_SAM_APDU [17:06:19]CAPDU: 80 13 01 00 [17:06:19]Write to MH i2c: E2 08 00 A2 20 80 13 01 00 00 00 00 00 3F [17:06:19]Write i2c OK [17:06:19]MH_I2C_Read... [17:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:19]Read from MH i2c: E2 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0E 00 [17:06:19]MH_I2C_Read... [17:06:19]Read from MH i2c: E2 0E 00 A2 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B8 [17:06:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:06:19]wFMCommunicate OK [17:06:19]SAM_PROTO_GetShiftState done [17:06:19]FM_GetShiftState done [17:06:19]req_shift_opened done [17:06:19]requested_item shift.open_date is exist - process it [17:06:19]req_shift_open_date [17:06:19]req_shift_open_date done [17:06:19]produce_requested_data done [17:06:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191868,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:06:19]process_action_free close_receipt [17:06:19]json_value_free [17:06:19]json_value_free done [17:06:19]process_json_proto returns [17:06:19]Send response to host [17:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191868,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:06:19]free response buf [17:06:19]execute_script done [17:06:19]execute_script returns [17:06:19]free content buf [17:06:19]Sock 5.Close socket [17:06:19]Sock 5.Thread stoped [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]accept exits with 6 [17:13:33]New connection [17:13:33]New thread 3066817892 created [17:13:33]Thread 3066961252 joined [17:13:33]Waiting for new connection... [17:13:33] Sock 6.Parse request [17:13:33]Sock 6.Check first char [17:13:33]Sock 6.First char is OK [17:13:33]request: POST /json_proto HTTP/1.0 [17:13:33]Method: POST [17:13:33]URL: /json_proto [17:13:33]Method is POST - this is cgi request [17:13:33]url: /json_proto [17:13:33]query_string will be loaded in cgi processing [17:13:33]execute_cgi json_proto POST (null) [17:13:33]execute_cgi path=json_proto method=POST [17:13:33]POST find Content-Length [17:13:33]Host: 172.17.63.131:8080 [17:13:33]Content-Length: 681 [17:13:33]Content-Type: application/json [17:13:33] [17:13:33]POST finish read [17:13:33]Found Content-Length = 681 [17:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:33]execute_script... [17:13:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:33]POST & json_proto [17:13:33]process_json_proto [17:13:33]json parsed OK: [17:13:33]protocol is kg_v1.0 [17:13:33]action value=close_receipt [17:13:33]process_action close_receipt [17:13:33]cmd_close_receipt [17:13:33]MH_GetDate [17:13:33]Write to MH i2c: F0 00 00 A3 20 B2 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: F0 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: F0 09 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: F0 09 00 A3 20 00 4C 23 1D 67 22 05 6E 64 A7 [17:13:33]GetLastDocTimeStamp 1729962390 [17:13:33]current date 1729962828 [17:13:33]FM_GetShiftState [17:13:33]SAM_PROTO_GetShiftState [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 13 01 00 [17:13:33]Write to MH i2c: E2 08 00 A4 20 80 13 01 00 00 00 00 00 41 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 0E 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 0E 00 A4 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BA [17:13:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:13:33]wFMCommunicate OK [17:13:33]SAM_PROTO_GetShiftState done [17:13:33]FM_GetShiftState done [17:13:33]opened in 1729902770 [17:13:33]opened+sec_in_day 1729989170 [17:13:33]quantity*price = 100015 [17:13:33]sum+1 = 100017 [17:13:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 232 26.10.2024 17:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191869 ФПД: 280369917857454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191869&fm=280369917857454&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:34]StoreToDocumentArchive [17:13:34]shift 541 fd 191869 [17:13:34]save to /storage/0541/doc_00191869 [17:13:34]save last doc name /storage/0541/doc_00191869 to /storage/kkm_last_doc_name [17:13:34]save OK [17:13:34]Clear old archive folders... [17:13:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:34]tlvbuf is 019D2420 [17:13:34]SAM_PROTO_ClearQueue [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 09 00 00 [17:13:34]Write to MH i2c: E2 08 00 B1 20 80 09 00 00 00 00 00 00 43 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [17:13:34]RAPDU: 90 00 [17:13:34]wFMCommunicate OK [17:13:34]SAM_PROTO_ClearQueue done [17:13:34]KKMCreateOFDPacket [17:13:34]OFDProtocolAddRootSTLVToBuf [17:13:34]FM_MakeSignedData [17:13:34]FM_MakeSignedData [17:13:34]SAM_PROTO_SignData [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 0D 01 02 [17:13:34]Write to MH i2c: E2 08 00 B2 20 80 0D 01 02 00 00 00 00 4B [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 B2 20 00 90 00 46 [17:13:34]RAPDU: 90 00 [17:13:34]wFMCommunicate OK [17:13:34]wFMCommunicate request_size=255 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4C 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D ED 02 00 35 04 06 00 FE [17:13:34]Write to MH i2c: E2 02 01 B3 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4C 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D ED 02 00 35 04 06 00 FE 00 00 3D [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 B3 20 00 90 00 47 [17:13:34]RAPDU: 90 00 [17:13:34]wFMCommunicate OK [17:13:34]wFMCommunicate request_size=10 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 0D 02 02 05 FE B5 5C 0E AE [17:13:34]Write to MH i2c: E2 0D 00 B4 20 80 0D 02 02 05 00 FE B5 5C 0E AE 00 00 23 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 03 00 B4 20 00 90 00 48 [17:13:34]RAPDU: 90 00 [17:13:34]wFMCommunicate OK [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 0D 03 02 [17:13:34]Write to MH i2c: E2 08 00 B5 20 80 0D 03 02 00 00 00 00 50 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 0B 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 0B 00 B5 20 00 E8 96 AA B3 12 11 5C 51 90 00 FC [17:13:34]RAPDU: E8 96 AA B3 12 11 5C 51 90 00 [17:13:34]wFMCommunicate OK [17:13:34]SAM_PROTO_SignData done [17:13:34]FM_MakeSignedData done [17:13:34]CreateOFDProtocolMessage [17:13:34]wFMCommunicate request_size=4 [17:13:34]MH_SAM_APDU [17:13:34]CAPDU: 80 11 00 00 [17:13:34]Write to MH i2c: E2 08 00 B6 20 80 11 00 00 00 00 00 00 50 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:34]Read from MH i2c: E2 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 17 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: E2 17 00 B6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A3 [17:13:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:34]wFMCommunicate OK [17:13:34]CreateOFDProtocolMessage done [17:13:34]OFDSenderStorePacket 191869 [17:13:34]StoreOFDPacket docnum=191869 [17:13:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E E6 07 01 7A 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4C 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D ED 02 00 35 04 06 00 FE FE B5 5C 0E AE E8 96 AA B3 12 11 5C 51 [17:13:34]CheckFolder [17:13:34]dirname=/storage/ofd_packets [17:13:34]CheckFolder done [17:13:34]ProducePacketName [17:13:34]name=ofd_packets/00191869 [17:13:34]NVStorageSaveData ofd_packets/00191869 [17:13:34]File name is /storage/ofd_packets/00191869 [17:13:34]Write 301 bytes [17:13:34]NVStorageSaveData done [17:13:34]OFDSenderStorePacket done [17:13:34]KKMCreateOFDPacket done [17:13:34]NVStorageSaveData kkm_last_timestamp [17:13:34]File name is /storage/kkm_last_timestamp [17:13:34]Write 4 bytes [17:13:34]NVStorageSaveData done [17:13:34]ExternCall_PrintAddStr [17:13:34]wPrintStart [17:13:34]Write to MH i2c: 01 00 00 B7 20 D7 [17:13:34]Write i2c OK [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: 01 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: 01 07 00 [17:13:34]MH_I2C_Read... [17:13:34]Read from MH i2c: 01 07 00 B7 20 00 00 00 00 00 FF 0F EC [17:13:34]RasterBufferAndPrint [17:13:34]line Счет N : (1)31177 [17:13:34]line ИНН: 02508201610067 [17:13:34]line Контрольно-Кассовый Чек [17:13:34]line ПРОДАЖА [17:13:34]line ТРК (МРК, ГНК) : 21 [17:13:34]line Товар: 2710124130 [17:13:34]line Аи-92-К-5 [17:13:34]line 14.950 * 66.90 [17:13:34]line = 1000.16 [17:13:34]line НДС 12% НСП 1% [17:13:34]line > о реализуемом товаре [17:13:34]line ОКРУГЛЕНИЕ: -0.16 [17:13:34]line ИТОГО: 1000.00 [17:13:34]line Внесено: 1000.00 [17:13:34]line СДАЧА: 0.00 [17:13:34]line НСП 1% : 8.85 [17:13:34]line НДС 12% : 106.21 [17:13:34]line Наличными: 1000.00 [17:13:34]line Безнал.: 0.00 [17:13:34]line Место: АЗС № 170 "Партнер Нефть" [17:13:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:13:34]line СНО: Общий режим [17:13:34]line Чек 232 26.10.2024 17:13 [17:13:34]line Смена: 541 ФФД: 1.0 [17:13:34]line ЗНМ: 0300000110 [17:13:34]line РНМ: 0000000000091776 [17:13:34]line Версия ККМ: 001 [17:13:34]line ФМ: 0000000000871754 [17:13:34]line ФД: 191869 [17:13:34]line ФПД: 280369917857454 [17:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171348&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191869&fm=280369917857454&tin=02508201610067®Number=0000000000091776&sum=100000 [17:13:35]OFD Sender: Processing packet 191869 [packets to send 75, broken 74] [17:13:35]ProducePacketName [17:13:35]name=ofd_packets/00191869 [17:13:35]OFD Sender: To server: pG, [17:13:35]CommunicateWithHost lk.salyk.kg:30040 [17:13:35]ConnectInit lk.salyk.kg [17:13:35]written 0, free lines is 4095 [17:13:35]Connected sock=8 [17:13:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4E E6 07 01 7A 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4C 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D ED 02 00 35 04 06 00 FE FE B5 5C 0E AE E8 96 AA B3 12 11 5C 51 [17:13:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3A 8F 47 00 0D 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7D ED 02 00 F4 03 04 00 17 C8 1C 67 B6 04 01 00 00 4C 05 9D DF 28 9F B8 96 [17:13:35]CommunicateWithHost err = 0 [17:13:35]CheckOFDResponse [17:13:35]1017 (14) - 77093643461234 [17:13:35]1041 (16) - 0000000000871754 [17:13:35]1040 (4) - 191869 [17:13:35]1012 (4) - 26.10.2024 10:44 [17:13:35]1206 (1) - 0 [17:13:35]OFD Sender: Remove packet 191869 [17:13:35]ProducePacketName [17:13:35]name=ofd_packets/00191869 [17:13:35]NVStorageDeleteData [17:13:35]Write to MH i2c: 01 00 00 E2 20 02 [17:13:35]Write i2c OK [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: 01 [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: 01 07 00 [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: 01 07 00 E2 20 00 00 00 00 00 BB 0C D0 [17:13:35]RasterBufferAndPrint [17:13:35]line [17:13:35]line [17:13:35]line [17:13:35]line [17:13:35]line [17:13:35]written 0, free lines is 3267 [17:13:35]MH_Cut [17:13:35]Write to MH i2c: D1 01 00 E9 20 01 DB [17:13:35]Write i2c OK [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: D1 [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: D1 01 00 [17:13:35]MH_I2C_Read... [17:13:35]Read from MH i2c: D1 01 00 E9 20 00 DA [17:13:35]Write to MH i2c: 01 00 00 EA 20 0A [17:13:35]Write i2c OK [17:13:35]MH_I2C_Read... [17:13:36]OFD Sender: No OFD packet to send [17:13:36]*** Cut start [17:13:36]*** Partial cut [17:13:36]*** CUTSNS_PIN = 1 [17:13:36]*** CUTSNS_PIN = 0 [17:13:36]*** Brake cut motor [17:13:37]Read from MH i2c: 01 [17:13:37]MH_I2C_Read... [17:13:37]*** Stop cut motor [17:13:37]*** Cut end [17:13:37]Read from MH i2c: 01 07 00 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 FF 0F 1F [17:13:37]process_action close_receipt done [17:13:37]requested_data is exist [17:13:37]produce_requested_data [17:13:37]requested_item fm.sn is exist - process it [17:13:37]wFMCommunicate request_size=4 [17:13:37]MH_SAM_APDU [17:13:37]CAPDU: 80 11 00 00 [17:13:37]Write to MH i2c: E2 08 00 EB 20 80 11 00 00 00 00 00 00 85 [17:13:37]Write i2c OK [17:13:37]MH_I2C_Read... [17:13:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:37]Read from MH i2c: E2 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 17 00 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 17 00 EB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [17:13:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:13:37]wFMCommunicate OK [17:13:37]requested_item fd.num is exist - process it [17:13:37]SAM_PROTO_GetFieldsCounters [17:13:37]wFMCommunicate request_size=4 [17:13:37]MH_SAM_APDU [17:13:37]CAPDU: 80 13 00 00 [17:13:37]Write to MH i2c: E2 08 00 EC 20 80 13 00 00 00 00 00 00 88 [17:13:37]Write i2c OK [17:13:37]MH_I2C_Read... [17:13:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:37]Read from MH i2c: E2 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 62 00 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 62 00 EC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:13:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:37]wFMCommunicate OK [17:13:37]SAM_PROTO_GetFieldsCounters done [17:13:37]requested_item shift.num is exist - process it [17:13:37]requested_item shift.opened is exist - process it [17:13:37]req_shift_opened [17:13:37]FM_GetShiftState [17:13:37]SAM_PROTO_GetShiftState [17:13:37]wFMCommunicate request_size=4 [17:13:37]MH_SAM_APDU [17:13:37]CAPDU: 80 13 01 00 [17:13:37]Write to MH i2c: E2 08 00 ED 20 80 13 01 00 00 00 00 00 8A [17:13:37]Write i2c OK [17:13:37]MH_I2C_Read... [17:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:37]Read from MH i2c: E2 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 0E 00 [17:13:37]MH_I2C_Read... [17:13:37]Read from MH i2c: E2 0E 00 ED 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 03 [17:13:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:13:37]wFMCommunicate OK [17:13:37]SAM_PROTO_GetShiftState done [17:13:37]FM_GetShiftState done [17:13:37]req_shift_opened done [17:13:37]requested_item shift.open_date is exist - process it [17:13:37]req_shift_open_date [17:13:37]req_shift_open_date done [17:13:37]produce_requested_data done [17:13:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191869,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:13:37]process_action_free close_receipt [17:13:37]json_value_free [17:13:37]json_value_free done [17:13:37]process_json_proto returns [17:13:37]Send response to host [17:13:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191869,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:13:37]free response buf [17:13:37]execute_script done [17:13:37]execute_script returns [17:13:37]free content buf [17:13:37]Sock 6.Close socket [17:13:37]Sock 6.Thread stoped [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:25]accept exits with 5 [17:16:25]New connection [17:16:25]New thread 3066961252 created [17:16:25]Thread 3066817892 joined [17:16:25]Waiting for new connection... [17:16:25] Sock 5.Parse request [17:16:25]Sock 5.Check first char [17:16:25]Sock 5.First char is OK [17:16:25]request: POST /json_proto HTTP/1.0 [17:16:25]Method: POST [17:16:25]URL: /json_proto [17:16:25]Method is POST - this is cgi request [17:16:25]url: /json_proto [17:16:25]query_string will be loaded in cgi processing [17:16:25]execute_cgi json_proto POST (null) [17:16:25]execute_cgi path=json_proto method=POST [17:16:25]POST find Content-Length [17:16:25]Host: 172.17.63.131:8080 [17:16:25]Content-Length: 676 [17:16:25]Content-Type: application/json [17:16:25] [17:16:25]POST finish read [17:16:25]Found Content-Length = 676 [17:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:25]execute_script... [17:16:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:25]POST & json_proto [17:16:25]process_json_proto [17:16:25]json parsed OK: [17:16:25]protocol is kg_v1.0 [17:16:25]action value=close_receipt [17:16:25]process_action close_receipt [17:16:25]cmd_close_receipt [17:16:25]MH_GetDate [17:16:25]Write to MH i2c: F0 00 00 EE 20 FD [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: F0 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: F0 09 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: F0 09 00 EE 20 00 F9 23 1D 67 22 05 6E 64 9F [17:16:25]GetLastDocTimeStamp 1729962828 [17:16:25]current date 1729963001 [17:16:25]FM_GetShiftState [17:16:25]SAM_PROTO_GetShiftState [17:16:25]wFMCommunicate request_size=4 [17:16:25]MH_SAM_APDU [17:16:25]CAPDU: 80 13 01 00 [17:16:25]Write to MH i2c: E2 08 00 EF 20 80 13 01 00 00 00 00 00 8C [17:16:25]Write i2c OK [17:16:25]MH_I2C_Read... [17:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:25]Read from MH i2c: E2 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 [17:16:25]MH_I2C_Read... [17:16:25]Read from MH i2c: E2 0E 00 EF 20 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 05 [17:16:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:16:25]wFMCommunicate OK [17:16:25]SAM_PROTO_GetShiftState done [17:16:25]FM_GetShiftState done [17:16:25]opened in 1729902770 [17:16:25]opened+sec_in_day 1729989170 [17:16:25]quantity*price = 50041 [17:16:25]sum+1 = 50042 [17:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 233 26.10.2024 17:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191870 ФПД: 147940008591129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191870&fm=147940008591129&tin=02508201610067®Number=0000000000091776&sum=50000 [17:16:26]StoreToDocumentArchive [17:16:26]shift 541 fd 191870 [17:16:26]save to /storage/0541/doc_00191870 [17:16:26]save last doc name /storage/0541/doc_00191870 to /storage/kkm_last_doc_name [17:16:26]save OK [17:16:26]Clear old archive folders... [17:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:26]tlvbuf is 01614390 [17:16:26]SAM_PROTO_ClearQueue [17:16:26]wFMCommunicate request_size=4 [17:16:26]MH_SAM_APDU [17:16:26]CAPDU: 80 09 00 00 [17:16:26]Write to MH i2c: E2 08 00 FC 20 80 09 00 00 00 00 00 00 8E [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:26]Read from MH i2c: E2 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 03 00 [17:16:26]MH_I2C_Read... [17:16:26]Read from MH i2c: E2 03 00 FC 20 00 90 00 90 [17:16:26]RAPDU: 90 00 [17:16:26]wFMCommunicate OK [17:16:26]SAM_PROTO_ClearQueue done [17:16:26]KKMCreateOFDPacket [17:16:26]OFDProtocolAddRootSTLVToBuf [17:16:26]FM_MakeSignedData [17:16:26]FM_MakeSignedData [17:16:26]SAM_PROTO_SignData [17:16:26]wFMCommunicate request_size=4 [17:16:26]MH_SAM_APDU [17:16:26]CAPDU: 80 0D 01 02 [17:16:26]Write to MH i2c: E2 08 00 FD 20 80 0D 01 02 00 00 00 00 96 [17:16:26]Write i2c OK [17:16:26]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 FD 20 00 90 00 91 [17:16:27]RAPDU: 90 00 [17:16:27]wFMCommunicate OK [17:16:27]wFMCommunicate request_size=255 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F9 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E ED 02 00 35 04 06 00 86 [17:16:27]Write to MH i2c: E2 02 01 FE 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F9 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E ED 02 00 35 04 06 00 86 00 00 C5 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 FE 20 00 90 00 92 [17:16:27]RAPDU: 90 00 [17:16:27]wFMCommunicate OK [17:16:27]wFMCommunicate request_size=10 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 0D 02 02 05 8C F7 A8 FF 19 [17:16:27]Write to MH i2c: E2 0D 00 FF 20 80 0D 02 02 05 00 8C F7 A8 FF 19 00 00 E6 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 03 00 FF 20 00 90 00 93 [17:16:27]RAPDU: 90 00 [17:16:27]wFMCommunicate OK [17:16:27]wFMCommunicate request_size=4 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 0D 03 02 [17:16:27]Write to MH i2c: E2 08 00 00 21 80 0D 03 02 00 00 00 00 9C [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 0B 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 0B 00 00 21 00 B6 44 E2 4E 29 D7 1F E0 90 00 C6 [17:16:27]RAPDU: B6 44 E2 4E 29 D7 1F E0 90 00 [17:16:27]wFMCommunicate OK [17:16:27]SAM_PROTO_SignData done [17:16:27]FM_MakeSignedData done [17:16:27]CreateOFDProtocolMessage [17:16:27]wFMCommunicate request_size=4 [17:16:27]MH_SAM_APDU [17:16:27]CAPDU: 80 11 00 00 [17:16:27]Write to MH i2c: E2 08 00 01 21 80 11 00 00 00 00 00 00 9C [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:27]Read from MH i2c: E2 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 17 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: E2 17 00 01 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EF [17:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:16:27]wFMCommunicate OK [17:16:27]CreateOFDProtocolMessage done [17:16:27]OFDSenderStorePacket 191870 [17:16:27]StoreOFDPacket docnum=191870 [17:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 9C 07 01 F5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F9 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E ED 02 00 35 04 06 00 86 8C F7 A8 FF 19 B6 44 E2 4E 29 D7 1F E0 [17:16:27]CheckFolder [17:16:27]dirname=/storage/ofd_packets [17:16:27]CheckFolder done [17:16:27]ProducePacketName [17:16:27]name=ofd_packets/00191870 [17:16:27]NVStorageSaveData ofd_packets/00191870 [17:16:27]File name is /storage/ofd_packets/00191870 [17:16:27]Write 301 bytes [17:16:27]NVStorageSaveData done [17:16:27]OFDSenderStorePacket done [17:16:27]KKMCreateOFDPacket done [17:16:27]NVStorageSaveData kkm_last_timestamp [17:16:27]File name is /storage/kkm_last_timestamp [17:16:27]Write 4 bytes [17:16:27]NVStorageSaveData done [17:16:27]ExternCall_PrintAddStr [17:16:27]wPrintStart [17:16:27]Write to MH i2c: 01 00 00 02 21 23 [17:16:27]Write i2c OK [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 07 00 [17:16:27]MH_I2C_Read... [17:16:27]Read from MH i2c: 01 07 00 02 21 00 00 00 00 00 FF 0F 38 [17:16:27]RasterBufferAndPrint [17:16:27]line Счет N : (1)31178 [17:16:27]line ИНН: 02508201610067 [17:16:27]line Контрольно-Кассовый Чек [17:16:27]line ПРОДАЖА [17:16:27]line ТРК (МРК, ГНК) : 21 [17:16:27]line Товар: 2710124130 [17:16:27]line Аи-92-К-5 [17:16:27]line 7.480 * 66.90 [17:16:27]line = 500.41 [17:16:27]line НДС 12% НСП 1% [17:16:27]line > о реализуемом товаре [17:16:27]line ОКРУГЛЕНИЕ: -0.41 [17:16:27]line ИТОГО: 500.00 [17:16:27]line Внесено: 500.00 [17:16:27]line СДАЧА: 0.00 [17:16:27]line НСП 1% : 4.43 [17:16:27]line НДС 12% : 53.14 [17:16:27]line Наличными: 500.00 [17:16:27]line Безнал.: 0.00 [17:16:27]line Место: АЗС № 170 "Партнер Нефть" [17:16:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:16:27]line СНО: Общий режим [17:16:27]line Чек 233 26.10.2024 17:16 [17:16:27]line Смена: 541 ФФД: 1.0 [17:16:27]line ЗНМ: 0300000110 [17:16:27]line РНМ: 0000000000091776 [17:16:27]line Версия ККМ: 001 [17:16:27]line ФМ: 0000000000871754 [17:16:27]line ФД: 191870 [17:16:27]line ФПД: 147940008591129 [17:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T171641&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191870&fm=147940008591129&tin=02508201610067®Number=0000000000091776&sum=50000 [17:16:27]OFD Sender: Processing packet 191870 [packets to send 75, broken 74] [17:16:27]ProducePacketName [17:16:27]name=ofd_packets/00191870 [17:16:27]OFD Sender: To server: pG, [17:16:27]CommunicateWithHost lk.salyk.kg:30040 [17:16:27]ConnectInit lk.salyk.kg [17:16:27]written 0, free lines is 4095 [17:16:27]Connected sock=8 [17:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C2 9C 07 01 F5 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 F9 23 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E ED 02 00 35 04 06 00 86 8C F7 A8 FF 19 B6 44 E2 4E 29 D7 1F E0 [17:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 71 AB 47 00 C1 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7E ED 02 00 F4 03 04 00 C3 C8 1C 67 B6 04 01 00 00 AF F7 B0 85 6B 82 16 2B [17:16:28]CommunicateWithHost err = 0 [17:16:28]CheckOFDResponse [17:16:28]1017 (14) - 77093643461234 [17:16:28]1041 (16) - 0000000000871754 [17:16:28]1040 (4) - 191870 [17:16:28]1012 (4) - 26.10.2024 10:47 [17:16:28]1206 (1) - 0 [17:16:28]OFD Sender: Remove packet 191870 [17:16:28]ProducePacketName [17:16:28]name=ofd_packets/00191870 [17:16:28]NVStorageDeleteData [17:16:28]Write to MH i2c: 01 00 00 2D 21 4E [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 07 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: 01 07 00 2D 21 00 00 00 00 00 C5 0C 26 [17:16:28]RasterBufferAndPrint [17:16:28]line [17:16:28]line [17:16:28]line [17:16:28]line [17:16:28]line [17:16:28]written 0, free lines is 3275 [17:16:28]MH_Cut [17:16:28]Write to MH i2c: D1 01 00 34 21 01 27 [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: D1 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: D1 01 00 [17:16:28]MH_I2C_Read... [17:16:28]Read from MH i2c: D1 01 00 34 21 00 26 [17:16:28]Write to MH i2c: 01 00 00 35 21 56 [17:16:28]Write i2c OK [17:16:28]MH_I2C_Read... [17:16:28]OFD Sender: No OFD packet to send [17:16:29]*** Cut start [17:16:29]*** Partial cut [17:16:29]*** CUTSNS_PIN = 1 [17:16:29]*** CUTSNS_PIN = 0 [17:16:29]*** Brake cut motor [17:16:29]Read from MH i2c: 01 [17:16:29]MH_I2C_Read... [17:16:29]*** Stop cut motor [17:16:29]*** Cut end [17:16:29]Read from MH i2c: 01 07 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: 01 07 00 35 21 00 00 00 00 00 FF 0F 6B [17:16:29]process_action close_receipt done [17:16:29]requested_data is exist [17:16:29]produce_requested_data [17:16:29]requested_item fm.sn is exist - process it [17:16:29]wFMCommunicate request_size=4 [17:16:29]MH_SAM_APDU [17:16:29]CAPDU: 80 11 00 00 [17:16:29]Write to MH i2c: E2 08 00 36 21 80 11 00 00 00 00 00 00 D1 [17:16:29]Write i2c OK [17:16:29]MH_I2C_Read... [17:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:29]Read from MH i2c: E2 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 17 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 17 00 36 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [17:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:16:29]wFMCommunicate OK [17:16:29]requested_item fd.num is exist - process it [17:16:29]SAM_PROTO_GetFieldsCounters [17:16:29]wFMCommunicate request_size=4 [17:16:29]MH_SAM_APDU [17:16:29]CAPDU: 80 13 00 00 [17:16:29]Write to MH i2c: E2 08 00 37 21 80 13 00 00 00 00 00 00 D4 [17:16:29]Write i2c OK [17:16:29]MH_I2C_Read... [17:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:29]Read from MH i2c: E2 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 62 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 62 00 37 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [17:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:29]wFMCommunicate OK [17:16:29]SAM_PROTO_GetFieldsCounters done [17:16:29]requested_item shift.num is exist - process it [17:16:29]requested_item shift.opened is exist - process it [17:16:29]req_shift_opened [17:16:29]FM_GetShiftState [17:16:29]SAM_PROTO_GetShiftState [17:16:29]wFMCommunicate request_size=4 [17:16:29]MH_SAM_APDU [17:16:29]CAPDU: 80 13 01 00 [17:16:29]Write to MH i2c: E2 08 00 38 21 80 13 01 00 00 00 00 00 D6 [17:16:29]Write i2c OK [17:16:29]MH_I2C_Read... [17:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:29]Read from MH i2c: E2 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 0E 00 [17:16:29]MH_I2C_Read... [17:16:29]Read from MH i2c: E2 0E 00 38 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4F [17:16:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:16:29]wFMCommunicate OK [17:16:29]SAM_PROTO_GetShiftState done [17:16:29]FM_GetShiftState done [17:16:29]req_shift_opened done [17:16:29]requested_item shift.open_date is exist - process it [17:16:29]req_shift_open_date [17:16:29]req_shift_open_date done [17:16:29]produce_requested_data done [17:16:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191870,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:16:29]process_action_free close_receipt [17:16:29]json_value_free [17:16:29]json_value_free done [17:16:29]process_json_proto returns [17:16:29]Send response to host [17:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191870,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:16:29]free response buf [17:16:29]execute_script done [17:16:29]execute_script returns [17:16:29]free content buf [17:16:29]Sock 5.Close socket [17:16:29]Sock 5.Thread stoped [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:41]accept exits with 6 [17:21:41]New connection [17:21:41]New thread 3066817892 created [17:21:41]Thread 3066961252 joined [17:21:41]Waiting for new connection... [17:21:41] Sock 6.Parse request [17:21:41]Sock 6.Check first char [17:21:41]Sock 6.First char is OK [17:21:41]request: POST /json_proto HTTP/1.0 [17:21:41]Method: POST [17:21:41]URL: /json_proto [17:21:41]Method is POST - this is cgi request [17:21:41]url: /json_proto [17:21:41]query_string will be loaded in cgi processing [17:21:41]execute_cgi json_proto POST (null) [17:21:41]execute_cgi path=json_proto method=POST [17:21:41]POST find Content-Length [17:21:41]Host: 172.17.63.131:8080 [17:21:41]Content-Length: 676 [17:21:41]Content-Type: application/json [17:21:41] [17:21:41]POST finish read [17:21:41]Found Content-Length = 676 [17:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:41]execute_script... [17:21: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)31179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:41]POST & json_proto [17:21:41]process_json_proto [17:21:41]json parsed OK: [17:21:41]protocol is kg_v1.0 [17:21:41]action value=close_receipt [17:21:41]process_action close_receipt [17:21:41]cmd_close_receipt [17:21:41]MH_GetDate [17:21:41]Write to MH i2c: F0 00 00 39 21 49 [17:21:41]Write i2c OK [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: F0 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: F0 09 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: F0 09 00 39 21 00 35 25 1D 67 22 05 6E 64 29 [17:21:41]GetLastDocTimeStamp 1729963001 [17:21:41]current date 1729963317 [17:21:41]FM_GetShiftState [17:21:41]SAM_PROTO_GetShiftState [17:21:41]wFMCommunicate request_size=4 [17:21:41]MH_SAM_APDU [17:21:41]CAPDU: 80 13 01 00 [17:21:41]Write to MH i2c: E2 08 00 3A 21 80 13 01 00 00 00 00 00 D8 [17:21:41]Write i2c OK [17:21:41]MH_I2C_Read... [17:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:41]Read from MH i2c: E2 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 0E 00 [17:21:41]MH_I2C_Read... [17:21:41]Read from MH i2c: E2 0E 00 3A 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 51 [17:21:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:21:41]wFMCommunicate OK [17:21:41]SAM_PROTO_GetShiftState done [17:21:41]FM_GetShiftState done [17:21:41]opened in 1729902770 [17:21:41]opened+sec_in_day 1729989170 [17:21:41]quantity*price = 30038 [17:21:41]sum+1 = 30039 [17:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 234 26.10.2024 17:21 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191871 ФПД: 278887067645933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191871&fm=278887067645933&tin=02508201610067®Number=0000000000091776&sum=30000 [17:21:42]StoreToDocumentArchive [17:21:42]shift 541 fd 191871 [17:21:42]save to /storage/0541/doc_00191871 [17:21:42]save last doc name /storage/0541/doc_00191871 to /storage/kkm_last_doc_name [17:21:42]save OK [17:21:42]Clear old archive folders... [17:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:42]tlvbuf is 01B3A5D0 [17:21:42]SAM_PROTO_ClearQueue [17:21:42]wFMCommunicate request_size=4 [17:21:42]MH_SAM_APDU [17:21:42]CAPDU: 80 09 00 00 [17:21:42]Write to MH i2c: E2 08 00 47 21 80 09 00 00 00 00 00 00 DA [17:21:42]Write i2c OK [17:21:42]MH_I2C_Read... [17:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:42]Read from MH i2c: E2 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 03 00 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 03 00 47 21 00 90 00 DC [17:21:42]RAPDU: 90 00 [17:21:42]wFMCommunicate OK [17:21:42]SAM_PROTO_ClearQueue done [17:21:42]KKMCreateOFDPacket [17:21:42]OFDProtocolAddRootSTLVToBuf [17:21:42]FM_MakeSignedData [17:21:42]FM_MakeSignedData [17:21:42]SAM_PROTO_SignData [17:21:42]wFMCommunicate request_size=4 [17:21:42]MH_SAM_APDU [17:21:42]CAPDU: 80 0D 01 02 [17:21:42]Write to MH i2c: E2 08 00 48 21 80 0D 01 02 00 00 00 00 E2 [17:21:42]Write i2c OK [17:21:42]MH_I2C_Read... [17:21:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:42]Read from MH i2c: E2 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 03 00 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 03 00 48 21 00 90 00 DD [17:21:42]RAPDU: 90 00 [17:21:42]wFMCommunicate OK [17:21:42]wFMCommunicate request_size=255 [17:21:42]MH_SAM_APDU [17:21:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F ED 02 00 35 04 06 00 FD [17:21:42]Write to MH i2c: E2 02 01 49 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F ED 02 00 35 04 06 00 FD 00 00 BC [17:21:42]Write i2c OK [17:21:42]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 49 21 00 90 00 DE [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]wFMCommunicate request_size=10 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 02 02 05 A5 74 99 77 ED [17:21:43]Write to MH i2c: E2 0D 00 4A 21 80 0D 02 02 05 00 A5 74 99 77 ED 00 00 05 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 4A 21 00 90 00 DF [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 03 02 [17:21:43]Write to MH i2c: E2 08 00 4B 21 80 0D 03 02 00 00 00 00 E7 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0B 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0B 00 4B 21 00 2A 36 37 87 C7 E0 C8 C8 90 00 3D [17:21:43]RAPDU: 2A 36 37 87 C7 E0 C8 C8 90 00 [17:21:43]wFMCommunicate OK [17:21:43]SAM_PROTO_SignData done [17:21:43]FM_MakeSignedData done [17:21:43]CreateOFDProtocolMessage [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 11 00 00 [17:21:43]Write to MH i2c: E2 08 00 4C 21 80 11 00 00 00 00 00 00 E7 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 17 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 17 00 4C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3A [17:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:21:43]wFMCommunicate OK [17:21:43]CreateOFDProtocolMessage done [17:21:43]OFDSenderStorePacket 191871 [17:21:43]StoreOFDPacket docnum=191871 [17:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 11 07 01 0A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F ED 02 00 35 04 06 00 FD A5 74 99 77 ED 2A 36 37 87 C7 E0 C8 C8 [17:21:43]CheckFolder [17:21:43]dirname=/storage/ofd_packets [17:21:43]CheckFolder done [17:21:43]ProducePacketName [17:21:43]name=ofd_packets/00191871 [17:21:43]NVStorageSaveData ofd_packets/00191871 [17:21:43]File name is /storage/ofd_packets/00191871 [17:21:43]Write 301 bytes [17:21:43]NVStorageSaveData done [17:21:43]OFDSenderStorePacket done [17:21:43]KKMCreateOFDPacket done [17:21:43]NVStorageSaveData kkm_last_timestamp [17:21:43]File name is /storage/kkm_last_timestamp [17:21:43]Write 4 bytes [17:21:43]NVStorageSaveData done [17:21:43]ExternCall_PrintAddStr [17:21:43]wPrintStart [17:21:43]Write to MH i2c: 01 00 00 4D 21 6E [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 4D 21 00 00 00 00 00 FF 0F 83 [17:21:43]RasterBufferAndPrint [17:21:43]line Счет N : (1)31179 [17:21:43]line ИНН: 02508201610067 [17:21:43]line Контрольно-Кассовый Чек [17:21:43]line ПРОДАЖА [17:21:43]line ТРК (МРК, ГНК) : 21 [17:21:43]line Товар: 2710124130 [17:21:43]line Аи-92-К-5 [17:21:43]line 4.490 * 66.90 [17:21:43]line = 300.38 [17:21:43]line НДС 12% НСП 1% [17:21:43]line > о реализуемом товаре [17:21:43]line ОКРУГЛЕНИЕ: -0.38 [17:21:43]line ИТОГО: 300.00 [17:21:43]line Внесено: 300.00 [17:21:43]line СДАЧА: 0.00 [17:21:43]line НСП 1% : 2.66 [17:21:43]line НДС 12% : 31.90 [17:21:43]line Наличными: 300.00 [17:21:43]line Безнал.: 0.00 [17:21:43]line Место: АЗС № 170 "Партнер Нефть" [17:21:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:21:43]line СНО: Общий режим [17:21:43]line Чек 234 26.10.2024 17:21 [17:21:43]line Смена: 541 ФФД: 1.0 [17:21:43]line ЗНМ: 0300000110 [17:21:43]line РНМ: 0000000000091776 [17:21:43]line Версия ККМ: 001 [17:21:43]line ФМ: 0000000000871754 [17:21:43]line ФД: 191871 [17:21:43]line ФПД: 278887067645933 [17:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172157&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191871&fm=278887067645933&tin=02508201610067®Number=0000000000091776&sum=30000 [17:21:43]OFD Sender: Processing packet 191871 [packets to send 75, broken 74] [17:21:43]ProducePacketName [17:21:43]name=ofd_packets/00191871 [17:21:43]OFD Sender: To server: pG, [17:21:43]CommunicateWithHost lk.salyk.kg:30040 [17:21:43]ConnectInit lk.salyk.kg [17:21:43]written 0, free lines is 4095 [17:21:43]Connected sock=8 [17:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 68 11 07 01 0A 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 35 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F ED 02 00 35 04 06 00 FD A5 74 99 77 ED 2A 36 37 87 C7 E0 C8 C8 [17:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E 7A 47 00 2B 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 7F ED 02 00 F4 03 04 00 FF C9 1C 67 B6 04 01 00 00 B0 45 A1 5C 52 57 DB 67 [17:21:43]CommunicateWithHost err = 0 [17:21:43]CheckOFDResponse [17:21:43]1017 (14) - 77093643461234 [17:21:43]1041 (16) - 0000000000871754 [17:21:43]1040 (4) - 191871 [17:21:43]1012 (4) - 26.10.2024 10:52 [17:21:43]1206 (1) - 0 [17:21:43]OFD Sender: Remove packet 191871 [17:21:43]ProducePacketName [17:21:43]name=ofd_packets/00191871 [17:21:43]NVStorageDeleteData [17:21:44]Write to MH i2c: 01 00 00 78 21 99 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 07 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 07 00 78 21 00 00 00 00 00 B5 0C 61 [17:21:44]RasterBufferAndPrint [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]written 0, free lines is 3259 [17:21:44]MH_Cut [17:21:44]Write to MH i2c: D1 01 00 7F 21 01 72 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 01 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 01 00 7F 21 00 71 [17:21:44]Write to MH i2c: 01 00 00 80 21 A1 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]OFD Sender: No OFD packet to send [17:21:44]*** Cut start [17:21:44]*** Partial cut [17:21:44]*** CUTSNS_PIN = 1 [17:21:44]*** CUTSNS_PIN = 0 [17:21:45]*** Brake cut motor [17:21:45]Read from MH i2c: 01 [17:21:45]MH_I2C_Read... [17:21:45]*** Stop cut motor [17:21:45]*** Cut end [17:21:45]Read from MH i2c: 01 07 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 07 00 80 21 00 00 00 00 00 FF 0F B6 [17:21:45]process_action close_receipt done [17:21:45]requested_data is exist [17:21:45]produce_requested_data [17:21:45]requested_item fm.sn is exist - process it [17:21:45]wFMCommunicate request_size=4 [17:21:45]MH_SAM_APDU [17:21:45]CAPDU: 80 11 00 00 [17:21:45]Write to MH i2c: E2 08 00 81 21 80 11 00 00 00 00 00 00 1C [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:45]Read from MH i2c: E2 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 17 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 17 00 81 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [17:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:21:45]wFMCommunicate OK [17:21:45]requested_item fd.num is exist - process it [17:21:45]SAM_PROTO_GetFieldsCounters [17:21:45]wFMCommunicate request_size=4 [17:21:45]MH_SAM_APDU [17:21:45]CAPDU: 80 13 00 00 [17:21:45]Write to MH i2c: E2 08 00 82 21 80 13 00 00 00 00 00 00 1F [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:45]Read from MH i2c: E2 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 62 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 62 00 82 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [17:21:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 7F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:45]wFMCommunicate OK [17:21:45]SAM_PROTO_GetFieldsCounters done [17:21:45]requested_item shift.num is exist - process it [17:21:45]requested_item shift.opened is exist - process it [17:21:45]req_shift_opened [17:21:45]FM_GetShiftState [17:21:45]SAM_PROTO_GetShiftState [17:21:45]wFMCommunicate request_size=4 [17:21:45]MH_SAM_APDU [17:21:45]CAPDU: 80 13 01 00 [17:21:45]Write to MH i2c: E2 08 00 83 21 80 13 01 00 00 00 00 00 21 [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:45]Read from MH i2c: E2 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 0E 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 0E 00 83 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9A [17:21:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:21:45]wFMCommunicate OK [17:21:45]SAM_PROTO_GetShiftState done [17:21:45]FM_GetShiftState done [17:21:45]req_shift_opened done [17:21:45]requested_item shift.open_date is exist - process it [17:21:45]req_shift_open_date [17:21:45]req_shift_open_date done [17:21:45]produce_requested_data done [17:21:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191871,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:21:45]process_action_free close_receipt [17:21:45]json_value_free [17:21:45]json_value_free done [17:21:45]process_json_proto returns [17:21:45]Send response to host [17:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191871,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:21:45]free response buf [17:21:45]execute_script done [17:21:45]execute_script returns [17:21:45]free content buf [17:21:45]Sock 6.Close socket [17:21:45]Sock 6.Thread stoped [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:43]accept exits with 5 [17:22:43]New connection [17:22:43]New thread 3066961252 created [17:22:43]Thread 3066817892 joined [17:22:43]Waiting for new connection... [17:22:43] Sock 5.Parse request [17:22:43]Sock 5.Check first char [17:22:43]Sock 5.First char is OK [17:22:43]request: POST /json_proto HTTP/1.0 [17:22:43]Method: POST [17:22:43]URL: /json_proto [17:22:43]Method is POST - this is cgi request [17:22:43]url: /json_proto [17:22:43]query_string will be loaded in cgi processing [17:22:43]execute_cgi json_proto POST (null) [17:22:43]execute_cgi path=json_proto method=POST [17:22:43]POST find Content-Length [17:22:43]Host: 172.17.63.131:8080 [17:22:43]Content-Length: 678 [17:22:43]Content-Type: application/json [17:22:43] [17:22:43]POST finish read [17:22:43]Found Content-Length = 678 [17:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31180", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:43]execute_script... [17:22: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)31180", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:43]POST & json_proto [17:22:43]process_json_proto [17:22:43]json parsed OK: [17:22:43]protocol is kg_v1.0 [17:22:43]action value=close_receipt [17:22:43]process_action close_receipt [17:22:43]cmd_close_receipt [17:22:43]MH_GetDate [17:22:43]Write to MH i2c: F0 00 00 84 21 94 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: F0 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: F0 09 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: F0 09 00 84 21 00 72 25 1D 67 22 05 6E 64 B1 [17:22:43]GetLastDocTimeStamp 1729963317 [17:22:43]current date 1729963378 [17:22:43]FM_GetShiftState [17:22:43]SAM_PROTO_GetShiftState [17:22:43]wFMCommunicate request_size=4 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 13 01 00 [17:22:43]Write to MH i2c: E2 08 00 85 21 80 13 01 00 00 00 00 00 23 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 0E 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 0E 00 85 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9C [17:22:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:22:43]wFMCommunicate OK [17:22:43]SAM_PROTO_GetShiftState done [17:22:43]FM_GetShiftState done [17:22:43]opened in 1729902770 [17:22:43]opened+sec_in_day 1729989170 [17:22:43]quantity*price = 150037 [17:22:43]sum+1 = 150039 [17:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 235 26.10.2024 17:22 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191872 ФПД: 35374252044074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191872&fm=35374252044074&tin=02508201610067®Number=0000000000091776&sum=150000 [17:22:44]StoreToDocumentArchive [17:22:44]shift 541 fd 191872 [17:22:44]save to /storage/0541/doc_00191872 [17:22:44]save last doc name /storage/0541/doc_00191872 to /storage/kkm_last_doc_name [17:22:44]save OK [17:22:44]Clear old archive folders... [17:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:22:44]tlvbuf is 01A11AE0 [17:22:44]SAM_PROTO_ClearQueue [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 09 00 00 [17:22:44]Write to MH i2c: E2 08 00 92 21 80 09 00 00 00 00 00 00 25 [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 92 21 00 90 00 27 [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]SAM_PROTO_ClearQueue done [17:22:44]KKMCreateOFDPacket [17:22:44]OFDProtocolAddRootSTLVToBuf [17:22:44]FM_MakeSignedData [17:22:44]FM_MakeSignedData [17:22:44]SAM_PROTO_SignData [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 0D 01 02 [17:22:44]Write to MH i2c: E2 08 00 93 21 80 0D 01 02 00 00 00 00 2D [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 93 21 00 90 00 28 [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]wFMCommunicate request_size=255 [17:22:44]MH_SAM_APDU [17:22: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 72 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 ED 02 00 35 04 06 00 20 2C 35 BA [17:22:44]Write to MH i2c: E2 02 01 94 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 72 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 ED 02 00 35 04 06 00 20 2C 35 BA 00 00 FD [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]OFD Sender: No OFD packet to send [17:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 94 21 00 90 00 29 [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]wFMCommunicate request_size=7 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 0D 02 02 02 2F 2A [17:22:44]Write to MH i2c: E2 0A 00 95 21 80 0D 02 02 02 00 2F 2A 00 00 8D [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 95 21 00 90 00 2A [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 0D 03 02 [17:22:44]Write to MH i2c: E2 08 00 96 21 80 0D 03 02 00 00 00 00 32 [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 0B 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 0B 00 96 21 00 48 9A 61 73 5A BD 2F 5F 90 00 8E [17:22:44]RAPDU: 48 9A 61 73 5A BD 2F 5F 90 00 [17:22:44]wFMCommunicate OK [17:22:44]SAM_PROTO_SignData done [17:22:44]FM_MakeSignedData done [17:22:44]CreateOFDProtocolMessage [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 11 00 00 [17:22:44]Write to MH i2c: E2 08 00 97 21 80 11 00 00 00 00 00 00 32 [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 17 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 17 00 97 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 85 [17:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:44]wFMCommunicate OK [17:22:44]CreateOFDProtocolMessage done [17:22:44]OFDSenderStorePacket 191872 [17:22:44]StoreOFDPacket docnum=191872 [17:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 30 7A 04 01 72 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 72 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 ED 02 00 35 04 06 00 20 2C 35 BA 2F 2A 48 9A 61 73 5A BD 2F 5F [17:22:44]CheckFolder [17:22:44]dirname=/storage/ofd_packets [17:22:44]CheckFolder done [17:22:44]ProducePacketName [17:22:44]name=ofd_packets/00191872 [17:22:44]NVStorageSaveData ofd_packets/00191872 [17:22:44]File name is /storage/ofd_packets/00191872 [17:22:44]Write 298 bytes [17:22:44]NVStorageSaveData done [17:22:44]OFDSenderStorePacket done [17:22:44]KKMCreateOFDPacket done [17:22:44]NVStorageSaveData kkm_last_timestamp [17:22:44]File name is /storage/kkm_last_timestamp [17:22:44]Write 4 bytes [17:22:44]NVStorageSaveData done [17:22:44]ExternCall_PrintAddStr [17:22:44]wPrintStart [17:22:44]Write to MH i2c: 01 00 00 98 21 B9 [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 07 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 07 00 98 21 00 00 00 00 00 FF 0F CE [17:22:44]RasterBufferAndPrint [17:22:44]line Счет N : (1)31180 [17:22:44]line ИНН: 02508201610067 [17:22:44]line Контрольно-Кассовый Чек [17:22:44]line ПРОДАЖА [17:22:44]line ТРК (МРК, ГНК) : 22 [17:22:44]line Товар: 2710194210 [17:22:44]line ДТ-К-5 [17:22:44]line 19.690 * 76.20 [17:22:44]line = 1500.38 [17:22:44]line НДС 12% НСП 1% [17:22:44]line > о реализуемом товаре [17:22:44]line ОКРУГЛЕНИЕ: -0.38 [17:22:44]line ИТОГО: 1500.00 [17:22:44]line Внесено: 1500.00 [17:22:44]line СДАЧА: 0.00 [17:22:44]line НСП 1% : 13.28 [17:22:44]line НДС 12% : 159.33 [17:22:44]line Наличными: 1500.00 [17:22:44]line Безнал.: 0.00 [17:22:44]line Место: АЗС № 170 "Партнер Нефть" [17:22:44]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:22:44]line СНО: Общий режим [17:22:44]line Чек 235 26.10.2024 17:22 [17:22:44]line Смена: 541 ФФД: 1.0 [17:22:44]line ЗНМ: 0300000110 [17:22:44]line РНМ: 0000000000091776 [17:22:44]line Версия ККМ: 001 [17:22:44]line ФМ: 0000000000871754 [17:22:44]line ФД: 191872 [17:22:44]line ФПД: 35374252044074 [17:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172258&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191872&fm=35374252044074&tin=02508201610067®Number=0000000000091776&sum=150000 [17:22:45]OFD Sender: Processing packet 191872 [packets to send 75, broken 74] [17:22:45]ProducePacketName [17:22:45]name=ofd_packets/00191872 [17:22:45]OFD Sender: To server: pG, [17:22:45]CommunicateWithHost lk.salyk.kg:30040 [17:22:45]ConnectInit lk.salyk.kg [17:22:45]written 0, free lines is 4095 [17:22:45]Connected sock=8 [17:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 30 7A 04 01 72 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 72 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 ED 02 00 35 04 06 00 20 2C 35 BA 2F 2A 48 9A 61 73 5A BD 2F 5F [17:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 B1 47 00 14 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 80 ED 02 00 F4 03 04 00 3D CA 1C 67 B6 04 01 00 00 26 93 8B FF 7F 4B B7 48 [17:22:45]CommunicateWithHost err = 0 [17:22:45]CheckOFDResponse [17:22:45]1017 (14) - 77093643461234 [17:22:45]1041 (16) - 0000000000871754 [17:22:45]1040 (4) - 191872 [17:22:45]1012 (4) - 26.10.2024 10:53 [17:22:45]1206 (1) - 0 [17:22:45]OFD Sender: Remove packet 191872 [17:22:45]ProducePacketName [17:22:45]name=ofd_packets/00191872 [17:22:45]NVStorageDeleteData [17:22:45]Write to MH i2c: 01 00 00 C3 21 E4 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 07 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 07 00 C3 21 00 00 00 00 00 CB 0C C2 [17:22:45]RasterBufferAndPrint [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]written 0, free lines is 3281 [17:22:45]MH_Cut [17:22:45]Write to MH i2c: D1 01 00 CA 21 01 BD [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 01 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 01 00 CA 21 00 BC [17:22:45]Write to MH i2c: 01 00 00 CB 21 EC [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]OFD Sender: No OFD packet to send [17:22:46]*** Cut start [17:22:46]*** Partial cut [17:22:46]*** CUTSNS_PIN = 1 [17:22:46]*** CUTSNS_PIN = 0 [17:22:46]*** Brake cut motor [17:22:47]Read from MH i2c: 01 [17:22:47]MH_I2C_Read... [17:22:47]*** Stop cut motor [17:22:47]*** Cut end [17:22:47]Read from MH i2c: 01 07 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: 01 07 00 CB 21 00 00 00 00 00 FF 0F 01 [17:22:47]process_action close_receipt done [17:22:47]requested_data is exist [17:22:47]produce_requested_data [17:22:47]requested_item fm.sn is exist - process it [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 11 00 00 [17:22:47]Write to MH i2c: E2 08 00 CC 21 80 11 00 00 00 00 00 00 67 [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 17 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 17 00 CC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BA [17:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:22:47]wFMCommunicate OK [17:22:47]requested_item fd.num is exist - process it [17:22:47]SAM_PROTO_GetFieldsCounters [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 13 00 00 [17:22:47]Write to MH i2c: E2 08 00 CD 21 80 13 00 00 00 00 00 00 6A [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 62 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 62 00 CD 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [17:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 80 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:47]wFMCommunicate OK [17:22:47]SAM_PROTO_GetFieldsCounters done [17:22:47]requested_item shift.num is exist - process it [17:22:47]requested_item shift.opened is exist - process it [17:22:47]req_shift_opened [17:22:47]FM_GetShiftState [17:22:47]SAM_PROTO_GetShiftState [17:22:47]wFMCommunicate request_size=4 [17:22:47]MH_SAM_APDU [17:22:47]CAPDU: 80 13 01 00 [17:22:47]Write to MH i2c: E2 08 00 CE 21 80 13 01 00 00 00 00 00 6C [17:22:47]Write i2c OK [17:22:47]MH_I2C_Read... [17:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:47]Read from MH i2c: E2 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 0E 00 [17:22:47]MH_I2C_Read... [17:22:47]Read from MH i2c: E2 0E 00 CE 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E5 [17:22:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:22:47]wFMCommunicate OK [17:22:47]SAM_PROTO_GetShiftState done [17:22:47]FM_GetShiftState done [17:22:47]req_shift_opened done [17:22:47]requested_item shift.open_date is exist - process it [17:22:47]req_shift_open_date [17:22:47]req_shift_open_date done [17:22:47]produce_requested_data done [17:22:47]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191872,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:22:47]process_action_free close_receipt [17:22:47]json_value_free [17:22:47]json_value_free done [17:22:47]process_json_proto returns [17:22:47]Send response to host [17:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191872,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:22:47]free response buf [17:22:47]execute_script done [17:22:47]execute_script returns [17:22:47]free content buf [17:22:47]Sock 5.Close socket [17:22:47]Sock 5.Thread stoped [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:50]accept exits with 6 [17:23:50]New connection [17:23:50]New thread 3066817892 created [17:23:50]Thread 3066961252 joined [17:23:50]Waiting for new connection... [17:23:50] Sock 6.Parse request [17:23:50]Sock 6.Check first char [17:23:50]Sock 6.First char is OK [17:23:50]request: POST /json_proto HTTP/1.0 [17:23:50]Method: POST [17:23:50]URL: /json_proto [17:23:50]Method is POST - this is cgi request [17:23:50]url: /json_proto [17:23:50]query_string will be loaded in cgi processing [17:23:50]execute_cgi json_proto POST (null) [17:23:50]execute_cgi path=json_proto method=POST [17:23:50]POST find Content-Length [17:23:50]Host: 172.17.63.131:8080 [17:23:50]Content-Length: 676 [17:23:50]Content-Type: application/json [17:23:50] [17:23:50]POST finish read [17:23:50]Found Content-Length = 676 [17:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:50]execute_script... [17:23: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)31181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:50]POST & json_proto [17:23:50]process_json_proto [17:23:50]json parsed OK: [17:23:50]protocol is kg_v1.0 [17:23:50]action value=close_receipt [17:23:50]process_action close_receipt [17:23:50]cmd_close_receipt [17:23:50]MH_GetDate [17:23:50]Write to MH i2c: F0 00 00 CF 21 DF [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 09 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: F0 09 00 CF 21 00 B6 25 1D 67 22 05 6E 64 40 [17:23:50]GetLastDocTimeStamp 1729963378 [17:23:50]current date 1729963446 [17:23:50]FM_GetShiftState [17:23:50]SAM_PROTO_GetShiftState [17:23:50]wFMCommunicate request_size=4 [17:23:50]MH_SAM_APDU [17:23:50]CAPDU: 80 13 01 00 [17:23:50]Write to MH i2c: E2 08 00 D0 21 80 13 01 00 00 00 00 00 6E [17:23:50]Write i2c OK [17:23:50]MH_I2C_Read... [17:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:50]Read from MH i2c: E2 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 [17:23:50]MH_I2C_Read... [17:23:50]Read from MH i2c: E2 0E 00 D0 21 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E7 [17:23:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:23:50]wFMCommunicate OK [17:23:50]SAM_PROTO_GetShiftState done [17:23:50]FM_GetShiftState done [17:23:50]opened in 1729902770 [17:23:50]opened+sec_in_day 1729989170 [17:23:50]quantity*price = 50041 [17:23:50]sum+1 = 50042 [17:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 236 26.10.2024 17:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191873 ФПД: 127066667930491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191873&fm=127066667930491&tin=02508201610067®Number=0000000000091776&sum=50000 [17:23:52]StoreToDocumentArchive [17:23:52]shift 541 fd 191873 [17:23:52]save to /storage/0541/doc_00191873 [17:23:52]save last doc name /storage/0541/doc_00191873 to /storage/kkm_last_doc_name [17:23:52]save OK [17:23:52]Clear old archive folders... [17:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:52]tlvbuf is 01960CC0 [17:23:52]SAM_PROTO_ClearQueue [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 09 00 00 [17:23:52]Write to MH i2c: E2 08 00 DD 21 80 09 00 00 00 00 00 00 70 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 DD 21 00 90 00 72 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_ClearQueue done [17:23:52]KKMCreateOFDPacket [17:23:52]OFDProtocolAddRootSTLVToBuf [17:23:52]FM_MakeSignedData [17:23:52]FM_MakeSignedData [17:23:52]SAM_PROTO_SignData [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 01 02 [17:23:52]Write to MH i2c: E2 08 00 DE 21 80 0D 01 02 00 00 00 00 78 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]wFMCommunicate request_size=255 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 B6 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 ED 02 00 35 04 06 00 73 [17:23:52]Write to MH i2c: E2 02 01 DF 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 B6 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 ED 02 00 35 04 06 00 73 00 00 59 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 DF 21 00 90 00 74 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]wFMCommunicate request_size=10 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 02 02 05 91 03 9A D3 7B [17:23:52]Write to MH i2c: E2 0D 00 E0 21 80 0D 02 02 05 00 91 03 9A D3 7B 00 00 01 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 03 00 E0 21 00 90 00 75 [17:23:52]RAPDU: 90 00 [17:23:52]wFMCommunicate OK [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 0D 03 02 [17:23:52]Write to MH i2c: E2 08 00 E1 21 80 0D 03 02 00 00 00 00 7D [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0B 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0B 00 E1 21 00 1B F7 3A B6 3D A2 9C 79 90 00 74 [17:23:52]RAPDU: 1B F7 3A B6 3D A2 9C 79 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_SignData done [17:23:52]FM_MakeSignedData done [17:23:52]CreateOFDProtocolMessage [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 11 00 00 [17:23:52]Write to MH i2c: E2 08 00 E2 21 80 11 00 00 00 00 00 00 7D [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 17 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 17 00 E2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D0 [17:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:23:52]wFMCommunicate OK [17:23:52]CreateOFDProtocolMessage done [17:23:52]OFDSenderStorePacket 191873 [17:23:52]StoreOFDPacket docnum=191873 [17:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 2E 07 01 4E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 B6 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 ED 02 00 35 04 06 00 73 91 03 9A D3 7B 1B F7 3A B6 3D A2 9C 79 [17:23:52]CheckFolder [17:23:52]dirname=/storage/ofd_packets [17:23:52]CheckFolder done [17:23:52]ProducePacketName [17:23:52]name=ofd_packets/00191873 [17:23:52]NVStorageSaveData ofd_packets/00191873 [17:23:52]File name is /storage/ofd_packets/00191873 [17:23:52]Write 301 bytes [17:23:52]NVStorageSaveData done [17:23:52]OFDSenderStorePacket done [17:23:52]KKMCreateOFDPacket done [17:23:52]NVStorageSaveData kkm_last_timestamp [17:23:52]File name is /storage/kkm_last_timestamp [17:23:52]Write 4 bytes [17:23:52]NVStorageSaveData done [17:23:52]ExternCall_PrintAddStr [17:23:52]wPrintStart [17:23:52]Write to MH i2c: 01 00 00 E3 21 04 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 07 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: 01 07 00 E3 21 00 00 00 00 00 FF 0F 19 [17:23:52]RasterBufferAndPrint [17:23:52]line Счет N : (1)31181 [17:23:52]line ИНН: 02508201610067 [17:23:52]line Контрольно-Кассовый Чек [17:23:52]line ПРОДАЖА [17:23:52]line ТРК (МРК, ГНК) : 21 [17:23:52]line Товар: 2710124130 [17:23:52]line Аи-92-К-5 [17:23:52]line 7.480 * 66.90 [17:23:52]line = 500.41 [17:23:52]line НДС 12% НСП 1% [17:23:52]line > о реализуемом товаре [17:23:52]line ОКРУГЛЕНИЕ: -0.41 [17:23:52]line ИТОГО: 500.00 [17:23:52]line Внесено: 500.00 [17:23:52]line СДАЧА: 0.00 [17:23:52]line НСП 1% : 4.43 [17:23:52]line НДС 12% : 53.14 [17:23:52]line Наличными: 500.00 [17:23:52]line Безнал.: 0.00 [17:23:52]line Место: АЗС № 170 "Партнер Нефть" [17:23:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:23:52]line СНО: Общий режим [17:23:52]line Чек 236 26.10.2024 17:24 [17:23:52]line Смена: 541 ФФД: 1.0 [17:23:52]line ЗНМ: 0300000110 [17:23:52]line РНМ: 0000000000091776 [17:23:52]line Версия ККМ: 001 [17:23:52]line ФМ: 0000000000871754 [17:23:52]line ФД: 191873 [17:23:52]line ФПД: 127066667930491 [17:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172406&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191873&fm=127066667930491&tin=02508201610067®Number=0000000000091776&sum=50000 [17:23:52]OFD Sender: Processing packet 191873 [packets to send 75, broken 74] [17:23:52]ProducePacketName [17:23:52]name=ofd_packets/00191873 [17:23:52]OFD Sender: To server: pG, [17:23:52]CommunicateWithHost lk.salyk.kg:30040 [17:23:52]ConnectInit lk.salyk.kg [17:23:52]written 0, free lines is 4095 [17:23:53]Connected sock=8 [17:23:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6B 2E 07 01 4E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 B6 25 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 ED 02 00 35 04 06 00 73 91 03 9A D3 7B 1B F7 3A B6 3D A2 9C 79 [17:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F2 5C 47 00 6D 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 81 ED 02 00 F4 03 04 00 81 CA 1C 67 B6 04 01 00 00 25 18 A2 DD 15 87 91 21 [17:23:53]CommunicateWithHost err = 0 [17:23:53]CheckOFDResponse [17:23:53]1017 (14) - 77093643461234 [17:23:53]1041 (16) - 0000000000871754 [17:23:53]1040 (4) - 191873 [17:23:53]1012 (4) - 26.10.2024 10:54 [17:23:53]1206 (1) - 0 [17:23:53]OFD Sender: Remove packet 191873 [17:23:53]ProducePacketName [17:23:53]name=ofd_packets/00191873 [17:23:53]NVStorageDeleteData [17:23:53]Write to MH i2c: 01 00 00 0E 22 30 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: 01 07 00 0E 22 00 00 00 00 00 C0 0C 03 [17:23:53]RasterBufferAndPrint [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]line [17:23:53]written 0, free lines is 3273 [17:23:53]MH_Cut [17:23:53]Write to MH i2c: D1 01 00 15 22 01 09 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 01 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: D1 01 00 15 22 00 08 [17:23:53]Write to MH i2c: 01 00 00 16 22 38 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]OFD Sender: No OFD packet to send [17:23:54]*** Cut start [17:23:54]*** Partial cut [17:23:54]*** CUTSNS_PIN = 1 [17:23:54]*** CUTSNS_PIN = 0 [17:23:54]*** Brake cut motor [17:23:54]Read from MH i2c: 01 [17:23:54]MH_I2C_Read... [17:23:54]*** Stop cut motor [17:23:54]*** Cut end [17:23:54]Read from MH i2c: 01 07 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 FF 0F 4D [17:23:54]process_action close_receipt done [17:23:54]requested_data is exist [17:23:54]produce_requested_data [17:23:54]requested_item fm.sn is exist - process it [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 11 00 00 [17:23:54]Write to MH i2c: E2 08 00 17 22 80 11 00 00 00 00 00 00 B3 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 17 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 06 [17:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:23:54]wFMCommunicate OK [17:23:54]requested_item fd.num is exist - process it [17:23:54]SAM_PROTO_GetFieldsCounters [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 13 00 00 [17:23:54]Write to MH i2c: E2 08 00 18 22 80 13 00 00 00 00 00 00 B6 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 18 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [17:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 81 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetFieldsCounters done [17:23:55]requested_item shift.num is exist - process it [17:23:55]requested_item shift.opened is exist - process it [17:23:55]req_shift_opened [17:23:55]FM_GetShiftState [17:23:55]SAM_PROTO_GetShiftState [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 01 00 [17:23:55]Write to MH i2c: E2 08 00 19 22 80 13 01 00 00 00 00 00 B8 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 19 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 31 [17:23:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetShiftState done [17:23:55]FM_GetShiftState done [17:23:55]req_shift_opened done [17:23:55]requested_item shift.open_date is exist - process it [17:23:55]req_shift_open_date [17:23:55]req_shift_open_date done [17:23:55]produce_requested_data done [17:23:55]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191873,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:23:55]process_action_free close_receipt [17:23:55]json_value_free [17:23:55]json_value_free done [17:23:55]process_json_proto returns [17:23:55]Send response to host [17:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191873,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:23:55]free response buf [17:23:55]execute_script done [17:23:55]execute_script returns [17:23:55]free content buf [17:23:55]Sock 6.Close socket [17:23:55]Sock 6.Thread stoped [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]accept exits with 5 [17:25:38]New connection [17:25:38]New thread 3066961252 created [17:25:38]Thread 3066817892 joined [17:25:38]Waiting for new connection... [17:25:38] Sock 5.Parse request [17:25:38]Sock 5.Check first char [17:25:38]Sock 5.First char is OK [17:25:38]request: POST /json_proto HTTP/1.0 [17:25:38]Method: POST [17:25:38]URL: /json_proto [17:25:38]Method is POST - this is cgi request [17:25:38]url: /json_proto [17:25:38]query_string will be loaded in cgi processing [17:25:38]execute_cgi json_proto POST (null) [17:25:38]execute_cgi path=json_proto method=POST [17:25:38]POST find Content-Length [17:25:38]Host: 172.17.63.131:8080 [17:25:38]Content-Length: 676 [17:25:38]Content-Type: application/json [17:25:38] [17:25:38]POST finish read [17:25:38]Found Content-Length = 676 [17:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:38]execute_script... [17:25: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)31182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:38]POST & json_proto [17:25:38]process_json_proto [17:25:38]json parsed OK: [17:25:38]protocol is kg_v1.0 [17:25:38]action value=close_receipt [17:25:38]process_action close_receipt [17:25:38]cmd_close_receipt [17:25:38]MH_GetDate [17:25:38]Write to MH i2c: F0 00 00 1A 22 2B [17:25:38]Write i2c OK [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 09 00 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: F0 09 00 1A 22 00 22 26 1D 67 22 05 6E 64 F9 [17:25:38]GetLastDocTimeStamp 1729963446 [17:25:38]current date 1729963554 [17:25:38]FM_GetShiftState [17:25:38]SAM_PROTO_GetShiftState [17:25:38]wFMCommunicate request_size=4 [17:25:38]MH_SAM_APDU [17:25:38]CAPDU: 80 13 01 00 [17:25:38]Write to MH i2c: E2 08 00 1B 22 80 13 01 00 00 00 00 00 BA [17:25:38]Write i2c OK [17:25:38]MH_I2C_Read... [17:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:38]Read from MH i2c: E2 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: E2 0E 00 [17:25:38]MH_I2C_Read... [17:25:38]Read from MH i2c: E2 0E 00 1B 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 33 [17:25:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:25:38]wFMCommunicate OK [17:25:38]SAM_PROTO_GetShiftState done [17:25:38]FM_GetShiftState done [17:25:38]opened in 1729902770 [17:25:38]opened+sec_in_day 1729989170 [17:25:38]quantity*price = 40006 [17:25:38]sum+1 = 40007 [17:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 237 26.10.2024 17:25 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191874 ФПД: 219242946996291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191874&fm=219242946996291&tin=02508201610067®Number=0000000000091776&sum=40000 [17:25:40]StoreToDocumentArchive [17:25:40]shift 541 fd 191874 [17:25:40]save to /storage/0541/doc_00191874 [17:25:40]save last doc name /storage/0541/doc_00191874 to /storage/kkm_last_doc_name [17:25:40]save OK [17:25:40]Clear old archive folders... [17:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:40]tlvbuf is 01C248A0 [17:25:40]SAM_PROTO_ClearQueue [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 09 00 00 [17:25:40]Write to MH i2c: E2 08 00 28 22 80 09 00 00 00 00 00 00 BC [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 28 22 00 90 00 BE [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]SAM_PROTO_ClearQueue done [17:25:40]KKMCreateOFDPacket [17:25:40]OFDProtocolAddRootSTLVToBuf [17:25:40]FM_MakeSignedData [17:25:40]FM_MakeSignedData [17:25:40]SAM_PROTO_SignData [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 0D 01 02 [17:25:40]Write to MH i2c: E2 08 00 29 22 80 0D 01 02 00 00 00 00 C4 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 29 22 00 90 00 BF [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]wFMCommunicate request_size=255 [17:25:40]MH_SAM_APDU [17:25: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 22 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 ED 02 00 35 04 06 00 C7 [17:25:40]Write to MH i2c: E2 02 01 2A 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 22 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 ED 02 00 35 04 06 00 C7 00 00 37 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 2A 22 00 90 00 C0 [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]wFMCommunicate request_size=10 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 0D 02 02 05 66 79 F9 A8 43 [17:25:40]Write to MH i2c: E2 0D 00 2B 22 80 0D 02 02 05 00 66 79 F9 A8 43 00 00 94 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 03 00 2B 22 00 90 00 C1 [17:25:40]RAPDU: 90 00 [17:25:40]wFMCommunicate OK [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 0D 03 02 [17:25:40]Write to MH i2c: E2 08 00 2C 22 80 0D 03 02 00 00 00 00 C9 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0B 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0B 00 2C 22 00 C1 ED 70 7C BE 01 13 D0 90 00 06 [17:25:40]RAPDU: C1 ED 70 7C BE 01 13 D0 90 00 [17:25:40]wFMCommunicate OK [17:25:40]SAM_PROTO_SignData done [17:25:40]FM_MakeSignedData done [17:25:40]CreateOFDProtocolMessage [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 11 00 00 [17:25:40]Write to MH i2c: E2 08 00 2D 22 80 11 00 00 00 00 00 00 C9 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 17 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 17 00 2D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1C [17:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:40]wFMCommunicate OK [17:25:40]CreateOFDProtocolMessage done [17:25:40]OFDSenderStorePacket 191874 [17:25:40]StoreOFDPacket docnum=191874 [17:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 5B 07 01 B8 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 22 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 ED 02 00 35 04 06 00 C7 66 79 F9 A8 43 C1 ED 70 7C BE 01 13 D0 [17:25:40]CheckFolder [17:25:40]dirname=/storage/ofd_packets [17:25:40]CheckFolder done [17:25:40]ProducePacketName [17:25:40]name=ofd_packets/00191874 [17:25:40]NVStorageSaveData ofd_packets/00191874 [17:25:40]File name is /storage/ofd_packets/00191874 [17:25:40]Write 301 bytes [17:25:40]NVStorageSaveData done [17:25:40]OFDSenderStorePacket done [17:25:40]KKMCreateOFDPacket done [17:25:40]NVStorageSaveData kkm_last_timestamp [17:25:40]File name is /storage/kkm_last_timestamp [17:25:40]Write 4 bytes [17:25:40]NVStorageSaveData done [17:25:40]ExternCall_PrintAddStr [17:25:40]wPrintStart [17:25:40]Write to MH i2c: 01 00 00 2E 22 50 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 07 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: 01 07 00 2E 22 00 00 00 00 00 FF 0F 65 [17:25:40]RasterBufferAndPrint [17:25:40]line Счет N : (1)31182 [17:25:40]line ИНН: 02508201610067 [17:25:40]line Контрольно-Кассовый Чек [17:25:40]line ПРОДАЖА [17:25:40]line ТРК (МРК, ГНК) : 12 [17:25:40]line Товар: 2710124130 [17:25:40]line Аи-92-К-5 [17:25:40]line 5.980 * 66.90 [17:25:40]line = 400.06 [17:25:40]line НДС 12% НСП 1% [17:25:40]line > о реализуемом товаре [17:25:40]line ОКРУГЛЕНИЕ: -0.06 [17:25:40]line ИТОГО: 400.00 [17:25:40]line Внесено: 400.00 [17:25:40]line СДАЧА: 0.00 [17:25:40]line НСП 1% : 3.54 [17:25:40]line НДС 12% : 42.48 [17:25:40]line Наличными: 400.00 [17:25:40]line Безнал.: 0.00 [17:25:40]line Место: АЗС № 170 "Партнер Нефть" [17:25:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:25:40]line СНО: Общий режим [17:25:40]line Чек 237 26.10.2024 17:25 [17:25:40]line Смена: 541 ФФД: 1.0 [17:25:40]line ЗНМ: 0300000110 [17:25:40]line РНМ: 0000000000091776 [17:25:40]line Версия ККМ: 001 [17:25:40]line ФМ: 0000000000871754 [17:25:40]line ФД: 191874 [17:25:40]line ФПД: 219242946996291 [17:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172554&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191874&fm=219242946996291&tin=02508201610067®Number=0000000000091776&sum=40000 [17:25:40]OFD Sender: Processing packet 191874 [packets to send 75, broken 74] [17:25:40]ProducePacketName [17:25:40]name=ofd_packets/00191874 [17:25:40]OFD Sender: To server: pG, [17:25:40]CommunicateWithHost lk.salyk.kg:30040 [17:25:40]ConnectInit lk.salyk.kg [17:25:40]written 0, free lines is 4095 [17:25:41]Connected sock=8 [17:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 5B 07 01 B8 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 22 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 ED 02 00 35 04 06 00 C7 66 79 F9 A8 43 C1 ED 70 7C BE 01 13 D0 [17:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 27 08 47 00 F6 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 82 ED 02 00 F4 03 04 00 ED CA 1C 67 B6 04 01 00 00 32 61 9C 76 41 7A 7E 28 [17:25:41]CommunicateWithHost err = 0 [17:25:41]CheckOFDResponse [17:25:41]1017 (14) - 77093643461234 [17:25:41]1041 (16) - 0000000000871754 [17:25:41]1040 (4) - 191874 [17:25:41]1012 (4) - 26.10.2024 10:56 [17:25:41]1206 (1) - 0 [17:25:41]OFD Sender: Remove packet 191874 [17:25:41]ProducePacketName [17:25:41]name=ofd_packets/00191874 [17:25:41]NVStorageDeleteData [17:25:41]Write to MH i2c: 01 00 00 59 22 7B [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 59 22 00 00 00 00 00 CC 0C 5A [17:25:41]RasterBufferAndPrint [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]line [17:25:41]written 0, free lines is 3285 [17:25:41]MH_Cut [17:25:41]Write to MH i2c: D1 01 00 60 22 01 54 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: D1 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: D1 01 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: D1 01 00 60 22 00 53 [17:25:41]Write to MH i2c: 01 00 00 61 22 83 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]OFD Sender: No OFD packet to send [17:25:42]*** Cut start [17:25:42]*** Partial cut [17:25:42]*** CUTSNS_PIN = 1 [17:25:42]*** CUTSNS_PIN = 0 [17:25:42]*** Brake cut motor [17:25:42]Read from MH i2c: 01 [17:25:42]MH_I2C_Read... [17:25:42]*** Stop cut motor [17:25:42]*** Cut end [17:25:42]Read from MH i2c: 01 07 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 07 00 61 22 00 00 00 00 00 FF 0F 98 [17:25:42]process_action close_receipt done [17:25:42]requested_data is exist [17:25:42]produce_requested_data [17:25:42]requested_item fm.sn is exist - process it [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 11 00 00 [17:25:42]Write to MH i2c: E2 08 00 62 22 80 11 00 00 00 00 00 00 FE [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 62 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 51 [17:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:25:42]wFMCommunicate OK [17:25:42]requested_item fd.num is exist - process it [17:25:42]SAM_PROTO_GetFieldsCounters [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 13 00 00 [17:25:42]Write to MH i2c: E2 08 00 63 22 80 13 00 00 00 00 00 00 01 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 62 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 62 00 63 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [17:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 82 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_GetFieldsCounters done [17:25:43]requested_item shift.num is exist - process it [17:25:43]requested_item shift.opened is exist - process it [17:25:43]req_shift_opened [17:25:43]FM_GetShiftState [17:25:43]SAM_PROTO_GetShiftState [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 13 01 00 [17:25:43]Write to MH i2c: E2 08 00 64 22 80 13 01 00 00 00 00 00 03 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0E 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0E 00 64 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7C [17:25:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_GetShiftState done [17:25:43]FM_GetShiftState done [17:25:43]req_shift_opened done [17:25:43]requested_item shift.open_date is exist - process it [17:25:43]req_shift_open_date [17:25:43]req_shift_open_date done [17:25:43]produce_requested_data done [17:25:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191874,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:25:43]process_action_free close_receipt [17:25:43]json_value_free [17:25:43]json_value_free done [17:25:43]process_json_proto returns [17:25:43]Send response to host [17:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191874,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:25:43]free response buf [17:25:43]execute_script done [17:25:43]execute_script returns [17:25:43]free content buf [17:25:43]Sock 5.Close socket [17:25:43]Sock 5.Thread stoped [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:15]accept exits with 6 [17:29:15]New connection [17:29:15]New thread 3066817892 created [17:29:15]Thread 3066961252 joined [17:29:15]Waiting for new connection... [17:29:15] Sock 6.Parse request [17:29:15]Sock 6.Check first char [17:29:15]Sock 6.First char is OK [17:29:15]request: POST /json_proto HTTP/1.0 [17:29:15]Method: POST [17:29:15]URL: /json_proto [17:29:15]Method is POST - this is cgi request [17:29:15]url: /json_proto [17:29:15]query_string will be loaded in cgi processing [17:29:15]execute_cgi json_proto POST (null) [17:29:15]execute_cgi path=json_proto method=POST [17:29:15]POST find Content-Length [17:29:15]Host: 172.17.63.131:8080 [17:29:15]Content-Length: 678 [17:29:15]Content-Type: application/json [17:29:15] [17:29:15]POST finish read [17:29:15]Found Content-Length = 678 [17:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.720, "sum" : 784.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 784.00, "payments": [ { "type": 0, "sum" : 784.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:15]execute_script... [17:29: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)31184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.720, "sum" : 784.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 784.00, "payments": [ { "type": 0, "sum" : 784.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:15]POST & json_proto [17:29:15]process_json_proto [17:29:15]json parsed OK: [17:29:15]protocol is kg_v1.0 [17:29:15]action value=close_receipt [17:29:15]process_action close_receipt [17:29:15]cmd_close_receipt [17:29:15]MH_GetDate [17:29:15]Write to MH i2c: F0 00 00 65 22 76 [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: F0 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: F0 09 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: F0 09 00 65 22 00 FA 26 1D 67 22 05 6E 64 1C [17:29:15]GetLastDocTimeStamp 1729963554 [17:29:15]current date 1729963770 [17:29:15]FM_GetShiftState [17:29:15]SAM_PROTO_GetShiftState [17:29:15]wFMCommunicate request_size=4 [17:29:15]MH_SAM_APDU [17:29:15]CAPDU: 80 13 01 00 [17:29:15]Write to MH i2c: E2 08 00 66 22 80 13 01 00 00 00 00 00 05 [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0E 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0E 00 66 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7E [17:29:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:29:15]wFMCommunicate OK [17:29:15]SAM_PROTO_GetShiftState done [17:29:15]FM_GetShiftState done [17:29:15]opened in 1729902770 [17:29:15]opened+sec_in_day 1729989170 [17:29:15]quantity*price = 78406 [17:29:15]sum+1 = 78408 [17:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 784.00 Внесено: 1000.00 СДАЧА: 216.00 НСП 1% : 6.94 НДС 12% : 83.26 Наличными: 784.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 238 26.10.2024 17:29 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191875 ФПД: 188144024954845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191875&fm=188144024954845&tin=02508201610067®Number=0000000000091776&sum=78400 [17:29:16]StoreToDocumentArchive [17:29:16]shift 541 fd 191875 [17:29:16]save to /storage/0541/doc_00191875 [17:29:16]save last doc name /storage/0541/doc_00191875 to /storage/kkm_last_doc_name [17:29:16]save OK [17:29:16]Clear old archive folders... [17:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:16]tlvbuf is 01BE1780 [17:29:16]SAM_PROTO_ClearQueue [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 09 00 00 [17:29:16]Write to MH i2c: E2 08 00 73 22 80 09 00 00 00 00 00 00 07 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 73 22 00 90 00 09 [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_ClearQueue done [17:29:16]KKMCreateOFDPacket [17:29:16]OFDProtocolAddRootSTLVToBuf [17:29:16]FM_MakeSignedData [17:29:16]FM_MakeSignedData [17:29:16]SAM_PROTO_SignData [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 01 02 [17:29:16]Write to MH i2c: E2 08 00 74 22 80 0D 01 02 00 00 00 00 0F [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 74 22 00 90 00 0A [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=255 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 20 00 00 00 00 07 04 06 00 40 32 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 FA 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 ED 02 00 35 04 06 00 AB [17:29:16]Write to MH i2c: E2 02 01 75 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 20 00 00 00 00 07 04 06 00 40 32 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 FA 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 ED 02 00 35 04 06 00 AB 00 00 DB [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 75 22 00 90 00 0B [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=10 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 02 02 05 1D B1 C6 27 DD [17:29:16]Write to MH i2c: E2 0D 00 76 22 80 0D 02 02 05 00 1D B1 C6 27 DD 00 00 B4 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 03 00 76 22 00 90 00 0C [17:29:16]RAPDU: 90 00 [17:29:16]wFMCommunicate OK [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 0D 03 02 [17:29:16]Write to MH i2c: E2 08 00 77 22 80 0D 03 02 00 00 00 00 14 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0B 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 0B 00 77 22 00 B7 3A 42 F0 7F C9 3B E1 90 00 9C [17:29:16]RAPDU: B7 3A 42 F0 7F C9 3B E1 90 00 [17:29:16]wFMCommunicate OK [17:29:16]SAM_PROTO_SignData done [17:29:16]FM_MakeSignedData done [17:29:16]CreateOFDProtocolMessage [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 11 00 00 [17:29:16]Write to MH i2c: E2 08 00 78 22 80 11 00 00 00 00 00 00 14 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:16]Read from MH i2c: E2 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: E2 17 00 78 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 67 [17:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:16]wFMCommunicate OK [17:29:16]CreateOFDProtocolMessage done [17:29:16]OFDSenderStorePacket 191875 [17:29:16]StoreOFDPacket docnum=191875 [17:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 03 07 01 38 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 C8 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 20 00 00 00 00 07 04 06 00 40 32 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 FA 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 ED 02 00 35 04 06 00 AB 1D B1 C6 27 DD B7 3A 42 F0 7F C9 3B E1 [17:29:16]CheckFolder [17:29:16]dirname=/storage/ofd_packets [17:29:16]CheckFolder done [17:29:16]ProducePacketName [17:29:16]name=ofd_packets/00191875 [17:29:16]NVStorageSaveData ofd_packets/00191875 [17:29:16]File name is /storage/ofd_packets/00191875 [17:29:16]Write 301 bytes [17:29:16]NVStorageSaveData done [17:29:16]OFDSenderStorePacket done [17:29:16]KKMCreateOFDPacket done [17:29:16]NVStorageSaveData kkm_last_timestamp [17:29:16]File name is /storage/kkm_last_timestamp [17:29:16]Write 4 bytes [17:29:16]NVStorageSaveData done [17:29:16]ExternCall_PrintAddStr [17:29:16]wPrintStart [17:29:16]Write to MH i2c: 01 00 00 79 22 9B [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 79 22 00 00 00 00 00 FF 0F B0 [17:29:16]RasterBufferAndPrint [17:29:16]line Счет N : (1)31184 [17:29:16]line ИНН: 02508201610067 [17:29:16]line Контрольно-Кассовый Чек [17:29:16]line ПРОДАЖА [17:29:16]line ТРК (МРК, ГНК) : 21 [17:29:16]line Товар: 2710124130 [17:29:16]line Аи-92-К-5 [17:29:16]line 11.720 * 66.90 [17:29:16]line = 784.07 [17:29:16]line НДС 12% НСП 1% [17:29:16]line > о реализуемом товаре [17:29:16]line ОКРУГЛЕНИЕ: -0.07 [17:29:16]line ИТОГО: 784.00 [17:29:16]line Внесено: 1000.00 [17:29:16]line СДАЧА: 216.00 [17:29:16]line НСП 1% : 6.94 [17:29:16]line НДС 12% : 83.26 [17:29:16]line Наличными: 784.00 [17:29:16]line Безнал.: 0.00 [17:29:16]line Место: АЗС № 170 "Партнер Нефть" [17:29:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:29:16]line СНО: Общий режим [17:29:16]line Чек 238 26.10.2024 17:29 [17:29:16]line Смена: 541 ФФД: 1.0 [17:29:16]line ЗНМ: 0300000110 [17:29:16]line РНМ: 0000000000091776 [17:29:16]line Версия ККМ: 001 [17:29:16]line ФМ: 0000000000871754 [17:29:16]line ФД: 191875 [17:29:16]line ФПД: 188144024954845 [17:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T172930&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191875&fm=188144024954845&tin=02508201610067®Number=0000000000091776&sum=78400 [17:29:17]OFD Sender: Processing packet 191875 [packets to send 75, broken 74] [17:29:17]ProducePacketName [17:29:17]name=ofd_packets/00191875 [17:29:17]OFD Sender: To server: pG, [17:29:17]CommunicateWithHost lk.salyk.kg:30040 [17:29:17]ConnectInit lk.salyk.kg [17:29:17]written 0, free lines is 4095 [17:29:17]Connected sock=8 [17:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 70 03 07 01 38 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 C8 2D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 47 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 20 00 00 00 00 07 04 06 00 40 32 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 FA 26 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 ED 02 00 35 04 06 00 AB 1D B1 C6 27 DD B7 3A 42 F0 7F C9 3B E1 [17:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E6 CC 47 00 11 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 83 ED 02 00 F4 03 04 00 C5 CB 1C 67 B6 04 01 00 00 D6 A9 76 07 18 FC 09 BD [17:29:17]CommunicateWithHost err = 0 [17:29:17]CheckOFDResponse [17:29:17]1017 (14) - 77093643461234 [17:29:17]1041 (16) - 0000000000871754 [17:29:17]1040 (4) - 191875 [17:29:17]1012 (4) - 26.10.2024 11:00 [17:29:17]1206 (1) - 0 [17:29:17]OFD Sender: Remove packet 191875 [17:29:17]ProducePacketName [17:29:17]name=ofd_packets/00191875 [17:29:17]NVStorageDeleteData [17:29:17]Write to MH i2c: 01 00 00 A4 22 C6 [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 07 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 07 00 A4 22 00 00 00 00 00 C2 0C 9B [17:29:17]RasterBufferAndPrint [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]line [17:29:17]written 0, free lines is 3273 [17:29:17]MH_Cut [17:29:17]Write to MH i2c: D1 01 00 AB 22 01 9F [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 01 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: D1 01 00 AB 22 00 9E [17:29:17]Write to MH i2c: 01 00 00 AC 22 CE [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:18]OFD Sender: No OFD packet to send [17:29:18]*** Cut start [17:29:18]*** Partial cut [17:29:18]*** CUTSNS_PIN = 1 [17:29:18]*** CUTSNS_PIN = 0 [17:29:18]*** Brake cut motor [17:29:19]Read from MH i2c: 01 [17:29:19]MH_I2C_Read... [17:29:19]*** Stop cut motor [17:29:19]*** Cut end [17:29:19]Read from MH i2c: 01 07 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: 01 07 00 AC 22 00 00 00 00 00 FF 0F E3 [17:29:19]process_action close_receipt done [17:29:19]requested_data is exist [17:29:19]produce_requested_data [17:29:19]requested_item fm.sn is exist - process it [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 11 00 00 [17:29:19]Write to MH i2c: E2 08 00 AD 22 80 11 00 00 00 00 00 00 49 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 17 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 17 00 AD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9C [17:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:29:19]wFMCommunicate OK [17:29:19]requested_item fd.num is exist - process it [17:29:19]SAM_PROTO_GetFieldsCounters [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 13 00 00 [17:29:19]Write to MH i2c: E2 08 00 AE 22 80 13 00 00 00 00 00 00 4C [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 62 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 62 00 AE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 83 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:19]wFMCommunicate OK [17:29:19]SAM_PROTO_GetFieldsCounters done [17:29:19]requested_item shift.num is exist - process it [17:29:19]requested_item shift.opened is exist - process it [17:29:19]req_shift_opened [17:29:19]FM_GetShiftState [17:29:19]SAM_PROTO_GetShiftState [17:29:19]wFMCommunicate request_size=4 [17:29:19]MH_SAM_APDU [17:29:19]CAPDU: 80 13 01 00 [17:29:19]Write to MH i2c: E2 08 00 AF 22 80 13 01 00 00 00 00 00 4E [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:19]Read from MH i2c: E2 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 0E 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: E2 0E 00 AF 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C7 [17:29:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:29:19]wFMCommunicate OK [17:29:19]SAM_PROTO_GetShiftState done [17:29:19]FM_GetShiftState done [17:29:19]req_shift_opened done [17:29:19]requested_item shift.open_date is exist - process it [17:29:19]req_shift_open_date [17:29:19]req_shift_open_date done [17:29:19]produce_requested_data done [17:29:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191875,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:29:19]process_action_free close_receipt [17:29:19]json_value_free [17:29:19]json_value_free done [17:29:19]process_json_proto returns [17:29:19]Send response to host [17:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191875,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:29:19]free response buf [17:29:19]execute_script done [17:29:19]execute_script returns [17:29:19]free content buf [17:29:19]Sock 6.Close socket [17:29:19]Sock 6.Thread stoped [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:43]accept exits with 5 [17:30:43]New connection [17:30:43]New thread 3066961252 created [17:30:43]Thread 3066817892 joined [17:30:43]Waiting for new connection... [17:30:43] Sock 5.Parse request [17:30:43]Sock 5.Check first char [17:30:43]Sock 5.First char is OK [17:30:43]request: POST /json_proto HTTP/1.0 [17:30:43]Method: POST [17:30:43]URL: /json_proto [17:30:43]Method is POST - this is cgi request [17:30:43]url: /json_proto [17:30:43]query_string will be loaded in cgi processing [17:30:43]execute_cgi json_proto POST (null) [17:30:43]execute_cgi path=json_proto method=POST [17:30:43]POST find Content-Length [17:30:43]Host: 172.17.63.131:8080 [17:30:43]Content-Length: 977 [17:30:43]Content-Type: application/json [17:30:43] [17:30:43]POST finish read [17:30:43]Found Content-Length = 977 [17:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31183", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [17:30:43]execute_script... [17:30:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31183", "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" : 75.20, "quantity" : 66.490, "sum" : 5000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 66.49 \u0441\u043E\u043C", "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" ] } } [17:30:43]POST & json_proto [17:30:43]process_json_proto [17:30:43]json parsed OK: [17:30:43]protocol is kg_v1.0 [17:30:43]action value=close_receipt [17:30:43]process_action close_receipt [17:30:43]cmd_close_receipt [17:30:43]MH_GetDate [17:30:43]Write to MH i2c: F0 00 00 B0 22 C1 [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: F0 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: F0 09 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: F0 09 00 B0 22 00 53 27 1D 67 22 05 6E 64 C1 [17:30:43]GetLastDocTimeStamp 1729963770 [17:30:43]current date 1729963859 [17:30:43]FM_GetShiftState [17:30:43]SAM_PROTO_GetShiftState [17:30:43]wFMCommunicate request_size=4 [17:30:43]MH_SAM_APDU [17:30:43]CAPDU: 80 13 01 00 [17:30:43]Write to MH i2c: E2 08 00 B1 22 80 13 01 00 00 00 00 00 50 [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:43]Read from MH i2c: E2 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 0E 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 0E 00 B1 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C9 [17:30:43]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:30:43]wFMCommunicate OK [17:30:43]SAM_PROTO_GetShiftState done [17:30:43]FM_GetShiftState done [17:30:43]opened in 1729902770 [17:30:43]opened+sec_in_day 1729989170 [17:30:43]quantity*price = 500004 [17:30:43]sum+1 = 500006 [17:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 239 26.10.2024 17:30 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 66.49 сом ФМ: 0000000000871754 ФД: 191876 ФПД: 28321660034597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173059&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191876&fm=28321660034597&tin=02508201610067®Number=0000000000091776&sum=500000 [17:30:44]StoreToDocumentArchive [17:30:44]shift 541 fd 191876 [17:30:44]save to /storage/0541/doc_00191876 [17:30:44]save last doc name /storage/0541/doc_00191876 to /storage/kkm_last_doc_name [17:30:44]save OK [17:30:44]Clear old archive folders... [17:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:30:44]tlvbuf is 015E5780 [17:30:44]SAM_PROTO_ClearQueue [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 09 00 00 [17:30:44]Write to MH i2c: E2 08 00 BE 22 80 09 00 00 00 00 00 00 52 [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:44]Read from MH i2c: E2 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 [17:30:44]MH_I2C_Read... [17:30:44]Read from MH i2c: E2 03 00 BE 22 00 90 00 54 [17:30:44]RAPDU: 90 00 [17:30:44]wFMCommunicate OK [17:30:44]SAM_PROTO_ClearQueue done [17:30:44]KKMCreateOFDPacket [17:30:44]OFDProtocolAddRootSTLVToBuf [17:30:44]FM_MakeSignedData [17:30:44]FM_MakeSignedData [17:30:44]SAM_PROTO_SignData [17:30:44]wFMCommunicate request_size=4 [17:30:44]MH_SAM_APDU [17:30:44]CAPDU: 80 0D 01 02 [17:30:44]Write to MH i2c: E2 08 00 BF 22 80 0D 01 02 00 00 00 00 5A [17:30:44]Write i2c OK [17:30:44]MH_I2C_Read... [17:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:45]Read from MH i2c: E2 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 BF 22 00 90 00 55 [17:30:45]RAPDU: 90 00 [17:30:45]wFMCommunicate OK [17:30:45]wFMCommunicate request_size=255 [17:30:45]MH_SAM_APDU [17:30: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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 EF 00 00 00 F4 03 04 00 53 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 ED 02 00 35 04 06 00 19 C2 26 7C [17:30:45]Write to MH i2c: E2 02 01 C0 22 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 EF 00 00 00 F4 03 04 00 53 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 ED 02 00 35 04 06 00 19 C2 26 7C 00 00 E3 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:45]Read from MH i2c: E2 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 C0 22 00 90 00 56 [17:30:45]RAPDU: 90 00 [17:30:45]wFMCommunicate OK [17:30:45]wFMCommunicate request_size=7 [17:30:45]MH_SAM_APDU [17:30:45]CAPDU: 80 0D 02 02 02 5E 25 [17:30:45]Write to MH i2c: E2 0A 00 C1 22 80 0D 02 02 02 00 5E 25 00 00 E4 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:45]Read from MH i2c: E2 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 03 00 C1 22 00 90 00 57 [17:30:45]RAPDU: 90 00 [17:30:45]wFMCommunicate OK [17:30:45]wFMCommunicate request_size=4 [17:30:45]MH_SAM_APDU [17:30:45]CAPDU: 80 0D 03 02 [17:30:45]Write to MH i2c: E2 08 00 C2 22 80 0D 03 02 00 00 00 00 5F [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:45]Read from MH i2c: E2 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 0B 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 0B 00 C2 22 00 01 EE F4 05 60 37 C0 EA 90 00 89 [17:30:45]RAPDU: 01 EE F4 05 60 37 C0 EA 90 00 [17:30:45]wFMCommunicate OK [17:30:45]SAM_PROTO_SignData done [17:30:45]FM_MakeSignedData done [17:30:45]CreateOFDProtocolMessage [17:30:45]wFMCommunicate request_size=4 [17:30:45]MH_SAM_APDU [17:30:45]CAPDU: 80 11 00 00 [17:30:45]Write to MH i2c: E2 08 00 C3 22 80 11 00 00 00 00 00 00 5F [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:45]Read from MH i2c: E2 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 17 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: E2 17 00 C3 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B2 [17:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:30:45]wFMCommunicate OK [17:30:45]CreateOFDProtocolMessage done [17:30:45]OFDSenderStorePacket 191876 [17:30:45]StoreOFDPacket docnum=191876 [17:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C6 4A 04 01 6F 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 EF 00 00 00 F4 03 04 00 53 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 ED 02 00 35 04 06 00 19 C2 26 7C 5E 25 01 EE F4 05 60 37 C0 EA [17:30:45]CheckFolder [17:30:45]dirname=/storage/ofd_packets [17:30:45]CheckFolder done [17:30:45]ProducePacketName [17:30:45]name=ofd_packets/00191876 [17:30:45]NVStorageSaveData ofd_packets/00191876 [17:30:45]File name is /storage/ofd_packets/00191876 [17:30:45]Write 298 bytes [17:30:45]NVStorageSaveData done [17:30:45]OFDSenderStorePacket done [17:30:45]KKMCreateOFDPacket done [17:30:45]NVStorageSaveData kkm_last_timestamp [17:30:45]File name is /storage/kkm_last_timestamp [17:30:45]Write 4 bytes [17:30:45]NVStorageSaveData done [17:30:45]ExternCall_PrintAddStr [17:30:45]wPrintStart [17:30:45]Write to MH i2c: 01 00 00 C4 22 E6 [17:30:45]Write i2c OK [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 07 00 [17:30:45]MH_I2C_Read... [17:30:45]Read from MH i2c: 01 07 00 C4 22 00 00 00 00 00 FF 0F FB [17:30:45]RasterBufferAndPrint [17:30:45]line Счет N : (1)31183 [17:30:45]line ИНН: 02508201610067 [17:30:45]line Контрольно-Кассовый Чек [17:30:45]line ПРОДАЖА [17:30:45]line ТРК (МРК, ГНК) : 22 [17:30:45]line Товар: 2710194210 [17:30:45]line ДТ-К-5 [17:30:45]line 66.490 * 75.20 [17:30:45]line = 5000.05 [17:30:45]line НДС 12% НСП 1% [17:30:45]line > о реализуемом товаре [17:30:45]line ОКРУГЛЕНИЕ: -0.05 [17:30:45]line ИТОГО: 5000.00 [17:30:45]line Внесено: 5000.00 [17:30:45]line СДАЧА: 0.00 [17:30:45]line НСП 1% : 44.25 [17:30:45]line НДС 12% : 530.98 [17:30:45]line Наличными: 5000.00 [17:30:45]line Безнал.: 0.00 [17:30:45]line Место: АЗС № 170 "Партнер Нефть" [17:30:45]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:30:45]line СНО: Общий режим [17:30:45]line Чек 239 26.10.2024 17:30 [17:30:45]line Смена: 541 ФФД: 1.0 [17:30:45]line ЗНМ: 0300000110 [17:30:45]line РНМ: 0000000000091776 [17:30:45]line Версия ККМ: 001 [17:30:45]line [17:30:45]line Дисконтная программа [17:30:45]line ДТ [17:30:45]line номер 170 [17:30:45]line сэкономлено 66.49 сом [17:30:45]line ФМ: 0000000000871754 [17:30:45]line ФД: 191876 [17:30:45]line ФПД: 28321660034597 [17:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173059&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191876&fm=28321660034597&tin=02508201610067®Number=0000000000091776&sum=500000 [17:30:45]OFD Sender: Processing packet 191876 [packets to send 75, broken 74] [17:30:45]ProducePacketName [17:30:45]name=ofd_packets/00191876 [17:30:45]OFD Sender: To server: pG, [17:30:45]CommunicateWithHost lk.salyk.kg:30040 [17:30:45]ConnectInit lk.salyk.kg [17:30:45]written 0, free lines is 4095 [17:30:45]Connected sock=8 [17:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 C6 4A 04 01 6F 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 BA 03 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 25 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 6A 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 EF 00 00 00 F4 03 04 00 53 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 ED 02 00 35 04 06 00 19 C2 26 7C 5E 25 01 EE F4 05 60 37 C0 EA [17:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 B6 47 00 0E B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 84 ED 02 00 F4 03 04 00 1D CC 1C 67 B6 04 01 00 00 74 F6 89 67 A9 F2 9F 1C [17:30:46]CommunicateWithHost err = 0 [17:30:46]CheckOFDResponse [17:30:46]1017 (14) - 77093643461234 [17:30:46]1041 (16) - 0000000000871754 [17:30:46]1040 (4) - 191876 [17:30:46]1012 (4) - 26.10.2024 11:01 [17:30:46]1206 (1) - 0 [17:30:46]OFD Sender: Remove packet 191876 [17:30:46]ProducePacketName [17:30:46]name=ofd_packets/00191876 [17:30:46]NVStorageDeleteData [17:30:46]Write to MH i2c: 01 00 00 F4 22 16 [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: 01 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: 01 07 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: 01 07 00 F4 22 00 00 00 00 00 62 0C 8B [17:30:46]RasterBufferAndPrint [17:30:46]line [17:30:46]line [17:30:46]line [17:30:46]line [17:30:46]line [17:30:46]written 0, free lines is 3177 [17:30:46]MH_Cut [17:30:46]Write to MH i2c: D1 01 00 FB 22 01 EF [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: D1 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: D1 01 00 [17:30:46]MH_I2C_Read... [17:30:46]Read from MH i2c: D1 01 00 FB 22 00 EE [17:30:46]Write to MH i2c: 01 00 00 FC 22 1E [17:30:46]Write i2c OK [17:30:46]MH_I2C_Read... [17:30:46]OFD Sender: No OFD packet to send [17:30:47]*** Cut start [17:30:47]*** Partial cut [17:30:47]*** CUTSNS_PIN = 1 [17:30:47]*** CUTSNS_PIN = 0 [17:30:47]*** Brake cut motor [17:30:47]Read from MH i2c: 01 [17:30:47]MH_I2C_Read... [17:30:47]*** Stop cut motor [17:30:47]*** Cut end [17:30:47]Read from MH i2c: 01 07 00 [17:30:47]MH_I2C_Read... [17:30:47]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 FF 0F 33 [17:30:47]process_action close_receipt done [17:30:47]requested_data is exist [17:30:47]produce_requested_data [17:30:47]requested_item fm.sn is exist - process it [17:30:47]wFMCommunicate request_size=4 [17:30:47]MH_SAM_APDU [17:30:47]CAPDU: 80 11 00 00 [17:30:47]Write to MH i2c: E2 08 00 FD 22 80 11 00 00 00 00 00 00 99 [17:30:47]Write i2c OK [17:30:47]MH_I2C_Read... [17:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:47]Read from MH i2c: E2 [17:30:47]MH_I2C_Read... [17:30:47]Read from MH i2c: E2 17 00 [17:30:47]MH_I2C_Read... [17:30:47]Read from MH i2c: E2 17 00 FD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EC [17:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:30:47]wFMCommunicate OK [17:30:47]requested_item fd.num is exist - process it [17:30:47]SAM_PROTO_GetFieldsCounters [17:30:47]wFMCommunicate request_size=4 [17:30:47]MH_SAM_APDU [17:30:47]CAPDU: 80 13 00 00 [17:30:47]Write to MH i2c: E2 08 00 FE 22 80 13 00 00 00 00 00 00 9C [17:30:47]Write i2c OK [17:30:47]MH_I2C_Read... [17:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:47]Read from MH i2c: E2 [17:30:47]MH_I2C_Read... [17:30:47]Read from MH i2c: E2 62 00 [17:30:47]MH_I2C_Read... [17:30:47]Read from MH i2c: E2 62 00 FE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 84 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:47]wFMCommunicate OK [17:30:47]SAM_PROTO_GetFieldsCounters done [17:30:47]requested_item shift.num is exist - process it [17:30:47]requested_item shift.opened is exist - process it [17:30:47]req_shift_opened [17:30:47]FM_GetShiftState [17:30:47]SAM_PROTO_GetShiftState [17:30:47]wFMCommunicate request_size=4 [17:30:47]MH_SAM_APDU [17:30:47]CAPDU: 80 13 01 00 [17:30:47]Write to MH i2c: E2 08 00 FF 22 80 13 01 00 00 00 00 00 9E [17:30:47]Write i2c OK [17:30:47]MH_I2C_Read... [17:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:48]Read from MH i2c: E2 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: E2 0E 00 [17:30:48]MH_I2C_Read... [17:30:48]Read from MH i2c: E2 0E 00 FF 22 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 17 [17:30:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:30:48]wFMCommunicate OK [17:30:48]SAM_PROTO_GetShiftState done [17:30:48]FM_GetShiftState done [17:30:48]req_shift_opened done [17:30:48]requested_item shift.open_date is exist - process it [17:30:48]req_shift_open_date [17:30:48]req_shift_open_date done [17:30:48]produce_requested_data done [17:30:48]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191876,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:30:48]process_action_free close_receipt [17:30:48]json_value_free [17:30:48]json_value_free done [17:30:48]process_json_proto returns [17:30:48]Send response to host [17:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191876,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:30:48]free response buf [17:30:48]execute_script done [17:30:48]execute_script returns [17:30:48]free content buf [17:30:48]Sock 5.Close socket [17:30:48]Sock 5.Thread stoped [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:25]accept exits with 6 [17:31:25]New connection [17:31:25]New thread 3066817892 created [17:31:25]Thread 3066961252 joined [17:31:25]Waiting for new connection... [17:31:25] Sock 6.Parse request [17:31:25]Sock 6.Check first char [17:31:25]Sock 6.First char is OK [17:31:25]request: POST /json_proto HTTP/1.0 [17:31:25]Method: POST [17:31:25]URL: /json_proto [17:31:25]Method is POST - this is cgi request [17:31:25]url: /json_proto [17:31:25]query_string will be loaded in cgi processing [17:31:25]execute_cgi json_proto POST (null) [17:31:25]execute_cgi path=json_proto method=POST [17:31:25]POST find Content-Length [17:31:25]Host: 172.17.63.131:8080 [17:31:25]Content-Length: 863 [17:31:25]Content-Type: application/json [17:31:25] [17:31:25]POST finish read [17:31:25]Found Content-Length = 863 [17:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:25]execute_script... [17:31:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:25]POST & json_proto [17:31:25]process_json_proto [17:31:25]json parsed OK: [17:31:25]protocol is kg_v1.0 [17:31:25]action value=close_receipt [17:31:25]process_action close_receipt [17:31:25]cmd_close_receipt [17:31:25]MH_GetDate [17:31:25]Write to MH i2c: F0 00 00 00 23 12 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: F0 09 00 00 23 00 7D 27 1D 67 22 05 6E 64 3C [17:31:25]GetLastDocTimeStamp 1729963859 [17:31:25]current date 1729963901 [17:31:25]FM_GetShiftState [17:31:25]SAM_PROTO_GetShiftState [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 13 01 00 [17:31:25]Write to MH i2c: E2 08 00 01 23 80 13 01 00 00 00 00 00 A1 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 01 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1A [17:31:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_GetShiftState done [17:31:25]FM_GetShiftState done [17:31:25]opened in 1729902770 [17:31:25]opened+sec_in_day 1729989170 [17:31:25]quantity*price = 70044 [17:31:25]sum+1 = 70045 [17:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 240 26.10.2024 17:31 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191877 ФПД: 196096540320635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191877&fm=196096540320635&tin=02508201610067®Number=0000000000091776&sum=70044 [17:31:26]StoreToDocumentArchive [17:31:26]shift 541 fd 191877 [17:31:26]save to /storage/0541/doc_00191877 [17:31:26]save last doc name /storage/0541/doc_00191877 to /storage/kkm_last_doc_name [17:31:26]save OK [17:31:26]Clear old archive folders... [17:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:26]tlvbuf is 019925A0 [17:31:26]SAM_PROTO_ClearQueue [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 09 00 00 [17:31:26]Write to MH i2c: E2 08 00 0E 23 80 09 00 00 00 00 00 00 A3 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [17:31:26]RAPDU: 90 00 [17:31:26]wFMCommunicate OK [17:31:26]SAM_PROTO_ClearQueue done [17:31:26]KKMCreateOFDPacket [17:31:26]OFDProtocolAddRootSTLVToBuf [17:31:26]FM_MakeSignedData [17:31:26]FM_MakeSignedData [17:31:26]SAM_PROTO_SignData [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 0D 01 02 [17:31:26]Write to MH i2c: E2 08 00 0F 23 80 0D 01 02 00 00 00 00 AB [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=255 [17:31:27]MH_SAM_APDU [17:31: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7D 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 ED 02 00 35 04 06 00 B2 [17:31:27]Write to MH i2c: E2 02 01 10 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7D 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 ED 02 00 35 04 06 00 B2 00 00 04 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=10 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 02 02 05 59 48 A0 A3 7B [17:31:27]Write to MH i2c: E2 0D 00 11 23 80 0D 02 02 05 00 59 48 A0 A3 7B 00 00 17 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 03 02 [17:31:27]Write to MH i2c: E2 08 00 12 23 80 0D 03 02 00 00 00 00 B0 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 12 23 00 74 25 F9 4D 01 54 57 84 90 00 C0 [17:31:27]RAPDU: 74 25 F9 4D 01 54 57 84 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_SignData done [17:31:27]FM_MakeSignedData done [17:31:27]CreateOFDProtocolMessage [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 11 00 00 [17:31:27]Write to MH i2c: E2 08 00 13 23 80 11 00 00 00 00 00 00 B0 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 13 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [17:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:27]wFMCommunicate OK [17:31:27]CreateOFDProtocolMessage done [17:31:27]OFDSenderStorePacket 191877 [17:31:27]StoreOFDPacket docnum=191877 [17:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 A8 07 01 A3 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7D 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 ED 02 00 35 04 06 00 B2 59 48 A0 A3 7B 74 25 F9 4D 01 54 57 84 [17:31:27]CheckFolder [17:31:27]dirname=/storage/ofd_packets [17:31:27]CheckFolder done [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00191877 [17:31:27]NVStorageSaveData ofd_packets/00191877 [17:31:27]File name is /storage/ofd_packets/00191877 [17:31:27]Write 301 bytes [17:31:27]NVStorageSaveData done [17:31:27]OFDSenderStorePacket done [17:31:27]KKMCreateOFDPacket done [17:31:27]NVStorageSaveData kkm_last_timestamp [17:31:27]File name is /storage/kkm_last_timestamp [17:31:27]Write 4 bytes [17:31:27]NVStorageSaveData done [17:31:27]ExternCall_PrintAddStr [17:31:27]wPrintStart [17:31:27]Write to MH i2c: 01 00 00 14 23 37 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 14 23 00 00 00 00 00 FF 0F 4C [17:31:27]RasterBufferAndPrint [17:31:27]line Счет N : (1)31185 [17:31:27]line ИНН: 02508201610067 [17:31:27]line Контрольно-Кассовый Чек [17:31:27]line ПРОДАЖА [17:31:27]line ТРК (МРК, ГНК) : 12 [17:31:27]line Товар: 2710124130 [17:31:27]line Аи-92-К-5 [17:31:27]line 10.470 * 66.90 [17:31:27]line = 700.44 [17:31:27]line НДС 12% НСП 1% [17:31:27]line > о реализуемом товаре [17:31:27]line ИТОГО: 700.44 [17:31:27]line НСП 1% : 6.20 [17:31:27]line НДС 12% : 74.38 [17:31:27]line Наличными: 0.00 [17:31:27]line Безнал.: 700.44 [17:31:27]line Место: АЗС № 170 "Партнер Нефть" [17:31:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:31:27]line СНО: Общий режим [17:31:27]line Чек 240 26.10.2024 17:31 [17:31:27]line Смена: 541 ФФД: 1.0 [17:31:27]line ЗНМ: 0300000110 [17:31:27]line РНМ: 0000000000091776 [17:31:27]line Версия ККМ: 001 [17:31:27]line Платежная система: Кыргызкоммерцбанк [17:31:27]line ФМ: 0000000000871754 [17:31:27]line ФД: 191877 [17:31:27]line ФПД: 196096540320635 [17:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173141&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191877&fm=196096540320635&tin=02508201610067®Number=0000000000091776&sum=70044 [17:31:27]OFD Sender: Processing packet 191877 [packets to send 75, broken 74] [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00191877 [17:31:27]OFD Sender: To server: pG, [17:31:27]CommunicateWithHost lk.salyk.kg:30040 [17:31:27]ConnectInit lk.salyk.kg [17:31:27]written 0, free lines is 4095 [17:31:27]Connected sock=8 [17:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 59 A8 07 01 A3 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 7D 27 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 ED 02 00 35 04 06 00 B2 59 48 A0 A3 7B 74 25 F9 4D 01 54 57 84 [17:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B D2 47 00 F7 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 85 ED 02 00 F4 03 04 00 47 CC 1C 67 B6 04 01 00 00 21 33 D8 AA 00 4A DB E6 [17:31:28]CommunicateWithHost err = 0 [17:31:28]CheckOFDResponse [17:31:28]1017 (14) - 77093643461234 [17:31:28]1041 (16) - 0000000000871754 [17:31:28]1040 (4) - 191877 [17:31:28]1012 (4) - 26.10.2024 11:02 [17:31:28]1206 (1) - 0 [17:31:28]OFD Sender: Remove packet 191877 [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00191877 [17:31:28]NVStorageDeleteData [17:31:28]Write to MH i2c: 01 00 00 3E 23 61 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 3E 23 00 00 00 00 00 EC 0C 60 [17:31:28]RasterBufferAndPrint [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]written 0, free lines is 3315 [17:31:28]MH_Cut [17:31:28]Write to MH i2c: D1 01 00 45 23 01 3A [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 45 23 00 39 [17:31:28]Write to MH i2c: 01 00 00 46 23 69 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]OFD Sender: No OFD packet to send [17:31:29]*** Cut start [17:31:29]*** Partial cut [17:31:29]*** CUTSNS_PIN = 1 [17:31:29]*** CUTSNS_PIN = 0 [17:31:29]*** Brake cut motor [17:31:29]Read from MH i2c: 01 [17:31:29]MH_I2C_Read... [17:31:29]*** Stop cut motor [17:31:29]*** Cut end [17:31:29]Read from MH i2c: 01 07 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: 01 07 00 46 23 00 00 00 00 00 FF 0F 7E [17:31:29]process_action close_receipt done [17:31:29]requested_data is exist [17:31:29]produce_requested_data [17:31:29]requested_item fm.sn is exist - process it [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 11 00 00 [17:31:29]Write to MH i2c: E2 08 00 47 23 80 11 00 00 00 00 00 00 E4 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 17 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 17 00 47 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [17:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:31:29]wFMCommunicate OK [17:31:29]requested_item fd.num is exist - process it [17:31:29]SAM_PROTO_GetFieldsCounters [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 13 00 00 [17:31:29]Write to MH i2c: E2 08 00 48 23 80 13 00 00 00 00 00 00 E7 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 62 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 62 00 48 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 85 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_GetFieldsCounters done [17:31:29]requested_item shift.num is exist - process it [17:31:29]requested_item shift.opened is exist - process it [17:31:29]req_shift_opened [17:31:29]FM_GetShiftState [17:31:29]SAM_PROTO_GetShiftState [17:31:29]wFMCommunicate request_size=4 [17:31:29]MH_SAM_APDU [17:31:29]CAPDU: 80 13 01 00 [17:31:29]Write to MH i2c: E2 08 00 49 23 80 13 01 00 00 00 00 00 E9 [17:31:29]Write i2c OK [17:31:29]MH_I2C_Read... [17:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:29]Read from MH i2c: E2 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 [17:31:29]MH_I2C_Read... [17:31:29]Read from MH i2c: E2 0E 00 49 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 62 [17:31:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:31:29]wFMCommunicate OK [17:31:29]SAM_PROTO_GetShiftState done [17:31:29]FM_GetShiftState done [17:31:29]req_shift_opened done [17:31:29]requested_item shift.open_date is exist - process it [17:31:29]req_shift_open_date [17:31:29]req_shift_open_date done [17:31:29]produce_requested_data done [17:31:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191877,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:31:29]process_action_free close_receipt [17:31:29]json_value_free [17:31:29]json_value_free done [17:31:29]process_json_proto returns [17:31:29]Send response to host [17:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191877,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:31:29]free response buf [17:31:29]execute_script done [17:31:29]execute_script returns [17:31:29]free content buf [17:31:29]Sock 6.Close socket [17:31:29]Sock 6.Thread stoped [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:01]accept exits with 5 [17:34:01]New connection [17:34:01]New thread 3066961252 created [17:34:01]Thread 3066817892 joined [17:34:01]Waiting for new connection... [17:34:01] Sock 5.Parse request [17:34:01]Sock 5.Check first char [17:34:01]Sock 5.First char is OK [17:34:01]request: POST /json_proto HTTP/1.0 [17:34:01]Method: POST [17:34:01]URL: /json_proto [17:34:01]Method is POST - this is cgi request [17:34:01]url: /json_proto [17:34:01]query_string will be loaded in cgi processing [17:34:01]execute_cgi json_proto POST (null) [17:34:01]execute_cgi path=json_proto method=POST [17:34:01]POST find Content-Length [17:34:01]Host: 172.17.63.131:8080 [17:34:01]Content-Length: 676 [17:34:01]Content-Type: application/json [17:34:01] [17:34:01]POST finish read [17:34:01]Found Content-Length = 676 [17:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:01]execute_script... [17:34:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:01]POST & json_proto [17:34:01]process_json_proto [17:34:01]json parsed OK: [17:34:01]protocol is kg_v1.0 [17:34:01]action value=close_receipt [17:34:01]process_action close_receipt [17:34:01]cmd_close_receipt [17:34:01]MH_GetDate [17:34:01]Write to MH i2c: F0 00 00 4A 23 5C [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: F0 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: F0 09 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: F0 09 00 4A 23 00 19 28 1D 67 22 05 6E 64 23 [17:34:01]GetLastDocTimeStamp 1729963901 [17:34:01]current date 1729964057 [17:34:01]FM_GetShiftState [17:34:01]SAM_PROTO_GetShiftState [17:34:01]wFMCommunicate request_size=4 [17:34:01]MH_SAM_APDU [17:34:01]CAPDU: 80 13 01 00 [17:34:01]Write to MH i2c: E2 08 00 4B 23 80 13 01 00 00 00 00 00 EB [17:34:01]Write i2c OK [17:34:01]MH_I2C_Read... [17:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:01]Read from MH i2c: E2 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 0E 00 [17:34:01]MH_I2C_Read... [17:34:01]Read from MH i2c: E2 0E 00 4B 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 64 [17:34:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:34:01]wFMCommunicate OK [17:34:01]SAM_PROTO_GetShiftState done [17:34:01]FM_GetShiftState done [17:34:01]opened in 1729902770 [17:34:01]opened+sec_in_day 1729989170 [17:34:01]quantity*price = 30038 [17:34:01]sum+1 = 30039 [17:34:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 241 26.10.2024 17:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191878 ФПД: 45936448758108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191878&fm=45936448758108&tin=02508201610067®Number=0000000000091776&sum=30000 [17:34:02]StoreToDocumentArchive [17:34:02]shift 541 fd 191878 [17:34:02]save to /storage/0541/doc_00191878 [17:34:02]save last doc name /storage/0541/doc_00191878 to /storage/kkm_last_doc_name [17:34:02]save OK [17:34:02]Clear old archive folders... [17:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:02]tlvbuf is 01614640 [17:34:02]SAM_PROTO_ClearQueue [17:34:02]wFMCommunicate request_size=4 [17:34:02]MH_SAM_APDU [17:34:02]CAPDU: 80 09 00 00 [17:34:02]Write to MH i2c: E2 08 00 58 23 80 09 00 00 00 00 00 00 ED [17:34:02]Write i2c OK [17:34:02]MH_I2C_Read... [17:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_ClearQueue done [17:34:03]KKMCreateOFDPacket [17:34:03]OFDProtocolAddRootSTLVToBuf [17:34:03]FM_MakeSignedData [17:34:03]FM_MakeSignedData [17:34:03]SAM_PROTO_SignData [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 01 02 [17:34:03]Write to MH i2c: E2 08 00 59 23 80 0D 01 02 00 00 00 00 F5 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=255 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 19 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 ED 02 00 35 04 06 00 29 [17:34:03]Write to MH i2c: E2 02 01 5A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 19 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 ED 02 00 35 04 06 00 29 00 00 F0 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=10 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 02 02 05 C7 69 B5 E1 5C [17:34:03]Write to MH i2c: E2 0D 00 5B 23 80 0D 02 02 05 00 C7 69 B5 E1 5C 00 00 24 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [17:34:03]RAPDU: 90 00 [17:34:03]wFMCommunicate OK [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 0D 03 02 [17:34:03]Write to MH i2c: E2 08 00 5C 23 80 0D 03 02 00 00 00 00 FA [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0B 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 0B 00 5C 23 00 11 CB A4 B4 97 53 9E 69 90 00 20 [17:34:03]RAPDU: 11 CB A4 B4 97 53 9E 69 90 00 [17:34:03]wFMCommunicate OK [17:34:03]SAM_PROTO_SignData done [17:34:03]FM_MakeSignedData done [17:34:03]CreateOFDProtocolMessage [17:34:03]wFMCommunicate request_size=4 [17:34:03]MH_SAM_APDU [17:34:03]CAPDU: 80 11 00 00 [17:34:03]Write to MH i2c: E2 08 00 5D 23 80 11 00 00 00 00 00 00 FA [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:03]Read from MH i2c: E2 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: E2 17 00 5D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4D [17:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:03]wFMCommunicate OK [17:34:03]CreateOFDProtocolMessage done [17:34:03]OFDSenderStorePacket 191878 [17:34:03]StoreOFDPacket docnum=191878 [17:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 F5 07 01 50 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 19 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 ED 02 00 35 04 06 00 29 C7 69 B5 E1 5C 11 CB A4 B4 97 53 9E 69 [17:34:03]CheckFolder [17:34:03]dirname=/storage/ofd_packets [17:34:03]CheckFolder done [17:34:03]ProducePacketName [17:34:03]name=ofd_packets/00191878 [17:34:03]NVStorageSaveData ofd_packets/00191878 [17:34:03]File name is /storage/ofd_packets/00191878 [17:34:03]Write 301 bytes [17:34:03]NVStorageSaveData done [17:34:03]OFDSenderStorePacket done [17:34:03]KKMCreateOFDPacket done [17:34:03]NVStorageSaveData kkm_last_timestamp [17:34:03]File name is /storage/kkm_last_timestamp [17:34:03]Write 4 bytes [17:34:03]NVStorageSaveData done [17:34:03]ExternCall_PrintAddStr [17:34:03]wPrintStart [17:34:03]Write to MH i2c: 01 00 00 5E 23 81 [17:34:03]Write i2c OK [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 07 00 [17:34:03]MH_I2C_Read... [17:34:03]Read from MH i2c: 01 07 00 5E 23 00 00 00 00 00 FF 0F 96 [17:34:03]RasterBufferAndPrint [17:34:03]line Счет N : (1)31186 [17:34:03]line ИНН: 02508201610067 [17:34:03]line Контрольно-Кассовый Чек [17:34:03]line ПРОДАЖА [17:34:03]line ТРК (МРК, ГНК) : 12 [17:34:03]line Товар: 2710124130 [17:34:03]line Аи-92-К-5 [17:34:03]line 4.490 * 66.90 [17:34:03]line = 300.38 [17:34:03]line НДС 12% НСП 1% [17:34:03]line > о реализуемом товаре [17:34:03]line ОКРУГЛЕНИЕ: -0.38 [17:34:03]line ИТОГО: 300.00 [17:34:03]line Внесено: 300.00 [17:34:03]line СДАЧА: 0.00 [17:34:03]line НСП 1% : 2.66 [17:34:03]line НДС 12% : 31.90 [17:34:03]line Наличными: 300.00 [17:34:03]line Безнал.: 0.00 [17:34:03]line Место: АЗС № 170 "Партнер Нефть" [17:34:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:34:03]line СНО: Общий режим [17:34:03]line Чек 241 26.10.2024 17:34 [17:34:03]line Смена: 541 ФФД: 1.0 [17:34:03]line ЗНМ: 0300000110 [17:34:03]line РНМ: 0000000000091776 [17:34:03]line Версия ККМ: 001 [17:34:03]line ФМ: 0000000000871754 [17:34:03]line ФД: 191878 [17:34:03]line ФПД: 45936448758108 [17:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191878&fm=45936448758108&tin=02508201610067®Number=0000000000091776&sum=30000 [17:34:03]OFD Sender: Processing packet 191878 [packets to send 75, broken 74] [17:34:03]ProducePacketName [17:34:03]name=ofd_packets/00191878 [17:34:03]OFD Sender: To server: pG, [17:34:03]CommunicateWithHost lk.salyk.kg:30040 [17:34:03]ConnectInit lk.salyk.kg [17:34:03]written 0, free lines is 4095 [17:34:03]Connected sock=8 [17:34:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 80 F5 07 01 50 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 19 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 ED 02 00 35 04 06 00 29 C7 69 B5 E1 5C 11 CB A4 B4 97 53 9E 69 [17:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 49 C3 47 00 2E D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 86 ED 02 00 F4 03 04 00 E3 CC 1C 67 B6 04 01 00 00 90 08 B8 75 1F 35 36 1F [17:34:04]CommunicateWithHost err = 0 [17:34:04]CheckOFDResponse [17:34:04]1017 (14) - 77093643461234 [17:34:04]1041 (16) - 0000000000871754 [17:34:04]1040 (4) - 191878 [17:34:04]1012 (4) - 26.10.2024 11:05 [17:34:04]1206 (1) - 0 [17:34:04]OFD Sender: Remove packet 191878 [17:34:04]ProducePacketName [17:34:04]name=ofd_packets/00191878 [17:34:04]NVStorageDeleteData [17:34:04]Write to MH i2c: 01 00 00 89 23 AC [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: 01 07 00 89 23 00 00 00 00 00 CA 0C 89 [17:34:04]RasterBufferAndPrint [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]line [17:34:04]written 0, free lines is 3285 [17:34:04]MH_Cut [17:34:04]Write to MH i2c: D1 01 00 90 23 01 85 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 01 00 [17:34:04]MH_I2C_Read... [17:34:04]Read from MH i2c: D1 01 00 90 23 00 84 [17:34:04]Write to MH i2c: 01 00 00 91 23 B4 [17:34:04]Write i2c OK [17:34:04]MH_I2C_Read... [17:34:04]OFD Sender: No OFD packet to send [17:34:05]*** Cut start [17:34:05]*** Partial cut [17:34:05]*** CUTSNS_PIN = 1 [17:34:05]*** CUTSNS_PIN = 0 [17:34:05]*** Brake cut motor [17:34:05]Read from MH i2c: 01 [17:34:05]MH_I2C_Read... [17:34:05]*** Stop cut motor [17:34:05]*** Cut end [17:34:05]Read from MH i2c: 01 07 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: 01 07 00 91 23 00 00 00 00 00 FF 0F C9 [17:34:05]process_action close_receipt done [17:34:05]requested_data is exist [17:34:05]produce_requested_data [17:34:05]requested_item fm.sn is exist - process it [17:34:05]wFMCommunicate request_size=4 [17:34:05]MH_SAM_APDU [17:34:05]CAPDU: 80 11 00 00 [17:34:05]Write to MH i2c: E2 08 00 92 23 80 11 00 00 00 00 00 00 2F [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:05]Read from MH i2c: E2 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 17 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 17 00 92 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [17:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:34:05]wFMCommunicate OK [17:34:05]requested_item fd.num is exist - process it [17:34:05]SAM_PROTO_GetFieldsCounters [17:34:05]wFMCommunicate request_size=4 [17:34:05]MH_SAM_APDU [17:34:05]CAPDU: 80 13 00 00 [17:34:05]Write to MH i2c: E2 08 00 93 23 80 13 00 00 00 00 00 00 32 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:05]Read from MH i2c: E2 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 62 00 [17:34:05]MH_I2C_Read... [17:34:05]Read from MH i2c: E2 62 00 93 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:34:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 86 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:05]wFMCommunicate OK [17:34:05]SAM_PROTO_GetFieldsCounters done [17:34:05]requested_item shift.num is exist - process it [17:34:05]requested_item shift.opened is exist - process it [17:34:05]req_shift_opened [17:34:05]FM_GetShiftState [17:34:05]SAM_PROTO_GetShiftState [17:34:05]wFMCommunicate request_size=4 [17:34:05]MH_SAM_APDU [17:34:05]CAPDU: 80 13 01 00 [17:34:05]Write to MH i2c: E2 08 00 94 23 80 13 01 00 00 00 00 00 34 [17:34:05]Write i2c OK [17:34:05]MH_I2C_Read... [17:34:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:06]Read from MH i2c: E2 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 [17:34:06]MH_I2C_Read... [17:34:06]Read from MH i2c: E2 0E 00 94 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AD [17:34:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:34:06]wFMCommunicate OK [17:34:06]SAM_PROTO_GetShiftState done [17:34:06]FM_GetShiftState done [17:34:06]req_shift_opened done [17:34:06]requested_item shift.open_date is exist - process it [17:34:06]req_shift_open_date [17:34:06]req_shift_open_date done [17:34:06]produce_requested_data done [17:34:06]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191878,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:34:06]process_action_free close_receipt [17:34:06]json_value_free [17:34:06]json_value_free done [17:34:06]process_json_proto returns [17:34:06]Send response to host [17:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191878,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:34:06]free response buf [17:34:06]execute_script done [17:34:06]execute_script returns [17:34:06]free content buf [17:34:06]Sock 5.Close socket [17:34:06]Sock 5.Thread stoped [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:22]accept exits with 6 [17:36:22]New connection [17:36:22]New thread 3066817892 created [17:36:22]Thread 3066961252 joined [17:36:22]Waiting for new connection... [17:36:22] Sock 6.Parse request [17:36:22]Sock 6.Check first char [17:36:22]Sock 6.First char is OK [17:36:22]request: POST /json_proto HTTP/1.0 [17:36:22]Method: POST [17:36:22]URL: /json_proto [17:36:22]Method is POST - this is cgi request [17:36:22]url: /json_proto [17:36:22]query_string will be loaded in cgi processing [17:36:22]execute_cgi json_proto POST (null) [17:36:22]execute_cgi path=json_proto method=POST [17:36:22]POST find Content-Length [17:36:22]Host: 172.17.63.131:8080 [17:36:22]Content-Length: 676 [17:36:22]Content-Type: application/json [17:36:22] [17:36:22]POST finish read [17:36:22]Found Content-Length = 676 [17:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:22]execute_script... [17:36:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:22]POST & json_proto [17:36:22]process_json_proto [17:36:22]json parsed OK: [17:36:22]protocol is kg_v1.0 [17:36:22]action value=close_receipt [17:36:22]process_action close_receipt [17:36:22]cmd_close_receipt [17:36:22]MH_GetDate [17:36:22]Write to MH i2c: F0 00 00 95 23 A7 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: F0 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: F0 09 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: F0 09 00 95 23 00 A6 28 1D 67 22 05 6E 64 FB [17:36:22]GetLastDocTimeStamp 1729964057 [17:36:22]current date 1729964198 [17:36:22]FM_GetShiftState [17:36:22]SAM_PROTO_GetShiftState [17:36:22]wFMCommunicate request_size=4 [17:36:22]MH_SAM_APDU [17:36:22]CAPDU: 80 13 01 00 [17:36:22]Write to MH i2c: E2 08 00 96 23 80 13 01 00 00 00 00 00 36 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:22]Read from MH i2c: E2 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 0E 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: E2 0E 00 96 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AF [17:36:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:36:22]wFMCommunicate OK [17:36:22]SAM_PROTO_GetShiftState done [17:36:22]FM_GetShiftState done [17:36:22]opened in 1729902770 [17:36:22]opened+sec_in_day 1729989170 [17:36:22]quantity*price = 50041 [17:36:22]sum+1 = 50042 [17:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 242 26.10.2024 17:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191879 ФПД: 179518747413780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191879&fm=179518747413780&tin=02508201610067®Number=0000000000091776&sum=50000 [17:36:23]StoreToDocumentArchive [17:36:23]shift 541 fd 191879 [17:36:23]save to /storage/0541/doc_00191879 [17:36:23]save last doc name /storage/0541/doc_00191879 to /storage/kkm_last_doc_name [17:36:23]save OK [17:36:23]Clear old archive folders... [17:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:23]tlvbuf is 017091C0 [17:36:23]SAM_PROTO_ClearQueue [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 09 00 00 [17:36:23]Write to MH i2c: E2 08 00 A3 23 80 09 00 00 00 00 00 00 38 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:23]Read from MH i2c: E2 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 03 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [17:36:23]RAPDU: 90 00 [17:36:23]wFMCommunicate OK [17:36:23]SAM_PROTO_ClearQueue done [17:36:23]KKMCreateOFDPacket [17:36:23]OFDProtocolAddRootSTLVToBuf [17:36:23]FM_MakeSignedData [17:36:23]FM_MakeSignedData [17:36:23]SAM_PROTO_SignData [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 0D 01 02 [17:36:23]Write to MH i2c: E2 08 00 A4 23 80 0D 01 02 00 00 00 00 40 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:23]Read from MH i2c: E2 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 03 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [17:36:23]RAPDU: 90 00 [17:36:23]wFMCommunicate OK [17:36:23]wFMCommunicate request_size=255 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A6 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 ED 02 00 35 04 06 00 A3 [17:36:23]Write to MH i2c: E2 02 01 A5 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A6 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 ED 02 00 35 04 06 00 A3 00 00 50 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 03 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [17:36:24]RAPDU: 90 00 [17:36:24]wFMCommunicate OK [17:36:24]wFMCommunicate request_size=10 [17:36:24]MH_SAM_APDU [17:36:24]CAPDU: 80 0D 02 02 05 45 77 2B 8D 14 [17:36:24]Write to MH i2c: E2 0D 00 A6 23 80 0D 02 02 05 00 45 77 2B 8D 14 00 00 D5 [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 03 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 03 00 A6 23 00 90 00 3D [17:36:24]RAPDU: 90 00 [17:36:24]wFMCommunicate OK [17:36:24]wFMCommunicate request_size=4 [17:36:24]MH_SAM_APDU [17:36:24]CAPDU: 80 0D 03 02 [17:36:24]Write to MH i2c: E2 08 00 A7 23 80 0D 03 02 00 00 00 00 45 [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0B 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0B 00 A7 23 00 72 4B 2A BB D9 C6 4C B4 90 00 87 [17:36:24]RAPDU: 72 4B 2A BB D9 C6 4C B4 90 00 [17:36:24]wFMCommunicate OK [17:36:24]SAM_PROTO_SignData done [17:36:24]FM_MakeSignedData done [17:36:24]CreateOFDProtocolMessage [17:36:24]wFMCommunicate request_size=4 [17:36:24]MH_SAM_APDU [17:36:24]CAPDU: 80 11 00 00 [17:36:24]Write to MH i2c: E2 08 00 A8 23 80 11 00 00 00 00 00 00 45 [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 17 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 17 00 A8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 98 [17:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:36:24]wFMCommunicate OK [17:36:24]CreateOFDProtocolMessage done [17:36:24]OFDSenderStorePacket 191879 [17:36:24]StoreOFDPacket docnum=191879 [17:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 45 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A6 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 ED 02 00 35 04 06 00 A3 45 77 2B 8D 14 72 4B 2A BB D9 C6 4C B4 [17:36:24]CheckFolder [17:36:24]dirname=/storage/ofd_packets [17:36:24]CheckFolder done [17:36:24]ProducePacketName [17:36:24]name=ofd_packets/00191879 [17:36:24]NVStorageSaveData ofd_packets/00191879 [17:36:24]File name is /storage/ofd_packets/00191879 [17:36:24]Write 301 bytes [17:36:24]NVStorageSaveData done [17:36:24]OFDSenderStorePacket done [17:36:24]KKMCreateOFDPacket done [17:36:24]NVStorageSaveData kkm_last_timestamp [17:36:24]File name is /storage/kkm_last_timestamp [17:36:24]Write 4 bytes [17:36:24]NVStorageSaveData done [17:36:24]ExternCall_PrintAddStr [17:36:24]wPrintStart [17:36:24]Write to MH i2c: 01 00 00 A9 23 CC [17:36:24]Write i2c OK [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: 01 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: 01 07 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: 01 07 00 A9 23 00 00 00 00 00 FF 0F E1 [17:36:24]RasterBufferAndPrint [17:36:24]line Счет N : (1)31187 [17:36:24]line ИНН: 02508201610067 [17:36:24]line Контрольно-Кассовый Чек [17:36:24]line ПРОДАЖА [17:36:24]line ТРК (МРК, ГНК) : 12 [17:36:24]line Товар: 2710124130 [17:36:24]line Аи-92-К-5 [17:36:24]line 7.480 * 66.90 [17:36:24]line = 500.41 [17:36:24]line НДС 12% НСП 1% [17:36:24]line > о реализуемом товаре [17:36:24]line ОКРУГЛЕНИЕ: -0.41 [17:36:24]line ИТОГО: 500.00 [17:36:24]line Внесено: 500.00 [17:36:24]line СДАЧА: 0.00 [17:36:24]line НСП 1% : 4.43 [17:36:24]line НДС 12% : 53.14 [17:36:24]line Наличными: 500.00 [17:36:24]line Безнал.: 0.00 [17:36:24]line Место: АЗС № 170 "Партнер Нефть" [17:36:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:36:24]line СНО: Общий режим [17:36:24]line Чек 242 26.10.2024 17:36 [17:36:24]line Смена: 541 ФФД: 1.0 [17:36:24]line ЗНМ: 0300000110 [17:36:24]line РНМ: 0000000000091776 [17:36:24]line Версия ККМ: 001 [17:36:24]line ФМ: 0000000000871754 [17:36:24]line ФД: 191879 [17:36:24]line ФПД: 179518747413780 [17:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173638&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191879&fm=179518747413780&tin=02508201610067®Number=0000000000091776&sum=50000 [17:36:24]OFD Sender: Processing packet 191879 [packets to send 75, broken 74] [17:36:24]ProducePacketName [17:36:24]name=ofd_packets/00191879 [17:36:24]OFD Sender: To server: pG, [17:36:24]CommunicateWithHost lk.salyk.kg:30040 [17:36:24]ConnectInit lk.salyk.kg [17:36:24]written 0, free lines is 4095 [17:36:24]Connected sock=8 [17:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 88 45 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 A6 28 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 ED 02 00 35 04 06 00 A3 45 77 2B 8D 14 72 4B 2A BB D9 C6 4C B4 [17:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 99 5B 47 00 B4 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 87 ED 02 00 F4 03 04 00 70 CD 1C 67 B6 04 01 00 00 A1 5A CF 3B 6B E4 A5 AF [17:36:25]CommunicateWithHost err = 0 [17:36:25]CheckOFDResponse [17:36:25]1017 (14) - 77093643461234 [17:36:25]1041 (16) - 0000000000871754 [17:36:25]1040 (4) - 191879 [17:36:25]1012 (4) - 26.10.2024 11:07 [17:36:25]1206 (1) - 0 [17:36:25]OFD Sender: Remove packet 191879 [17:36:25]ProducePacketName [17:36:25]name=ofd_packets/00191879 [17:36:25]NVStorageDeleteData [17:36:25]Write to MH i2c: 01 00 00 D4 23 F7 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: 01 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: 01 07 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 C0 0C CA [17:36:25]RasterBufferAndPrint [17:36:25]line [17:36:25]line [17:36:25]line [17:36:25]line [17:36:25]line [17:36:25]written 0, free lines is 3270 [17:36:25]MH_Cut [17:36:25]Write to MH i2c: D1 01 00 DB 23 01 D0 [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: D1 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: D1 01 00 [17:36:25]MH_I2C_Read... [17:36:25]Read from MH i2c: D1 01 00 DB 23 00 CF [17:36:25]Write to MH i2c: 01 00 00 DC 23 FF [17:36:25]Write i2c OK [17:36:25]MH_I2C_Read... [17:36:25]OFD Sender: No OFD packet to send [17:36:25]*** Cut start [17:36:25]*** Partial cut [17:36:25]*** CUTSNS_PIN = 1 [17:36:26]*** CUTSNS_PIN = 0 [17:36:26]*** Brake cut motor [17:36:26]Read from MH i2c: 01 [17:36:26]MH_I2C_Read... [17:36:26]*** Stop cut motor [17:36:26]*** Cut end [17:36:26]Read from MH i2c: 01 07 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FF 0F 14 [17:36:26]process_action close_receipt done [17:36:26]requested_data is exist [17:36:26]produce_requested_data [17:36:26]requested_item fm.sn is exist - process it [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 11 00 00 [17:36:26]Write to MH i2c: E2 08 00 DD 23 80 11 00 00 00 00 00 00 7A [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 17 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 17 00 DD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [17:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:36:26]wFMCommunicate OK [17:36:26]requested_item fd.num is exist - process it [17:36:26]SAM_PROTO_GetFieldsCounters [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 13 00 00 [17:36:26]Write to MH i2c: E2 08 00 DE 23 80 13 00 00 00 00 00 00 7D [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 62 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 62 00 DE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [17:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 87 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:26]wFMCommunicate OK [17:36:26]SAM_PROTO_GetFieldsCounters done [17:36:26]requested_item shift.num is exist - process it [17:36:26]requested_item shift.opened is exist - process it [17:36:26]req_shift_opened [17:36:26]FM_GetShiftState [17:36:26]SAM_PROTO_GetShiftState [17:36:26]wFMCommunicate request_size=4 [17:36:26]MH_SAM_APDU [17:36:26]CAPDU: 80 13 01 00 [17:36:26]Write to MH i2c: E2 08 00 DF 23 80 13 01 00 00 00 00 00 7F [17:36:26]Write i2c OK [17:36:26]MH_I2C_Read... [17:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:26]Read from MH i2c: E2 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0E 00 [17:36:26]MH_I2C_Read... [17:36:26]Read from MH i2c: E2 0E 00 DF 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F8 [17:36:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:36:26]wFMCommunicate OK [17:36:26]SAM_PROTO_GetShiftState done [17:36:26]FM_GetShiftState done [17:36:26]req_shift_opened done [17:36:26]requested_item shift.open_date is exist - process it [17:36:26]req_shift_open_date [17:36:26]req_shift_open_date done [17:36:26]produce_requested_data done [17:36:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191879,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:36:26]process_action_free close_receipt [17:36:26]json_value_free [17:36:26]json_value_free done [17:36:26]process_json_proto returns [17:36:26]Send response to host [17:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191879,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:36:26]free response buf [17:36:26]execute_script done [17:36:26]execute_script returns [17:36:26]free content buf [17:36:26]Sock 6.Close socket [17:36:26]Sock 6.Thread stoped [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:07]accept exits with 5 [17:38:07]New connection [17:38:07]New thread 3066961252 created [17:38:07]Thread 3066817892 joined [17:38:07]Waiting for new connection... [17:38:07] Sock 5.Parse request [17:38:07]Sock 5.Check first char [17:38:07]Sock 5.First char is OK [17:38:07]request: POST /json_proto HTTP/1.0 [17:38:07]Method: POST [17:38:07]URL: /json_proto [17:38:07]Method is POST - this is cgi request [17:38:07]url: /json_proto [17:38:07]query_string will be loaded in cgi processing [17:38:07]execute_cgi json_proto POST (null) [17:38:07]execute_cgi path=json_proto method=POST [17:38:07]POST find Content-Length [17:38:07]Host: 172.17.63.131:8080 [17:38:07]Content-Length: 983 [17:38:07]Content-Type: application/json [17:38:07] [17:38:07]POST finish read [17:38:07]Found Content-Length = 983 [17:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.550, "sum" : 1420.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.55 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:07]execute_script... [17:38: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)31188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 21.550, "sum" : 1420.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 21.55 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:07]POST & json_proto [17:38:07]process_json_proto [17:38:07]json parsed OK: [17:38:07]protocol is kg_v1.0 [17:38:07]action value=close_receipt [17:38:07]process_action close_receipt [17:38:07]cmd_close_receipt [17:38:07]MH_GetDate [17:38:07]Write to MH i2c: F0 00 00 E0 23 F2 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: F0 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: F0 09 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: F0 09 00 E0 23 00 0E 29 1D 67 22 05 6E 64 AF [17:38:07]GetLastDocTimeStamp 1729964198 [17:38:07]current date 1729964302 [17:38:07]FM_GetShiftState [17:38:07]SAM_PROTO_GetShiftState [17:38:07]wFMCommunicate request_size=4 [17:38:07]MH_SAM_APDU [17:38:07]CAPDU: 80 13 01 00 [17:38:07]Write to MH i2c: E2 08 00 E1 23 80 13 01 00 00 00 00 00 81 [17:38:07]Write i2c OK [17:38:07]MH_I2C_Read... [17:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:07]Read from MH i2c: E2 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 0E 00 [17:38:07]MH_I2C_Read... [17:38:07]Read from MH i2c: E2 0E 00 E1 23 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FA [17:38:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:38:07]wFMCommunicate OK [17:38:07]SAM_PROTO_GetShiftState done [17:38:07]FM_GetShiftState done [17:38:07]opened in 1729902770 [17:38:07]opened+sec_in_day 1729989170 [17:38:07]quantity*price = 142014 [17:38:07]sum+1 = 142016 [17:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1420.00 Внесено: 1500.00 СДАЧА: 80.00 НСП 1% : 12.57 НДС 12% : 150.81 Наличными: 1420.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 243 26.10.2024 17:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 21.55 сом ФМ: 0000000000871754 ФД: 191880 ФПД: 276960312106904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173822&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191880&fm=276960312106904&tin=02508201610067®Number=0000000000091776&sum=142000 [17:38:08]StoreToDocumentArchive [17:38:08]shift 541 fd 191880 [17:38:08]save to /storage/0541/doc_00191880 [17:38:08]save last doc name /storage/0541/doc_00191880 to /storage/kkm_last_doc_name [17:38:08]save OK [17:38:08]Clear old archive folders... [17:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:08]tlvbuf is 01609010 [17:38:08]SAM_PROTO_ClearQueue [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 09 00 00 [17:38:08]Write to MH i2c: E2 08 00 EE 23 80 09 00 00 00 00 00 00 83 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [17:38:08]RAPDU: 90 00 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_ClearQueue done [17:38:08]KKMCreateOFDPacket [17:38:08]OFDProtocolAddRootSTLVToBuf [17:38:08]FM_MakeSignedData [17:38:08]FM_MakeSignedData [17:38:08]SAM_PROTO_SignData [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 0D 01 02 [17:38:08]Write to MH i2c: E2 08 00 EF 23 80 0D 01 02 00 00 00 00 8B [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [17:38:08]RAPDU: 90 00 [17:38:08]wFMCommunicate OK [17:38:08]wFMCommunicate request_size=255 [17:38:08]MH_SAM_APDU [17:38: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 2E 54 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 BF 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 0E 29 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 ED 02 00 35 04 06 00 FB [17:38:08]Write to MH i2c: E2 02 01 F0 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 54 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 BF 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 0E 29 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 ED 02 00 35 04 06 00 FB 00 00 E5 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [17:38:08]RAPDU: 90 00 [17:38:08]wFMCommunicate OK [17:38:08]wFMCommunicate request_size=10 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 0D 02 02 05 E4 D9 05 1F 98 [17:38:08]Write to MH i2c: E2 0D 00 F1 23 80 0D 02 02 05 00 E4 D9 05 1F 98 00 00 11 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [17:38:08]RAPDU: 90 00 [17:38:08]wFMCommunicate OK [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 0D 03 02 [17:38:08]Write to MH i2c: E2 08 00 F2 23 80 0D 03 02 00 00 00 00 90 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0B 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0B 00 F2 23 00 99 66 F4 33 CE 31 65 46 90 00 61 [17:38:08]RAPDU: 99 66 F4 33 CE 31 65 46 90 00 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_SignData done [17:38:08]FM_MakeSignedData done [17:38:08]CreateOFDProtocolMessage [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 11 00 00 [17:38:08]Write to MH i2c: E2 08 00 F3 23 80 11 00 00 00 00 00 00 90 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 F3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E3 [17:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:08]wFMCommunicate OK [17:38:08]CreateOFDProtocolMessage done [17:38:08]OFDSenderStorePacket 191880 [17:38:08]StoreOFDPacket docnum=191880 [17:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 75 07 01 64 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 2E 54 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 BF 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 0E 29 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 ED 02 00 35 04 06 00 FB E4 D9 05 1F 98 99 66 F4 33 CE 31 65 46 [17:38:08]CheckFolder [17:38:08]dirname=/storage/ofd_packets [17:38:08]CheckFolder done [17:38:08]ProducePacketName [17:38:08]name=ofd_packets/00191880 [17:38:08]NVStorageSaveData ofd_packets/00191880 [17:38:08]File name is /storage/ofd_packets/00191880 [17:38:08]Write 301 bytes [17:38:08]NVStorageSaveData done [17:38:08]OFDSenderStorePacket done [17:38:08]KKMCreateOFDPacket done [17:38:08]NVStorageSaveData kkm_last_timestamp [17:38:08]File name is /storage/kkm_last_timestamp [17:38:08]Write 4 bytes [17:38:08]NVStorageSaveData done [17:38:08]ExternCall_PrintAddStr [17:38:08]wPrintStart [17:38:08]Write to MH i2c: 01 00 00 F4 23 17 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [17:38:08]RasterBufferAndPrint [17:38:08]line Счет N : (1)31188 [17:38:08]line ИНН: 02508201610067 [17:38:08]line Контрольно-Кассовый Чек [17:38:08]line ПРОДАЖА [17:38:08]line ТРК (МРК, ГНК) : 21 [17:38:08]line Товар: 2710124130 [17:38:08]line Аи-92-К-5 [17:38:08]line 21.550 * 65.90 [17:38:08]line = 1420.15 [17:38:08]line НДС 12% НСП 1% [17:38:08]line > о реализуемом товаре [17:38:08]line ОКРУГЛЕНИЕ: -0.15 [17:38:08]line ИТОГО: 1420.00 [17:38:08]line Внесено: 1500.00 [17:38:08]line СДАЧА: 80.00 [17:38:08]line НСП 1% : 12.57 [17:38:08]line НДС 12% : 150.81 [17:38:08]line Наличными: 1420.00 [17:38:08]line Безнал.: 0.00 [17:38:08]line Место: АЗС № 170 "Партнер Нефть" [17:38:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:38:08]line СНО: Общий режим [17:38:08]line Чек 243 26.10.2024 17:38 [17:38:08]line Смена: 541 ФФД: 1.0 [17:38:08]line ЗНМ: 0300000110 [17:38:08]line РНМ: 0000000000091776 [17:38:08]line Версия ККМ: 001 [17:38:08]line [17:38:08]line Дисконтная программа [17:38:08]line АИ-92 [17:38:08]line номер 170 [17:38:08]line сэкономлено 21.55 сом [17:38:08]line ФМ: 0000000000871754 [17:38:08]line ФД: 191880 [17:38:08]line ФПД: 276960312106904 [17:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T173822&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191880&fm=276960312106904&tin=02508201610067®Number=0000000000091776&sum=142000 [17:38:09]OFD Sender: Processing packet 191880 [packets to send 75, broken 74] [17:38:09]ProducePacketName [17:38:09]name=ofd_packets/00191880 [17:38:09]OFD Sender: To server: pG, [17:38:09]CommunicateWithHost lk.salyk.kg:30040 [17:38:09]ConnectInit lk.salyk.kg [17:38:09]written 0, free lines is 4095 [17:38:09]Connected sock=8 [17:38:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FC 75 07 01 64 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 2E 54 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 BF 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 0E 29 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 ED 02 00 35 04 06 00 FB E4 D9 05 1F 98 99 66 F4 33 CE 31 65 46 [17:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3B 4B 47 00 F4 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 88 ED 02 00 F4 03 04 00 D9 CD 1C 67 B6 04 01 00 00 91 78 37 DC 7B D3 CC 1C [17:38:09]CommunicateWithHost err = 0 [17:38:09]CheckOFDResponse [17:38:09]1017 (14) - 77093643461234 [17:38:09]1041 (16) - 0000000000871754 [17:38:09]1040 (4) - 191880 [17:38:09]1012 (4) - 26.10.2024 11:09 [17:38:09]1206 (1) - 0 [17:38:09]OFD Sender: Remove packet 191880 [17:38:09]ProducePacketName [17:38:09]name=ofd_packets/00191880 [17:38:09]NVStorageDeleteData [17:38:09]Write to MH i2c: 01 00 00 24 24 48 [17:38:09]Write i2c OK [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: 01 [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: 01 07 00 [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 6F 0C CA [17:38:09]RasterBufferAndPrint [17:38:09]line [17:38:09]line [17:38:09]line [17:38:09]line [17:38:09]line [17:38:09]written 0, free lines is 3190 [17:38:09]MH_Cut [17:38:09]Write to MH i2c: D1 01 00 2B 24 01 21 [17:38:09]Write i2c OK [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: D1 [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: D1 01 00 [17:38:09]MH_I2C_Read... [17:38:09]Read from MH i2c: D1 01 00 2B 24 00 20 [17:38:09]Write to MH i2c: 01 00 00 2C 24 50 [17:38:09]Write i2c OK [17:38:09]MH_I2C_Read... [17:38:10]OFD Sender: No OFD packet to send [17:38:10]*** Cut start [17:38:10]*** Partial cut [17:38:10]*** CUTSNS_PIN = 1 [17:38:10]*** CUTSNS_PIN = 0 [17:38:10]*** Brake cut motor [17:38:11]Read from MH i2c: 01 [17:38:11]MH_I2C_Read... [17:38:11]*** Stop cut motor [17:38:11]*** Cut end [17:38:11]Read from MH i2c: 01 07 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: 01 07 00 2C 24 00 00 00 00 00 FF 0F 65 [17:38:11]process_action close_receipt done [17:38:11]requested_data is exist [17:38:11]produce_requested_data [17:38:11]requested_item fm.sn is exist - process it [17:38:11]wFMCommunicate request_size=4 [17:38:11]MH_SAM_APDU [17:38:11]CAPDU: 80 11 00 00 [17:38:11]Write to MH i2c: E2 08 00 2D 24 80 11 00 00 00 00 00 00 CB [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 17 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 17 00 2D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [17:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:38:11]wFMCommunicate OK [17:38:11]requested_item fd.num is exist - process it [17:38:11]SAM_PROTO_GetFieldsCounters [17:38:11]wFMCommunicate request_size=4 [17:38:11]MH_SAM_APDU [17:38:11]CAPDU: 80 13 00 00 [17:38:11]Write to MH i2c: E2 08 00 2E 24 80 13 00 00 00 00 00 00 CE [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 62 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 62 00 2E 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 88 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:11]wFMCommunicate OK [17:38:11]SAM_PROTO_GetFieldsCounters done [17:38:11]requested_item shift.num is exist - process it [17:38:11]requested_item shift.opened is exist - process it [17:38:11]req_shift_opened [17:38:11]FM_GetShiftState [17:38:11]SAM_PROTO_GetShiftState [17:38:11]wFMCommunicate request_size=4 [17:38:11]MH_SAM_APDU [17:38:11]CAPDU: 80 13 01 00 [17:38:11]Write to MH i2c: E2 08 00 2F 24 80 13 01 00 00 00 00 00 D0 [17:38:11]Write i2c OK [17:38:11]MH_I2C_Read... [17:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:11]Read from MH i2c: E2 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 [17:38:11]MH_I2C_Read... [17:38:11]Read from MH i2c: E2 0E 00 2F 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 49 [17:38:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:38:11]wFMCommunicate OK [17:38:11]SAM_PROTO_GetShiftState done [17:38:11]FM_GetShiftState done [17:38:11]req_shift_opened done [17:38:11]requested_item shift.open_date is exist - process it [17:38:11]req_shift_open_date [17:38:11]req_shift_open_date done [17:38:11]produce_requested_data done [17:38:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191880,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:38:11]process_action_free close_receipt [17:38:11]json_value_free [17:38:11]json_value_free done [17:38:11]process_json_proto returns [17:38:11]Send response to host [17:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191880,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:38:11]free response buf [17:38:11]execute_script done [17:38:11]execute_script returns [17:38:11]free content buf [17:38:11]Sock 5.Close socket [17:38:11]Sock 5.Thread stoped [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]accept exits with 6 [17:47:35]New connection [17:47:35]New thread 3066817892 created [17:47:35]Thread 3066961252 joined [17:47:35]Waiting for new connection... [17:47:35] Sock 6.Parse request [17:47:35]Sock 6.Check first char [17:47:35]Sock 6.First char is OK [17:47:35]request: POST /json_proto HTTP/1.0 [17:47:35]Method: POST [17:47:35]URL: /json_proto [17:47:35]Method is POST - this is cgi request [17:47:35]url: /json_proto [17:47:35]query_string will be loaded in cgi processing [17:47:35]execute_cgi json_proto POST (null) [17:47:35]execute_cgi path=json_proto method=POST [17:47:35]POST find Content-Length [17:47:35]Host: 172.17.63.131:8080 [17:47:35]Content-Length: 676 [17:47:35]Content-Type: application/json [17:47:35] [17:47:35]POST finish read [17:47:35]Found Content-Length = 676 [17:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:35]execute_script... [17:47: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)31189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:35]POST & json_proto [17:47:35]process_json_proto [17:47:35]json parsed OK: [17:47:35]protocol is kg_v1.0 [17:47:35]action value=close_receipt [17:47:35]process_action close_receipt [17:47:35]cmd_close_receipt [17:47:35]MH_GetDate [17:47:35]Write to MH i2c: F0 00 00 30 24 43 [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 09 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: F0 09 00 30 24 00 46 2B 1D 67 22 05 6E 64 3A [17:47:35]GetLastDocTimeStamp 1729964302 [17:47:35]current date 1729964870 [17:47:35]FM_GetShiftState [17:47:35]SAM_PROTO_GetShiftState [17:47:35]wFMCommunicate request_size=4 [17:47:35]MH_SAM_APDU [17:47:35]CAPDU: 80 13 01 00 [17:47:35]Write to MH i2c: E2 08 00 31 24 80 13 01 00 00 00 00 00 D2 [17:47:35]Write i2c OK [17:47:35]MH_I2C_Read... [17:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:35]Read from MH i2c: E2 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 [17:47:35]MH_I2C_Read... [17:47:35]Read from MH i2c: E2 0E 00 31 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4B [17:47:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:47:35]wFMCommunicate OK [17:47:35]SAM_PROTO_GetShiftState done [17:47:35]FM_GetShiftState done [17:47:35]opened in 1729902770 [17:47:35]opened+sec_in_day 1729989170 [17:47:35]quantity*price = 20003 [17:47:35]sum+1 = 20004 [17:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 244 26.10.2024 17:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191881 ФПД: 43743598801543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191881&fm=43743598801543&tin=02508201610067®Number=0000000000091776&sum=20000 [17:47:36]StoreToDocumentArchive [17:47:36]shift 541 fd 191881 [17:47:36]save to /storage/0541/doc_00191881 [17:47:36]save last doc name /storage/0541/doc_00191881 to /storage/kkm_last_doc_name [17:47:36]save OK [17:47:36]Clear old archive folders... [17:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:36]tlvbuf is 01B4CE50 [17:47:36]SAM_PROTO_ClearQueue [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 09 00 00 [17:47:36]Write to MH i2c: E2 08 00 3E 24 80 09 00 00 00 00 00 00 D4 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 3E 24 00 90 00 D6 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]SAM_PROTO_ClearQueue done [17:47:36]KKMCreateOFDPacket [17:47:36]OFDProtocolAddRootSTLVToBuf [17:47:36]FM_MakeSignedData [17:47:36]FM_MakeSignedData [17:47:36]SAM_PROTO_SignData [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 01 02 [17:47:36]Write to MH i2c: E2 08 00 3F 24 80 0D 01 02 00 00 00 00 DC [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 3F 24 00 90 00 D7 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=255 [17:47:36]MH_SAM_APDU [17:47: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 47 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 ED 02 00 35 04 06 00 27 [17:47:36]Write to MH i2c: E2 02 01 40 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 47 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 ED 02 00 35 04 06 00 27 00 00 DA [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 40 24 00 90 00 D8 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=10 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 02 02 05 C8 D9 AA F2 87 [17:47:36]Write to MH i2c: E2 0D 00 41 24 80 0D 02 02 05 00 C8 D9 AA F2 87 00 00 AD [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 03 00 41 24 00 90 00 D9 [17:47:36]RAPDU: 90 00 [17:47:36]wFMCommunicate OK [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 0D 03 02 [17:47:36]Write to MH i2c: E2 08 00 42 24 80 0D 03 02 00 00 00 00 E1 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0B 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 0B 00 42 24 00 3A 3B 0E D5 5D 73 F3 EF 90 00 EC [17:47:36]RAPDU: 3A 3B 0E D5 5D 73 F3 EF 90 00 [17:47:36]wFMCommunicate OK [17:47:36]SAM_PROTO_SignData done [17:47:36]FM_MakeSignedData done [17:47:36]CreateOFDProtocolMessage [17:47:36]wFMCommunicate request_size=4 [17:47:36]MH_SAM_APDU [17:47:36]CAPDU: 80 11 00 00 [17:47:36]Write to MH i2c: E2 08 00 43 24 80 11 00 00 00 00 00 00 E1 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:36]Read from MH i2c: E2 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 17 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: E2 17 00 43 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [17:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:47:36]wFMCommunicate OK [17:47:36]CreateOFDProtocolMessage done [17:47:36]OFDSenderStorePacket 191881 [17:47:36]StoreOFDPacket docnum=191881 [17:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 09 07 01 1C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 47 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 ED 02 00 35 04 06 00 27 C8 D9 AA F2 87 3A 3B 0E D5 5D 73 F3 EF [17:47:36]CheckFolder [17:47:36]dirname=/storage/ofd_packets [17:47:36]CheckFolder done [17:47:36]ProducePacketName [17:47:36]name=ofd_packets/00191881 [17:47:36]NVStorageSaveData ofd_packets/00191881 [17:47:36]File name is /storage/ofd_packets/00191881 [17:47:36]Write 301 bytes [17:47:36]NVStorageSaveData done [17:47:36]OFDSenderStorePacket done [17:47:36]KKMCreateOFDPacket done [17:47:36]NVStorageSaveData kkm_last_timestamp [17:47:36]File name is /storage/kkm_last_timestamp [17:47:36]Write 4 bytes [17:47:36]NVStorageSaveData done [17:47:36]ExternCall_PrintAddStr [17:47:36]wPrintStart [17:47:36]Write to MH i2c: 01 00 00 44 24 68 [17:47:36]Write i2c OK [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 [17:47:36]MH_I2C_Read... [17:47:36]Read from MH i2c: 01 07 00 44 24 00 00 00 00 00 FF 0F 7D [17:47:36]RasterBufferAndPrint [17:47:36]line Счет N : (1)31189 [17:47:36]line ИНН: 02508201610067 [17:47:36]line Контрольно-Кассовый Чек [17:47:36]line ПРОДАЖА [17:47:36]line ТРК (МРК, ГНК) : 12 [17:47:36]line Товар: 2710124130 [17:47:36]line Аи-92-К-5 [17:47:36]line 2.990 * 66.90 [17:47:36]line = 200.03 [17:47:36]line НДС 12% НСП 1% [17:47:36]line > о реализуемом товаре [17:47:36]line ОКРУГЛЕНИЕ: -0.03 [17:47:36]line ИТОГО: 200.00 [17:47:36]line Внесено: 200.00 [17:47:36]line СДАЧА: 0.00 [17:47:36]line НСП 1% : 1.77 [17:47:36]line НДС 12% : 21.24 [17:47:36]line Наличными: 200.00 [17:47:36]line Безнал.: 0.00 [17:47:36]line Место: АЗС № 170 "Партнер Нефть" [17:47:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:47:36]line СНО: Общий режим [17:47:36]line Чек 244 26.10.2024 17:47 [17:47:36]line Смена: 541 ФФД: 1.0 [17:47:36]line ЗНМ: 0300000110 [17:47:36]line РНМ: 0000000000091776 [17:47:36]line Версия ККМ: 001 [17:47:36]line ФМ: 0000000000871754 [17:47:36]line ФД: 191881 [17:47:36]line ФПД: 43743598801543 [17:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191881&fm=43743598801543&tin=02508201610067®Number=0000000000091776&sum=20000 [17:47:37]OFD Sender: Processing packet 191881 [packets to send 75, broken 74] [17:47:37]ProducePacketName [17:47:37]name=ofd_packets/00191881 [17:47:37]OFD Sender: To server: pG, [17:47:37]CommunicateWithHost lk.salyk.kg:30040 [17:47:37]ConnectInit lk.salyk.kg [17:47:37]written 0, free lines is 4095 [17:47:37]Connected sock=8 [17:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 09 07 01 1C A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 47 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 ED 02 00 35 04 06 00 27 C8 D9 AA F2 87 3A 3B 0E D5 5D 73 F3 EF [17:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 2A 18 47 00 20 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 89 ED 02 00 F4 03 04 00 11 D0 1C 67 B6 04 01 00 00 1E A6 44 E9 72 1C 1A E6 [17:47:37]CommunicateWithHost err = 0 [17:47:37]CheckOFDResponse [17:47:37]1017 (14) - 77093643461234 [17:47:37]1041 (16) - 0000000000871754 [17:47:37]1040 (4) - 191881 [17:47:37]1012 (4) - 26.10.2024 11:18 [17:47:37]1206 (1) - 0 [17:47:37]OFD Sender: Remove packet 191881 [17:47:37]ProducePacketName [17:47:37]name=ofd_packets/00191881 [17:47:37]NVStorageDeleteData [17:47:37]Write to MH i2c: 01 00 00 6F 24 93 [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: 01 07 00 6F 24 00 00 00 00 00 C9 0C 6F [17:47:37]RasterBufferAndPrint [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]line [17:47:37]written 0, free lines is 3279 [17:47:37]MH_Cut [17:47:37]Write to MH i2c: D1 01 00 76 24 01 6C [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 01 00 [17:47:37]MH_I2C_Read... [17:47:37]Read from MH i2c: D1 01 00 76 24 00 6B [17:47:37]Write to MH i2c: 01 00 00 77 24 9B [17:47:37]Write i2c OK [17:47:37]MH_I2C_Read... [17:47:38]OFD Sender: No OFD packet to send [17:47:38]*** Cut start [17:47:38]*** Partial cut [17:47:38]*** CUTSNS_PIN = 1 [17:47:38]*** CUTSNS_PIN = 0 [17:47:38]*** Brake cut motor [17:47:39]Read from MH i2c: 01 [17:47:39]MH_I2C_Read... [17:47:39]*** Stop cut motor [17:47:39]*** Cut end [17:47:39]Read from MH i2c: 01 07 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: 01 07 00 77 24 00 00 00 00 00 FF 0F B0 [17:47:39]process_action close_receipt done [17:47:39]requested_data is exist [17:47:39]produce_requested_data [17:47:39]requested_item fm.sn is exist - process it [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 11 00 00 [17:47:39]Write to MH i2c: E2 08 00 78 24 80 11 00 00 00 00 00 00 16 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 17 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 17 00 78 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [17:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:47:39]wFMCommunicate OK [17:47:39]requested_item fd.num is exist - process it [17:47:39]SAM_PROTO_GetFieldsCounters [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 00 00 [17:47:39]Write to MH i2c: E2 08 00 79 24 80 13 00 00 00 00 00 00 19 [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 62 00 79 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [17:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 89 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetFieldsCounters done [17:47:39]requested_item shift.num is exist - process it [17:47:39]requested_item shift.opened is exist - process it [17:47:39]req_shift_opened [17:47:39]FM_GetShiftState [17:47:39]SAM_PROTO_GetShiftState [17:47:39]wFMCommunicate request_size=4 [17:47:39]MH_SAM_APDU [17:47:39]CAPDU: 80 13 01 00 [17:47:39]Write to MH i2c: E2 08 00 7A 24 80 13 01 00 00 00 00 00 1B [17:47:39]Write i2c OK [17:47:39]MH_I2C_Read... [17:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:39]Read from MH i2c: E2 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 [17:47:39]MH_I2C_Read... [17:47:39]Read from MH i2c: E2 0E 00 7A 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 94 [17:47:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:47:39]wFMCommunicate OK [17:47:39]SAM_PROTO_GetShiftState done [17:47:39]FM_GetShiftState done [17:47:39]req_shift_opened done [17:47:39]requested_item shift.open_date is exist - process it [17:47:39]req_shift_open_date [17:47:39]req_shift_open_date done [17:47:39]produce_requested_data done [17:47:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191881,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:47:39]process_action_free close_receipt [17:47:39]json_value_free [17:47:39]json_value_free done [17:47:39]process_json_proto returns [17:47:39]Send response to host [17:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191881,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:47:39]free response buf [17:47:39]execute_script done [17:47:39]execute_script returns [17:47:39]free content buf [17:47:39]Sock 6.Close socket [17:47:39]Sock 6.Thread stoped [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:47]accept exits with 5 [17:48:47]New connection [17:48:47]New thread 3066961252 created [17:48:47]Thread 3066817892 joined [17:48:47]Waiting for new connection... [17:48:47] Sock 5.Parse request [17:48:47]Sock 5.Check first char [17:48:47]Sock 5.First char is OK [17:48:47]request: POST /json_proto HTTP/1.0 [17:48:47]Method: POST [17:48:47]URL: /json_proto [17:48:47]Method is POST - this is cgi request [17:48:47]url: /json_proto [17:48:47]query_string will be loaded in cgi processing [17:48:47]execute_cgi json_proto POST (null) [17:48:47]execute_cgi path=json_proto method=POST [17:48:47]POST find Content-Length [17:48:47]Host: 172.17.63.131:8080 [17:48:47]Content-Length: 681 [17:48:47]Content-Type: application/json [17:48:47] [17:48:47]POST finish read [17:48:47]Found Content-Length = 681 [17:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:47]execute_script... [17:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:47]POST & json_proto [17:48:47]process_json_proto [17:48:47]json parsed OK: [17:48:47]protocol is kg_v1.0 [17:48:47]action value=close_receipt [17:48:47]process_action close_receipt [17:48:47]cmd_close_receipt [17:48:47]MH_GetDate [17:48:47]Write to MH i2c: F0 00 00 7B 24 8E [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: F0 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: F0 09 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: F0 09 00 7B 24 00 8F 2B 1D 67 22 05 6E 64 CE [17:48:47]GetLastDocTimeStamp 1729964871 [17:48:47]current date 1729964943 [17:48:47]FM_GetShiftState [17:48:47]SAM_PROTO_GetShiftState [17:48:47]wFMCommunicate request_size=4 [17:48:47]MH_SAM_APDU [17:48:47]CAPDU: 80 13 01 00 [17:48:47]Write to MH i2c: E2 08 00 7C 24 80 13 01 00 00 00 00 00 1D [17:48:47]Write i2c OK [17:48:47]MH_I2C_Read... [17:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:47]Read from MH i2c: E2 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 0E 00 [17:48:47]MH_I2C_Read... [17:48:47]Read from MH i2c: E2 0E 00 7C 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 96 [17:48:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:48:47]wFMCommunicate OK [17:48:47]SAM_PROTO_GetShiftState done [17:48:47]FM_GetShiftState done [17:48:47]opened in 1729902770 [17:48:47]opened+sec_in_day 1729989170 [17:48:47]quantity*price = 100015 [17:48:47]sum+1 = 100017 [17:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 245 26.10.2024 17:49 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191882 ФПД: 87955424065725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191882&fm=87955424065725&tin=02508201610067®Number=0000000000091776&sum=100000 [17:48:48]StoreToDocumentArchive [17:48:48]shift 541 fd 191882 [17:48:48]save to /storage/0541/doc_00191882 [17:48:48]save last doc name /storage/0541/doc_00191882 to /storage/kkm_last_doc_name [17:48:48]save OK [17:48:48]Clear old archive folders... [17:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:48]tlvbuf is 0160AFB0 [17:48:48]SAM_PROTO_ClearQueue [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 09 00 00 [17:48:48]Write to MH i2c: E2 08 00 89 24 80 09 00 00 00 00 00 00 1F [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 03 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 03 00 89 24 00 90 00 21 [17:48:48]RAPDU: 90 00 [17:48:48]wFMCommunicate OK [17:48:48]SAM_PROTO_ClearQueue done [17:48:48]KKMCreateOFDPacket [17:48:48]OFDProtocolAddRootSTLVToBuf [17:48:48]FM_MakeSignedData [17:48:48]FM_MakeSignedData [17:48:48]SAM_PROTO_SignData [17:48:48]wFMCommunicate request_size=4 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 0D 01 02 [17:48:48]Write to MH i2c: E2 08 00 8A 24 80 0D 01 02 00 00 00 00 27 [17:48:48]Write i2c OK [17:48:48]MH_I2C_Read... [17:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:48]Read from MH i2c: E2 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 03 00 [17:48:48]MH_I2C_Read... [17:48:48]Read from MH i2c: E2 03 00 8A 24 00 90 00 22 [17:48:48]RAPDU: 90 00 [17:48:48]wFMCommunicate OK [17:48:48]wFMCommunicate request_size=255 [17:48:48]MH_SAM_APDU [17:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 8F 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A ED 02 00 35 04 06 00 4F [17:48:48]Write to MH i2c: E2 02 01 8B 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 8F 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A ED 02 00 35 04 06 00 4F 00 00 CF [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:49]Read from MH i2c: E2 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 03 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 03 00 8B 24 00 90 00 23 [17:48:49]RAPDU: 90 00 [17:48:49]wFMCommunicate OK [17:48:49]wFMCommunicate request_size=10 [17:48:49]MH_SAM_APDU [17:48:49]CAPDU: 80 0D 02 02 05 FE B7 CE B8 BD [17:48:49]Write to MH i2c: E2 0D 00 8C 24 80 0D 02 02 05 00 FE B7 CE B8 BD 00 00 2C [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:49]Read from MH i2c: E2 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 03 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [17:48:49]RAPDU: 90 00 [17:48:49]wFMCommunicate OK [17:48:49]wFMCommunicate request_size=4 [17:48:49]MH_SAM_APDU [17:48:49]CAPDU: 80 0D 03 02 [17:48:49]Write to MH i2c: E2 08 00 8D 24 80 0D 03 02 00 00 00 00 2C [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:49]Read from MH i2c: E2 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 0B 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 0B 00 8D 24 00 BF 53 31 4D 1C 14 90 B9 90 00 36 [17:48:49]RAPDU: BF 53 31 4D 1C 14 90 B9 90 00 [17:48:49]wFMCommunicate OK [17:48:49]SAM_PROTO_SignData done [17:48:49]FM_MakeSignedData done [17:48:49]CreateOFDProtocolMessage [17:48:49]wFMCommunicate request_size=4 [17:48:49]MH_SAM_APDU [17:48:49]CAPDU: 80 11 00 00 [17:48:49]Write to MH i2c: E2 08 00 8E 24 80 11 00 00 00 00 00 00 2C [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:49]Read from MH i2c: E2 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 17 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: E2 17 00 8E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [17:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:49]wFMCommunicate OK [17:48:49]CreateOFDProtocolMessage done [17:48:49]OFDSenderStorePacket 191882 [17:48:49]StoreOFDPacket docnum=191882 [17:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B F1 07 01 B2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 8F 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A ED 02 00 35 04 06 00 4F FE B7 CE B8 BD BF 53 31 4D 1C 14 90 B9 [17:48:49]CheckFolder [17:48:49]dirname=/storage/ofd_packets [17:48:49]CheckFolder done [17:48:49]ProducePacketName [17:48:49]name=ofd_packets/00191882 [17:48:49]NVStorageSaveData ofd_packets/00191882 [17:48:49]File name is /storage/ofd_packets/00191882 [17:48:49]Write 301 bytes [17:48:49]NVStorageSaveData done [17:48:49]OFDSenderStorePacket done [17:48:49]KKMCreateOFDPacket done [17:48:49]NVStorageSaveData kkm_last_timestamp [17:48:49]File name is /storage/kkm_last_timestamp [17:48:49]Write 4 bytes [17:48:49]NVStorageSaveData done [17:48:49]ExternCall_PrintAddStr [17:48:49]wPrintStart [17:48:49]Write to MH i2c: 01 00 00 8F 24 B3 [17:48:49]Write i2c OK [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 [17:48:49]MH_I2C_Read... [17:48:49]Read from MH i2c: 01 07 00 8F 24 00 00 00 00 00 FF 0F C8 [17:48:49]RasterBufferAndPrint [17:48:49]line Счет N : (1)31190 [17:48:49]line ИНН: 02508201610067 [17:48:49]line Контрольно-Кассовый Чек [17:48:49]line ПРОДАЖА [17:48:49]line ТРК (МРК, ГНК) : 21 [17:48:49]line Товар: 2710124130 [17:48:49]line Аи-92-К-5 [17:48:49]line 14.950 * 66.90 [17:48:49]line = 1000.16 [17:48:49]line НДС 12% НСП 1% [17:48:49]line > о реализуемом товаре [17:48:49]line ОКРУГЛЕНИЕ: -0.16 [17:48:49]line ИТОГО: 1000.00 [17:48:49]line Внесено: 1000.00 [17:48:49]line СДАЧА: 0.00 [17:48:49]line НСП 1% : 8.85 [17:48:49]line НДС 12% : 106.21 [17:48:49]line Наличными: 1000.00 [17:48:49]line Безнал.: 0.00 [17:48:49]line Место: АЗС № 170 "Партнер Нефть" [17:48:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:48:49]line СНО: Общий режим [17:48:49]line Чек 245 26.10.2024 17:49 [17:48:49]line Смена: 541 ФФД: 1.0 [17:48:49]line ЗНМ: 0300000110 [17:48:49]line РНМ: 0000000000091776 [17:48:49]line Версия ККМ: 001 [17:48:49]line ФМ: 0000000000871754 [17:48:49]line ФД: 191882 [17:48:49]line ФПД: 87955424065725 [17:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T174903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191882&fm=87955424065725&tin=02508201610067®Number=0000000000091776&sum=100000 [17:48:49]OFD Sender: Processing packet 191882 [packets to send 75, broken 74] [17:48:49]ProducePacketName [17:48:49]name=ofd_packets/00191882 [17:48:49]OFD Sender: To server: pG, [17:48:49]CommunicateWithHost lk.salyk.kg:30040 [17:48:49]ConnectInit lk.salyk.kg [17:48:49]written 0, free lines is 4095 [17:48:49]Connected sock=8 [17:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B F1 07 01 B2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 8F 2B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A ED 02 00 35 04 06 00 4F FE B7 CE B8 BD BF 53 31 4D 1C 14 90 B9 [17:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E0 B1 47 00 AB 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8A ED 02 00 F4 03 04 00 59 D0 1C 67 B6 04 01 00 00 AC 75 F2 FE 0E 91 D0 2E [17:48:50]CommunicateWithHost err = 0 [17:48:50]CheckOFDResponse [17:48:50]1017 (14) - 77093643461234 [17:48:50]1041 (16) - 0000000000871754 [17:48:50]1040 (4) - 191882 [17:48:50]1012 (4) - 26.10.2024 11:19 [17:48:50]1206 (1) - 0 [17:48:50]OFD Sender: Remove packet 191882 [17:48:50]ProducePacketName [17:48:50]name=ofd_packets/00191882 [17:48:50]NVStorageDeleteData [17:48:50]Write to MH i2c: 01 00 00 BA 24 DE [17:48:50]Write i2c OK [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 07 00 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: 01 07 00 BA 24 00 00 00 00 00 C6 0C B7 [17:48:50]RasterBufferAndPrint [17:48:50]line [17:48:50]line [17:48:50]line [17:48:50]line [17:48:50]line [17:48:50]written 0, free lines is 3276 [17:48:50]MH_Cut [17:48:50]Write to MH i2c: D1 01 00 C1 24 01 B7 [17:48:50]Write i2c OK [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: D1 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: D1 01 00 [17:48:50]MH_I2C_Read... [17:48:50]Read from MH i2c: D1 01 00 C1 24 00 B6 [17:48:50]Write to MH i2c: 01 00 00 C2 24 E6 [17:48:50]Write i2c OK [17:48:50]MH_I2C_Read... [17:48:50]OFD Sender: No OFD packet to send [17:48:51]*** Cut start [17:48:51]*** Partial cut [17:48:51]*** CUTSNS_PIN = 1 [17:48:51]*** CUTSNS_PIN = 0 [17:48:51]*** Brake cut motor [17:48:51]Read from MH i2c: 01 [17:48:51]MH_I2C_Read... [17:48:51]*** Stop cut motor [17:48:51]*** Cut end [17:48:51]Read from MH i2c: 01 07 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [17:48:51]process_action close_receipt done [17:48:51]requested_data is exist [17:48:51]produce_requested_data [17:48:51]requested_item fm.sn is exist - process it [17:48:51]wFMCommunicate request_size=4 [17:48:51]MH_SAM_APDU [17:48:51]CAPDU: 80 11 00 00 [17:48:51]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:51]Read from MH i2c: E2 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 17 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B4 [17:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:48:51]wFMCommunicate OK [17:48:51]requested_item fd.num is exist - process it [17:48:51]SAM_PROTO_GetFieldsCounters [17:48:51]wFMCommunicate request_size=4 [17:48:51]MH_SAM_APDU [17:48:51]CAPDU: 80 13 00 00 [17:48:51]Write to MH i2c: E2 08 00 C4 24 80 13 00 00 00 00 00 00 64 [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:51]Read from MH i2c: E2 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 62 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 62 00 C4 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [17:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:51]wFMCommunicate OK [17:48:51]SAM_PROTO_GetFieldsCounters done [17:48:51]requested_item shift.num is exist - process it [17:48:51]requested_item shift.opened is exist - process it [17:48:51]req_shift_opened [17:48:51]FM_GetShiftState [17:48:51]SAM_PROTO_GetShiftState [17:48:51]wFMCommunicate request_size=4 [17:48:51]MH_SAM_APDU [17:48:51]CAPDU: 80 13 01 00 [17:48:51]Write to MH i2c: E2 08 00 C5 24 80 13 01 00 00 00 00 00 66 [17:48:51]Write i2c OK [17:48:51]MH_I2C_Read... [17:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:51]Read from MH i2c: E2 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 0E 00 [17:48:51]MH_I2C_Read... [17:48:51]Read from MH i2c: E2 0E 00 C5 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DF [17:48:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:48:51]wFMCommunicate OK [17:48:51]SAM_PROTO_GetShiftState done [17:48:51]FM_GetShiftState done [17:48:51]req_shift_opened done [17:48:51]requested_item shift.open_date is exist - process it [17:48:51]req_shift_open_date [17:48:51]req_shift_open_date done [17:48:51]produce_requested_data done [17:48:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191882,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:48:51]process_action_free close_receipt [17:48:51]json_value_free [17:48:51]json_value_free done [17:48:51]process_json_proto returns [17:48:51]Send response to host [17:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191882,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:48:51]free response buf [17:48:51]execute_script done [17:48:51]execute_script returns [17:48:51]free content buf [17:48:51]Sock 5.Close socket [17:48:51]Sock 5.Thread stoped [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]accept exits with 6 [17:51:50]New connection [17:51:50]New thread 3066817892 created [17:51:50]Thread 3066961252 joined [17:51:50]Waiting for new connection... [17:51:50] Sock 6.Parse request [17:51:50]Sock 6.Check first char [17:51:50]Sock 6.First char is OK [17:51:50]request: POST /json_proto HTTP/1.0 [17:51:50]Method: POST [17:51:50]URL: /json_proto [17:51:50]Method is POST - this is cgi request [17:51:50]url: /json_proto [17:51:50]query_string will be loaded in cgi processing [17:51:50]execute_cgi json_proto POST (null) [17:51:50]execute_cgi path=json_proto method=POST [17:51:50]POST find Content-Length [17:51:50]Host: 172.17.63.131:8080 [17:51:50]Content-Length: 676 [17:51:50]Content-Type: application/json [17:51:50] [17:51:50]POST finish read [17:51:50]Found Content-Length = 676 [17:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:50]execute_script... [17:51: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)31191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:50]POST & json_proto [17:51:50]process_json_proto [17:51:50]json parsed OK: [17:51:50]protocol is kg_v1.0 [17:51:50]action value=close_receipt [17:51:50]process_action close_receipt [17:51:50]cmd_close_receipt [17:51:50]MH_GetDate [17:51:50]Write to MH i2c: F0 00 00 C6 24 D9 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 C6 24 00 46 2C 1D 67 22 05 6E 64 D1 [17:51:50]GetLastDocTimeStamp 1729964943 [17:51:50]current date 1729965126 [17:51:50]FM_GetShiftState [17:51:50]SAM_PROTO_GetShiftState [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 13 01 00 [17:51:50]Write to MH i2c: E2 08 00 C7 24 80 13 01 00 00 00 00 00 68 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 C7 24 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E1 [17:51:50]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:51:50]wFMCommunicate OK [17:51:50]SAM_PROTO_GetShiftState done [17:51:50]FM_GetShiftState done [17:51:50]opened in 1729902770 [17:51:50]opened+sec_in_day 1729989170 [17:51:50]quantity*price = 60009 [17:51:50]sum+1 = 60010 [17:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 246 26.10.2024 17:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191883 ФПД: 68786452116575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191883&fm=68786452116575&tin=02508201610067®Number=0000000000091776&sum=60000 [17:51:51]StoreToDocumentArchive [17:51:51]shift 541 fd 191883 [17:51:51]save to /storage/0541/doc_00191883 [17:51:51]save last doc name /storage/0541/doc_00191883 to /storage/kkm_last_doc_name [17:51:51]save OK [17:51:51]Clear old archive folders... [17:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:51]tlvbuf is 01608CB0 [17:51:51]SAM_PROTO_ClearQueue [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 09 00 00 [17:51:51]Write to MH i2c: E2 08 00 D4 24 80 09 00 00 00 00 00 00 6A [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 D4 24 00 90 00 6C [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_ClearQueue done [17:51:51]KKMCreateOFDPacket [17:51:51]OFDProtocolAddRootSTLVToBuf [17:51:51]FM_MakeSignedData [17:51:51]FM_MakeSignedData [17:51:51]SAM_PROTO_SignData [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 01 02 [17:51:51]Write to MH i2c: E2 08 00 D5 24 80 0D 01 02 00 00 00 00 72 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 D5 24 00 90 00 6D [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=255 [17:51:51]MH_SAM_APDU [17:51: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 46 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B ED 02 00 35 04 06 00 3E [17:51:51]Write to MH i2c: E2 02 01 D6 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 46 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B ED 02 00 35 04 06 00 3E 00 00 A6 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 D6 24 00 90 00 6E [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=10 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 02 02 05 8F 98 0B 34 5F [17:51:51]Write to MH i2c: E2 0D 00 D7 24 80 0D 02 02 05 00 8F 98 0B 34 5F 00 00 44 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:52]Read from MH i2c: E2 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 03 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 03 00 D7 24 00 90 00 6F [17:51:52]RAPDU: 90 00 [17:51:52]wFMCommunicate OK [17:51:52]wFMCommunicate request_size=4 [17:51:52]MH_SAM_APDU [17:51:52]CAPDU: 80 0D 03 02 [17:51:52]Write to MH i2c: E2 08 00 D8 24 80 0D 03 02 00 00 00 00 77 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:52]Read from MH i2c: E2 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 0B 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 0B 00 D8 24 00 08 2C B1 3F 13 4C B8 95 90 00 48 [17:51:52]RAPDU: 08 2C B1 3F 13 4C B8 95 90 00 [17:51:52]wFMCommunicate OK [17:51:52]SAM_PROTO_SignData done [17:51:52]FM_MakeSignedData done [17:51:52]CreateOFDProtocolMessage [17:51:52]wFMCommunicate request_size=4 [17:51:52]MH_SAM_APDU [17:51:52]CAPDU: 80 11 00 00 [17:51:52]Write to MH i2c: E2 08 00 D9 24 80 11 00 00 00 00 00 00 77 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:52]Read from MH i2c: E2 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 17 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: E2 17 00 D9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CA [17:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:52]wFMCommunicate OK [17:51:52]CreateOFDProtocolMessage done [17:51:52]OFDSenderStorePacket 191883 [17:51:52]StoreOFDPacket docnum=191883 [17:51:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 62 07 01 8D 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 46 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B ED 02 00 35 04 06 00 3E 8F 98 0B 34 5F 08 2C B1 3F 13 4C B8 95 [17:51:52]CheckFolder [17:51:52]dirname=/storage/ofd_packets [17:51:52]CheckFolder done [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00191883 [17:51:52]NVStorageSaveData ofd_packets/00191883 [17:51:52]File name is /storage/ofd_packets/00191883 [17:51:52]Write 301 bytes [17:51:52]NVStorageSaveData done [17:51:52]OFDSenderStorePacket done [17:51:52]KKMCreateOFDPacket done [17:51:52]NVStorageSaveData kkm_last_timestamp [17:51:52]File name is /storage/kkm_last_timestamp [17:51:52]Write 4 bytes [17:51:52]NVStorageSaveData done [17:51:52]ExternCall_PrintAddStr [17:51:52]wPrintStart [17:51:52]Write to MH i2c: 01 00 00 DA 24 FE [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [17:51:52]RasterBufferAndPrint [17:51:52]line Счет N : (1)31191 [17:51:52]line ИНН: 02508201610067 [17:51:52]line Контрольно-Кассовый Чек [17:51:52]line ПРОДАЖА [17:51:52]line ТРК (МРК, ГНК) : 12 [17:51:52]line Товар: 2710124130 [17:51:52]line Аи-92-К-5 [17:51:52]line 8.970 * 66.90 [17:51:52]line = 600.09 [17:51:52]line НДС 12% НСП 1% [17:51:52]line > о реализуемом товаре [17:51:52]line ОКРУГЛЕНИЕ: -0.09 [17:51:52]line ИТОГО: 600.00 [17:51:52]line Внесено: 600.00 [17:51:52]line СДАЧА: 0.00 [17:51:52]line НСП 1% : 5.31 [17:51:52]line НДС 12% : 63.73 [17:51:52]line Наличными: 600.00 [17:51:52]line Безнал.: 0.00 [17:51:52]line Место: АЗС № 170 "Партнер Нефть" [17:51:52]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:51:52]line СНО: Общий режим [17:51:52]line Чек 246 26.10.2024 17:52 [17:51:52]line Смена: 541 ФФД: 1.0 [17:51:52]line ЗНМ: 0300000110 [17:51:52]line РНМ: 0000000000091776 [17:51:52]line Версия ККМ: 001 [17:51:52]line ФМ: 0000000000871754 [17:51:52]line ФД: 191883 [17:51:52]line ФПД: 68786452116575 [17:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175206&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191883&fm=68786452116575&tin=02508201610067®Number=0000000000091776&sum=60000 [17:51:52]OFD Sender: Processing packet 191883 [packets to send 75, broken 74] [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00191883 [17:51:52]OFD Sender: To server: pG, [17:51:52]CommunicateWithHost lk.salyk.kg:30040 [17:51:52]ConnectInit lk.salyk.kg [17:51:52]written 0, free lines is 4095 [17:51:52]Connected sock=9 [17:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4B 62 07 01 8D 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 46 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B ED 02 00 35 04 06 00 3E 8F 98 0B 34 5F 08 2C B1 3F 13 4C B8 95 [17:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 FA 6E 47 00 FE C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8B ED 02 00 F4 03 04 00 10 D1 1C 67 B6 04 01 00 00 41 A8 E6 F2 1A E6 8C 37 [17:51:52]CommunicateWithHost err = 0 [17:51:52]CheckOFDResponse [17:51:52]1017 (14) - 77093643461234 [17:51:52]1041 (16) - 0000000000871754 [17:51:52]1040 (4) - 191883 [17:51:52]1012 (4) - 26.10.2024 11:22 [17:51:52]1206 (1) - 0 [17:51:52]OFD Sender: Remove packet 191883 [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00191883 [17:51:52]NVStorageDeleteData [17:51:52]Write to MH i2c: 01 00 00 05 25 2A [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 05 25 00 00 00 00 00 B2 0C EF [17:51:52]RasterBufferAndPrint [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]written 0, free lines is 3257 [17:51:52]MH_Cut [17:51:52]Write to MH i2c: D1 01 00 0C 25 01 03 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 0C 25 00 02 [17:51:52]Write to MH i2c: 01 00 00 0D 25 32 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:53]OFD Sender: No OFD packet to send [17:51:53]*** Cut start [17:51:53]*** Partial cut [17:51:53]*** CUTSNS_PIN = 1 [17:51:53]*** CUTSNS_PIN = 0 [17:51:54]*** Brake cut motor [17:51:54]Read from MH i2c: 01 [17:51:54]MH_I2C_Read... [17:51:54]*** Stop cut motor [17:51:54]*** Cut end [17:51:54]Read from MH i2c: 01 07 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: 01 07 00 0D 25 00 00 00 00 00 FF 0F 47 [17:51:54]process_action close_receipt done [17:51:54]requested_data is exist [17:51:54]produce_requested_data [17:51:54]requested_item fm.sn is exist - process it [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 11 00 00 [17:51:54]Write to MH i2c: E2 08 00 0E 25 80 11 00 00 00 00 00 00 AD [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 0E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 00 [17:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:51:54]wFMCommunicate OK [17:51:54]requested_item fd.num is exist - process it [17:51:54]SAM_PROTO_GetFieldsCounters [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 13 00 00 [17:51:54]Write to MH i2c: E2 08 00 0F 25 80 13 00 00 00 00 00 00 B0 [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 62 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 62 00 0F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [17:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:54]wFMCommunicate OK [17:51:54]SAM_PROTO_GetFieldsCounters done [17:51:54]requested_item shift.num is exist - process it [17:51:54]requested_item shift.opened is exist - process it [17:51:54]req_shift_opened [17:51:54]FM_GetShiftState [17:51:54]SAM_PROTO_GetShiftState [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 13 01 00 [17:51:54]Write to MH i2c: E2 08 00 10 25 80 13 01 00 00 00 00 00 B2 [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0E 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0E 00 10 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2B [17:51:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:51:54]wFMCommunicate OK [17:51:54]SAM_PROTO_GetShiftState done [17:51:54]FM_GetShiftState done [17:51:54]req_shift_opened done [17:51:54]requested_item shift.open_date is exist - process it [17:51:54]req_shift_open_date [17:51:54]req_shift_open_date done [17:51:54]produce_requested_data done [17:51:54]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191883,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:51:54]process_action_free close_receipt [17:51:54]json_value_free [17:51:54]json_value_free done [17:51:54]process_json_proto returns [17:51:54]Send response to host [17:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191883,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:51:54]free response buf [17:51:54]execute_script done [17:51:54]execute_script returns [17:51:54]free content buf [17:51:54]Sock 6.Close socket [17:51:54]Sock 6.Thread stoped [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:44]accept exits with 5 [17:52:44]New connection [17:52:44]New thread 3066961252 created [17:52:44]Thread 3066817892 joined [17:52:44]Waiting for new connection... [17:52:44] Sock 5.Parse request [17:52:44]Sock 5.Check first char [17:52:44]Sock 5.First char is OK [17:52:44]request: POST /json_proto HTTP/1.0 [17:52:44]Method: POST [17:52:44]URL: /json_proto [17:52:44]Method is POST - this is cgi request [17:52:44]url: /json_proto [17:52:44]query_string will be loaded in cgi processing [17:52:44]execute_cgi json_proto POST (null) [17:52:44]execute_cgi path=json_proto method=POST [17:52:44]POST find Content-Length [17:52:44]Host: 172.17.63.131:8080 [17:52:44]Content-Length: 676 [17:52:44]Content-Type: application/json [17:52:44] [17:52:44]POST finish read [17:52:44]Found Content-Length = 676 [17:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:44]execute_script... [17:52:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:44]POST & json_proto [17:52:44]process_json_proto [17:52:44]json parsed OK: [17:52:44]protocol is kg_v1.0 [17:52:44]action value=close_receipt [17:52:44]process_action close_receipt [17:52:44]cmd_close_receipt [17:52:44]MH_GetDate [17:52:44]Write to MH i2c: F0 00 00 11 25 25 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 09 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 09 00 11 25 00 7C 2C 1D 67 22 05 6E 64 53 [17:52:44]GetLastDocTimeStamp 1729965126 [17:52:44]current date 1729965180 [17:52:44]FM_GetShiftState [17:52:44]SAM_PROTO_GetShiftState [17:52:44]wFMCommunicate request_size=4 [17:52:44]MH_SAM_APDU [17:52:44]CAPDU: 80 13 01 00 [17:52:44]Write to MH i2c: E2 08 00 12 25 80 13 01 00 00 00 00 00 B4 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:44]Read from MH i2c: E2 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 0E 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: E2 0E 00 12 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2D [17:52:44]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:52:44]wFMCommunicate OK [17:52:44]SAM_PROTO_GetShiftState done [17:52:44]FM_GetShiftState done [17:52:44]opened in 1729902770 [17:52:44]opened+sec_in_day 1729989170 [17:52:44]quantity*price = 60009 [17:52:44]sum+1 = 60010 [17:52:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 247 26.10.2024 17:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191884 ФПД: 162969007774318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191884&fm=162969007774318&tin=02508201610067®Number=0000000000091776&sum=60000 [17:52:45]StoreToDocumentArchive [17:52:45]shift 541 fd 191884 [17:52:45]save to /storage/0541/doc_00191884 [17:52:45]save last doc name /storage/0541/doc_00191884 to /storage/kkm_last_doc_name [17:52:45]save OK [17:52:45]Clear old archive folders... [17:52:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:45]tlvbuf is 01960E70 [17:52:45]SAM_PROTO_ClearQueue [17:52:45]wFMCommunicate request_size=4 [17:52:45]MH_SAM_APDU [17:52:45]CAPDU: 80 09 00 00 [17:52:45]Write to MH i2c: E2 08 00 1F 25 80 09 00 00 00 00 00 00 B6 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 1F 25 00 90 00 B8 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]SAM_PROTO_ClearQueue done [17:52:46]KKMCreateOFDPacket [17:52:46]OFDProtocolAddRootSTLVToBuf [17:52:46]FM_MakeSignedData [17:52:46]FM_MakeSignedData [17:52:46]SAM_PROTO_SignData [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 01 02 [17:52:46]Write to MH i2c: E2 08 00 20 25 80 0D 01 02 00 00 00 00 BE [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 20 25 00 90 00 B9 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=255 [17:52:46]MH_SAM_APDU [17:52: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7C 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C ED 02 00 35 04 06 00 94 [17:52:46]Write to MH i2c: E2 02 01 21 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7C 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C ED 02 00 35 04 06 00 94 00 00 80 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 21 25 00 90 00 BA [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=10 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 02 02 05 38 2D D1 5A 6E [17:52:46]Write to MH i2c: E2 0D 00 22 25 80 0D 02 02 05 00 38 2D D1 5A 6E 00 00 C9 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 22 25 00 90 00 BB [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 03 02 [17:52:46]Write to MH i2c: E2 08 00 23 25 80 0D 03 02 00 00 00 00 C3 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0B 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0B 00 23 25 00 86 6B 1F 1E 41 FE A4 7A 90 00 4F [17:52:46]RAPDU: 86 6B 1F 1E 41 FE A4 7A 90 00 [17:52:46]wFMCommunicate OK [17:52:46]SAM_PROTO_SignData done [17:52:46]FM_MakeSignedData done [17:52:46]CreateOFDProtocolMessage [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 11 00 00 [17:52:46]Write to MH i2c: E2 08 00 24 25 80 11 00 00 00 00 00 00 C3 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 17 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 17 00 24 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 16 [17:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:52:46]wFMCommunicate OK [17:52:46]CreateOFDProtocolMessage done [17:52:46]OFDSenderStorePacket 191884 [17:52:46]StoreOFDPacket docnum=191884 [17:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 BA 07 01 8C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7C 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C ED 02 00 35 04 06 00 94 38 2D D1 5A 6E 86 6B 1F 1E 41 FE A4 7A [17:52:46]CheckFolder [17:52:46]dirname=/storage/ofd_packets [17:52:46]CheckFolder done [17:52:46]ProducePacketName [17:52:46]name=ofd_packets/00191884 [17:52:46]NVStorageSaveData ofd_packets/00191884 [17:52:46]File name is /storage/ofd_packets/00191884 [17:52:46]Write 301 bytes [17:52:46]NVStorageSaveData done [17:52:46]OFDSenderStorePacket done [17:52:46]KKMCreateOFDPacket done [17:52:46]NVStorageSaveData kkm_last_timestamp [17:52:46]File name is /storage/kkm_last_timestamp [17:52:46]Write 4 bytes [17:52:46]NVStorageSaveData done [17:52:46]ExternCall_PrintAddStr [17:52:46]wPrintStart [17:52:46]Write to MH i2c: 01 00 00 25 25 4A [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 FF 0F 5F [17:52:46]RasterBufferAndPrint [17:52:46]line Счет N : (1)31192 [17:52:46]line ИНН: 02508201610067 [17:52:46]line Контрольно-Кассовый Чек [17:52:46]line ПРОДАЖА [17:52:46]line ТРК (МРК, ГНК) : 21 [17:52:46]line Товар: 2710124130 [17:52:46]line Аи-92-К-5 [17:52:46]line 8.970 * 66.90 [17:52:46]line = 600.09 [17:52:46]line НДС 12% НСП 1% [17:52:46]line > о реализуемом товаре [17:52:46]line ОКРУГЛЕНИЕ: -0.09 [17:52:46]line ИТОГО: 600.00 [17:52:46]line Внесено: 600.00 [17:52:46]line СДАЧА: 0.00 [17:52:46]line НСП 1% : 5.31 [17:52:46]line НДС 12% : 63.73 [17:52:46]line Наличными: 600.00 [17:52:46]line Безнал.: 0.00 [17:52:46]line Место: АЗС № 170 "Партнер Нефть" [17:52:46]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:52:46]line СНО: Общий режим [17:52:46]line Чек 247 26.10.2024 17:53 [17:52:46]line Смена: 541 ФФД: 1.0 [17:52:46]line ЗНМ: 0300000110 [17:52:46]line РНМ: 0000000000091776 [17:52:46]line Версия ККМ: 001 [17:52:46]line ФМ: 0000000000871754 [17:52:46]line ФД: 191884 [17:52:46]line ФПД: 162969007774318 [17:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175300&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191884&fm=162969007774318&tin=02508201610067®Number=0000000000091776&sum=60000 [17:52:46]OFD Sender: Processing packet 191884 [packets to send 75, broken 74] [17:52:46]ProducePacketName [17:52:46]name=ofd_packets/00191884 [17:52:46]OFD Sender: To server: pG, [17:52:46]CommunicateWithHost lk.salyk.kg:30040 [17:52:46]ConnectInit lk.salyk.kg [17:52:46]written 0, free lines is 4095 [17:52:46]Connected sock=8 [17:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 BA 07 01 8C 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 7C 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C ED 02 00 35 04 06 00 94 38 2D D1 5A 6E 86 6B 1F 1E 41 FE A4 7A [17:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E DB 47 00 B9 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8C ED 02 00 F4 03 04 00 47 D1 1C 67 B6 04 01 00 00 E5 DC 12 3B 49 AB 29 F0 [17:52:47]CommunicateWithHost err = 0 [17:52:47]CheckOFDResponse [17:52:47]1017 (14) - 77093643461234 [17:52:47]1041 (16) - 0000000000871754 [17:52:47]1040 (4) - 191884 [17:52:47]1012 (4) - 26.10.2024 11:23 [17:52:47]1206 (1) - 0 [17:52:47]OFD Sender: Remove packet 191884 [17:52:47]ProducePacketName [17:52:47]name=ofd_packets/00191884 [17:52:47]NVStorageDeleteData [17:52:47]Write to MH i2c: 01 00 00 50 25 75 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 07 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 07 00 50 25 00 00 00 00 00 CE 0C 56 [17:52:47]RasterBufferAndPrint [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]written 0, free lines is 3285 [17:52:47]MH_Cut [17:52:47]Write to MH i2c: D1 01 00 57 25 01 4E [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: D1 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: D1 01 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: D1 01 00 57 25 00 4D [17:52:47]Write to MH i2c: 01 00 00 58 25 7D [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]OFD Sender: No OFD packet to send [17:52:48]*** Cut start [17:52:48]*** Partial cut [17:52:48]*** CUTSNS_PIN = 1 [17:52:48]*** CUTSNS_PIN = 0 [17:52:48]*** Brake cut motor [17:52:48]Read from MH i2c: 01 [17:52:48]MH_I2C_Read... [17:52:48]*** Stop cut motor [17:52:48]*** Cut end [17:52:48]Read from MH i2c: 01 07 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: 01 07 00 58 25 00 00 00 00 00 FF 0F 92 [17:52:48]process_action close_receipt done [17:52:48]requested_data is exist [17:52:48]produce_requested_data [17:52:48]requested_item fm.sn is exist - process it [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 11 00 00 [17:52:48]Write to MH i2c: E2 08 00 59 25 80 11 00 00 00 00 00 00 F8 [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 17 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 17 00 59 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4B [17:52:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:52:48]wFMCommunicate OK [17:52:48]requested_item fd.num is exist - process it [17:52:48]SAM_PROTO_GetFieldsCounters [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 13 00 00 [17:52:48]Write to MH i2c: E2 08 00 5A 25 80 13 00 00 00 00 00 00 FB [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 62 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 62 00 5A 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [17:52:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:48]wFMCommunicate OK [17:52:48]SAM_PROTO_GetFieldsCounters done [17:52:48]requested_item shift.num is exist - process it [17:52:48]requested_item shift.opened is exist - process it [17:52:48]req_shift_opened [17:52:48]FM_GetShiftState [17:52:48]SAM_PROTO_GetShiftState [17:52:48]wFMCommunicate request_size=4 [17:52:48]MH_SAM_APDU [17:52:48]CAPDU: 80 13 01 00 [17:52:48]Write to MH i2c: E2 08 00 5B 25 80 13 01 00 00 00 00 00 FD [17:52:48]Write i2c OK [17:52:48]MH_I2C_Read... [17:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:48]Read from MH i2c: E2 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 [17:52:48]MH_I2C_Read... [17:52:48]Read from MH i2c: E2 0E 00 5B 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 76 [17:52:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:52:49]wFMCommunicate OK [17:52:49]SAM_PROTO_GetShiftState done [17:52:49]FM_GetShiftState done [17:52:49]req_shift_opened done [17:52:49]requested_item shift.open_date is exist - process it [17:52:49]req_shift_open_date [17:52:49]req_shift_open_date done [17:52:49]produce_requested_data done [17:52:49]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191884,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:52:49]process_action_free close_receipt [17:52:49]json_value_free [17:52:49]json_value_free done [17:52:49]process_json_proto returns [17:52:49]Send response to host [17:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191884,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:52:49]free response buf [17:52:49]execute_script done [17:52:49]execute_script returns [17:52:49]free content buf [17:52:49]Sock 5.Close socket [17:52:49]Sock 5.Thread stoped [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:26]accept exits with 6 [17:53:26]New connection [17:53:26]New thread 3066817892 created [17:53:26]Thread 3066961252 joined [17:53:26]Waiting for new connection... [17:53:26] Sock 6.Parse request [17:53:26]Sock 6.Check first char [17:53:26]Sock 6.First char is OK [17:53:26]request: POST /json_proto HTTP/1.0 [17:53:26]Method: POST [17:53:26]URL: /json_proto [17:53:26]Method is POST - this is cgi request [17:53:26]url: /json_proto [17:53:26]query_string will be loaded in cgi processing [17:53:26]execute_cgi json_proto POST (null) [17:53:26]execute_cgi path=json_proto method=POST [17:53:26]POST find Content-Length [17:53:26]Host: 172.17.63.131:8080 [17:53:26]Content-Length: 677 [17:53:26]Content-Type: application/json [17:53:26] [17:53:26]POST finish read [17:53:26]Found Content-Length = 677 [17:53:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.650, "sum" : 377.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 377.00, "payments": [ { "type": 0, "sum" : 377.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:26]execute_script... [17: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)31193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.650, "sum" : 377.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 377.00, "payments": [ { "type": 0, "sum" : 377.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:26]POST & json_proto [17:53:26]process_json_proto [17:53:26]json parsed OK: [17:53:26]protocol is kg_v1.0 [17:53:26]action value=close_receipt [17:53:26]process_action close_receipt [17:53:26]cmd_close_receipt [17:53:26]MH_GetDate [17:53:26]Write to MH i2c: F0 00 00 5C 25 70 [17:53:26]Write i2c OK [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: F0 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: F0 09 00 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: F0 09 00 5C 25 00 A6 2C 1D 67 22 05 6E 64 C8 [17:53:26]GetLastDocTimeStamp 1729965180 [17:53:26]current date 1729965222 [17:53:26]FM_GetShiftState [17:53:26]SAM_PROTO_GetShiftState [17:53:26]wFMCommunicate request_size=4 [17:53:26]MH_SAM_APDU [17:53:26]CAPDU: 80 13 01 00 [17:53:26]Write to MH i2c: E2 08 00 5D 25 80 13 01 00 00 00 00 00 FF [17:53:26]Write i2c OK [17:53:26]MH_I2C_Read... [17:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:26]Read from MH i2c: E2 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: E2 0E 00 [17:53:26]MH_I2C_Read... [17:53:26]Read from MH i2c: E2 0E 00 5D 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 78 [17:53:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:53:26]wFMCommunicate OK [17:53:26]SAM_PROTO_GetShiftState done [17:53:26]FM_GetShiftState done [17:53:26]opened in 1729902770 [17:53:26]opened+sec_in_day 1729989170 [17:53:26]quantity*price = 37798 [17:53:26]sum+1 = 37800 [17:53:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 377.00 Внесено: 1000.00 СДАЧА: 623.00 НСП 1% : 3.34 НДС 12% : 40.14 Наличными: 377.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 248 26.10.2024 17:53 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191885 ФПД: 77635740329248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175342&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191885&fm=77635740329248&tin=02508201610067®Number=0000000000091776&sum=37700 [17:53:27]StoreToDocumentArchive [17:53:27]shift 541 fd 191885 [17:53:27]save to /storage/0541/doc_00191885 [17:53:27]save last doc name /storage/0541/doc_00191885 to /storage/kkm_last_doc_name [17:53:27]save OK [17:53:27]Clear old archive folders... [17:53:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:27]tlvbuf is 01B4CD60 [17:53:27]SAM_PROTO_ClearQueue [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 09 00 00 [17:53:27]Write to MH i2c: E2 08 00 6A 25 80 09 00 00 00 00 00 00 01 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 6A 25 00 90 00 03 [17:53:27]RAPDU: 90 00 [17:53:27]wFMCommunicate OK [17:53:27]SAM_PROTO_ClearQueue done [17:53:27]KKMCreateOFDPacket [17:53:27]OFDProtocolAddRootSTLVToBuf [17:53:27]FM_MakeSignedData [17:53:27]FM_MakeSignedData [17:53:27]SAM_PROTO_SignData [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 0D 01 02 [17:53:27]Write to MH i2c: E2 08 00 6B 25 80 0D 01 02 00 00 00 00 09 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 6B 25 00 90 00 04 [17:53:27]RAPDU: 90 00 [17:53:27]wFMCommunicate OK [17:53:27]wFMCommunicate request_size=255 [17:53:27]MH_SAM_APDU [17:53: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 12 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 44 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 A6 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D ED 02 00 35 04 06 00 46 [17:53:27]Write to MH i2c: E2 02 01 6C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 44 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 A6 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D ED 02 00 35 04 06 00 46 00 00 9F [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]OFD Sender: No OFD packet to send [17:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 6C 25 00 90 00 05 [17:53:27]RAPDU: 90 00 [17:53:27]wFMCommunicate OK [17:53:27]wFMCommunicate request_size=10 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 0D 02 02 05 9B FA B9 65 20 [17:53:27]Write to MH i2c: E2 0D 00 6D 25 80 0D 02 02 05 00 9B FA B9 65 20 00 00 E9 [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 03 00 6D 25 00 90 00 06 [17:53:27]RAPDU: 90 00 [17:53:27]wFMCommunicate OK [17:53:27]wFMCommunicate request_size=4 [17:53:27]MH_SAM_APDU [17:53:27]CAPDU: 80 0D 03 02 [17:53:27]Write to MH i2c: E2 08 00 6E 25 80 0D 03 02 00 00 00 00 0E [17:53:27]Write i2c OK [17:53:27]MH_I2C_Read... [17:53:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:27]Read from MH i2c: E2 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 0B 00 [17:53:27]MH_I2C_Read... [17:53:27]Read from MH i2c: E2 0B 00 6E 25 00 AA 42 DB 0F 13 B2 31 87 90 00 62 [17:53:27]RAPDU: AA 42 DB 0F 13 B2 31 87 90 00 [17:53:27]wFMCommunicate OK [17:53:27]SAM_PROTO_SignData done [17:53:28]FM_MakeSignedData done [17:53:28]CreateOFDProtocolMessage [17:53:28]wFMCommunicate request_size=4 [17:53:28]MH_SAM_APDU [17:53:28]CAPDU: 80 11 00 00 [17:53:28]Write to MH i2c: E2 08 00 6F 25 80 11 00 00 00 00 00 00 0E [17:53:28]Write i2c OK [17:53:28]MH_I2C_Read... [17:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:28]Read from MH i2c: E2 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: E2 17 00 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: E2 17 00 6F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 61 [17:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:28]wFMCommunicate OK [17:53:28]CreateOFDProtocolMessage done [17:53:28]OFDSenderStorePacket 191885 [17:53:28]StoreOFDPacket docnum=191885 [17:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 13 1D 07 01 7E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 44 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 A6 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D ED 02 00 35 04 06 00 46 9B FA B9 65 20 AA 42 DB 0F 13 B2 31 87 [17:53:28]CheckFolder [17:53:28]dirname=/storage/ofd_packets [17:53:28]CheckFolder done [17:53:28]ProducePacketName [17:53:28]name=ofd_packets/00191885 [17:53:28]NVStorageSaveData ofd_packets/00191885 [17:53:28]File name is /storage/ofd_packets/00191885 [17:53:28]Write 301 bytes [17:53:28]NVStorageSaveData done [17:53:28]OFDSenderStorePacket done [17:53:28]KKMCreateOFDPacket done [17:53:28]NVStorageSaveData kkm_last_timestamp [17:53:28]File name is /storage/kkm_last_timestamp [17:53:28]Write 4 bytes [17:53:28]NVStorageSaveData done [17:53:28]ExternCall_PrintAddStr [17:53:28]wPrintStart [17:53:28]Write to MH i2c: 01 00 00 70 25 95 [17:53:28]Write i2c OK [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 07 00 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 07 00 70 25 00 00 00 00 00 FF 0F AA [17:53:28]RasterBufferAndPrint [17:53:28]line Счет N : (1)31193 [17:53:28]line ИНН: 02508201610067 [17:53:28]line Контрольно-Кассовый Чек [17:53:28]line ПРОДАЖА [17:53:28]line ТРК (МРК, ГНК) : 12 [17:53:28]line Товар: 2710124130 [17:53:28]line Аи-92-К-5 [17:53:28]line 5.650 * 66.90 [17:53:28]line = 377.99 [17:53:28]line НДС 12% НСП 1% [17:53:28]line > о реализуемом товаре [17:53:28]line ОКРУГЛЕНИЕ: -0.99 [17:53:28]line ИТОГО: 377.00 [17:53:28]line Внесено: 1000.00 [17:53:28]line СДАЧА: 623.00 [17:53:28]line НСП 1% : 3.34 [17:53:28]line НДС 12% : 40.14 [17:53:28]line Наличными: 377.00 [17:53:28]line Безнал.: 0.00 [17:53:28]line Место: АЗС № 170 "Партнер Нефть" [17:53:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:53:28]line СНО: Общий режим [17:53:28]line Чек 248 26.10.2024 17:53 [17:53:28]line Смена: 541 ФФД: 1.0 [17:53:28]line ЗНМ: 0300000110 [17:53:28]line РНМ: 0000000000091776 [17:53:28]line Версия ККМ: 001 [17:53:28]line ФМ: 0000000000871754 [17:53:28]line ФД: 191885 [17:53:28]line ФПД: 77635740329248 [17:53:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175342&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191885&fm=77635740329248&tin=02508201610067®Number=0000000000091776&sum=37700 [17:53:28]OFD Sender: Processing packet 191885 [packets to send 75, broken 74] [17:53:28]ProducePacketName [17:53:28]name=ofd_packets/00191885 [17:53:28]OFD Sender: To server: pG, [17:53:28]CommunicateWithHost lk.salyk.kg:30040 [17:53:28]ConnectInit lk.salyk.kg [17:53:28]written 0, free lines is 4095 [17:53:28]Connected sock=8 [17: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 31 37 35 34 0F 01 00 00 13 1D 07 01 7E F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 44 93 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 A6 2C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D ED 02 00 35 04 06 00 46 9B FA B9 65 20 AA 42 DB 0F 13 B2 31 87 [17:53:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 58 0A 47 00 4B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8D ED 02 00 F4 03 04 00 70 D1 1C 67 B6 04 01 00 00 EC 0B 11 53 35 31 54 F3 [17:53:28]CommunicateWithHost err = 0 [17:53:28]CheckOFDResponse [17:53:28]1017 (14) - 77093643461234 [17:53:28]1041 (16) - 0000000000871754 [17:53:28]1040 (4) - 191885 [17:53:28]1012 (4) - 26.10.2024 11:24 [17:53:28]1206 (1) - 0 [17:53:28]OFD Sender: Remove packet 191885 [17:53:28]ProducePacketName [17:53:28]name=ofd_packets/00191885 [17:53:28]NVStorageDeleteData [17:53:28]Write to MH i2c: 01 00 00 9B 25 C0 [17:53:28]Write i2c OK [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 07 00 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: 01 07 00 9B 25 00 00 00 00 00 BE 0C 91 [17:53:28]RasterBufferAndPrint [17:53:28]line [17:53:28]line [17:53:28]line [17:53:28]line [17:53:28]line [17:53:28]written 0, free lines is 3268 [17:53:28]MH_Cut [17:53:28]Write to MH i2c: D1 01 00 A2 25 01 99 [17:53:28]Write i2c OK [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: D1 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: D1 01 00 [17:53:28]MH_I2C_Read... [17:53:28]Read from MH i2c: D1 01 00 A2 25 00 98 [17:53:28]Write to MH i2c: 01 00 00 A3 25 C8 [17:53:28]Write i2c OK [17:53:28]MH_I2C_Read... [17:53:29]OFD Sender: No OFD packet to send [17:53:29]*** Cut start [17:53:29]*** Partial cut [17:53:29]*** CUTSNS_PIN = 1 [17:53:29]*** CUTSNS_PIN = 0 [17:53:29]*** Brake cut motor [17:53:30]Read from MH i2c: 01 [17:53:30]MH_I2C_Read... [17:53:30]*** Stop cut motor [17:53:30]*** Cut end [17:53:30]Read from MH i2c: 01 07 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: 01 07 00 A3 25 00 00 00 00 00 FF 0F DD [17:53:30]process_action close_receipt done [17:53:30]requested_data is exist [17:53:30]produce_requested_data [17:53:30]requested_item fm.sn is exist - process it [17:53:30]wFMCommunicate request_size=4 [17:53:30]MH_SAM_APDU [17:53:30]CAPDU: 80 11 00 00 [17:53:30]Write to MH i2c: E2 08 00 A4 25 80 11 00 00 00 00 00 00 43 [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:30]Read from MH i2c: E2 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 17 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 17 00 A4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 96 [17:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:53:30]wFMCommunicate OK [17:53:30]requested_item fd.num is exist - process it [17:53:30]SAM_PROTO_GetFieldsCounters [17:53:30]wFMCommunicate request_size=4 [17:53:30]MH_SAM_APDU [17:53:30]CAPDU: 80 13 00 00 [17:53:30]Write to MH i2c: E2 08 00 A5 25 80 13 00 00 00 00 00 00 46 [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:30]Read from MH i2c: E2 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 62 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 62 00 A5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:30]wFMCommunicate OK [17:53:30]SAM_PROTO_GetFieldsCounters done [17:53:30]requested_item shift.num is exist - process it [17:53:30]requested_item shift.opened is exist - process it [17:53:30]req_shift_opened [17:53:30]FM_GetShiftState [17:53:30]SAM_PROTO_GetShiftState [17:53:30]wFMCommunicate request_size=4 [17:53:30]MH_SAM_APDU [17:53:30]CAPDU: 80 13 01 00 [17:53:30]Write to MH i2c: E2 08 00 A6 25 80 13 01 00 00 00 00 00 48 [17:53:30]Write i2c OK [17:53:30]MH_I2C_Read... [17:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:30]Read from MH i2c: E2 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 [17:53:30]MH_I2C_Read... [17:53:30]Read from MH i2c: E2 0E 00 A6 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C1 [17:53:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:53:30]wFMCommunicate OK [17:53:30]SAM_PROTO_GetShiftState done [17:53:30]FM_GetShiftState done [17:53:30]req_shift_opened done [17:53:30]requested_item shift.open_date is exist - process it [17:53:30]req_shift_open_date [17:53:30]req_shift_open_date done [17:53:30]produce_requested_data done [17:53:30]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191885,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:53:30]process_action_free close_receipt [17:53:30]json_value_free [17:53:30]json_value_free done [17:53:30]process_json_proto returns [17:53:30]Send response to host [17:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191885,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:53:30]free response buf [17:53:30]execute_script done [17:53:30]execute_script returns [17:53:30]free content buf [17:53:30]Sock 6.Close socket [17:53:30]Sock 6.Thread stoped [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:17]accept exits with 5 [17:56:17]New connection [17:56:17]New thread 3066961252 created [17:56:17]Thread 3066817892 joined [17:56:17]Waiting for new connection... [17:56:17] Sock 5.Parse request [17:56:17]Sock 5.Check first char [17:56:17]Sock 5.First char is OK [17:56:17]request: POST /json_proto HTTP/1.0 [17:56:17]Method: POST [17:56:17]URL: /json_proto [17:56:17]Method is POST - this is cgi request [17:56:17]url: /json_proto [17:56:17]query_string will be loaded in cgi processing [17:56:17]execute_cgi json_proto POST (null) [17:56:17]execute_cgi path=json_proto method=POST [17:56:17]POST find Content-Length [17:56:17]Host: 172.17.63.131:8080 [17:56:17]Content-Length: 983 [17:56:17]Content-Type: application/json [17:56:17] [17:56:17]POST finish read [17:56:17]Found Content-Length = 983 [17:56:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:17]execute_script... [17:56: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)31194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:17]POST & json_proto [17:56:17]process_json_proto [17:56:17]json parsed OK: [17:56:17]protocol is kg_v1.0 [17:56:17]action value=close_receipt [17:56:17]process_action close_receipt [17:56:17]cmd_close_receipt [17:56:17]MH_GetDate [17:56:17]Write to MH i2c: F0 00 00 A7 25 BB [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 09 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: F0 09 00 A7 25 00 51 2D 1D 67 22 05 6E 64 BF [17:56:17]GetLastDocTimeStamp 1729965222 [17:56:17]current date 1729965393 [17:56:17]FM_GetShiftState [17:56:17]SAM_PROTO_GetShiftState [17:56:17]wFMCommunicate request_size=4 [17:56:17]MH_SAM_APDU [17:56:17]CAPDU: 80 13 01 00 [17:56:17]Write to MH i2c: E2 08 00 A8 25 80 13 01 00 00 00 00 00 4A [17:56:17]Write i2c OK [17:56:17]MH_I2C_Read... [17:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:17]Read from MH i2c: E2 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0E 00 [17:56:17]MH_I2C_Read... [17:56:17]Read from MH i2c: E2 0E 00 A8 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C3 [17:56:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:56:17]wFMCommunicate OK [17:56:17]SAM_PROTO_GetShiftState done [17:56:17]FM_GetShiftState done [17:56:17]opened in 1729902770 [17:56:17]opened+sec_in_day 1729989170 [17:56:17]quantity*price = 150054 [17:56:17]sum+1 = 150055 [17:56:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 249 26.10.2024 17:56 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 22.77 сом ФМ: 0000000000871754 ФД: 191886 ФПД: 197570728214835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175633&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191886&fm=197570728214835&tin=02508201610067®Number=0000000000091776&sum=150000 [17:56:19]StoreToDocumentArchive [17:56:19]shift 541 fd 191886 [17:56:19]save to /storage/0541/doc_00191886 [17:56:19]save last doc name /storage/0541/doc_00191886 to /storage/kkm_last_doc_name [17:56:19]save OK [17:56:19]Clear old archive folders... [17:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:19]tlvbuf is 01B3AF50 [17:56:19]SAM_PROTO_ClearQueue [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 09 00 00 [17:56:19]Write to MH i2c: E2 08 00 B5 25 80 09 00 00 00 00 00 00 4C [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 B5 25 00 90 00 4E [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]SAM_PROTO_ClearQueue done [17:56:19]KKMCreateOFDPacket [17:56:19]OFDProtocolAddRootSTLVToBuf [17:56:19]FM_MakeSignedData [17:56:19]FM_MakeSignedData [17:56:19]SAM_PROTO_SignData [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 01 02 [17:56:19]Write to MH i2c: E2 08 00 B6 25 80 0D 01 02 00 00 00 00 54 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 B6 25 00 90 00 4F [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=255 [17:56:19]MH_SAM_APDU [17:56: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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 51 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E ED 02 00 35 04 06 00 B3 [17:56:19]Write to MH i2c: E2 02 01 B7 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 51 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E ED 02 00 35 04 06 00 B3 00 00 68 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]OFD Sender: No OFD packet to send [17:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 B7 25 00 90 00 50 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=10 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 02 02 05 B0 85 12 C1 33 [17:56:19]Write to MH i2c: E2 0D 00 B8 25 80 0D 02 02 05 00 B0 85 12 C1 33 00 00 9C [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 03 00 B8 25 00 90 00 51 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 03 02 [17:56:19]Write to MH i2c: E2 08 00 B9 25 80 0D 03 02 00 00 00 00 59 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 0B 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 0B 00 B9 25 00 BE 13 17 9C 6C 77 ED F3 90 00 A1 [17:56:19]RAPDU: BE 13 17 9C 6C 77 ED F3 90 00 [17:56:19]wFMCommunicate OK [17:56:19]SAM_PROTO_SignData done [17:56:19]FM_MakeSignedData done [17:56:19]CreateOFDProtocolMessage [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 11 00 00 [17:56:19]Write to MH i2c: E2 08 00 BA 25 80 11 00 00 00 00 00 00 59 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:19]Read from MH i2c: E2 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 17 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: E2 17 00 BA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AC [17:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:56:19]wFMCommunicate OK [17:56:19]CreateOFDProtocolMessage done [17:56:19]OFDSenderStorePacket 191886 [17:56:19]StoreOFDPacket docnum=191886 [17:56:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA D0 07 01 43 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 51 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E ED 02 00 35 04 06 00 B3 B0 85 12 C1 33 BE 13 17 9C 6C 77 ED F3 [17:56:19]CheckFolder [17:56:19]dirname=/storage/ofd_packets [17:56:19]CheckFolder done [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00191886 [17:56:19]NVStorageSaveData ofd_packets/00191886 [17:56:19]File name is /storage/ofd_packets/00191886 [17:56:19]Write 301 bytes [17:56:19]NVStorageSaveData done [17:56:19]OFDSenderStorePacket done [17:56:19]KKMCreateOFDPacket done [17:56:19]NVStorageSaveData kkm_last_timestamp [17:56:19]File name is /storage/kkm_last_timestamp [17:56:19]Write 4 bytes [17:56:19]NVStorageSaveData done [17:56:19]ExternCall_PrintAddStr [17:56:19]wPrintStart [17:56:19]Write to MH i2c: 01 00 00 BB 25 E0 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 [17:56:19]MH_I2C_Read... [17:56:19]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 FF 0F F5 [17:56:19]RasterBufferAndPrint [17:56:19]line Счет N : (1)31194 [17:56:19]line ИНН: 02508201610067 [17:56:19]line Контрольно-Кассовый Чек [17:56:19]line ПРОДАЖА [17:56:19]line ТРК (МРК, ГНК) : 12 [17:56:19]line Товар: 2710124130 [17:56:19]line Аи-92-К-5 [17:56:19]line 22.770 * 65.90 [17:56:19]line = 1500.54 [17:56:19]line НДС 12% НСП 1% [17:56:19]line > о реализуемом товаре [17:56:19]line ОКРУГЛЕНИЕ: -0.54 [17:56:19]line ИТОГО: 1500.00 [17:56:19]line Внесено: 1500.00 [17:56:19]line СДАЧА: 0.00 [17:56:19]line НСП 1% : 13.28 [17:56:19]line НДС 12% : 159.35 [17:56:19]line Наличными: 1500.00 [17:56:19]line Безнал.: 0.00 [17:56:19]line Место: АЗС № 170 "Партнер Нефть" [17:56:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:56:19]line СНО: Общий режим [17:56:19]line Чек 249 26.10.2024 17:56 [17:56:19]line Смена: 541 ФФД: 1.0 [17:56:19]line ЗНМ: 0300000110 [17:56:19]line РНМ: 0000000000091776 [17:56:19]line Версия ККМ: 001 [17:56:19]line [17:56:19]line Дисконтная программа [17:56:19]line АИ-92 [17:56:19]line номер 170 [17:56:19]line сэкономлено 22.77 сом [17:56:19]line ФМ: 0000000000871754 [17:56:19]line ФД: 191886 [17:56:19]line ФПД: 197570728214835 [17:56:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175633&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191886&fm=197570728214835&tin=02508201610067®Number=0000000000091776&sum=150000 [17:56:19]OFD Sender: Processing packet 191886 [packets to send 75, broken 74] [17:56:19]ProducePacketName [17:56:19]name=ofd_packets/00191886 [17:56:19]OFD Sender: To server: pG, [17:56:19]CommunicateWithHost lk.salyk.kg:30040 [17:56:19]ConnectInit lk.salyk.kg [17:56:19]written 0, free lines is 4095 [17:56:20]Connected sock=8 [17:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FA D0 07 01 43 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 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 51 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E ED 02 00 35 04 06 00 B3 B0 85 12 C1 33 BE 13 17 9C 6C 77 ED F3 [17:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 05 DC 47 00 05 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8E ED 02 00 F4 03 04 00 1C D2 1C 67 B6 04 01 00 00 16 43 A7 D6 AF BE 23 17 [17:56:20]CommunicateWithHost err = 0 [17:56:20]CheckOFDResponse [17:56:20]1017 (14) - 77093643461234 [17:56:20]1041 (16) - 0000000000871754 [17:56:20]1040 (4) - 191886 [17:56:20]1012 (4) - 26.10.2024 11:27 [17:56:20]1206 (1) - 0 [17:56:20]OFD Sender: Remove packet 191886 [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00191886 [17:56:20]NVStorageDeleteData [17:56:20]Write to MH i2c: 01 00 00 EB 25 10 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 68 0C 8B [17:56:20]RasterBufferAndPrint [17:56:20]line [17:56:20]line [17:56:20]line [17:56:20]line [17:56:20]line [17:56:20]written 0, free lines is 3186 [17:56:20]MH_Cut [17:56:20]Write to MH i2c: D1 01 00 F2 25 01 E9 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: D1 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: D1 01 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: D1 01 00 F2 25 00 E8 [17:56:20]Write to MH i2c: 01 00 00 F3 25 18 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]OFD Sender: No OFD packet to send [17:56:21]*** Cut start [17:56:21]*** Partial cut [17:56:21]*** CUTSNS_PIN = 1 [17:56:21]*** CUTSNS_PIN = 0 [17:56:21]*** Brake cut motor [17:56:21]Read from MH i2c: 01 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 07 00 [17:56:21]MH_I2C_Read... [17:56:21]*** Stop cut motor [17:56:21]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 FF 0F 2D [17:56:21]process_action close_receipt done [17:56:21]requested_data is exist [17:56:21]produce_requested_data [17:56:21]requested_item fm.sn is exist - process it [17:56:21]wFMCommunicate request_size=4 [17:56:21]MH_SAM_APDU [17:56:21]CAPDU: 80 11 00 00 [17:56:21]Write to MH i2c: E2 08 00 F4 25 80 11 00 00 00 00 00 00 93 [17:56:21]*** Cut end [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 F4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E6 [17:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:56:22]wFMCommunicate OK [17:56:22]requested_item fd.num is exist - process it [17:56:22]SAM_PROTO_GetFieldsCounters [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 13 00 00 [17:56:22]Write to MH i2c: E2 08 00 F5 25 80 13 00 00 00 00 00 00 96 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 62 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 62 00 F5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:22]wFMCommunicate OK [17:56:22]SAM_PROTO_GetFieldsCounters done [17:56:22]requested_item shift.num is exist - process it [17:56:22]requested_item shift.opened is exist - process it [17:56:22]req_shift_opened [17:56:22]FM_GetShiftState [17:56:22]SAM_PROTO_GetShiftState [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 13 01 00 [17:56:22]Write to MH i2c: E2 08 00 F6 25 80 13 01 00 00 00 00 00 98 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 0E 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 0E 00 F6 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 11 [17:56:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:56:22]wFMCommunicate OK [17:56:22]SAM_PROTO_GetShiftState done [17:56:22]FM_GetShiftState done [17:56:22]req_shift_opened done [17:56:22]requested_item shift.open_date is exist - process it [17:56:22]req_shift_open_date [17:56:22]req_shift_open_date done [17:56:22]produce_requested_data done [17:56:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191886,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:56:22]process_action_free close_receipt [17:56:22]json_value_free [17:56:22]json_value_free done [17:56:22]process_json_proto returns [17:56:22]Send response to host [17:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191886,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:56:22]free response buf [17:56:22]execute_script done [17:56:22]execute_script returns [17:56:22]free content buf [17:56:22]Sock 5.Close socket [17:56:22]Sock 5.Thread stoped [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:29]accept exits with 6 [17:58:29]New connection [17:58:29]New thread 3066817892 created [17:58:29]Thread 3066961252 joined [17:58:29]Waiting for new connection... [17:58:29] Sock 6.Parse request [17:58:29]Sock 6.Check first char [17:58:29]Sock 6.First char is OK [17:58:29]request: POST /json_proto HTTP/1.0 [17:58:29]Method: POST [17:58:29]URL: /json_proto [17:58:29]Method is POST - this is cgi request [17:58:29]url: /json_proto [17:58:29]query_string will be loaded in cgi processing [17:58:29]execute_cgi json_proto POST (null) [17:58:29]execute_cgi path=json_proto method=POST [17:58:29]POST find Content-Length [17:58:29]Host: 172.17.63.131:8080 [17:58:29]Content-Length: 678 [17:58:29]Content-Type: application/json [17:58:29] [17:58:29]POST finish read [17:58:29]Found Content-Length = 678 [17:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31196", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:29]execute_script... [17:58:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31196", "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" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:29]POST & json_proto [17:58:29]process_json_proto [17:58:29]json parsed OK: [17:58:29]protocol is kg_v1.0 [17:58:29]action value=close_receipt [17:58:29]process_action close_receipt [17:58:29]cmd_close_receipt [17:58:29]MH_GetDate [17:58:29]Write to MH i2c: F0 00 00 F7 25 0B [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: F0 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: F0 09 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: F0 09 00 F7 25 00 D5 2D 1D 67 22 05 6E 64 93 [17:58:29]GetLastDocTimeStamp 1729965393 [17:58:29]current date 1729965525 [17:58:29]FM_GetShiftState [17:58:29]SAM_PROTO_GetShiftState [17:58:29]wFMCommunicate request_size=4 [17:58:29]MH_SAM_APDU [17:58:29]CAPDU: 80 13 01 00 [17:58:29]Write to MH i2c: E2 08 00 F8 25 80 13 01 00 00 00 00 00 9A [17:58:29]Write i2c OK [17:58:29]MH_I2C_Read... [17:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:29]Read from MH i2c: E2 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0E 00 [17:58:29]MH_I2C_Read... [17:58:29]Read from MH i2c: E2 0E 00 F8 25 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 13 [17:58:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:58:29]wFMCommunicate OK [17:58:29]SAM_PROTO_GetShiftState done [17:58:29]FM_GetShiftState done [17:58:29]opened in 1729902770 [17:58:29]opened+sec_in_day 1729989170 [17:58:29]quantity*price = 150037 [17:58:29]sum+1 = 150039 [17:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 250 26.10.2024 17:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191887 ФПД: 215776541719470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191887&fm=215776541719470&tin=02508201610067®Number=0000000000091776&sum=150000 [17:58:30]StoreToDocumentArchive [17:58:30]shift 541 fd 191887 [17:58:30]save to /storage/0541/doc_00191887 [17:58:30]save last doc name /storage/0541/doc_00191887 to /storage/kkm_last_doc_name [17:58:30]save OK [17:58:30]Clear old archive folders... [17:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:30]tlvbuf is 0185FDC0 [17:58:30]SAM_PROTO_ClearQueue [17:58:30]wFMCommunicate request_size=4 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 09 00 00 [17:58:30]Write to MH i2c: E2 08 00 05 26 80 09 00 00 00 00 00 00 9D [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [17:58:30]RAPDU: 90 00 [17:58:30]wFMCommunicate OK [17:58:30]SAM_PROTO_ClearQueue done [17:58:30]KKMCreateOFDPacket [17:58:30]OFDProtocolAddRootSTLVToBuf [17:58:30]FM_MakeSignedData [17:58:30]FM_MakeSignedData [17:58:30]SAM_PROTO_SignData [17:58:30]wFMCommunicate request_size=4 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 0D 01 02 [17:58:30]Write to MH i2c: E2 08 00 06 26 80 0D 01 02 00 00 00 00 A5 [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [17:58:30]RAPDU: 90 00 [17:58:30]wFMCommunicate OK [17:58:30]wFMCommunicate request_size=255 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 D5 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F ED 02 00 35 04 06 00 C4 3F 64 1E [17:58:30]Write to MH i2c: E2 02 01 07 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 D5 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F ED 02 00 35 04 06 00 C4 3F 64 1E 00 00 48 [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [17:58:30]RAPDU: 90 00 [17:58:30]wFMCommunicate OK [17:58:30]wFMCommunicate request_size=7 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 0D 02 02 02 BB AE [17:58:30]Write to MH i2c: E2 0A 00 08 26 80 0D 02 02 02 00 BB AE 00 00 15 [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [17:58:30]RAPDU: 90 00 [17:58:30]wFMCommunicate OK [17:58:30]wFMCommunicate request_size=4 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 0D 03 02 [17:58:30]Write to MH i2c: E2 08 00 09 26 80 0D 03 02 00 00 00 00 AA [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:30]Read from MH i2c: E2 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 0B 00 [17:58:30]MH_I2C_Read... [17:58:30]Read from MH i2c: E2 0B 00 09 26 00 BF FC A8 E9 07 05 CA 3E 90 00 0B [17:58:30]RAPDU: BF FC A8 E9 07 05 CA 3E 90 00 [17:58:30]wFMCommunicate OK [17:58:30]SAM_PROTO_SignData done [17:58:30]FM_MakeSignedData done [17:58:30]CreateOFDProtocolMessage [17:58:30]wFMCommunicate request_size=4 [17:58:30]MH_SAM_APDU [17:58:30]CAPDU: 80 11 00 00 [17:58:30]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [17:58:30]Write i2c OK [17:58:30]MH_I2C_Read... [17:58:31]OFD Sender: No OFD packet to send [17:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:31]Read from MH i2c: E2 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 17 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FD [17:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:31]wFMCommunicate OK [17:58:31]CreateOFDProtocolMessage done [17:58:31]OFDSenderStorePacket 191887 [17:58:31]StoreOFDPacket docnum=191887 [17:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 F2 04 01 CA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 D5 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F ED 02 00 35 04 06 00 C4 3F 64 1E BB AE BF FC A8 E9 07 05 CA 3E [17:58:31]CheckFolder [17:58:31]dirname=/storage/ofd_packets [17:58:31]CheckFolder done [17:58:31]ProducePacketName [17:58:31]name=ofd_packets/00191887 [17:58:31]NVStorageSaveData ofd_packets/00191887 [17:58:31]File name is /storage/ofd_packets/00191887 [17:58:31]Write 298 bytes [17:58:31]NVStorageSaveData done [17:58:31]OFDSenderStorePacket done [17:58:31]KKMCreateOFDPacket done [17:58:31]NVStorageSaveData kkm_last_timestamp [17:58:31]File name is /storage/kkm_last_timestamp [17:58:31]Write 4 bytes [17:58:31]NVStorageSaveData done [17:58:31]ExternCall_PrintAddStr [17:58:31]wPrintStart [17:58:31]Write to MH i2c: 01 00 00 0B 26 31 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 07 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 07 00 0B 26 00 00 00 00 00 FF 0F 46 [17:58:31]RasterBufferAndPrint [17:58:31]line Счет N : (1)31196 [17:58:31]line ИНН: 02508201610067 [17:58:31]line Контрольно-Кассовый Чек [17:58:31]line ПРОДАЖА [17:58:31]line ТРК (МРК, ГНК) : 22 [17:58:31]line Товар: 2710194210 [17:58:31]line ДТ-К-5 [17:58:31]line 19.690 * 76.20 [17:58:31]line = 1500.38 [17:58:31]line НДС 12% НСП 1% [17:58:31]line > о реализуемом товаре [17:58:31]line ОКРУГЛЕНИЕ: -0.38 [17:58:31]line ИТОГО: 1500.00 [17:58:31]line Внесено: 1500.00 [17:58:31]line СДАЧА: 0.00 [17:58:31]line НСП 1% : 13.28 [17:58:31]line НДС 12% : 159.33 [17:58:31]line Наличными: 1500.00 [17:58:31]line Безнал.: 0.00 [17:58:31]line Место: АЗС № 170 "Партнер Нефть" [17:58:31]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:58:31]line СНО: Общий режим [17:58:31]line Чек 250 26.10.2024 17:58 [17:58:31]line Смена: 541 ФФД: 1.0 [17:58:31]line ЗНМ: 0300000110 [17:58:31]line РНМ: 0000000000091776 [17:58:31]line Версия ККМ: 001 [17:58:31]line ФМ: 0000000000871754 [17:58:31]line ФД: 191887 [17:58:31]line ФПД: 215776541719470 [17:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175845&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191887&fm=215776541719470&tin=02508201610067®Number=0000000000091776&sum=150000 [17:58:31]OFD Sender: Processing packet 191887 [packets to send 75, broken 74] [17:58:31]ProducePacketName [17:58:31]name=ofd_packets/00191887 [17:58:31]OFD Sender: To server: pG, [17:58:31]CommunicateWithHost lk.salyk.kg:30040 [17:58:31]ConnectInit lk.salyk.kg [17:58:31]written 0, free lines is 4095 [17:58:31]Connected sock=8 [17:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 17 F2 04 01 CA 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 D5 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F ED 02 00 35 04 06 00 C4 3F 64 1E BB AE BF FC A8 E9 07 05 CA 3E [17:58:31]Write to MH i2c: 01 00 00 36 26 5C [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 07 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: 01 07 00 36 26 00 00 00 00 00 B5 0C 24 [17:58:31]RasterBufferAndPrint [17:58:31]line [17:58:31]line [17:58:31]line [17:58:31]line [17:58:31]line [17:58:31]written 0, free lines is 3258 [17:58:31]MH_Cut [17:58:31]Write to MH i2c: D1 01 00 3D 26 01 35 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: D1 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: D1 01 00 [17:58:31]MH_I2C_Read... [17:58:31]Read from MH i2c: D1 01 00 3D 26 00 34 [17:58:31]Write to MH i2c: 01 00 00 3E 26 64 [17:58:31]Write i2c OK [17:58:31]MH_I2C_Read... [17:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AA 6D 47 00 AF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 8F ED 02 00 F4 03 04 00 9F D2 1C 67 B6 04 01 00 00 75 A3 44 97 CE 78 BA 0B [17:58:31]CommunicateWithHost err = 0 [17:58:31]CheckOFDResponse [17:58:31]1017 (14) - 77093643461234 [17:58:31]1041 (16) - 0000000000871754 [17:58:31]1040 (4) - 191887 [17:58:31]1012 (4) - 26.10.2024 11:29 [17:58:31]1206 (1) - 0 [17:58:31]OFD Sender: Remove packet 191887 [17:58:31]ProducePacketName [17:58:31]name=ofd_packets/00191887 [17:58:31]NVStorageDeleteData [17:58:32]OFD Sender: No OFD packet to send [17:58:32]*** Cut start [17:58:32]*** Partial cut [17:58:32]*** CUTSNS_PIN = 1 [17:58:32]*** CUTSNS_PIN = 0 [17:58:32]*** Brake cut motor [17:58:33]Read from MH i2c: 01 [17:58:33]MH_I2C_Read... [17:58:33]*** Stop cut motor [17:58:33]*** Cut end [17:58:33]Read from MH i2c: 01 07 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: 01 07 00 3E 26 00 00 00 00 00 FF 0F 79 [17:58:33]process_action close_receipt done [17:58:33]requested_data is exist [17:58:33]produce_requested_data [17:58:33]requested_item fm.sn is exist - process it [17:58:33]wFMCommunicate request_size=4 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 11 00 00 [17:58:33]Write to MH i2c: E2 08 00 3F 26 80 11 00 00 00 00 00 00 DF [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 17 00 3F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 32 [17:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:33]wFMCommunicate OK [17:58:33]requested_item fd.num is exist - process it [17:58:33]SAM_PROTO_GetFieldsCounters [17:58:33]wFMCommunicate request_size=4 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 13 00 00 [17:58:33]Write to MH i2c: E2 08 00 40 26 80 13 00 00 00 00 00 00 E2 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 62 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 62 00 40 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [17:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 8F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:33]wFMCommunicate OK [17:58:33]SAM_PROTO_GetFieldsCounters done [17:58:33]requested_item shift.num is exist - process it [17:58:33]requested_item shift.opened is exist - process it [17:58:33]req_shift_opened [17:58:33]FM_GetShiftState [17:58:33]SAM_PROTO_GetShiftState [17:58:33]wFMCommunicate request_size=4 [17:58:33]MH_SAM_APDU [17:58:33]CAPDU: 80 13 01 00 [17:58:33]Write to MH i2c: E2 08 00 41 26 80 13 01 00 00 00 00 00 E4 [17:58:33]Write i2c OK [17:58:33]MH_I2C_Read... [17:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:33]Read from MH i2c: E2 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 0E 00 [17:58:33]MH_I2C_Read... [17:58:33]Read from MH i2c: E2 0E 00 41 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5D [17:58:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:58:33]wFMCommunicate OK [17:58:33]SAM_PROTO_GetShiftState done [17:58:33]FM_GetShiftState done [17:58:33]req_shift_opened done [17:58:33]requested_item shift.open_date is exist - process it [17:58:33]req_shift_open_date [17:58:33]req_shift_open_date done [17:58:33]produce_requested_data done [17:58:33]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191887,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:58:33]process_action_free close_receipt [17:58:33]json_value_free [17:58:33]json_value_free done [17:58:33]process_json_proto returns [17:58:33]Send response to host [17:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191887,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:58:33]free response buf [17:58:33]execute_script done [17:58:33]execute_script returns [17:58:33]free content buf [17:58:33]Sock 6.Close socket [17:58:33]Sock 6.Thread stoped [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:53]accept exits with 5 [17:58:53]New connection [17:58:53]New thread 3066961252 created [17:58:53]Thread 3066817892 joined [17:58:53]Waiting for new connection... [17:58:53] Sock 5.Parse request [17:58:53]Sock 5.Check first char [17:58:53]Sock 5.First char is OK [17:58:53]request: POST /json_proto HTTP/1.0 [17:58:53]Method: POST [17:58:53]URL: /json_proto [17:58:53]Method is POST - this is cgi request [17:58:53]url: /json_proto [17:58:53]query_string will be loaded in cgi processing [17:58:53]execute_cgi json_proto POST (null) [17:58:53]execute_cgi path=json_proto method=POST [17:58:53]POST find Content-Length [17:58:53]Host: 172.17.63.131:8080 [17:58:53]Content-Length: 865 [17:58:53]Content-Type: application/json [17:58:53] [17:58:53]POST finish read [17:58:53]Found Content-Length = 865 [17:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:53]execute_script... [17:58:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:53]POST & json_proto [17:58:53]process_json_proto [17:58:53]json parsed OK: [17:58:53]protocol is kg_v1.0 [17:58:53]action value=close_receipt [17:58:53]process_action close_receipt [17:58:53]cmd_close_receipt [17:58:53]MH_GetDate [17:58:53]Write to MH i2c: F0 00 00 42 26 57 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: F0 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: F0 09 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: F0 09 00 42 26 00 ED 2D 1D 67 22 05 6E 64 F7 [17:58:53]GetLastDocTimeStamp 1729965525 [17:58:53]current date 1729965549 [17:58:53]FM_GetShiftState [17:58:53]SAM_PROTO_GetShiftState [17:58:53]wFMCommunicate request_size=4 [17:58:53]MH_SAM_APDU [17:58:53]CAPDU: 80 13 01 00 [17:58:53]Write to MH i2c: E2 08 00 43 26 80 13 01 00 00 00 00 00 E6 [17:58:53]Write i2c OK [17:58:53]MH_I2C_Read... [17:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:53]Read from MH i2c: E2 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 0E 00 [17:58:53]MH_I2C_Read... [17:58:53]Read from MH i2c: E2 0E 00 43 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5F [17:58:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:58:53]wFMCommunicate OK [17:58:53]SAM_PROTO_GetShiftState done [17:58:53]FM_GetShiftState done [17:58:53]opened in 1729902770 [17:58:53]opened+sec_in_day 1729989170 [17:58:53]quantity*price = 200031 [17:58:53]sum+1 = 200032 [17:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 251 26.10.2024 17:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191888 ФПД: 220094124071352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191888&fm=220094124071352&tin=02508201610067®Number=0000000000091776&sum=200031 [17:58:54]StoreToDocumentArchive [17:58:54]shift 541 fd 191888 [17:58:54]save to /storage/0541/doc_00191888 [17:58:54]save last doc name /storage/0541/doc_00191888 to /storage/kkm_last_doc_name [17:58:54]save OK [17:58:54]Clear old archive folders... [17:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:54]tlvbuf is 01748D90 [17:58:54]SAM_PROTO_ClearQueue [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 09 00 00 [17:58:54]Write to MH i2c: E2 08 00 50 26 80 09 00 00 00 00 00 00 E8 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 50 26 00 90 00 EA [17:58:54]RAPDU: 90 00 [17:58:54]wFMCommunicate OK [17:58:54]SAM_PROTO_ClearQueue done [17:58:54]KKMCreateOFDPacket [17:58:54]OFDProtocolAddRootSTLVToBuf [17:58:54]FM_MakeSignedData [17:58:54]FM_MakeSignedData [17:58:54]SAM_PROTO_SignData [17:58:54]wFMCommunicate request_size=4 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 0D 01 02 [17:58:54]Write to MH i2c: E2 08 00 51 26 80 0D 01 02 00 00 00 00 F0 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:54]Read from MH i2c: E2 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 [17:58:54]MH_I2C_Read... [17:58:54]Read from MH i2c: E2 03 00 51 26 00 90 00 EB [17:58:54]RAPDU: 90 00 [17:58:54]wFMCommunicate OK [17:58:54]wFMCommunicate request_size=255 [17:58:54]MH_SAM_APDU [17:58:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 ED 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 ED 02 00 35 04 06 00 C8 [17:58:54]Write to MH i2c: E2 02 01 52 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 ED 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 ED 02 00 35 04 06 00 C8 00 00 03 [17:58:54]Write i2c OK [17:58:54]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]wFMCommunicate request_size=10 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 02 02 05 2C A8 15 19 B8 [17:58:55]Write to MH i2c: E2 0D 00 53 26 80 0D 02 02 05 00 2C A8 15 19 B8 00 00 B7 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [17:58:55]RAPDU: 90 00 [17:58:55]wFMCommunicate OK [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 0D 03 02 [17:58:55]Write to MH i2c: E2 08 00 54 26 80 0D 03 02 00 00 00 00 F5 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0B 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 0B 00 54 26 00 C5 6C C7 2D 64 F0 8C E0 90 00 DB [17:58:55]RAPDU: C5 6C C7 2D 64 F0 8C E0 90 00 [17:58:55]wFMCommunicate OK [17:58:55]SAM_PROTO_SignData done [17:58:55]FM_MakeSignedData done [17:58:55]CreateOFDProtocolMessage [17:58:55]wFMCommunicate request_size=4 [17:58:55]MH_SAM_APDU [17:58:55]CAPDU: 80 11 00 00 [17:58:55]Write to MH i2c: E2 08 00 55 26 80 11 00 00 00 00 00 00 F5 [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:55]Read from MH i2c: E2 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 17 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: E2 17 00 55 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 48 [17:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:55]wFMCommunicate OK [17:58:55]CreateOFDProtocolMessage done [17:58:55]OFDSenderStorePacket 191888 [17:58:55]StoreOFDPacket docnum=191888 [17:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E EF 07 01 25 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 ED 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 ED 02 00 35 04 06 00 C8 2C A8 15 19 B8 C5 6C C7 2D 64 F0 8C E0 [17:58:55]CheckFolder [17:58:55]dirname=/storage/ofd_packets [17:58:55]CheckFolder done [17:58:55]ProducePacketName [17:58:55]name=ofd_packets/00191888 [17:58:55]NVStorageSaveData ofd_packets/00191888 [17:58:55]File name is /storage/ofd_packets/00191888 [17:58:55]Write 301 bytes [17:58:55]NVStorageSaveData done [17:58:55]OFDSenderStorePacket done [17:58:55]KKMCreateOFDPacket done [17:58:55]NVStorageSaveData kkm_last_timestamp [17:58:55]File name is /storage/kkm_last_timestamp [17:58:55]Write 4 bytes [17:58:55]NVStorageSaveData done [17:58:55]ExternCall_PrintAddStr [17:58:55]wPrintStart [17:58:55]Write to MH i2c: 01 00 00 56 26 7C [17:58:55]Write i2c OK [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 [17:58:55]MH_I2C_Read... [17:58:55]Read from MH i2c: 01 07 00 56 26 00 00 00 00 00 FF 0F 91 [17:58:55]RasterBufferAndPrint [17:58:55]line Счет N : (1)31195 [17:58:55]line ИНН: 02508201610067 [17:58:55]line Контрольно-Кассовый Чек [17:58:55]line ПРОДАЖА [17:58:55]line ТРК (МРК, ГНК) : 12 [17:58:55]line Товар: 2710124130 [17:58:55]line Аи-92-К-5 [17:58:55]line 29.900 * 66.90 [17:58:55]line = 2000.31 [17:58:55]line НДС 12% НСП 1% [17:58:55]line > о реализуемом товаре [17:58:55]line ИТОГО: 2000.31 [17:58:55]line НСП 1% : 17.70 [17:58:55]line НДС 12% : 212.42 [17:58:55]line Наличными: 0.00 [17:58:55]line Безнал.: 2000.31 [17:58:55]line Место: АЗС № 170 "Партнер Нефть" [17:58:55]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [17:58:55]line СНО: Общий режим [17:58:55]line Чек 251 26.10.2024 17:59 [17:58:55]line Смена: 541 ФФД: 1.0 [17:58:55]line ЗНМ: 0300000110 [17:58:55]line РНМ: 0000000000091776 [17:58:55]line Версия ККМ: 001 [17:58:55]line Платежная система: Кыргызкоммерцбанк [17:58:55]line ФМ: 0000000000871754 [17:58:55]line ФД: 191888 [17:58:55]line ФПД: 220094124071352 [17:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T175909&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191888&fm=220094124071352&tin=02508201610067®Number=0000000000091776&sum=200031 [17:58:55]OFD Sender: Processing packet 191888 [packets to send 75, broken 74] [17:58:55]ProducePacketName [17:58:55]name=ofd_packets/00191888 [17:58:55]OFD Sender: To server: pG, [17:58:55]CommunicateWithHost lk.salyk.kg:30040 [17:58:55]ConnectInit lk.salyk.kg [17:58:55]written 0, free lines is 4095 [17:58:55]Connected sock=8 [17:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E EF 07 01 25 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 ED 2D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 ED 02 00 35 04 06 00 C8 2C A8 15 19 B8 C5 6C C7 2D 64 F0 8C E0 [17:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 11 47 00 D6 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 90 ED 02 00 F4 03 04 00 B7 D2 1C 67 B6 04 01 00 00 23 27 5E 89 B8 8A 29 A3 [17:58:55]CommunicateWithHost err = 0 [17:58:55]CheckOFDResponse [17:58:55]1017 (14) - 77093643461234 [17:58:55]1041 (16) - 0000000000871754 [17:58:55]1040 (4) - 191888 [17:58:55]1012 (4) - 26.10.2024 11:29 [17:58:55]1206 (1) - 0 [17:58:55]OFD Sender: Remove packet 191888 [17:58:55]ProducePacketName [17:58:55]name=ofd_packets/00191888 [17:58:55]NVStorageDeleteData [17:58:56]Write to MH i2c: 01 00 00 80 26 A6 [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 07 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: 01 07 00 80 26 00 00 00 00 00 E9 0C A2 [17:58:56]RasterBufferAndPrint [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]line [17:58:56]written 0, free lines is 3312 [17:58:56]MH_Cut [17:58:56]Write to MH i2c: D1 01 00 87 26 01 7F [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: D1 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: D1 01 00 [17:58:56]MH_I2C_Read... [17:58:56]Read from MH i2c: D1 01 00 87 26 00 7E [17:58:56]Write to MH i2c: 01 00 00 88 26 AE [17:58:56]Write i2c OK [17:58:56]MH_I2C_Read... [17:58:56]OFD Sender: No OFD packet to send [17:58:56]*** Cut start [17:58:56]*** Partial cut [17:58:56]*** CUTSNS_PIN = 1 [17:58:56]*** CUTSNS_PIN = 0 [17:58:57]*** Brake cut motor [17:58:57]Read from MH i2c: 01 [17:58:57]MH_I2C_Read... [17:58:57]*** Stop cut motor [17:58:57]*** Cut end [17:58:57]Read from MH i2c: 01 07 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: 01 07 00 88 26 00 00 00 00 00 FF 0F C3 [17:58:57]process_action close_receipt done [17:58:57]requested_data is exist [17:58:57]produce_requested_data [17:58:57]requested_item fm.sn is exist - process it [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 11 00 00 [17:58:57]Write to MH i2c: E2 08 00 89 26 80 11 00 00 00 00 00 00 29 [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 17 00 89 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7C [17:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [17:58:57]wFMCommunicate OK [17:58:57]requested_item fd.num is exist - process it [17:58:57]SAM_PROTO_GetFieldsCounters [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 13 00 00 [17:58:57]Write to MH i2c: E2 08 00 8A 26 80 13 00 00 00 00 00 00 2C [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 62 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 62 00 8A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:58:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 90 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_GetFieldsCounters done [17:58:57]requested_item shift.num is exist - process it [17:58:57]requested_item shift.opened is exist - process it [17:58:57]req_shift_opened [17:58:57]FM_GetShiftState [17:58:57]SAM_PROTO_GetShiftState [17:58:57]wFMCommunicate request_size=4 [17:58:57]MH_SAM_APDU [17:58:57]CAPDU: 80 13 01 00 [17:58:57]Write to MH i2c: E2 08 00 8B 26 80 13 01 00 00 00 00 00 2E [17:58:57]Write i2c OK [17:58:57]MH_I2C_Read... [17:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:57]Read from MH i2c: E2 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 [17:58:57]MH_I2C_Read... [17:58:57]Read from MH i2c: E2 0E 00 8B 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A7 [17:58:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [17:58:57]wFMCommunicate OK [17:58:57]SAM_PROTO_GetShiftState done [17:58:57]FM_GetShiftState done [17:58:57]req_shift_opened done [17:58:57]requested_item shift.open_date is exist - process it [17:58:57]req_shift_open_date [17:58:57]req_shift_open_date done [17:58:57]produce_requested_data done [17:58:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191888,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [17:58:57]process_action_free close_receipt [17:58:57]json_value_free [17:58:57]json_value_free done [17:58:57]process_json_proto returns [17:58:57]Send response to host [17:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191888,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [17:58:57]free response buf [17:58:57]execute_script done [17:58:57]execute_script returns [17:58:57]free content buf [17:58:57]Sock 5.Close socket [17:58:57]Sock 5.Thread stoped [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:18]accept exits with 6 [18:00:18]New connection [18:00:18]New thread 3066817892 created [18:00:18]Thread 3066961252 joined [18:00:18]Waiting for new connection... [18:00:18] Sock 6.Parse request [18:00:18]Sock 6.Check first char [18:00:18]Sock 6.First char is OK [18:00:18]request: POST /json_proto HTTP/1.0 [18:00:18]Method: POST [18:00:18]URL: /json_proto [18:00:18]Method is POST - this is cgi request [18:00:18]url: /json_proto [18:00:18]query_string will be loaded in cgi processing [18:00:18]execute_cgi json_proto POST (null) [18:00:18]execute_cgi path=json_proto method=POST [18:00:18]POST find Content-Length [18:00:18]Host: 172.17.63.131:8080 [18:00:18]Content-Length: 676 [18:00:18]Content-Type: application/json [18:00:18] [18:00:18]POST finish read [18:00:18]Found Content-Length = 676 [18:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:18]execute_script... [18: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)31197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:18]POST & json_proto [18:00:18]process_json_proto [18:00:18]json parsed OK: [18:00:18]protocol is kg_v1.0 [18:00:18]action value=close_receipt [18:00:18]process_action close_receipt [18:00:18]cmd_close_receipt [18:00:18]MH_GetDate [18:00:18]Write to MH i2c: F0 00 00 8C 26 A1 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: F0 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: F0 09 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: F0 09 00 8C 26 00 42 2E 1D 67 22 05 6E 64 97 [18:00:18]GetLastDocTimeStamp 1729965549 [18:00:18]current date 1729965634 [18:00:18]FM_GetShiftState [18:00:18]SAM_PROTO_GetShiftState [18:00:18]wFMCommunicate request_size=4 [18:00:18]MH_SAM_APDU [18:00:18]CAPDU: 80 13 01 00 [18:00:18]Write to MH i2c: E2 08 00 8D 26 80 13 01 00 00 00 00 00 30 [18:00:18]Write i2c OK [18:00:18]MH_I2C_Read... [18:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:18]Read from MH i2c: E2 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0E 00 [18:00:18]MH_I2C_Read... [18:00:18]Read from MH i2c: E2 0E 00 8D 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A9 [18:00:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:00:18]wFMCommunicate OK [18:00:18]SAM_PROTO_GetShiftState done [18:00:18]FM_GetShiftState done [18:00:18]opened in 1729902770 [18:00:18]opened+sec_in_day 1729989170 [18:00:18]quantity*price = 60009 [18:00:18]sum+1 = 60010 [18:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 252 26.10.2024 18:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191889 ФПД: 110457187909118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180034&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191889&fm=110457187909118&tin=02508201610067®Number=0000000000091776&sum=60000 [18:00:19]StoreToDocumentArchive [18:00:19]shift 541 fd 191889 [18:00:19]save to /storage/0541/doc_00191889 [18:00:19]save last doc name /storage/0541/doc_00191889 to /storage/kkm_last_doc_name [18:00:19]save OK [18:00:19]Clear old archive folders... [18:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:19]tlvbuf is 015D84B0 [18:00:19]SAM_PROTO_ClearQueue [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 09 00 00 [18:00:19]Write to MH i2c: E2 08 00 9A 26 80 09 00 00 00 00 00 00 32 [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [18:00:19]RAPDU: 90 00 [18:00:19]wFMCommunicate OK [18:00:19]SAM_PROTO_ClearQueue done [18:00:19]KKMCreateOFDPacket [18:00:19]OFDProtocolAddRootSTLVToBuf [18:00:19]FM_MakeSignedData [18:00:19]FM_MakeSignedData [18:00:19]SAM_PROTO_SignData [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 0D 01 02 [18:00:19]Write to MH i2c: E2 08 00 9B 26 80 0D 01 02 00 00 00 00 3A [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 9B 26 00 90 00 35 [18:00:19]RAPDU: 90 00 [18:00:19]wFMCommunicate OK [18:00:19]wFMCommunicate request_size=255 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 ED 02 00 35 04 06 00 64 [18:00:19]Write to MH i2c: E2 02 01 9C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 ED 02 00 35 04 06 00 64 00 00 9E [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [18:00:19]RAPDU: 90 00 [18:00:19]wFMCommunicate OK [18:00:19]wFMCommunicate request_size=10 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 0D 02 02 05 75 D1 72 BD FE [18:00:19]Write to MH i2c: E2 0D 00 9D 26 80 0D 02 02 05 00 75 D1 72 BD FE 00 00 BA [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:19]Read from MH i2c: E2 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 [18:00:19]MH_I2C_Read... [18:00:19]Read from MH i2c: E2 03 00 9D 26 00 90 00 37 [18:00:19]RAPDU: 90 00 [18:00:19]wFMCommunicate OK [18:00:19]wFMCommunicate request_size=4 [18:00:19]MH_SAM_APDU [18:00:19]CAPDU: 80 0D 03 02 [18:00:19]Write to MH i2c: E2 08 00 9E 26 80 0D 03 02 00 00 00 00 3F [18:00:19]Write i2c OK [18:00:19]MH_I2C_Read... [18:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0B 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 0B 00 9E 26 00 1B B6 6E 00 1D 1F 7D 8D 90 00 C5 [18:00:20]RAPDU: 1B B6 6E 00 1D 1F 7D 8D 90 00 [18:00:20]wFMCommunicate OK [18:00:20]SAM_PROTO_SignData done [18:00:20]FM_MakeSignedData done [18:00:20]CreateOFDProtocolMessage [18:00:20]wFMCommunicate request_size=4 [18:00:20]MH_SAM_APDU [18:00:20]CAPDU: 80 11 00 00 [18:00:20]Write to MH i2c: E2 08 00 9F 26 80 11 00 00 00 00 00 00 3F [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:20]Read from MH i2c: E2 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: E2 17 00 9F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 92 [18:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:20]wFMCommunicate OK [18:00:20]CreateOFDProtocolMessage done [18:00:20]OFDSenderStorePacket 191889 [18:00:20]StoreOFDPacket docnum=191889 [18:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 82 32 07 01 1F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 ED 02 00 35 04 06 00 64 75 D1 72 BD FE 1B B6 6E 00 1D 1F 7D 8D [18:00:20]CheckFolder [18:00:20]dirname=/storage/ofd_packets [18:00:20]CheckFolder done [18:00:20]ProducePacketName [18:00:20]name=ofd_packets/00191889 [18:00:20]NVStorageSaveData ofd_packets/00191889 [18:00:20]File name is /storage/ofd_packets/00191889 [18:00:20]Write 301 bytes [18:00:20]NVStorageSaveData done [18:00:20]OFDSenderStorePacket done [18:00:20]KKMCreateOFDPacket done [18:00:20]NVStorageSaveData kkm_last_timestamp [18:00:20]File name is /storage/kkm_last_timestamp [18:00:20]Write 4 bytes [18:00:20]NVStorageSaveData done [18:00:20]ExternCall_PrintAddStr [18:00:20]wPrintStart [18:00:20]Write to MH i2c: 01 00 00 A0 26 C6 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 A0 26 00 00 00 00 00 FF 0F DB [18:00:20]RasterBufferAndPrint [18:00:20]line Счет N : (1)31197 [18:00:20]line ИНН: 02508201610067 [18:00:20]line Контрольно-Кассовый Чек [18:00:20]line ПРОДАЖА [18:00:20]line ТРК (МРК, ГНК) : 21 [18:00:20]line Товар: 2710124130 [18:00:20]line Аи-92-К-5 [18:00:20]line 8.970 * 66.90 [18:00:20]line = 600.09 [18:00:20]line НДС 12% НСП 1% [18:00:20]line > о реализуемом товаре [18:00:20]line ОКРУГЛЕНИЕ: -0.09 [18:00:20]line ИТОГО: 600.00 [18:00:20]line Внесено: 600.00 [18:00:20]line СДАЧА: 0.00 [18:00:20]line НСП 1% : 5.31 [18:00:20]line НДС 12% : 63.73 [18:00:20]line Наличными: 600.00 [18:00:20]line Безнал.: 0.00 [18:00:20]line Место: АЗС № 170 "Партнер Нефть" [18:00:20]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:00:20]line СНО: Общий режим [18:00:20]line Чек 252 26.10.2024 18:00 [18:00:20]line Смена: 541 ФФД: 1.0 [18:00:20]line ЗНМ: 0300000110 [18:00:20]line РНМ: 0000000000091776 [18:00:20]line Версия ККМ: 001 [18:00:20]line ФМ: 0000000000871754 [18:00:20]line ФД: 191889 [18:00:20]line ФПД: 110457187909118 [18:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180034&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191889&fm=110457187909118&tin=02508201610067®Number=0000000000091776&sum=60000 [18:00:20]OFD Sender: Processing packet 191889 [packets to send 75, broken 74] [18:00:20]ProducePacketName [18:00:20]name=ofd_packets/00191889 [18:00:20]OFD Sender: To server: pG, [18:00:20]CommunicateWithHost lk.salyk.kg:30040 [18:00:20]ConnectInit lk.salyk.kg [18:00:20]written 0, free lines is 4095 [18:00:20]Connected sock=8 [18: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 31 37 35 34 0F 01 00 00 82 32 07 01 1F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 42 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 ED 02 00 35 04 06 00 64 75 D1 72 BD FE 1B B6 6E 00 1D 1F 7D 8D [18:00:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 39 6E 47 00 44 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 91 ED 02 00 F4 03 04 00 0C D3 1C 67 B6 04 01 00 00 8A D5 43 36 49 F9 49 60 [18:00:20]CommunicateWithHost err = 0 [18:00:20]CheckOFDResponse [18:00:20]1017 (14) - 77093643461234 [18:00:20]1041 (16) - 0000000000871754 [18:00:20]1040 (4) - 191889 [18:00:20]1012 (4) - 26.10.2024 11:31 [18:00:20]1206 (1) - 0 [18:00:20]OFD Sender: Remove packet 191889 [18:00:20]ProducePacketName [18:00:20]name=ofd_packets/00191889 [18:00:20]NVStorageDeleteData [18:00:20]Write to MH i2c: 01 00 00 CB 26 F1 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: 01 07 00 CB 26 00 00 00 00 00 CE 0C D2 [18:00:20]RasterBufferAndPrint [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]line [18:00:20]written 0, free lines is 3285 [18:00:20]MH_Cut [18:00:20]Write to MH i2c: D1 01 00 D2 26 01 CA [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 01 00 [18:00:20]MH_I2C_Read... [18:00:20]Read from MH i2c: D1 01 00 D2 26 00 C9 [18:00:20]Write to MH i2c: 01 00 00 D3 26 F9 [18:00:20]Write i2c OK [18:00:20]MH_I2C_Read... [18:00:21]OFD Sender: No OFD packet to send [18:00:21]*** Cut start [18:00:21]*** Partial cut [18:00:21]*** CUTSNS_PIN = 1 [18:00:21]*** CUTSNS_PIN = 0 [18:00:21]*** Brake cut motor [18:00:22]Read from MH i2c: 01 [18:00:22]MH_I2C_Read... [18:00:22]*** Stop cut motor [18:00:22]*** Cut end [18:00:22]Read from MH i2c: 01 07 00 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: 01 07 00 D3 26 00 00 00 00 00 FF 0F 0E [18:00:22]process_action close_receipt done [18:00:22]requested_data is exist [18:00:22]produce_requested_data [18:00:22]requested_item fm.sn is exist - process it [18:00:22]wFMCommunicate request_size=4 [18:00:22]MH_SAM_APDU [18:00:22]CAPDU: 80 11 00 00 [18:00:22]Write to MH i2c: E2 08 00 D4 26 80 11 00 00 00 00 00 00 74 [18:00:22]Write i2c OK [18:00:22]MH_I2C_Read... [18:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:22]Read from MH i2c: E2 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 17 00 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 17 00 D4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C7 [18:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:22]wFMCommunicate OK [18:00:22]requested_item fd.num is exist - process it [18:00:22]SAM_PROTO_GetFieldsCounters [18:00:22]wFMCommunicate request_size=4 [18:00:22]MH_SAM_APDU [18:00:22]CAPDU: 80 13 00 00 [18:00:22]Write to MH i2c: E2 08 00 D5 26 80 13 00 00 00 00 00 00 77 [18:00:22]Write i2c OK [18:00:22]MH_I2C_Read... [18:00:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:22]Read from MH i2c: E2 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 62 00 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 62 00 D5 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [18: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 91 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:22]wFMCommunicate OK [18:00:22]SAM_PROTO_GetFieldsCounters done [18:00:22]requested_item shift.num is exist - process it [18:00:22]requested_item shift.opened is exist - process it [18:00:22]req_shift_opened [18:00:22]FM_GetShiftState [18:00:22]SAM_PROTO_GetShiftState [18:00:22]wFMCommunicate request_size=4 [18:00:22]MH_SAM_APDU [18:00:22]CAPDU: 80 13 01 00 [18:00:22]Write to MH i2c: E2 08 00 D6 26 80 13 01 00 00 00 00 00 79 [18:00:22]Write i2c OK [18:00:22]MH_I2C_Read... [18:00:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:22]Read from MH i2c: E2 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 0E 00 [18:00:22]MH_I2C_Read... [18:00:22]Read from MH i2c: E2 0E 00 D6 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F2 [18:00:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:00:22]wFMCommunicate OK [18:00:22]SAM_PROTO_GetShiftState done [18:00:22]FM_GetShiftState done [18:00:22]req_shift_opened done [18:00:22]requested_item shift.open_date is exist - process it [18:00:22]req_shift_open_date [18:00:22]req_shift_open_date done [18:00:22]produce_requested_data done [18:00:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191889,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:00:22]process_action_free close_receipt [18:00:22]json_value_free [18:00:22]json_value_free done [18:00:22]process_json_proto returns [18:00:22]Send response to host [18:00:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191889,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:00:22]free response buf [18:00:22]execute_script done [18:00:22]execute_script returns [18:00:22]free content buf [18:00:22]Sock 6.Close socket [18:00:22]Sock 6.Thread stoped [18:00:26]OFD Sender: No OFD packet to send [18:00:30]accept exits with 5 [18:00:30]New connection [18:00:30]New thread 3066961252 created [18:00:30]Thread 3066817892 joined [18:00:30]Waiting for new connection... [18:00:30] Sock 5.Parse request [18:00:30]Sock 5.Check first char [18:00:30]Sock 5.First char is OK [18:00:30]request: POST /json_proto HTTP/1.0 [18:00:30]Method: POST [18:00:30]URL: /json_proto [18:00:30]Method is POST - this is cgi request [18:00:30]url: /json_proto [18:00:30]query_string will be loaded in cgi processing [18:00:30]execute_cgi json_proto POST (null) [18:00:30]execute_cgi path=json_proto method=POST [18:00:30]POST find Content-Length [18:00:30]Host: 172.17.63.131:8080 [18:00:30]Content-Length: 676 [18:00:30]Content-Type: application/json [18:00:30] [18:00:30]POST finish read [18:00:30]Found Content-Length = 676 [18:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:30]execute_script... [18: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)31198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:30]POST & json_proto [18:00:30]process_json_proto [18:00:30]json parsed OK: [18:00:30]protocol is kg_v1.0 [18:00:30]action value=close_receipt [18:00:30]process_action close_receipt [18:00:30]cmd_close_receipt [18:00:30]MH_GetDate [18:00:30]Write to MH i2c: F0 00 00 D7 26 EC [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: F0 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: F0 09 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: F0 09 00 D7 26 00 4E 2E 1D 67 22 05 6E 64 EE [18:00:30]GetLastDocTimeStamp 1729965634 [18:00:30]current date 1729965646 [18:00:30]FM_GetShiftState [18:00:30]SAM_PROTO_GetShiftState [18:00:30]wFMCommunicate request_size=4 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 13 01 00 [18:00:30]Write to MH i2c: E2 08 00 D8 26 80 13 01 00 00 00 00 00 7B [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 0E 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 0E 00 D8 26 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F4 [18:00:30]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:00:30]wFMCommunicate OK [18:00:30]SAM_PROTO_GetShiftState done [18:00:30]FM_GetShiftState done [18:00:30]opened in 1729902770 [18:00:30]opened+sec_in_day 1729989170 [18:00:30]quantity*price = 50041 [18:00:30]sum+1 = 50042 [18:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 253 26.10.2024 18:00 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191890 ФПД: 178695223757802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191890&fm=178695223757802&tin=02508201610067®Number=0000000000091776&sum=50000 [18:00:32]StoreToDocumentArchive [18:00:32]shift 541 fd 191890 [18:00:32]save to /storage/0541/doc_00191890 [18:00:32]save last doc name /storage/0541/doc_00191890 to /storage/kkm_last_doc_name [18:00:32]save OK [18:00:32]Clear old archive folders... [18:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:32]tlvbuf is 00051440 [18:00:32]SAM_PROTO_ClearQueue [18:00:32]wFMCommunicate request_size=4 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 09 00 00 [18:00:32]Write to MH i2c: E2 08 00 E5 26 80 09 00 00 00 00 00 00 7D [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 E5 26 00 90 00 7F [18:00:32]RAPDU: 90 00 [18:00:32]wFMCommunicate OK [18:00:32]SAM_PROTO_ClearQueue done [18:00:32]KKMCreateOFDPacket [18:00:32]OFDProtocolAddRootSTLVToBuf [18:00:32]FM_MakeSignedData [18:00:32]FM_MakeSignedData [18:00:32]SAM_PROTO_SignData [18:00:32]wFMCommunicate request_size=4 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 0D 01 02 [18:00:32]Write to MH i2c: E2 08 00 E6 26 80 0D 01 02 00 00 00 00 85 [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 E6 26 00 90 00 80 [18:00:32]RAPDU: 90 00 [18:00:32]wFMCommunicate OK [18:00:32]wFMCommunicate request_size=255 [18:00:32]MH_SAM_APDU [18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4E 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 ED 02 00 35 04 06 00 A2 [18:00:32]Write to MH i2c: E2 02 01 E7 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4E 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 ED 02 00 35 04 06 00 A2 00 00 58 [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 E7 26 00 90 00 81 [18:00:32]RAPDU: 90 00 [18:00:32]wFMCommunicate OK [18:00:32]wFMCommunicate request_size=10 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 0D 02 02 05 85 B9 55 CB EA [18:00:32]Write to MH i2c: E2 0D 00 E8 26 80 0D 02 02 05 00 85 B9 55 CB EA 00 00 DA [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [18:00:32]RAPDU: 90 00 [18:00:32]wFMCommunicate OK [18:00:32]wFMCommunicate request_size=4 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 0D 03 02 [18:00:32]Write to MH i2c: E2 08 00 E9 26 80 0D 03 02 00 00 00 00 8A [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 0B 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 0B 00 E9 26 00 B2 E0 C9 60 D7 89 99 03 90 00 42 [18:00:32]RAPDU: B2 E0 C9 60 D7 89 99 03 90 00 [18:00:32]wFMCommunicate OK [18:00:32]SAM_PROTO_SignData done [18:00:32]FM_MakeSignedData done [18:00:32]CreateOFDProtocolMessage [18:00:32]wFMCommunicate request_size=4 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 11 00 00 [18:00:32]Write to MH i2c: E2 08 00 EA 26 80 11 00 00 00 00 00 00 8A [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:32]Read from MH i2c: E2 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 17 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: E2 17 00 EA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DD [18:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:32]wFMCommunicate OK [18:00:32]CreateOFDProtocolMessage done [18:00:32]OFDSenderStorePacket 191890 [18:00:32]StoreOFDPacket docnum=191890 [18:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5C 3B 07 01 31 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4E 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 ED 02 00 35 04 06 00 A2 85 B9 55 CB EA B2 E0 C9 60 D7 89 99 03 [18:00:32]CheckFolder [18:00:32]dirname=/storage/ofd_packets [18:00:32]CheckFolder done [18:00:32]ProducePacketName [18:00:32]name=ofd_packets/00191890 [18:00:32]NVStorageSaveData ofd_packets/00191890 [18:00:32]File name is /storage/ofd_packets/00191890 [18:00:32]Write 301 bytes [18:00:32]NVStorageSaveData done [18:00:32]OFDSenderStorePacket done [18:00:32]KKMCreateOFDPacket done [18:00:32]NVStorageSaveData kkm_last_timestamp [18:00:32]File name is /storage/kkm_last_timestamp [18:00:32]Write 4 bytes [18:00:32]NVStorageSaveData done [18:00:32]ExternCall_PrintAddStr [18:00:32]wPrintStart [18:00:32]Write to MH i2c: 01 00 00 EB 26 11 [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 07 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 07 00 EB 26 00 00 00 00 00 FF 0F 26 [18:00:32]RasterBufferAndPrint [18:00:32]line Счет N : (1)31198 [18:00:32]line ИНН: 02508201610067 [18:00:32]line Контрольно-Кассовый Чек [18:00:32]line ПРОДАЖА [18:00:32]line ТРК (МРК, ГНК) : 12 [18:00:32]line Товар: 2710124130 [18:00:32]line Аи-92-К-5 [18:00:32]line 7.480 * 66.90 [18:00:32]line = 500.41 [18:00:32]line НДС 12% НСП 1% [18:00:32]line > о реализуемом товаре [18:00:32]line ОКРУГЛЕНИЕ: -0.41 [18:00:32]line ИТОГО: 500.00 [18:00:32]line Внесено: 500.00 [18:00:32]line СДАЧА: 0.00 [18:00:32]line НСП 1% : 4.43 [18:00:32]line НДС 12% : 53.14 [18:00:32]line Наличными: 500.00 [18:00:32]line Безнал.: 0.00 [18:00:32]line Место: АЗС № 170 "Партнер Нефть" [18:00:32]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:00:32]line СНО: Общий режим [18:00:32]line Чек 253 26.10.2024 18:00 [18:00:32]line Смена: 541 ФФД: 1.0 [18:00:32]line ЗНМ: 0300000110 [18:00:32]line РНМ: 0000000000091776 [18:00:32]line Версия ККМ: 001 [18:00:32]line ФМ: 0000000000871754 [18:00:32]line ФД: 191890 [18:00:32]line ФПД: 178695223757802 [18:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180046&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191890&fm=178695223757802&tin=02508201610067®Number=0000000000091776&sum=50000 [18:00:32]written 0, free lines is 4095 [18:00:32]OFD Sender: Processing packet 191890 [packets to send 75, broken 74] [18:00:32]ProducePacketName [18:00:32]name=ofd_packets/00191890 [18:00:32]OFD Sender: To server: pG, [18:00:32]CommunicateWithHost lk.salyk.kg:30040 [18:00:32]ConnectInit lk.salyk.kg [18:00:32]Connected sock=8 [18: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 31 37 35 34 0F 01 00 00 5C 3B 07 01 31 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 4E 2E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 ED 02 00 35 04 06 00 A2 85 B9 55 CB EA B2 E0 C9 60 D7 89 99 03 [18:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 37 3A 47 00 E9 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 92 ED 02 00 F4 03 04 00 18 D3 1C 67 B6 04 01 00 00 F6 02 20 F0 7C 9B DD CE [18:00:33]CommunicateWithHost err = 0 [18:00:33]CheckOFDResponse [18:00:33]1017 (14) - 77093643461234 [18:00:33]1041 (16) - 0000000000871754 [18:00:33]1040 (4) - 191890 [18:00:33]1012 (4) - 26.10.2024 11:31 [18:00:33]1206 (1) - 0 [18:00:33]OFD Sender: Remove packet 191890 [18:00:33]ProducePacketName [18:00:33]name=ofd_packets/00191890 [18:00:33]NVStorageDeleteData [18:00:33]Write to MH i2c: 01 00 00 16 27 3D [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 07 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 07 00 16 27 00 00 00 00 00 B6 0C 06 [18:00:33]RasterBufferAndPrint [18:00:33]line [18:00:33]line [18:00:33]line [18:00:33]line [18:00:33]line [18:00:33]written 0, free lines is 3260 [18:00:33]MH_Cut [18:00:33]Write to MH i2c: D1 01 00 1D 27 01 16 [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: D1 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: D1 01 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: D1 01 00 1D 27 00 15 [18:00:33]Write to MH i2c: 01 00 00 1E 27 45 [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]OFD Sender: No OFD packet to send [18:00:33]*** Cut start [18:00:33]*** Partial cut [18:00:33]*** CUTSNS_PIN = 1 [18:00:34]*** CUTSNS_PIN = 0 [18:00:34]*** Brake cut motor [18:00:34]Read from MH i2c: 01 [18:00:34]MH_I2C_Read... [18:00:34]*** Stop cut motor [18:00:34]*** Cut end [18:00:34]Read from MH i2c: 01 07 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: 01 07 00 1E 27 00 00 00 00 00 FF 0F 5A [18:00:34]process_action close_receipt done [18:00:34]requested_data is exist [18:00:34]produce_requested_data [18:00:34]requested_item fm.sn is exist - process it [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 11 00 00 [18:00:34]Write to MH i2c: E2 08 00 1F 27 80 11 00 00 00 00 00 00 C0 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 17 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 17 00 1F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 13 [18:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:00:34]wFMCommunicate OK [18:00:34]requested_item fd.num is exist - process it [18:00:34]SAM_PROTO_GetFieldsCounters [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 13 00 00 [18:00:34]Write to MH i2c: E2 08 00 20 27 80 13 00 00 00 00 00 00 C3 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 62 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 62 00 20 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [18: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 92 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:34]wFMCommunicate OK [18:00:34]SAM_PROTO_GetFieldsCounters done [18:00:34]requested_item shift.num is exist - process it [18:00:34]requested_item shift.opened is exist - process it [18:00:34]req_shift_opened [18:00:34]FM_GetShiftState [18:00:34]SAM_PROTO_GetShiftState [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 13 01 00 [18:00:34]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 0E 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3E [18:00:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:00:34]wFMCommunicate OK [18:00:34]SAM_PROTO_GetShiftState done [18:00:34]FM_GetShiftState done [18:00:34]req_shift_opened done [18:00:34]requested_item shift.open_date is exist - process it [18:00:34]req_shift_open_date [18:00:34]req_shift_open_date done [18:00:34]produce_requested_data done [18:00:34]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191890,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:00:34]process_action_free close_receipt [18:00:34]json_value_free [18:00:34]json_value_free done [18:00:34]process_json_proto returns [18:00:34]Send response to host [18:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191890,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:00:34]free response buf [18:00:34]execute_script done [18:00:34]execute_script returns [18:00:34]free content buf [18:00:34]Sock 5.Close socket [18:00:34]Sock 5.Thread stoped [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:01:03]OFD Sender: No OFD packet to send [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=11 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [18:03:38]Write to MH i2c: E2 0E 00 2B 27 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 04 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 2B 27 00 90 00 C6 [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=13 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 15 02 00 08 F4 03 04 00 09 2F 1D 67 [18:03:38]Write to MH i2c: E2 10 00 2C 27 80 15 02 00 08 00 F4 03 04 00 09 2F 1D 67 00 00 9A [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 2C 27 00 90 00 C7 [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=25 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [18:03:38]Write to MH i2c: E2 1C 00 2D 27 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 3B [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 2D 27 00 90 00 C8 [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 15 03 00 [18:03:38]Write to MH i2c: E2 08 00 2E 27 80 15 03 00 00 00 00 00 D6 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 40 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 40 00 2E 27 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FE 00 00 00 35 04 06 00 A8 87 1D A4 07 12 90 00 74 [18:03:38]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FE 00 00 00 35 04 06 00 A8 87 1D A4 07 12 90 00 [18:03:38]wFMCommunicate OK [18:03:38]SAM_PROTO_ProcessDocument answer len = 59 [18:03:38]SAM_PROTO_ProcessDocument done [18:03:38]SetTLVBufToDocument [18:03:38]Processing tag 1209 (04B9) [18:03:38]Malloc new data [18:03:38]Processing tag 1041 (0411) [18:03:38]Processing tag 1040 (0410) [18:03:38]Malloc new data [18:03:38]Processing tag 1038 (040E) [18:03:38]Malloc new data [18:03:38]Processing tag 1042 (0412) [18:03:38]Malloc new data [18:03:38]Processing tag 1077 (0435) [18:03:38]Malloc new data [18:03:38]SetTLVBufToDocument err=0 [18:03:38]KKMLoadAndSignReceiptData store KKM data [18:03:38]KKMLoadAndSignReceiptData err=0 [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 11 00 00 [18:03:38]Write to MH i2c: E2 08 00 2F 27 80 11 00 00 00 00 00 00 D0 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 17 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 17 00 2F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 23 [18:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:38]wFMCommunicate OK [18:03:38]Счет N : (1)31199 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 12 Товар: 2710124130 Аи-92-К-5 12.710 * 66.90 = 850.30 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 254 26.10.2024 18:03 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191891 ФПД: 185298271340306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180353&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191891&fm=185298271340306&tin=02508201610067®Number=0000000000091776&sum=85000 [18:03:38]StoreToDocumentArchive [18:03:38]shift 541 fd 191891 [18:03:38]save to /storage/0541/doc_00191891 [18:03:38]save last doc name /storage/0541/doc_00191891 to /storage/kkm_last_doc_name [18:03:38]save OK [18:03:38]Clear old archive folders... [18:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:38]tlvbuf is 01A76A40 [18:03:38]SAM_PROTO_ClearQueue [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 09 00 00 [18:03:38]Write to MH i2c: E2 08 00 30 27 80 09 00 00 00 00 00 00 C9 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]SAM_PROTO_ClearQueue done [18:03:38]KKMCreateOFDPacket [18:03:38]OFDProtocolAddRootSTLVToBuf [18:03:38]FM_MakeSignedData [18:03:38]FM_MakeSignedData [18:03:38]SAM_PROTO_SignData [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 01 02 [18:03:38]Write to MH i2c: E2 08 00 31 27 80 0D 01 02 00 00 00 00 D1 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=255 [18:03:38]MH_SAM_APDU [18:03: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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 09 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 35 04 06 00 A8 [18:03:38]Write to MH i2c: E2 02 01 32 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 09 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 35 04 06 00 A8 00 00 6E [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]OFD Sender: No OFD packet to send [18:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 32 27 00 90 00 CD [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=10 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 02 02 05 87 1D A4 07 12 [18:03:38]Write to MH i2c: E2 0D 00 33 27 80 0D 02 02 05 00 87 1D A4 07 12 00 00 3F [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:39]Read from MH i2c: E2 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 03 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 03 00 33 27 00 90 00 CE [18:03:39]RAPDU: 90 00 [18:03:39]wFMCommunicate OK [18:03:39]wFMCommunicate request_size=4 [18:03:39]MH_SAM_APDU [18:03:39]CAPDU: 80 0D 03 02 [18:03:39]Write to MH i2c: E2 08 00 34 27 80 0D 03 02 00 00 00 00 D6 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:39]Read from MH i2c: E2 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 0B 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 0B 00 34 27 00 3A 9B DD 2E E2 54 68 26 90 00 7B [18:03:39]RAPDU: 3A 9B DD 2E E2 54 68 26 90 00 [18:03:39]wFMCommunicate OK [18:03:39]SAM_PROTO_SignData done [18:03:39]FM_MakeSignedData done [18:03:39]CreateOFDProtocolMessage [18:03:39]wFMCommunicate request_size=4 [18:03:39]MH_SAM_APDU [18:03:39]CAPDU: 80 11 00 00 [18:03:39]Write to MH i2c: E2 08 00 35 27 80 11 00 00 00 00 00 00 D6 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:39]Read from MH i2c: E2 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 17 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 17 00 35 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 29 [18:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:39]wFMCommunicate OK [18:03:39]CreateOFDProtocolMessage done [18:03:39]OFDSenderStorePacket 191891 [18:03:39]StoreOFDPacket docnum=191891 [18:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 7D 07 01 D3 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 09 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 35 04 06 00 A8 87 1D A4 07 12 3A 9B DD 2E E2 54 68 26 [18:03:39]CheckFolder [18:03:39]dirname=/storage/ofd_packets [18:03:39]CheckFolder done [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00191891 [18:03:39]NVStorageSaveData ofd_packets/00191891 [18:03:39]File name is /storage/ofd_packets/00191891 [18:03:39]Write 301 bytes [18:03:39]NVStorageSaveData done [18:03:39]OFDSenderStorePacket done [18:03:39]KKMCreateOFDPacket done [18:03:39]NVStorageSaveData kkm_last_timestamp [18:03:39]File name is /storage/kkm_last_timestamp [18:03:39]Write 4 bytes [18:03:39]NVStorageSaveData done [18:03:39]ExternCall_PrintAddStr [18:03:39]wPrintStart [18:03:39]Write to MH i2c: 01 00 00 36 27 5D [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 36 27 00 00 00 00 00 FF 0F 72 [18:03:39]RasterBufferAndPrint [18:03:39]line Счет N : (1)31199 [18:03:39]line ИНН: 02508201610067 [18:03:39]line Контрольно-Кассовый Чек [18:03:39]line ПРОДАЖА [18:03:39]line ТРК (МРК, ГНК) : 12 [18:03:39]line Товар: 2710124130 [18:03:39]line Аи-92-К-5 [18:03:39]line 12.710 * 66.90 [18:03:39]line = 850.30 [18:03:39]line НДС 12% НСП 1% [18:03:39]line > о реализуемом товаре [18:03:39]line ОКРУГЛЕНИЕ: -0.30 [18:03:39]line ИТОГО: 850.00 [18:03:39]line Внесено: 850.00 [18:03:39]line СДАЧА: 0.00 [18:03:39]line НСП 1% : 7.52 [18:03:39]line НДС 12% : 90.30 [18:03:39]line Наличными: 850.00 [18:03:39]line Безнал.: 0.00 [18:03:39]line Место: АЗС № 170 "Партнер Нефть" [18:03:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:03:39]line СНО: Общий режим [18:03:39]line Чек 254 26.10.2024 18:03 [18:03:39]line Смена: 541 ФФД: 1.0 [18:03:39]line ЗНМ: 0300000110 [18:03:39]line РНМ: 0000000000091776 [18:03:39]line Версия ККМ: 001 [18:03:39]line ФМ: 0000000000871754 [18:03:39]line ФД: 191891 [18:03:39]line ФПД: 185298271340306 [18:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180353&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191891&fm=185298271340306&tin=02508201610067®Number=0000000000091776&sum=85000 [18:03:39]OFD Sender: Processing packet 191891 [packets to send 75, broken 74] [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00191891 [18:03:39]OFD Sender: To server: pG, [18:03:39]CommunicateWithHost lk.salyk.kg:30040 [18:03:39]ConnectInit lk.salyk.kg [18:03:39]written 0, free lines is 4095 [18:03:39]Connected sock=9 [18:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 7D 07 01 D3 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 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 09 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 35 04 06 00 A8 87 1D A4 07 12 3A 9B DD 2E E2 54 68 26 [18:03:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E0 95 47 00 C9 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 93 ED 02 00 F4 03 04 00 D3 D3 1C 67 B6 04 01 00 00 AB 0C 44 1D 05 E2 E7 68 [18:03:39]CommunicateWithHost err = 0 [18:03:39]CheckOFDResponse [18:03:39]1017 (14) - 77093643461234 [18:03:39]1041 (16) - 0000000000871754 [18:03:39]1040 (4) - 191891 [18:03:39]1012 (4) - 26.10.2024 11:34 [18:03:39]1206 (1) - 0 [18:03:39]OFD Sender: Remove packet 191891 [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00191891 [18:03:39]NVStorageDeleteData [18:03:39]Write to MH i2c: 01 00 00 61 27 88 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 61 27 00 00 00 00 00 C5 0C 60 [18:03:39]RasterBufferAndPrint [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]written 0, free lines is 3278 [18:03:39]MH_Cut [18:03:39]Write to MH i2c: D1 01 00 68 27 01 61 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 01 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 01 00 68 27 00 60 [18:03:39]Write to MH i2c: 01 00 00 69 27 90 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:40]OFD Sender: No OFD packet to send [18:03:40]*** Cut start [18:03:40]*** Partial cut [18:03:40]*** CUTSNS_PIN = 1 [18:03:40]*** CUTSNS_PIN = 0 [18:03:41]*** Brake cut motor [18:03:41]Read from MH i2c: 01 [18:03:41]MH_I2C_Read... [18:03:41]*** Stop cut motor [18:03:41]*** Cut end [18:03:41]Read from MH i2c: 01 07 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 FF 0F A5 [18:03:41]process_action close_receipt done [18:03:41]requested_data is exist [18:03:41]produce_requested_data [18:03:41]requested_item fm.sn is exist - process it [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 11 00 00 [18:03:41]Write to MH i2c: E2 08 00 6A 27 80 11 00 00 00 00 00 00 0B [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 17 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 17 00 6A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5E [18:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:03:41]wFMCommunicate OK [18:03:41]requested_item fd.num is exist - process it [18:03:41]SAM_PROTO_GetFieldsCounters [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 13 00 00 [18:03:41]Write to MH i2c: E2 08 00 6B 27 80 13 00 00 00 00 00 00 0E [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 62 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 62 00 6B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [18:03:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 93 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:41]wFMCommunicate OK [18:03:41]SAM_PROTO_GetFieldsCounters done [18:03:41]requested_item shift.num is exist - process it [18:03:41]requested_item shift.opened is exist - process it [18:03:41]req_shift_opened [18:03:41]FM_GetShiftState [18:03:41]SAM_PROTO_GetShiftState [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 13 01 00 [18:03:41]Write to MH i2c: E2 08 00 6C 27 80 13 01 00 00 00 00 00 10 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 6C 27 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 89 [18:03:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:03:41]wFMCommunicate OK [18:03:41]SAM_PROTO_GetShiftState done [18:03:41]FM_GetShiftState done [18:03:41]req_shift_opened done [18:03:41]requested_item shift.open_date is exist - process it [18:03:41]req_shift_open_date [18:03:41]req_shift_open_date done [18:03:41]produce_requested_data done [18:03:41]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191891,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:03:41]process_action_free close_receipt [18:03:41]json_value_free [18:03:41]json_value_free done [18:03:41]process_json_proto returns [18:03:41]Send response to host [18:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191891,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:03:41]free response buf [18:03:41]execute_script done [18:03:41]execute_script returns [18:03:41]free content buf [18:03:41]Sock 6.Close socket [18:03:41]Sock 6.Thread stoped [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:33]ConnectInit Can't connect to host [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:08]accept exits with 8 [18:05:08]New connection [18:05:08]New thread 3066961252 created [18:05:08]Thread 3066817892 joined [18:05:08]Waiting for new connection... [18:05:08] Sock 8.Parse request [18:05:08]Sock 8.Check first char [18:05:08]Sock 8.First char is OK [18:05:08]request: POST /json_proto HTTP/1.0 [18:05:08]Method: POST [18:05:08]URL: /json_proto [18:05:08]Method is POST - this is cgi request [18:05:08]url: /json_proto [18:05:08]query_string will be loaded in cgi processing [18:05:08]execute_cgi json_proto POST (null) [18:05:08]execute_cgi path=json_proto method=POST [18:05:08]POST find Content-Length [18:05:08]Host: 172.17.63.131:8080 [18:05:08]Content-Length: 678 [18:05:08]Content-Type: application/json [18:05:08] [18:05:08]POST finish read [18:05:08]Found Content-Length = 678 [18:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:08]execute_script... [18:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:08]POST & json_proto [18:05:08]process_json_proto [18:05:08]json parsed OK: [18:05:08]protocol is kg_v1.0 [18:05:08]action value=close_receipt [18:05:08]process_action close_receipt [18:05:08]cmd_close_receipt [18:05:08]MH_GetDate [18:05:08]Write to MH i2c: F0 00 00 6D 27 83 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 09 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 09 00 6D 27 00 64 2F 1D 67 22 05 6E 64 9C [18:05:08]GetLastDocTimeStamp 1729965833 [18:05:08]current date 1729965924 [18:05:08]FM_GetShiftState [18:05:08]SAM_PROTO_GetShiftState [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 13 01 00 [18:05:08]Write to MH i2c: E2 08 00 6E 27 80 13 01 00 00 00 00 00 12 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 6E 27 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 8B [18:05:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:05:08]wFMCommunicate OK [18:05:08]SAM_PROTO_GetShiftState done [18:05:08]FM_GetShiftState done [18:05:08]opened in 1729902770 [18:05:08]opened+sec_in_day 1729989170 [18:05:08]quantity*price = 100050 [18:05:08]sum+1 = 100052 [18:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 255 26.10.2024 18:05 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191892 ФПД: 152102968623347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191892&fm=152102968623347&tin=02508201610067®Number=0000000000091776&sum=100000 [18:05:09]StoreToDocumentArchive [18:05:09]shift 541 fd 191892 [18:05:09]save to /storage/0541/doc_00191892 [18:05:09]save last doc name /storage/0541/doc_00191892 to /storage/kkm_last_doc_name [18:05:09]save OK [18:05:09]Clear old archive folders... [18:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:05:09]tlvbuf is 01B8A5D0 [18:05:09]SAM_PROTO_ClearQueue [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 09 00 00 [18:05:09]Write to MH i2c: E2 08 00 7B 27 80 09 00 00 00 00 00 00 14 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]SAM_PROTO_ClearQueue done [18:05:10]KKMCreateOFDPacket [18:05:10]OFDProtocolAddRootSTLVToBuf [18:05:10]FM_MakeSignedData [18:05:10]FM_MakeSignedData [18:05:10]SAM_PROTO_SignData [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 01 02 [18:05:10]Write to MH i2c: E2 08 00 7C 27 80 0D 01 02 00 00 00 00 1C [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]wFMCommunicate request_size=255 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 64 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 ED 02 00 35 04 06 00 8A 56 3B 6A [18:05:10]Write to MH i2c: E2 02 01 7D 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 64 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 ED 02 00 35 04 06 00 8A 56 3B 6A 00 00 E3 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:10]OFD Sender: No OFD packet to send [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]wFMCommunicate request_size=7 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 02 02 02 00 F3 [18:05:10]Write to MH i2c: E2 0A 00 7E 27 80 0D 02 02 02 00 00 F3 00 00 16 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 7E 27 00 90 00 19 [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 03 02 [18:05:10]Write to MH i2c: E2 08 00 7F 27 80 0D 03 02 00 00 00 00 21 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 0B 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 0B 00 7F 27 00 3A 75 25 4C 16 CA 52 43 90 00 B7 [18:05:10]RAPDU: 3A 75 25 4C 16 CA 52 43 90 00 [18:05:10]wFMCommunicate OK [18:05:10]SAM_PROTO_SignData done [18:05:10]FM_MakeSignedData done [18:05:10]CreateOFDProtocolMessage [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 11 00 00 [18:05:10]Write to MH i2c: E2 08 00 80 27 80 11 00 00 00 00 00 00 21 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 17 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 17 00 80 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 74 [18:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:05:10]wFMCommunicate OK [18:05:10]CreateOFDProtocolMessage done [18:05:10]OFDSenderStorePacket 191892 [18:05:10]StoreOFDPacket docnum=191892 [18:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CA CD 04 01 88 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 64 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 ED 02 00 35 04 06 00 8A 56 3B 6A 00 F3 3A 75 25 4C 16 CA 52 43 [18:05:10]CheckFolder [18:05:10]dirname=/storage/ofd_packets [18:05:10]CheckFolder done [18:05:10]ProducePacketName [18:05:10]name=ofd_packets/00191892 [18:05:10]NVStorageSaveData ofd_packets/00191892 [18:05:10]File name is /storage/ofd_packets/00191892 [18:05:10]Write 298 bytes [18:05:10]NVStorageSaveData done [18:05:10]OFDSenderStorePacket done [18:05:10]KKMCreateOFDPacket done [18:05:10]NVStorageSaveData kkm_last_timestamp [18:05:10]File name is /storage/kkm_last_timestamp [18:05:10]Write 4 bytes [18:05:10]NVStorageSaveData done [18:05:10]ExternCall_PrintAddStr [18:05:10]wPrintStart [18:05:10]Write to MH i2c: 01 00 00 81 27 A8 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 81 27 00 00 00 00 00 FF 0F BD [18:05:10]RasterBufferAndPrint [18:05:10]line Счет N : (1)31200 [18:05:10]line ИНН: 02508201610067 [18:05:10]line Контрольно-Кассовый Чек [18:05:10]line ПРОДАЖА [18:05:10]line ТРК (МРК, ГНК) : 11 [18:05:10]line Товар: 2710194210 [18:05:10]line ДТ-К-5 [18:05:10]line 13.130 * 76.20 [18:05:10]line = 1000.51 [18:05:10]line НДС 12% НСП 1% [18:05:10]line > о реализуемом товаре [18:05:10]line ОКРУГЛЕНИЕ: -0.51 [18:05:10]line ИТОГО: 1000.00 [18:05:10]line Внесено: 1000.00 [18:05:10]line СДАЧА: 0.00 [18:05:10]line НСП 1% : 8.85 [18:05:10]line НДС 12% : 106.25 [18:05:10]line Наличными: 1000.00 [18:05:10]line Безнал.: 0.00 [18:05:10]line Место: АЗС № 170 "Партнер Нефть" [18:05:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:05:10]line СНО: Общий режим [18:05:10]line Чек 255 26.10.2024 18:05 [18:05:10]line Смена: 541 ФФД: 1.0 [18:05:10]line ЗНМ: 0300000110 [18:05:10]line РНМ: 0000000000091776 [18:05:10]line Версия ККМ: 001 [18:05:10]line ФМ: 0000000000871754 [18:05:10]line ФД: 191892 [18:05:10]line ФПД: 152102968623347 [18:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191892&fm=152102968623347&tin=02508201610067®Number=0000000000091776&sum=100000 [18:05:10]written 0, free lines is 4095 [18:05:10]OFD Sender: Processing packet 191892 [packets to send 75, broken 74] [18:05:10]ProducePacketName [18:05:10]name=ofd_packets/00191892 [18:05:10]OFD Sender: To server: pG, [18:05:10]CommunicateWithHost lk.salyk.kg:30040 [18:05:10]ConnectInit lk.salyk.kg [18:05:10]Connected sock=9 [18:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CA CD 04 01 88 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 64 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 ED 02 00 35 04 06 00 8A 56 3B 6A 00 F3 3A 75 25 4C 16 CA 52 43 [18:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 BA C5 47 00 22 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 94 ED 02 00 F4 03 04 00 2E D4 1C 67 B6 04 01 00 00 89 78 CB 87 81 73 86 DA [18:05:11]CommunicateWithHost err = 0 [18:05:11]CheckOFDResponse [18:05:11]1017 (14) - 77093643461234 [18:05:11]1041 (16) - 0000000000871754 [18:05:11]1040 (4) - 191892 [18:05:11]1012 (4) - 26.10.2024 11:36 [18:05:11]1206 (1) - 0 [18:05:11]OFD Sender: Remove packet 191892 [18:05:11]ProducePacketName [18:05:11]name=ofd_packets/00191892 [18:05:11]NVStorageDeleteData [18:05:11]Write to MH i2c: 01 00 00 AC 27 D3 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 AC 27 00 00 00 00 00 C8 0C AE [18:05:11]RasterBufferAndPrint [18:05:11]line [18:05:11]line [18:05:11]line [18:05:11]line [18:05:11]line [18:05:11]written 0, free lines is 3286 [18:05:11]MH_Cut [18:05:11]Write to MH i2c: D1 01 00 B3 27 01 AC [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: D1 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: D1 01 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: D1 01 00 B3 27 00 AB [18:05:11]Write to MH i2c: 01 00 00 B4 27 DB [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]OFD Sender: No OFD packet to send [18:05:11]*** Cut start [18:05:11]*** Partial cut [18:05:11]*** CUTSNS_PIN = 1 [18:05:11]*** CUTSNS_PIN = 0 [18:05:12]*** Brake cut motor [18:05:12]Read from MH i2c: 01 [18:05:12]MH_I2C_Read... [18:05:12]*** Stop cut motor [18:05:12]*** Cut end [18:05:12]Read from MH i2c: 01 07 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 07 00 B4 27 00 00 00 00 00 FF 0F F0 [18:05:12]process_action close_receipt done [18:05:12]requested_data is exist [18:05:12]produce_requested_data [18:05:12]requested_item fm.sn is exist - process it [18:05:12]wFMCommunicate request_size=4 [18:05:12]MH_SAM_APDU [18:05:12]CAPDU: 80 11 00 00 [18:05:12]Write to MH i2c: E2 08 00 B5 27 80 11 00 00 00 00 00 00 56 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:12]Read from MH i2c: E2 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 17 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 17 00 B5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [18:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:05:12]wFMCommunicate OK [18:05:12]requested_item fd.num is exist - process it [18:05:12]SAM_PROTO_GetFieldsCounters [18:05:12]wFMCommunicate request_size=4 [18:05:12]MH_SAM_APDU [18:05:12]CAPDU: 80 13 00 00 [18:05:12]Write to MH i2c: E2 08 00 B6 27 80 13 00 00 00 00 00 00 59 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:12]Read from MH i2c: E2 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 62 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 62 00 B6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [18:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 94 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:12]wFMCommunicate OK [18:05:12]SAM_PROTO_GetFieldsCounters done [18:05:12]requested_item shift.num is exist - process it [18:05:12]requested_item shift.opened is exist - process it [18:05:12]req_shift_opened [18:05:12]FM_GetShiftState [18:05:12]SAM_PROTO_GetShiftState [18:05:12]wFMCommunicate request_size=4 [18:05:12]MH_SAM_APDU [18:05:12]CAPDU: 80 13 01 00 [18:05:12]Write to MH i2c: E2 08 00 B7 27 80 13 01 00 00 00 00 00 5B [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:12]Read from MH i2c: E2 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 0E 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 0E 00 B7 27 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D4 [18:05:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:05:12]wFMCommunicate OK [18:05:12]SAM_PROTO_GetShiftState done [18:05:12]FM_GetShiftState done [18:05:12]req_shift_opened done [18:05:12]requested_item shift.open_date is exist - process it [18:05:12]req_shift_open_date [18:05:12]req_shift_open_date done [18:05:12]produce_requested_data done [18:05:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191892,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:05:12]process_action_free close_receipt [18:05:12]json_value_free [18:05:12]json_value_free done [18:05:12]process_json_proto returns [18:05:12]Send response to host [18:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191892,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:05:12]free response buf [18:05:12]execute_script done [18:05:12]execute_script returns [18:05:12]free content buf [18:05:12]Sock 8.Close socket [18:05:12]Sock 8.Thread stoped [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:51]ConnectInit Can't connect to host [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:22]accept exits with 6 [18:07:22]New connection [18:07:22]New thread 3066817892 created [18:07:22]Thread 3066961252 joined [18:07:22]Waiting for new connection... [18:07:22] Sock 6.Parse request [18:07:22]Sock 6.Check first char [18:07:22]Sock 6.First char is OK [18:07:22]request: POST /json_proto HTTP/1.0 [18:07:22]Method: POST [18:07:22]URL: /json_proto [18:07:22]Method is POST - this is cgi request [18:07:22]url: /json_proto [18:07:22]query_string will be loaded in cgi processing [18:07:22]execute_cgi json_proto POST (null) [18:07:22]execute_cgi path=json_proto method=POST [18:07:22]POST find Content-Length [18:07:22]Host: 172.17.63.131:8080 [18:07:22]Content-Length: 865 [18:07:22]Content-Type: application/json [18:07:22] [18:07:22]POST finish read [18:07:22]Found Content-Length = 865 [18:07:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:22]execute_script... [18:07: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)31201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:22]POST & json_proto [18:07:22]process_json_proto [18:07:22]json parsed OK: [18:07:22]protocol is kg_v1.0 [18:07:22]action value=close_receipt [18:07:22]process_action close_receipt [18:07:22]cmd_close_receipt [18:07:22]MH_GetDate [18:07:22]Write to MH i2c: F0 00 00 B8 27 CE [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 [18:07:22]MH_I2C_Read... [18:07:22]Read from MH i2c: F0 09 00 B8 27 00 EA 2F 1D 67 22 05 6E 64 6D [18:07:22]GetLastDocTimeStamp 1729965924 [18:07:22]current date 1729966058 [18:07:22]FM_GetShiftState [18:07:22]SAM_PROTO_GetShiftState [18:07:22]wFMCommunicate request_size=4 [18:07:22]MH_SAM_APDU [18:07:22]CAPDU: 80 13 01 00 [18:07:22]Write to MH i2c: E2 08 00 B9 27 80 13 01 00 00 00 00 00 5D [18:07:22]Write i2c OK [18:07:22]MH_I2C_Read... [18:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:23]Read from MH i2c: E2 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 0E 00 [18:07:23]MH_I2C_Read... [18:07:23]Read from MH i2c: E2 0E 00 B9 27 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D6 [18:07:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:07:23]wFMCommunicate OK [18:07:23]SAM_PROTO_GetShiftState done [18:07:23]FM_GetShiftState done [18:07:23]opened in 1729902770 [18:07:23]opened+sec_in_day 1729989170 [18:07:23]quantity*price = 100015 [18:07:23]sum+1 = 100017 [18:07:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 256 26.10.2024 18:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191893 ФПД: 2904081459034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191893&fm=2904081459034&tin=02508201610067®Number=0000000000091776&sum=100016 [18:07:23]StoreToDocumentArchive [18:07:23]shift 541 fd 191893 [18:07:23]save to /storage/0541/doc_00191893 [18:07:23]save last doc name /storage/0541/doc_00191893 to /storage/kkm_last_doc_name [18:07:23]save OK [18:07:23]Clear old archive folders... [18:07:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:23]tlvbuf is 01B9DF60 [18:07:23]SAM_PROTO_ClearQueue [18:07:23]wFMCommunicate request_size=4 [18:07:23]MH_SAM_APDU [18:07:23]CAPDU: 80 09 00 00 [18:07:23]Write to MH i2c: E2 08 00 C6 27 80 09 00 00 00 00 00 00 5F [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 C6 27 00 90 00 61 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_ClearQueue done [18:07:24]KKMCreateOFDPacket [18:07:24]OFDProtocolAddRootSTLVToBuf [18:07:24]FM_MakeSignedData [18:07:24]FM_MakeSignedData [18:07:24]SAM_PROTO_SignData [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 01 02 [18:07:24]Write to MH i2c: E2 08 00 C7 27 80 0D 01 02 00 00 00 00 67 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 C7 27 00 90 00 62 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=255 [18:07:24]MH_SAM_APDU [18:07: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 EA 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 ED 02 00 35 04 06 00 02 [18:07:24]Write to MH i2c: E2 02 01 C8 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 EA 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 ED 02 00 35 04 06 00 02 00 00 58 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 C8 27 00 90 00 63 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=10 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 02 02 05 A4 28 BE 67 5A [18:07:24]Write to MH i2c: E2 0D 00 C9 27 80 0D 02 02 05 00 A4 28 BE 67 5A 00 00 BF [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [18:07:24]RAPDU: 90 00 [18:07:24]wFMCommunicate OK [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 0D 03 02 [18:07:24]Write to MH i2c: E2 08 00 CA 27 80 0D 03 02 00 00 00 00 6C [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 0B 00 CA 27 00 D5 A8 CF DA 9F 4D E8 3E 90 00 A5 [18:07:24]RAPDU: D5 A8 CF DA 9F 4D E8 3E 90 00 [18:07:24]wFMCommunicate OK [18:07:24]SAM_PROTO_SignData done [18:07:24]FM_MakeSignedData done [18:07:24]CreateOFDProtocolMessage [18:07:24]wFMCommunicate request_size=4 [18:07:24]MH_SAM_APDU [18:07:24]CAPDU: 80 11 00 00 [18:07:24]Write to MH i2c: E2 08 00 CB 27 80 11 00 00 00 00 00 00 6C [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:24]Read from MH i2c: E2 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: E2 17 00 CB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [18:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:24]wFMCommunicate OK [18:07:24]CreateOFDProtocolMessage done [18:07:24]OFDSenderStorePacket 191893 [18:07:24]StoreOFDPacket docnum=191893 [18:07:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 71 07 01 5B F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 EA 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 ED 02 00 35 04 06 00 02 A4 28 BE 67 5A D5 A8 CF DA 9F 4D E8 3E [18:07:24]CheckFolder [18:07:24]dirname=/storage/ofd_packets [18:07:24]CheckFolder done [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00191893 [18:07:24]NVStorageSaveData ofd_packets/00191893 [18:07:24]File name is /storage/ofd_packets/00191893 [18:07:24]Write 301 bytes [18:07:24]NVStorageSaveData done [18:07:24]OFDSenderStorePacket done [18:07:24]KKMCreateOFDPacket done [18:07:24]NVStorageSaveData kkm_last_timestamp [18:07:24]File name is /storage/kkm_last_timestamp [18:07:24]Write 4 bytes [18:07:24]NVStorageSaveData done [18:07:24]ExternCall_PrintAddStr [18:07:24]wPrintStart [18:07:24]Write to MH i2c: 01 00 00 CC 27 F3 [18:07:24]Write i2c OK [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 [18:07:24]MH_I2C_Read... [18:07:24]Read from MH i2c: 01 07 00 CC 27 00 00 00 00 00 FF 0F 08 [18:07:24]RasterBufferAndPrint [18:07:24]line Счет N : (1)31201 [18:07:24]line ИНН: 02508201610067 [18:07:24]line Контрольно-Кассовый Чек [18:07:24]line ПРОДАЖА [18:07:24]line ТРК (МРК, ГНК) : 21 [18:07:24]line Товар: 2710124130 [18:07:24]line Аи-92-К-5 [18:07:24]line 14.950 * 66.90 [18:07:24]line = 1000.16 [18:07:24]line НДС 12% НСП 1% [18:07:24]line > о реализуемом товаре [18:07:24]line ИТОГО: 1000.16 [18:07:24]line НСП 1% : 8.85 [18:07:24]line НДС 12% : 106.21 [18:07:24]line Наличными: 0.00 [18:07:24]line Безнал.: 1000.16 [18:07:24]line Место: АЗС № 170 "Партнер Нефть" [18:07:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:07:24]line СНО: Общий режим [18:07:24]line Чек 256 26.10.2024 18:07 [18:07:24]line Смена: 541 ФФД: 1.0 [18:07:24]line ЗНМ: 0300000110 [18:07:24]line РНМ: 0000000000091776 [18:07:24]line Версия ККМ: 001 [18:07:24]line Платежная система: Кыргызкоммерцбанк [18:07:24]line ФМ: 0000000000871754 [18:07:24]line ФД: 191893 [18:07:24]line ФПД: 2904081459034 [18:07:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180738&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191893&fm=2904081459034&tin=02508201610067®Number=0000000000091776&sum=100016 [18:07:24]written 0, free lines is 4095 [18:07:24]OFD Sender: Processing packet 191893 [packets to send 75, broken 74] [18:07:24]ProducePacketName [18:07:24]name=ofd_packets/00191893 [18:07:24]OFD Sender: To server: pG, [18:07:24]CommunicateWithHost lk.salyk.kg:30040 [18:07:24]ConnectInit lk.salyk.kg [18:07:24]Connected sock=9 [18:07:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 25 71 07 01 5B F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 EA 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 ED 02 00 35 04 06 00 02 A4 28 BE 67 5A D5 A8 CF DA 9F 4D E8 3E [18:07:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6E 09 47 00 8A AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 95 ED 02 00 F4 03 04 00 B5 D4 1C 67 B6 04 01 00 00 DE A4 9A 15 EF 09 AD A7 [18:07:25]CommunicateWithHost err = 0 [18:07:25]CheckOFDResponse [18:07:25]1017 (14) - 77093643461234 [18:07:25]1041 (16) - 0000000000871754 [18:07:25]1040 (4) - 191893 [18:07:25]1012 (4) - 26.10.2024 11:38 [18:07:25]1206 (1) - 0 [18:07:25]OFD Sender: Remove packet 191893 [18:07:25]ProducePacketName [18:07:25]name=ofd_packets/00191893 [18:07:25]NVStorageDeleteData [18:07:25]Write to MH i2c: 01 00 00 F6 27 1D [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 07 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: 01 07 00 F6 27 00 00 00 00 00 EF 0C 1F [18:07:25]RasterBufferAndPrint [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]line [18:07:25]written 0, free lines is 3332 [18:07:25]MH_Cut [18:07:25]Write to MH i2c: D1 01 00 FD 27 01 F6 [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 01 00 [18:07:25]MH_I2C_Read... [18:07:25]Read from MH i2c: D1 01 00 FD 27 00 F5 [18:07:25]Write to MH i2c: 01 00 00 FE 27 25 [18:07:25]Write i2c OK [18:07:25]MH_I2C_Read... [18:07:25]OFD Sender: No OFD packet to send [18:07:26]*** Cut start [18:07:26]*** Partial cut [18:07:26]*** CUTSNS_PIN = 1 [18:07:26]*** CUTSNS_PIN = 0 [18:07:26]*** Brake cut motor [18:07:26]Read from MH i2c: 01 [18:07:26]MH_I2C_Read... [18:07:26]*** Stop cut motor [18:07:26]*** Cut end [18:07:26]Read from MH i2c: 01 07 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: 01 07 00 FE 27 00 00 00 00 00 FF 0F 3A [18:07:26]process_action close_receipt done [18:07:26]requested_data is exist [18:07:26]produce_requested_data [18:07:26]requested_item fm.sn is exist - process it [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 11 00 00 [18:07:26]Write to MH i2c: E2 08 00 FF 27 80 11 00 00 00 00 00 00 A0 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 17 00 FF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F3 [18:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:26]wFMCommunicate OK [18:07:26]requested_item fd.num is exist - process it [18:07:26]SAM_PROTO_GetFieldsCounters [18:07:26]wFMCommunicate request_size=4 [18:07:26]MH_SAM_APDU [18:07:26]CAPDU: 80 13 00 00 [18:07:26]Write to MH i2c: E2 08 00 00 28 80 13 00 00 00 00 00 00 A4 [18:07:26]Write i2c OK [18:07:26]MH_I2C_Read... [18:07:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:26]Read from MH i2c: E2 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 [18:07:26]MH_I2C_Read... [18:07:26]Read from MH i2c: E2 62 00 00 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [18:07:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 95 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:27]wFMCommunicate OK [18:07:27]SAM_PROTO_GetFieldsCounters done [18:07:27]requested_item shift.num is exist - process it [18:07:27]requested_item shift.opened is exist - process it [18:07:27]req_shift_opened [18:07:27]FM_GetShiftState [18:07:27]SAM_PROTO_GetShiftState [18:07:27]wFMCommunicate request_size=4 [18:07:27]MH_SAM_APDU [18:07:27]CAPDU: 80 13 01 00 [18:07:27]Write to MH i2c: E2 08 00 01 28 80 13 01 00 00 00 00 00 A6 [18:07:27]Write i2c OK [18:07:27]MH_I2C_Read... [18:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:27]Read from MH i2c: E2 [18:07:27]MH_I2C_Read... [18:07:27]Read from MH i2c: E2 0E 00 [18:07:27]MH_I2C_Read... [18:07:27]Read from MH i2c: E2 0E 00 01 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1F [18:07:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:07:27]wFMCommunicate OK [18:07:27]SAM_PROTO_GetShiftState done [18:07:27]FM_GetShiftState done [18:07:27]req_shift_opened done [18:07:27]requested_item shift.open_date is exist - process it [18:07:27]req_shift_open_date [18:07:27]req_shift_open_date done [18:07:27]produce_requested_data done [18:07:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191893,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:07:27]process_action_free close_receipt [18:07:27]json_value_free [18:07:27]json_value_free done [18:07:27]process_json_proto returns [18:07:27]Send response to host [18:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191893,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:07:27]free response buf [18:07:27]execute_script done [18:07:27]execute_script returns [18:07:27]free content buf [18:07:27]Sock 6.Close socket [18:07:27]Sock 6.Thread stoped [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:37]accept exits with 8 [18:07:37]New connection [18:07:37]New thread 3066961252 created [18:07:37]Thread 3066817892 joined [18:07:37]Waiting for new connection... [18:07:37] Sock 8.Parse request [18:07:37]Sock 8.Check first char [18:07:37]Sock 8.First char is OK [18:07:37]request: POST /json_proto HTTP/1.0 [18:07:37]Method: POST [18:07:37]URL: /json_proto [18:07:37]Method is POST - this is cgi request [18:07:37]url: /json_proto [18:07:37]query_string will be loaded in cgi processing [18:07:37]execute_cgi json_proto POST (null) [18:07:37]execute_cgi path=json_proto method=POST [18:07:37]POST find Content-Length [18:07:37]Host: 172.17.63.131:8080 [18:07:37]Content-Length: 676 [18:07:37]Content-Type: application/json [18:07:37] [18:07:37]POST finish read [18:07:37]Found Content-Length = 676 [18:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:37]execute_script... [18:07:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:07:37]POST & json_proto [18:07:37]process_json_proto [18:07:37]json parsed OK: [18:07:37]protocol is kg_v1.0 [18:07:37]action value=close_receipt [18:07:37]process_action close_receipt [18:07:37]cmd_close_receipt [18:07:37]MH_GetDate [18:07:37]Write to MH i2c: F0 00 00 02 28 19 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: F0 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: F0 09 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: F0 09 00 02 28 00 F9 2F 1D 67 22 05 6E 64 C7 [18:07:37]GetLastDocTimeStamp 1729966058 [18:07:37]current date 1729966073 [18:07:37]FM_GetShiftState [18:07:37]SAM_PROTO_GetShiftState [18:07:37]wFMCommunicate request_size=4 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 13 01 00 [18:07:37]Write to MH i2c: E2 08 00 03 28 80 13 01 00 00 00 00 00 A8 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 0E 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 0E 00 03 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 21 [18:07:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:07:37]wFMCommunicate OK [18:07:37]SAM_PROTO_GetShiftState done [18:07:37]FM_GetShiftState done [18:07:37]opened in 1729902770 [18:07:37]opened+sec_in_day 1729989170 [18:07:37]quantity*price = 50041 [18:07:37]sum+1 = 50042 [18:07:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 257 26.10.2024 18:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191894 ФПД: 123806457143874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180753&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191894&fm=123806457143874&tin=02508201610067®Number=0000000000091776&sum=50000 [18:07:38]StoreToDocumentArchive [18:07:38]shift 541 fd 191894 [18:07:38]save to /storage/0541/doc_00191894 [18:07:38]save last doc name /storage/0541/doc_00191894 to /storage/kkm_last_doc_name [18:07:38]save OK [18:07:38]Clear old archive folders... [18:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:38]tlvbuf is 01C55F90 [18:07:38]SAM_PROTO_ClearQueue [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 09 00 00 [18:07:38]Write to MH i2c: E2 08 00 10 28 80 09 00 00 00 00 00 00 AA [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 03 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 03 00 10 28 00 90 00 AC [18:07:38]RAPDU: 90 00 [18:07:38]wFMCommunicate OK [18:07:38]SAM_PROTO_ClearQueue done [18:07:38]KKMCreateOFDPacket [18:07:38]OFDProtocolAddRootSTLVToBuf [18:07:38]FM_MakeSignedData [18:07:38]FM_MakeSignedData [18:07:38]SAM_PROTO_SignData [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 0D 01 02 [18:07:38]Write to MH i2c: E2 08 00 11 28 80 0D 01 02 00 00 00 00 B2 [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 03 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 03 00 11 28 00 90 00 AD [18:07:38]RAPDU: 90 00 [18:07:38]wFMCommunicate OK [18:07:38]wFMCommunicate request_size=255 [18:07:38]MH_SAM_APDU [18:07: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 ED 02 00 35 04 06 00 70 [18:07:39]Write to MH i2c: E2 02 01 12 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 ED 02 00 35 04 06 00 70 00 00 08 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:39]Read from MH i2c: E2 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 03 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [18:07:39]RAPDU: 90 00 [18:07:39]wFMCommunicate OK [18:07:39]wFMCommunicate request_size=10 [18:07:39]MH_SAM_APDU [18:07:39]CAPDU: 80 0D 02 02 05 99 EF E6 22 42 [18:07:39]Write to MH i2c: E2 0D 00 13 28 80 0D 02 02 05 00 99 EF E6 22 42 00 00 91 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:39]Read from MH i2c: E2 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 03 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [18:07:39]RAPDU: 90 00 [18:07:39]wFMCommunicate OK [18:07:39]wFMCommunicate request_size=4 [18:07:39]MH_SAM_APDU [18:07:39]CAPDU: 80 0D 03 02 [18:07:39]Write to MH i2c: E2 08 00 14 28 80 0D 03 02 00 00 00 00 B7 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:39]Read from MH i2c: E2 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 0B 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 0B 00 14 28 00 EC FC B2 A4 63 72 C6 23 90 00 B4 [18:07:39]RAPDU: EC FC B2 A4 63 72 C6 23 90 00 [18:07:39]wFMCommunicate OK [18:07:39]SAM_PROTO_SignData done [18:07:39]FM_MakeSignedData done [18:07:39]CreateOFDProtocolMessage [18:07:39]wFMCommunicate request_size=4 [18:07:39]MH_SAM_APDU [18:07:39]CAPDU: 80 11 00 00 [18:07:39]Write to MH i2c: E2 08 00 15 28 80 11 00 00 00 00 00 00 B7 [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:39]Read from MH i2c: E2 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 17 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: E2 17 00 15 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0A [18:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:39]wFMCommunicate OK [18:07:39]CreateOFDProtocolMessage done [18:07:39]OFDSenderStorePacket 191894 [18:07:39]StoreOFDPacket docnum=191894 [18:07:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 53 07 01 65 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 ED 02 00 35 04 06 00 70 99 EF E6 22 42 EC FC B2 A4 63 72 C6 23 [18:07:39]CheckFolder [18:07:39]dirname=/storage/ofd_packets [18:07:39]CheckFolder done [18:07:39]ProducePacketName [18:07:39]name=ofd_packets/00191894 [18:07:39]NVStorageSaveData ofd_packets/00191894 [18:07:39]File name is /storage/ofd_packets/00191894 [18:07:39]Write 301 bytes [18:07:39]NVStorageSaveData done [18:07:39]OFDSenderStorePacket done [18:07:39]KKMCreateOFDPacket done [18:07:39]NVStorageSaveData kkm_last_timestamp [18:07:39]File name is /storage/kkm_last_timestamp [18:07:39]Write 4 bytes [18:07:39]NVStorageSaveData done [18:07:39]ExternCall_PrintAddStr [18:07:39]wPrintStart [18:07:39]Write to MH i2c: 01 00 00 16 28 3E [18:07:39]Write i2c OK [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: 01 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: 01 07 00 [18:07:39]MH_I2C_Read... [18:07:39]Read from MH i2c: 01 07 00 16 28 00 00 00 00 00 FF 0F 53 [18:07:39]RasterBufferAndPrint [18:07:39]line Счет N : (1)31202 [18:07:39]line ИНН: 02508201610067 [18:07:39]line Контрольно-Кассовый Чек [18:07:39]line ПРОДАЖА [18:07:39]line ТРК (МРК, ГНК) : 12 [18:07:39]line Товар: 2710124130 [18:07:39]line Аи-92-К-5 [18:07:39]line 7.480 * 66.90 [18:07:39]line = 500.41 [18:07:39]line НДС 12% НСП 1% [18:07:39]line > о реализуемом товаре [18:07:39]line ОКРУГЛЕНИЕ: -0.41 [18:07:39]line ИТОГО: 500.00 [18:07:39]line Внесено: 500.00 [18:07:39]line СДАЧА: 0.00 [18:07:39]line НСП 1% : 4.43 [18:07:39]line НДС 12% : 53.14 [18:07:39]line Наличными: 500.00 [18:07:39]line Безнал.: 0.00 [18:07:39]line Место: АЗС № 170 "Партнер Нефть" [18:07:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:07:39]line СНО: Общий режим [18:07:39]line Чек 257 26.10.2024 18:07 [18:07:39]line Смена: 541 ФФД: 1.0 [18:07:39]line ЗНМ: 0300000110 [18:07:39]line РНМ: 0000000000091776 [18:07:39]line Версия ККМ: 001 [18:07:39]line ФМ: 0000000000871754 [18:07:39]line ФД: 191894 [18:07:39]line ФПД: 123806457143874 [18:07:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180753&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191894&fm=123806457143874&tin=02508201610067®Number=0000000000091776&sum=50000 [18:07:39]OFD Sender: Processing packet 191894 [packets to send 75, broken 74] [18:07:39]ProducePacketName [18:07:39]name=ofd_packets/00191894 [18:07:39]OFD Sender: To server: pG, [18:07:39]CommunicateWithHost lk.salyk.kg:30040 [18:07:39]ConnectInit lk.salyk.kg [18:07:39]written 0, free lines is 4095 [18:07:39]Connected sock=9 [18:07:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 92 53 07 01 65 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 F9 2F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 96 ED 02 00 35 04 06 00 70 99 EF E6 22 42 EC FC B2 A4 63 72 C6 23 [18:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C2 11 47 00 C8 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 31 37 35 34 10 04 04 00 96 ED 02 00 F4 03 04 00 C4 D4 1C 67 B6 04 01 00 00 24 5A 72 7E C6 B4 08 9B [18:07:40]CommunicateWithHost err = 0 [18:07:40]CheckOFDResponse [18:07:40]1017 (14) - 77093643461234 [18:07:40]1041 (16) - 0000000000871754 [18:07:40]1040 (4) - 191894 [18:07:40]1012 (4) - 26.10.2024 11:38 [18:07:40]1206 (1) - 0 [18:07:40]OFD Sender: Remove packet 191894 [18:07:40]ProducePacketName [18:07:40]name=ofd_packets/00191894 [18:07:40]NVStorageDeleteData [18:07:40]Write to MH i2c: 01 00 00 41 28 69 [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: 01 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: 01 07 00 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: 01 07 00 41 28 00 00 00 00 00 7E 0D FB [18:07:40]RasterBufferAndPrint [18:07:40]line [18:07:40]line [18:07:40]line [18:07:40]line [18:07:40]line [18:07:40]written 0, free lines is 3478 [18:07:40]MH_Cut [18:07:40]Write to MH i2c: D1 01 00 48 28 01 42 [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: D1 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: D1 01 00 [18:07:40]MH_I2C_Read... [18:07:40]Read from MH i2c: D1 01 00 48 28 00 41 [18:07:40]Write to MH i2c: 01 00 00 49 28 71 [18:07:40]Write i2c OK [18:07:40]MH_I2C_Read... [18:07:40]OFD Sender: No OFD packet to send [18:07:41]*** Cut start [18:07:41]*** Partial cut [18:07:41]*** CUTSNS_PIN = 1 [18:07:41]*** CUTSNS_PIN = 0 [18:07:41]*** Brake cut motor [18:07:41]Read from MH i2c: 01 [18:07:41]MH_I2C_Read... [18:07:41]*** Stop cut motor [18:07:41]*** Cut end [18:07:41]Read from MH i2c: 01 07 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: 01 07 00 49 28 00 00 00 00 00 FF 0F 86 [18:07:41]process_action close_receipt done [18:07:41]requested_data is exist [18:07:41]produce_requested_data [18:07:41]requested_item fm.sn is exist - process it [18:07:41]wFMCommunicate request_size=4 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 11 00 00 [18:07:41]Write to MH i2c: E2 08 00 4A 28 80 11 00 00 00 00 00 00 EC [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:41]Read from MH i2c: E2 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 17 00 [18:07:41]MH_I2C_Read... [18:07:41]Read from MH i2c: E2 17 00 4A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3F [18:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:07:41]wFMCommunicate OK [18:07:41]requested_item fd.num is exist - process it [18:07:41]SAM_PROTO_GetFieldsCounters [18:07:41]wFMCommunicate request_size=4 [18:07:41]MH_SAM_APDU [18:07:41]CAPDU: 80 13 00 00 [18:07:41]Write to MH i2c: E2 08 00 4B 28 80 13 00 00 00 00 00 00 EF [18:07:41]Write i2c OK [18:07:41]MH_I2C_Read... [18:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 62 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 62 00 4B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [18:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 96 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:42]wFMCommunicate OK [18:07:42]SAM_PROTO_GetFieldsCounters done [18:07:42]requested_item shift.num is exist - process it [18:07:42]requested_item shift.opened is exist - process it [18:07:42]req_shift_opened [18:07:42]FM_GetShiftState [18:07:42]SAM_PROTO_GetShiftState [18:07:42]wFMCommunicate request_size=4 [18:07:42]MH_SAM_APDU [18:07:42]CAPDU: 80 13 01 00 [18:07:42]Write to MH i2c: E2 08 00 4C 28 80 13 01 00 00 00 00 00 F1 [18:07:42]Write i2c OK [18:07:42]MH_I2C_Read... [18:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:42]Read from MH i2c: E2 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 0E 00 [18:07:42]MH_I2C_Read... [18:07:42]Read from MH i2c: E2 0E 00 4C 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6A [18:07:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:07:42]wFMCommunicate OK [18:07:42]SAM_PROTO_GetShiftState done [18:07:42]FM_GetShiftState done [18:07:42]req_shift_opened done [18:07:42]requested_item shift.open_date is exist - process it [18:07:42]req_shift_open_date [18:07:42]req_shift_open_date done [18:07:42]produce_requested_data done [18:07:42]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191894,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:07:42]process_action_free close_receipt [18:07:42]json_value_free [18:07:42]json_value_free done [18:07:42]process_json_proto returns [18:07:42]Send response to host [18:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191894,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:07:42]free response buf [18:07:42]execute_script done [18:07:42]execute_script returns [18:07:42]free content buf [18:07:42]Sock 8.Close socket [18:07:42]Sock 8.Thread stoped [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:47]accept exits with 6 [18:08:47]New connection [18:08:47]New thread 3066817892 created [18:08:47]Thread 3066961252 joined [18:08:47]Waiting for new connection... [18:08:47] Sock 6.Parse request [18:08:47]Sock 6.Check first char [18:08:47]Sock 6.First char is OK [18:08:47]request: POST /json_proto HTTP/1.0 [18:08:47]Method: POST [18:08:47]URL: /json_proto [18:08:47]Method is POST - this is cgi request [18:08:47]url: /json_proto [18:08:47]query_string will be loaded in cgi processing [18:08:47]execute_cgi json_proto POST (null) [18:08:47]execute_cgi path=json_proto method=POST [18:08:47]POST find Content-Length [18:08:47]Host: 172.17.63.131:8080 [18:08:47]Content-Length: 678 [18:08:47]Content-Type: application/json [18:08:47] [18:08:47]POST finish read [18:08:47]Found Content-Length = 678 [18:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:47]execute_script... [18:08:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:47]POST & json_proto [18:08:47]process_json_proto [18:08:47]json parsed OK: [18:08:47]protocol is kg_v1.0 [18:08:47]action value=close_receipt [18:08:47]process_action close_receipt [18:08:47]cmd_close_receipt [18:08:47]MH_GetDate [18:08:47]Write to MH i2c: F0 00 00 4D 28 64 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: F0 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: F0 09 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: F0 09 00 4D 28 00 3F 30 1D 67 22 05 6E 64 59 [18:08:47]GetLastDocTimeStamp 1729966073 [18:08:47]current date 1729966143 [18:08:47]FM_GetShiftState [18:08:47]SAM_PROTO_GetShiftState [18:08:47]wFMCommunicate request_size=4 [18:08:47]MH_SAM_APDU [18:08:47]CAPDU: 80 13 01 00 [18:08:47]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [18:08:47]Write i2c OK [18:08:47]MH_I2C_Read... [18:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:47]Read from MH i2c: E2 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 0E 00 [18:08:47]MH_I2C_Read... [18:08:47]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6C [18:08:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:08:47]wFMCommunicate OK [18:08:47]SAM_PROTO_GetShiftState done [18:08:47]FM_GetShiftState done [18:08:47]opened in 1729902770 [18:08:47]opened+sec_in_day 1729989170 [18:08:47]quantity*price = 150037 [18:08:47]sum+1 = 150039 [18:08:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 258 26.10.2024 18:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191895 ФПД: 28620117167954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191895&fm=28620117167954&tin=02508201610067®Number=0000000000091776&sum=150000 [18:08:49]StoreToDocumentArchive [18:08:49]shift 541 fd 191895 [18:08:49]save to /storage/0541/doc_00191895 [18:08:49]save last doc name /storage/0541/doc_00191895 to /storage/kkm_last_doc_name [18:08:49]save OK [18:08:49]Clear old archive folders... [18:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:08:49]tlvbuf is 01B4F600 [18:08:49]SAM_PROTO_ClearQueue [18:08:49]wFMCommunicate request_size=4 [18:08:49]MH_SAM_APDU [18:08:49]CAPDU: 80 09 00 00 [18:08:49]Write to MH i2c: E2 08 00 5B 28 80 09 00 00 00 00 00 00 F5 [18:08:49]Write i2c OK [18:08:49]MH_I2C_Read... [18:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:49]Read from MH i2c: E2 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [18:08:49]RAPDU: 90 00 [18:08:49]wFMCommunicate OK [18:08:49]SAM_PROTO_ClearQueue done [18:08:49]KKMCreateOFDPacket [18:08:49]OFDProtocolAddRootSTLVToBuf [18:08:49]FM_MakeSignedData [18:08:49]FM_MakeSignedData [18:08:49]SAM_PROTO_SignData [18:08:49]wFMCommunicate request_size=4 [18:08:49]MH_SAM_APDU [18:08:49]CAPDU: 80 0D 01 02 [18:08:49]Write to MH i2c: E2 08 00 5C 28 80 0D 01 02 00 00 00 00 FD [18:08:49]Write i2c OK [18:08:49]MH_I2C_Read... [18:08:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:49]Read from MH i2c: E2 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [18:08:49]RAPDU: 90 00 [18:08:49]wFMCommunicate OK [18:08:49]wFMCommunicate request_size=255 [18:08:49]MH_SAM_APDU [18:08:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 3F 30 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 ED 02 00 35 04 06 00 1A 07 A3 EA [18:08:49]Write to MH i2c: E2 02 01 5D 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 3F 30 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 ED 02 00 35 04 06 00 1A 07 A3 EA 00 00 47 [18:08:49]Write i2c OK [18:08:49]MH_I2C_Read... [18:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:49]Read from MH i2c: E2 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 [18:08:49]MH_I2C_Read... [18:08:49]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [18:08:49]RAPDU: 90 00 [18:08:49]wFMCommunicate OK [18:08:49]wFMCommunicate request_size=7 [18:08:49]MH_SAM_APDU [18:08:49]CAPDU: 80 0D 02 02 02 CF 52 [18:08:49]Write to MH i2c: E2 0A 00 5E 28 80 0D 02 02 02 00 CF 52 00 00 25 [18:08:49]Write i2c OK [18:08:49]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 03 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [18:08:50]RAPDU: 90 00 [18:08:50]wFMCommunicate OK [18:08:50]wFMCommunicate request_size=4 [18:08:50]MH_SAM_APDU [18:08:50]CAPDU: 80 0D 03 02 [18:08:50]Write to MH i2c: E2 08 00 5F 28 80 0D 03 02 00 00 00 00 02 [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 0B 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 0B 00 5F 28 00 C9 E5 CF D1 C0 1D 7C 3D 90 00 E7 [18:08:50]RAPDU: C9 E5 CF D1 C0 1D 7C 3D 90 00 [18:08:50]wFMCommunicate OK [18:08:50]SAM_PROTO_SignData done [18:08:50]FM_MakeSignedData done [18:08:50]CreateOFDProtocolMessage [18:08:50]wFMCommunicate request_size=4 [18:08:50]MH_SAM_APDU [18:08:50]CAPDU: 80 11 00 00 [18:08:50]Write to MH i2c: E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:50]Read from MH i2c: E2 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 17 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 55 [18:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:08:50]wFMCommunicate OK [18:08:50]CreateOFDProtocolMessage done [18:08:50]OFDSenderStorePacket 191895 [18:08:50]StoreOFDPacket docnum=191895 [18:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 87 61 04 01 61 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 3F 30 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 ED 02 00 35 04 06 00 1A 07 A3 EA CF 52 C9 E5 CF D1 C0 1D 7C 3D [18:08:50]CheckFolder [18:08:50]dirname=/storage/ofd_packets [18:08:50]CheckFolder done [18:08:50]ProducePacketName [18:08:50]name=ofd_packets/00191895 [18:08:50]NVStorageSaveData ofd_packets/00191895 [18:08:50]File name is /storage/ofd_packets/00191895 [18:08:50]Write 298 bytes [18:08:50]NVStorageSaveData done [18:08:50]OFDSenderStorePacket done [18:08:50]KKMCreateOFDPacket done [18:08:50]NVStorageSaveData kkm_last_timestamp [18:08:50]File name is /storage/kkm_last_timestamp [18:08:50]Write 4 bytes [18:08:50]NVStorageSaveData done [18:08:50]ExternCall_PrintAddStr [18:08:50]wPrintStart [18:08:50]Write to MH i2c: 01 00 00 61 28 89 [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 07 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 07 00 61 28 00 00 00 00 00 FF 0F 9E [18:08:50]RasterBufferAndPrint [18:08:50]line Счет N : (1)31203 [18:08:50]line ИНН: 02508201610067 [18:08:50]line Контрольно-Кассовый Чек [18:08:50]line ПРОДАЖА [18:08:50]line ТРК (МРК, ГНК) : 11 [18:08:50]line Товар: 2710194210 [18:08:50]line ДТ-К-5 [18:08:50]line 19.690 * 76.20 [18:08:50]line = 1500.38 [18:08:50]line НДС 12% НСП 1% [18:08:50]line > о реализуемом товаре [18:08:50]line ОКРУГЛЕНИЕ: -0.38 [18:08:50]line ИТОГО: 1500.00 [18:08:50]line Внесено: 1500.00 [18:08:50]line СДАЧА: 0.00 [18:08:50]line НСП 1% : 13.28 [18:08:50]line НДС 12% : 159.33 [18:08:50]line Наличными: 1500.00 [18:08:50]line Безнал.: 0.00 [18:08:50]line Место: АЗС № 170 "Партнер Нефть" [18:08:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:08:50]line СНО: Общий режим [18:08:50]line Чек 258 26.10.2024 18:09 [18:08:50]line Смена: 541 ФФД: 1.0 [18:08:50]line ЗНМ: 0300000110 [18:08:50]line РНМ: 0000000000091776 [18:08:50]line Версия ККМ: 001 [18:08:50]line ФМ: 0000000000871754 [18:08:50]line ФД: 191895 [18:08:50]line ФПД: 28620117167954 [18:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T180903&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191895&fm=28620117167954&tin=02508201610067®Number=0000000000091776&sum=150000 [18:08:50]written 0, free lines is 4095 [18:08:50]OFD Sender: Processing packet 191895 [packets to send 75, broken 74] [18:08:50]ProducePacketName [18:08:50]name=ofd_packets/00191895 [18:08:50]OFD Sender: To server: pG, [18:08:50]CommunicateWithHost lk.salyk.kg:30040 [18:08:50]ConnectInit lk.salyk.kg [18:08:50]Connected sock=9 [18:08:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 87 61 04 01 61 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 3F 30 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 ED 02 00 35 04 06 00 1A 07 A3 EA CF 52 C9 E5 CF D1 C0 1D 7C 3D [18:08:50]Write to MH i2c: 01 00 00 8C 28 B4 [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 07 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 C5 0C 8C [18:08:50]RasterBufferAndPrint [18:08:50]line [18:08:50]line [18:08:50]line [18:08:50]line [18:08:50]line [18:08:50]written 0, free lines is 3304 [18:08:50]MH_Cut [18:08:50]Write to MH i2c: D1 01 00 93 28 01 8D [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: D1 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: D1 01 00 [18:08:50]MH_I2C_Read... [18:08:50]Read from MH i2c: D1 01 00 93 28 00 8C [18:08:50]Write to MH i2c: 01 00 00 94 28 BC [18:08:50]Write i2c OK [18:08:50]MH_I2C_Read... [18:08:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F AA 47 00 79 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 97 ED 02 00 F4 03 04 00 0A D5 1C 67 B6 04 01 00 00 BC 51 A5 01 D3 79 63 D0 [18:08:51]CommunicateWithHost err = 0 [18:08:51]CheckOFDResponse [18:08:51]1017 (14) - 77093643461234 [18:08:51]1041 (16) - 0000000000871754 [18:08:51]1040 (4) - 191895 [18:08:51]1012 (4) - 26.10.2024 11:39 [18:08:51]1206 (1) - 0 [18:08:51]OFD Sender: Remove packet 191895 [18:08:51]ProducePacketName [18:08:51]name=ofd_packets/00191895 [18:08:51]NVStorageDeleteData [18:08:51]OFD Sender: No OFD packet to send [18:08:51]*** Cut start [18:08:51]*** Partial cut [18:08:51]*** CUTSNS_PIN = 1 [18:08:51]*** CUTSNS_PIN = 0 [18:08:51]*** Brake cut motor [18:08:52]Read from MH i2c: 01 [18:08:52]MH_I2C_Read... [18:08:52]*** Stop cut motor [18:08:52]*** Cut end [18:08:52]Read from MH i2c: 01 07 00 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [18:08:52]process_action close_receipt done [18:08:52]requested_data is exist [18:08:52]produce_requested_data [18:08:52]requested_item fm.sn is exist - process it [18:08:52]wFMCommunicate request_size=4 [18:08:52]MH_SAM_APDU [18:08:52]CAPDU: 80 11 00 00 [18:08:52]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [18:08:52]Write i2c OK [18:08:52]MH_I2C_Read... [18:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:52]Read from MH i2c: E2 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 17 00 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8A [18:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:08:52]wFMCommunicate OK [18:08:52]requested_item fd.num is exist - process it [18:08:52]SAM_PROTO_GetFieldsCounters [18:08:52]wFMCommunicate request_size=4 [18:08:52]MH_SAM_APDU [18:08:52]CAPDU: 80 13 00 00 [18:08:52]Write to MH i2c: E2 08 00 96 28 80 13 00 00 00 00 00 00 3A [18:08:52]Write i2c OK [18:08:52]MH_I2C_Read... [18:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:52]Read from MH i2c: E2 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 62 00 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 62 00 96 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [18:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 97 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:52]wFMCommunicate OK [18:08:52]SAM_PROTO_GetFieldsCounters done [18:08:52]requested_item shift.num is exist - process it [18:08:52]requested_item shift.opened is exist - process it [18:08:52]req_shift_opened [18:08:52]FM_GetShiftState [18:08:52]SAM_PROTO_GetShiftState [18:08:52]wFMCommunicate request_size=4 [18:08:52]MH_SAM_APDU [18:08:52]CAPDU: 80 13 01 00 [18:08:52]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [18:08:52]Write i2c OK [18:08:52]MH_I2C_Read... [18:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:52]Read from MH i2c: E2 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 0E 00 [18:08:52]MH_I2C_Read... [18:08:52]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B5 [18:08:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:08:52]wFMCommunicate OK [18:08:52]SAM_PROTO_GetShiftState done [18:08:52]FM_GetShiftState done [18:08:52]req_shift_opened done [18:08:52]requested_item shift.open_date is exist - process it [18:08:52]req_shift_open_date [18:08:52]req_shift_open_date done [18:08:52]produce_requested_data done [18:08:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191895,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:08:52]process_action_free close_receipt [18:08:52]json_value_free [18:08:52]json_value_free done [18:08:52]process_json_proto returns [18:08:52]Send response to host [18:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191895,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:08:52]free response buf [18:08:52]execute_script done [18:08:52]execute_script returns [18:08:52]free content buf [18:08:52]Sock 6.Close socket [18:08:52]Sock 6.Thread stoped [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:24]accept exits with 8 [18:15:24]New connection [18:15:24]New thread 3066961252 created [18:15:24]Thread 3066817892 joined [18:15:24]Waiting for new connection... [18:15:24] Sock 8.Parse request [18:15:24]Sock 8.Check first char [18:15:24]Sock 8.First char is OK [18:15:24]request: POST /json_proto HTTP/1.0 [18:15:24]Method: POST [18:15:24]URL: /json_proto [18:15:24]Method is POST - this is cgi request [18:15:24]url: /json_proto [18:15:24]query_string will be loaded in cgi processing [18:15:24]execute_cgi json_proto POST (null) [18:15:24]execute_cgi path=json_proto method=POST [18:15:24]POST find Content-Length [18:15:24]Host: 172.17.63.131:8080 [18:15:24]Content-Length: 677 [18:15:24]Content-Type: application/json [18:15:24] [18:15:24]POST finish read [18:15:24]Found Content-Length = 677 [18:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.410, "sum" : 361.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:24]execute_script... [18:15: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)31204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.410, "sum" : 361.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:24]POST & json_proto [18:15:24]process_json_proto [18:15:24]json parsed OK: [18:15:24]protocol is kg_v1.0 [18:15:24]action value=close_receipt [18:15:24]process_action close_receipt [18:15:24]cmd_close_receipt [18:15:24]MH_GetDate [18:15:24]Write to MH i2c: F0 00 00 98 28 AF [18:15:24]Write i2c OK [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: F0 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: F0 09 00 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: F0 09 00 98 28 00 CB 31 1D 67 22 05 6E 64 31 [18:15:24]GetLastDocTimeStamp 1729966143 [18:15:24]current date 1729966539 [18:15:24]FM_GetShiftState [18:15:24]SAM_PROTO_GetShiftState [18:15:24]wFMCommunicate request_size=4 [18:15:24]MH_SAM_APDU [18:15:24]CAPDU: 80 13 01 00 [18:15:24]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [18:15:24]Write i2c OK [18:15:24]MH_I2C_Read... [18:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:24]Read from MH i2c: E2 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: E2 0E 00 [18:15:24]MH_I2C_Read... [18:15:24]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B7 [18:15:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:15:24]wFMCommunicate OK [18:15:24]SAM_PROTO_GetShiftState done [18:15:24]FM_GetShiftState done [18:15:24]opened in 1729902770 [18:15:24]opened+sec_in_day 1729989170 [18:15:24]quantity*price = 36192 [18:15:24]sum+1 = 36194 [18:15:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 361.00 Внесено: 1000.00 СДАЧА: 639.00 НСП 1% : 3.20 НДС 12% : 38.43 Наличными: 361.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 259 26.10.2024 18:15 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191896 ФПД: 167797306417362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181539&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191896&fm=167797306417362&tin=02508201610067®Number=0000000000091776&sum=36100 [18:15:25]StoreToDocumentArchive [18:15:25]shift 541 fd 191896 [18:15:25]save to /storage/0541/doc_00191896 [18:15:25]save last doc name /storage/0541/doc_00191896 to /storage/kkm_last_doc_name [18:15:25]save OK [18:15:25]Clear old archive folders... [18:15:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:25]tlvbuf is 0160B8C0 [18:15:25]SAM_PROTO_ClearQueue [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 09 00 00 [18:15:25]Write to MH i2c: E2 08 00 A6 28 80 09 00 00 00 00 00 00 40 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_ClearQueue done [18:15:25]KKMCreateOFDPacket [18:15:25]OFDProtocolAddRootSTLVToBuf [18:15:25]FM_MakeSignedData [18:15:25]FM_MakeSignedData [18:15:25]SAM_PROTO_SignData [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 01 02 [18:15:25]Write to MH i2c: E2 08 00 A7 28 80 0D 01 02 00 00 00 00 48 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=255 [18:15:25]MH_SAM_APDU [18:15: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 22 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 0F 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CB 31 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 ED 02 00 35 04 06 00 98 [18:15:25]Write to MH i2c: E2 02 01 A8 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 0F 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CB 31 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 ED 02 00 35 04 06 00 98 00 00 EF [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=10 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 02 02 05 9C 5A D7 E0 D2 [18:15:25]Write to MH i2c: E2 0D 00 A9 28 80 0D 02 02 05 00 9C 5A D7 E0 D2 00 00 D4 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [18:15:25]RAPDU: 90 00 [18:15:25]wFMCommunicate OK [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 0D 03 02 [18:15:25]Write to MH i2c: E2 08 00 AA 28 80 0D 03 02 00 00 00 00 4D [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 0B 00 AA 28 00 FC 8D D1 12 74 47 CD FB 90 00 3D [18:15:25]RAPDU: FC 8D D1 12 74 47 CD FB 90 00 [18:15:25]wFMCommunicate OK [18:15:25]SAM_PROTO_SignData done [18:15:25]FM_MakeSignedData done [18:15:25]CreateOFDProtocolMessage [18:15:25]wFMCommunicate request_size=4 [18:15:25]MH_SAM_APDU [18:15:25]CAPDU: 80 11 00 00 [18:15:25]Write to MH i2c: E2 08 00 AB 28 80 11 00 00 00 00 00 00 4D [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:25]Read from MH i2c: E2 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: E2 17 00 AB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A0 [18:15:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:15:25]wFMCommunicate OK [18:15:25]CreateOFDProtocolMessage done [18:15:25]OFDSenderStorePacket 191896 [18:15:25]StoreOFDPacket docnum=191896 [18:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 33 07 01 50 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 22 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 0F 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CB 31 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 ED 02 00 35 04 06 00 98 9C 5A D7 E0 D2 FC 8D D1 12 74 47 CD FB [18:15:25]CheckFolder [18:15:25]dirname=/storage/ofd_packets [18:15:25]CheckFolder done [18:15:25]ProducePacketName [18:15:25]name=ofd_packets/00191896 [18:15:25]NVStorageSaveData ofd_packets/00191896 [18:15:25]File name is /storage/ofd_packets/00191896 [18:15:25]Write 301 bytes [18:15:25]NVStorageSaveData done [18:15:25]OFDSenderStorePacket done [18:15:25]KKMCreateOFDPacket done [18:15:25]NVStorageSaveData kkm_last_timestamp [18:15:25]File name is /storage/kkm_last_timestamp [18:15:25]Write 4 bytes [18:15:25]NVStorageSaveData done [18:15:25]ExternCall_PrintAddStr [18:15:25]wPrintStart [18:15:25]Write to MH i2c: 01 00 00 AC 28 D4 [18:15:25]Write i2c OK [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 [18:15:25]MH_I2C_Read... [18:15:25]Read from MH i2c: 01 07 00 AC 28 00 00 00 00 00 FF 0F E9 [18:15:25]RasterBufferAndPrint [18:15:25]line Счет N : (1)31204 [18:15:25]line ИНН: 02508201610067 [18:15:25]line Контрольно-Кассовый Чек [18:15:25]line ПРОДАЖА [18:15:25]line ТРК (МРК, ГНК) : 12 [18:15:25]line Товар: 2710124130 [18:15:25]line Аи-92-К-5 [18:15:25]line 5.410 * 66.90 [18:15:25]line = 361.93 [18:15:25]line НДС 12% НСП 1% [18:15:25]line > о реализуемом товаре [18:15:25]line ОКРУГЛЕНИЕ: -0.93 [18:15:25]line ИТОГО: 361.00 [18:15:25]line Внесено: 1000.00 [18:15:25]line СДАЧА: 639.00 [18:15:25]line НСП 1% : 3.20 [18:15:25]line НДС 12% : 38.43 [18:15:25]line Наличными: 361.00 [18:15:25]line Безнал.: 0.00 [18:15:25]line Место: АЗС № 170 "Партнер Нефть" [18:15:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:15:25]line СНО: Общий режим [18:15:25]line Чек 259 26.10.2024 18:15 [18:15:25]line Смена: 541 ФФД: 1.0 [18:15:25]line ЗНМ: 0300000110 [18:15:25]line РНМ: 0000000000091776 [18:15:25]line Версия ККМ: 001 [18:15:25]line ФМ: 0000000000871754 [18:15:25]line ФД: 191896 [18:15:25]line ФПД: 167797306417362 [18:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181539&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191896&fm=167797306417362&tin=02508201610067®Number=0000000000091776&sum=36100 [18:15:26]OFD Sender: Processing packet 191896 [packets to send 75, broken 74] [18:15:26]ProducePacketName [18:15:26]name=ofd_packets/00191896 [18:15:26]OFD Sender: To server: pG, [18:15:26]CommunicateWithHost lk.salyk.kg:30040 [18:15:26]ConnectInit lk.salyk.kg [18:15:26]written 0, free lines is 4095 [18:15:26]Connected sock=6 [18:15:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 9B 33 07 01 50 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 22 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 0F 00 00 00 00 07 04 06 00 04 8D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 CB 31 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 ED 02 00 35 04 06 00 98 9C 5A D7 E0 D2 FC 8D D1 12 74 47 CD FB [18:15:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 49 93 47 00 B9 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 98 ED 02 00 F4 03 04 00 96 D6 1C 67 B6 04 01 00 00 84 5E AB B2 4E 5A A9 D3 [18:15:26]CommunicateWithHost err = 0 [18:15:26]CheckOFDResponse [18:15:26]1017 (14) - 77093643461234 [18:15:26]1041 (16) - 0000000000871754 [18:15:26]1040 (4) - 191896 [18:15:26]1012 (4) - 26.10.2024 11:46 [18:15:26]1206 (1) - 0 [18:15:26]OFD Sender: Remove packet 191896 [18:15:26]ProducePacketName [18:15:26]name=ofd_packets/00191896 [18:15:26]NVStorageDeleteData [18:15:26]Write to MH i2c: 01 00 00 D7 28 FF [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 C2 0C D4 [18:15:26]RasterBufferAndPrint [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]line [18:15:26]written 0, free lines is 3272 [18:15:26]MH_Cut [18:15:26]Write to MH i2c: D1 01 00 DE 28 01 D8 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 01 00 [18:15:26]MH_I2C_Read... [18:15:26]Read from MH i2c: D1 01 00 DE 28 00 D7 [18:15:26]Write to MH i2c: 01 00 00 DF 28 07 [18:15:26]Write i2c OK [18:15:26]MH_I2C_Read... [18:15:26]OFD Sender: No OFD packet to send [18:15:27]*** Cut start [18:15:27]*** Partial cut [18:15:27]*** CUTSNS_PIN = 1 [18:15:27]*** CUTSNS_PIN = 0 [18:15:27]*** Brake cut motor [18:15:27]Read from MH i2c: 01 [18:15:28]MH_I2C_Read... [18:15:28]*** Stop cut motor [18:15:28]*** Cut end [18:15:28]Read from MH i2c: 01 07 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [18:15:28]process_action close_receipt done [18:15:28]requested_data is exist [18:15:28]produce_requested_data [18:15:28]requested_item fm.sn is exist - process it [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 11 00 00 [18:15:28]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 17 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D5 [18:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:15:28]wFMCommunicate OK [18:15:28]requested_item fd.num is exist - process it [18:15:28]SAM_PROTO_GetFieldsCounters [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 13 00 00 [18:15:28]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 62 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [18:15:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 98 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:28]wFMCommunicate OK [18:15:28]SAM_PROTO_GetFieldsCounters done [18:15:28]requested_item shift.num is exist - process it [18:15:28]requested_item shift.opened is exist - process it [18:15:28]req_shift_opened [18:15:28]FM_GetShiftState [18:15:28]SAM_PROTO_GetShiftState [18:15:28]wFMCommunicate request_size=4 [18:15:28]MH_SAM_APDU [18:15:28]CAPDU: 80 13 01 00 [18:15:28]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [18:15:28]Write i2c OK [18:15:28]MH_I2C_Read... [18:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:28]Read from MH i2c: E2 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0E 00 [18:15:28]MH_I2C_Read... [18:15:28]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 00 [18:15:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:15:28]wFMCommunicate OK [18:15:28]SAM_PROTO_GetShiftState done [18:15:28]FM_GetShiftState done [18:15:28]req_shift_opened done [18:15:28]requested_item shift.open_date is exist - process it [18:15:28]req_shift_open_date [18:15:28]req_shift_open_date done [18:15:28]produce_requested_data done [18:15:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191896,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:15:28]process_action_free close_receipt [18:15:28]json_value_free [18:15:28]json_value_free done [18:15:28]process_json_proto returns [18:15:28]Send response to host [18:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191896,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:15:28]free response buf [18:15:28]execute_script done [18:15:28]execute_script returns [18:15:28]free content buf [18:15:28]Sock 8.Close socket [18:15:28]Sock 8.Thread stoped [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:28]accept exits with 5 [18:18:28]New connection [18:18:28]New thread 3066817892 created [18:18:28]Thread 3066961252 joined [18:18:28]Waiting for new connection... [18:18:28] Sock 5.Parse request [18:18:28]Sock 5.Check first char [18:18:28]Sock 5.First char is OK [18:18:28]request: POST /json_proto HTTP/1.0 [18:18:28]Method: POST [18:18:28]URL: /json_proto [18:18:28]Method is POST - this is cgi request [18:18:28]url: /json_proto [18:18:28]query_string will be loaded in cgi processing [18:18:28]execute_cgi json_proto POST (null) [18:18:28]execute_cgi path=json_proto method=POST [18:18:28]POST find Content-Length [18:18:28]Host: 172.17.63.131:8080 [18:18:28]Content-Length: 676 [18:18:28]Content-Type: application/json [18:18:28] [18:18:28]POST finish read [18:18:28]Found Content-Length = 676 [18:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:28]execute_script... [18:18: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)31205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:28]POST & json_proto [18:18:28]process_json_proto [18:18:28]json parsed OK: [18:18:28]protocol is kg_v1.0 [18:18:28]action value=close_receipt [18:18:28]process_action close_receipt [18:18:28]cmd_close_receipt [18:18:28]MH_GetDate [18:18:28]Write to MH i2c: F0 00 00 E3 28 FA [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 E3 28 00 83 32 1D 67 22 05 6E 64 35 [18:18:28]GetLastDocTimeStamp 1729966539 [18:18:28]current date 1729966723 [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 02 [18:18:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]opened in 1729902770 [18:18:28]opened+sec_in_day 1729989170 [18:18:28]quantity*price = 50041 [18:18:28]sum+1 = 50042 [18:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 260 26.10.2024 18:18 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191897 ФПД: 12957806709313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191897&fm=12957806709313&tin=02508201610067®Number=0000000000091776&sum=50000 [18:18:29]StoreToDocumentArchive [18:18:29]shift 541 fd 191897 [18:18:29]save to /storage/0541/doc_00191897 [18:18:29]save last doc name /storage/0541/doc_00191897 to /storage/kkm_last_doc_name [18:18:29]save OK [18:18:29]Clear old archive folders... [18:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:29]tlvbuf is 01C27610 [18:18:29]SAM_PROTO_ClearQueue [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 09 00 00 [18:18:29]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_ClearQueue done [18:18:29]KKMCreateOFDPacket [18:18:29]OFDProtocolAddRootSTLVToBuf [18:18:29]FM_MakeSignedData [18:18:29]FM_MakeSignedData [18:18:29]SAM_PROTO_SignData [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 01 02 [18:18:29]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=255 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 32 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 ED 02 00 35 04 06 00 0B [18:18:29]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 32 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 ED 02 00 35 04 06 00 0B 00 00 18 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=10 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 02 02 05 C8 F9 77 4A 41 [18:18:29]Write to MH i2c: E2 0D 00 F4 28 80 0D 02 02 05 00 C8 F9 77 4A 41 00 00 63 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 03 02 [18:18:29]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0B 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0B 00 F5 28 00 FA 8E C5 17 FE C4 35 26 90 00 1A [18:18:29]RAPDU: FA 8E C5 17 FE C4 35 26 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_SignData done [18:18:29]FM_MakeSignedData done [18:18:29]CreateOFDProtocolMessage [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 11 00 00 [18:18:29]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EB [18:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:18:29]wFMCommunicate OK [18:18:29]CreateOFDProtocolMessage done [18:18:29]OFDSenderStorePacket 191897 [18:18:29]StoreOFDPacket docnum=191897 [18:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 9B 07 01 00 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 32 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 ED 02 00 35 04 06 00 0B C8 F9 77 4A 41 FA 8E C5 17 FE C4 35 26 [18:18:29]CheckFolder [18:18:29]dirname=/storage/ofd_packets [18:18:29]CheckFolder done [18:18:29]ProducePacketName [18:18:29]name=ofd_packets/00191897 [18:18:29]NVStorageSaveData ofd_packets/00191897 [18:18:29]File name is /storage/ofd_packets/00191897 [18:18:29]Write 301 bytes [18:18:29]NVStorageSaveData done [18:18:29]OFDSenderStorePacket done [18:18:29]KKMCreateOFDPacket done [18:18:29]NVStorageSaveData kkm_last_timestamp [18:18:29]File name is /storage/kkm_last_timestamp [18:18:29]Write 4 bytes [18:18:29]NVStorageSaveData done [18:18:29]ExternCall_PrintAddStr [18:18:29]wPrintStart [18:18:29]Write to MH i2c: 01 00 00 F7 28 1F [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 07 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [18:18:29]RasterBufferAndPrint [18:18:29]line Счет N : (1)31205 [18:18:29]line ИНН: 02508201610067 [18:18:29]line Контрольно-Кассовый Чек [18:18:29]line ПРОДАЖА [18:18:29]line ТРК (МРК, ГНК) : 21 [18:18:29]line Товар: 2710124130 [18:18:29]line Аи-92-К-5 [18:18:29]line 7.480 * 66.90 [18:18:29]line = 500.41 [18:18:29]line НДС 12% НСП 1% [18:18:29]line > о реализуемом товаре [18:18:29]line ОКРУГЛЕНИЕ: -0.41 [18:18:29]line ИТОГО: 500.00 [18:18:29]line Внесено: 500.00 [18:18:29]line СДАЧА: 0.00 [18:18:29]line НСП 1% : 4.43 [18:18:29]line НДС 12% : 53.14 [18:18:29]line Наличными: 500.00 [18:18:29]line Безнал.: 0.00 [18:18:29]line Место: АЗС № 170 "Партнер Нефть" [18:18:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:18:29]line СНО: Общий режим [18:18:29]line Чек 260 26.10.2024 18:18 [18:18:29]line Смена: 541 ФФД: 1.0 [18:18:29]line ЗНМ: 0300000110 [18:18:29]line РНМ: 0000000000091776 [18:18:29]line Версия ККМ: 001 [18:18:29]line ФМ: 0000000000871754 [18:18:29]line ФД: 191897 [18:18:29]line ФПД: 12957806709313 [18:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T181844&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191897&fm=12957806709313&tin=02508201610067®Number=0000000000091776&sum=50000 [18:18:30]OFD Sender: Processing packet 191897 [packets to send 75, broken 74] [18:18:30]ProducePacketName [18:18:30]name=ofd_packets/00191897 [18:18:30]OFD Sender: To server: pG, [18:18:30]CommunicateWithHost lk.salyk.kg:30040 [18:18:30]ConnectInit lk.salyk.kg [18:18:30]written 0, free lines is 4095 [18:18:30]Connected sock=8 [18:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 9B 07 01 00 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 84 32 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 ED 02 00 35 04 06 00 0B C8 F9 77 4A 41 FA 8E C5 17 FE C4 35 26 [18:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EE 85 47 00 FD 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 99 ED 02 00 F4 03 04 00 4E D7 1C 67 B6 04 01 00 00 51 62 58 5C FB 45 04 BD [18:18:30]CommunicateWithHost err = 0 [18:18:30]CheckOFDResponse [18:18:30]1017 (14) - 77093643461234 [18:18:30]1041 (16) - 0000000000871754 [18:18:30]1040 (4) - 191897 [18:18:30]1012 (4) - 26.10.2024 11:49 [18:18:30]1206 (1) - 0 [18:18:30]OFD Sender: Remove packet 191897 [18:18:30]ProducePacketName [18:18:30]name=ofd_packets/00191897 [18:18:30]NVStorageDeleteData [18:18:30]Write to MH i2c: 01 00 00 22 29 4B [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 22 29 00 00 00 00 00 B8 0C 16 [18:18:30]RasterBufferAndPrint [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]written 0, free lines is 3264 [18:18:30]MH_Cut [18:18:30]Write to MH i2c: D1 01 00 29 29 01 24 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 01 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 01 00 29 29 00 23 [18:18:30]Write to MH i2c: 01 00 00 2A 29 53 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:31]OFD Sender: No OFD packet to send [18:18:31]*** Cut start [18:18:31]*** Partial cut [18:18:31]*** CUTSNS_PIN = 1 [18:18:31]*** CUTSNS_PIN = 0 [18:18:31]*** Brake cut motor [18:18:32]Read from MH i2c: 01 [18:18:32]MH_I2C_Read... [18:18:32]*** Stop cut motor [18:18:32]*** Cut end [18:18:32]Read from MH i2c: 01 07 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: 01 07 00 2A 29 00 00 00 00 00 FF 0F 68 [18:18:32]process_action close_receipt done [18:18:32]requested_data is exist [18:18:32]produce_requested_data [18:18:32]requested_item fm.sn is exist - process it [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 11 00 00 [18:18:32]Write to MH i2c: E2 08 00 2B 29 80 11 00 00 00 00 00 00 CE [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 17 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 17 00 2B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 21 [18:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:18:32]wFMCommunicate OK [18:18:32]requested_item fd.num is exist - process it [18:18:32]SAM_PROTO_GetFieldsCounters [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 13 00 00 [18:18:32]Write to MH i2c: E2 08 00 2C 29 80 13 00 00 00 00 00 00 D1 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 62 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 62 00 2C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [18:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 99 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_GetFieldsCounters done [18:18:32]requested_item shift.num is exist - process it [18:18:32]requested_item shift.opened is exist - process it [18:18:32]req_shift_opened [18:18:32]FM_GetShiftState [18:18:32]SAM_PROTO_GetShiftState [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 13 01 00 [18:18:32]Write to MH i2c: E2 08 00 2D 29 80 13 01 00 00 00 00 00 D3 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 2D 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4C [18:18:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_GetShiftState done [18:18:32]FM_GetShiftState done [18:18:32]req_shift_opened done [18:18:32]requested_item shift.open_date is exist - process it [18:18:32]req_shift_open_date [18:18:32]req_shift_open_date done [18:18:32]produce_requested_data done [18:18:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191897,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:18:32]process_action_free close_receipt [18:18:32]json_value_free [18:18:32]json_value_free done [18:18:32]process_json_proto returns [18:18:32]Send response to host [18:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191897,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:18:32]free response buf [18:18:32]execute_script done [18:18:32]execute_script returns [18:18:32]free content buf [18:18:32]Sock 5.Close socket [18:18:32]Sock 5.Thread stoped [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:53]accept exits with 6 [18:20:53]New connection [18:20:53]New thread 3066961252 created [18:20:53]Thread 3066817892 joined [18:20:53]Waiting for new connection... [18:20:53] Sock 6.Parse request [18:20:53]Sock 6.Check first char [18:20:53]Sock 6.First char is OK [18:20:53]request: POST /json_proto HTTP/1.0 [18:20:53]Method: POST [18:20:53]URL: /json_proto [18:20:53]Method is POST - this is cgi request [18:20:53]url: /json_proto [18:20:53]query_string will be loaded in cgi processing [18:20:53]execute_cgi json_proto POST (null) [18:20:53]execute_cgi path=json_proto method=POST [18:20:53]POST find Content-Length [18:20:53]Host: 172.17.63.131:8080 [18:20:53]Content-Length: 681 [18:20:53]Content-Type: application/json [18:20:53] [18:20:53]POST finish read [18:20:53]Found Content-Length = 681 [18:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:53]execute_script... [18:20: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)31206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:53]POST & json_proto [18:20:53]process_json_proto [18:20:53]json parsed OK: [18:20:53]protocol is kg_v1.0 [18:20:53]action value=close_receipt [18:20:53]process_action close_receipt [18:20:53]cmd_close_receipt [18:20:53]MH_GetDate [18:20:53]Write to MH i2c: F0 00 00 2E 29 46 [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: F0 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: F0 09 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: F0 09 00 2E 29 00 15 33 1D 67 22 05 6E 64 14 [18:20:53]GetLastDocTimeStamp 1729966724 [18:20:53]current date 1729966869 [18:20:53]FM_GetShiftState [18:20:53]SAM_PROTO_GetShiftState [18:20:53]wFMCommunicate request_size=4 [18:20:53]MH_SAM_APDU [18:20:53]CAPDU: 80 13 01 00 [18:20:53]Write to MH i2c: E2 08 00 2F 29 80 13 01 00 00 00 00 00 D5 [18:20:53]Write i2c OK [18:20:53]MH_I2C_Read... [18:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:53]Read from MH i2c: E2 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 0E 00 [18:20:53]MH_I2C_Read... [18:20:53]Read from MH i2c: E2 0E 00 2F 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4E [18:20:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:20:53]wFMCommunicate OK [18:20:53]SAM_PROTO_GetShiftState done [18:20:53]FM_GetShiftState done [18:20:53]opened in 1729902770 [18:20:53]opened+sec_in_day 1729989170 [18:20:53]quantity*price = 100015 [18:20:53]sum+1 = 100017 [18:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 261 26.10.2024 18:21 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191898 ФПД: 129972967955682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191898&fm=129972967955682&tin=02508201610067®Number=0000000000091776&sum=100000 [18:20:54]StoreToDocumentArchive [18:20:54]shift 541 fd 191898 [18:20:54]save to /storage/0541/doc_00191898 [18:20:54]save last doc name /storage/0541/doc_00191898 to /storage/kkm_last_doc_name [18:20:54]save OK [18:20:54]Clear old archive folders... [18:20:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:54]tlvbuf is 015C8820 [18:20:54]SAM_PROTO_ClearQueue [18:20:54]wFMCommunicate request_size=4 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 09 00 00 [18:20:54]Write to MH i2c: E2 08 00 3C 29 80 09 00 00 00 00 00 00 D7 [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [18:20:54]RAPDU: 90 00 [18:20:54]wFMCommunicate OK [18:20:54]SAM_PROTO_ClearQueue done [18:20:54]KKMCreateOFDPacket [18:20:54]OFDProtocolAddRootSTLVToBuf [18:20:54]FM_MakeSignedData [18:20:54]FM_MakeSignedData [18:20:54]SAM_PROTO_SignData [18:20:54]wFMCommunicate request_size=4 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 0D 01 02 [18:20:54]Write to MH i2c: E2 08 00 3D 29 80 0D 01 02 00 00 00 00 DF [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [18:20:54]RAPDU: 90 00 [18:20:54]wFMCommunicate OK [18:20:54]wFMCommunicate request_size=255 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 15 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A ED 02 00 35 04 06 00 76 [18:20:54]Write to MH i2c: E2 02 01 3E 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 15 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A ED 02 00 35 04 06 00 76 00 00 5D [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [18:20:54]RAPDU: 90 00 [18:20:54]wFMCommunicate OK [18:20:54]wFMCommunicate request_size=10 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 0D 02 02 05 35 B0 95 DC E2 [18:20:54]Write to MH i2c: E2 0D 00 3F 29 80 0D 02 02 05 00 35 B0 95 DC E2 00 00 24 [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 03 00 3F 29 00 90 00 DC [18:20:54]RAPDU: 90 00 [18:20:54]wFMCommunicate OK [18:20:54]wFMCommunicate request_size=4 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 0D 03 02 [18:20:54]Write to MH i2c: E2 08 00 40 29 80 0D 03 02 00 00 00 00 E4 [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 0B 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 0B 00 40 29 00 05 AB 77 50 F9 AB D9 85 90 00 5E [18:20:54]RAPDU: 05 AB 77 50 F9 AB D9 85 90 00 [18:20:54]wFMCommunicate OK [18:20:54]SAM_PROTO_SignData done [18:20:54]FM_MakeSignedData done [18:20:54]CreateOFDProtocolMessage [18:20:54]wFMCommunicate request_size=4 [18:20:54]MH_SAM_APDU [18:20:54]CAPDU: 80 11 00 00 [18:20:54]Write to MH i2c: E2 08 00 41 29 80 11 00 00 00 00 00 00 E4 [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:54]Read from MH i2c: E2 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 17 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: E2 17 00 41 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 37 [18:20:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:54]wFMCommunicate OK [18:20:54]CreateOFDProtocolMessage done [18:20:54]OFDSenderStorePacket 191898 [18:20:54]StoreOFDPacket docnum=191898 [18:20:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 65 07 01 08 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 15 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A ED 02 00 35 04 06 00 76 35 B0 95 DC E2 05 AB 77 50 F9 AB D9 85 [18:20:54]CheckFolder [18:20:54]dirname=/storage/ofd_packets [18:20:54]CheckFolder done [18:20:54]ProducePacketName [18:20:54]name=ofd_packets/00191898 [18:20:54]NVStorageSaveData ofd_packets/00191898 [18:20:54]File name is /storage/ofd_packets/00191898 [18:20:54]Write 301 bytes [18:20:54]NVStorageSaveData done [18:20:54]OFDSenderStorePacket done [18:20:54]KKMCreateOFDPacket done [18:20:54]NVStorageSaveData kkm_last_timestamp [18:20:54]File name is /storage/kkm_last_timestamp [18:20:54]Write 4 bytes [18:20:54]NVStorageSaveData done [18:20:54]ExternCall_PrintAddStr [18:20:54]wPrintStart [18:20:54]Write to MH i2c: 01 00 00 42 29 6B [18:20:54]Write i2c OK [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: 01 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: 01 07 00 [18:20:54]MH_I2C_Read... [18:20:54]Read from MH i2c: 01 07 00 42 29 00 00 00 00 00 FF 0F 80 [18:20:54]RasterBufferAndPrint [18:20:54]line Счет N : (1)31206 [18:20:54]line ИНН: 02508201610067 [18:20:54]line Контрольно-Кассовый Чек [18:20:54]line ПРОДАЖА [18:20:54]line ТРК (МРК, ГНК) : 21 [18:20:54]line Товар: 2710124130 [18:20:54]line Аи-92-К-5 [18:20:54]line 14.950 * 66.90 [18:20:54]line = 1000.16 [18:20:54]line НДС 12% НСП 1% [18:20:54]line > о реализуемом товаре [18:20:54]line ОКРУГЛЕНИЕ: -0.16 [18:20:54]line ИТОГО: 1000.00 [18:20:54]line Внесено: 1000.00 [18:20:54]line СДАЧА: 0.00 [18:20:54]line НСП 1% : 8.85 [18:20:54]line НДС 12% : 106.21 [18:20:54]line Наличными: 1000.00 [18:20:54]line Безнал.: 0.00 [18:20:54]line Место: АЗС № 170 "Партнер Нефть" [18:20:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:20:54]line СНО: Общий режим [18:20:54]line Чек 261 26.10.2024 18:21 [18:20:54]line Смена: 541 ФФД: 1.0 [18:20:54]line ЗНМ: 0300000110 [18:20:54]line РНМ: 0000000000091776 [18:20:54]line Версия ККМ: 001 [18:20:54]line ФМ: 0000000000871754 [18:20:54]line ФД: 191898 [18:20:54]line ФПД: 129972967955682 [18:20:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182109&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191898&fm=129972967955682&tin=02508201610067®Number=0000000000091776&sum=100000 [18:20:55]OFD Sender: Processing packet 191898 [packets to send 75, broken 74] [18:20:55]ProducePacketName [18:20:55]name=ofd_packets/00191898 [18:20:55]OFD Sender: To server: pG, [18:20:55]CommunicateWithHost lk.salyk.kg:30040 [18:20:55]ConnectInit lk.salyk.kg [18:20:55]written 0, free lines is 4095 [18:20:55]Connected sock=8 [18:20:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 EC 65 07 01 08 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 15 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A ED 02 00 35 04 06 00 76 35 B0 95 DC E2 05 AB 77 50 F9 AB D9 85 [18:20:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E2 7A 47 00 19 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9A ED 02 00 F4 03 04 00 DF D7 1C 67 B6 04 01 00 00 C4 F3 AF D7 52 DF 21 50 [18:20:55]CommunicateWithHost err = 0 [18:20:55]CheckOFDResponse [18:20:55]1017 (14) - 77093643461234 [18:20:55]1041 (16) - 0000000000871754 [18:20:55]1040 (4) - 191898 [18:20:55]1012 (4) - 26.10.2024 11:51 [18:20:55]1206 (1) - 0 [18:20:55]OFD Sender: Remove packet 191898 [18:20:55]ProducePacketName [18:20:55]name=ofd_packets/00191898 [18:20:55]NVStorageDeleteData [18:20:55]Write to MH i2c: 01 00 00 6D 29 96 [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: 01 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: 01 07 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: 01 07 00 6D 29 00 00 00 00 00 C4 0C 6D [18:20:55]RasterBufferAndPrint [18:20:55]line [18:20:55]line [18:20:55]line [18:20:55]line [18:20:55]line [18:20:55]written 0, free lines is 3275 [18:20:55]MH_Cut [18:20:55]Write to MH i2c: D1 01 00 74 29 01 6F [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: D1 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: D1 01 00 [18:20:55]MH_I2C_Read... [18:20:55]Read from MH i2c: D1 01 00 74 29 00 6E [18:20:55]Write to MH i2c: 01 00 00 75 29 9E [18:20:55]Write i2c OK [18:20:55]MH_I2C_Read... [18:20:56]OFD Sender: No OFD packet to send [18:20:56]*** Cut start [18:20:56]*** Partial cut [18:20:56]*** CUTSNS_PIN = 1 [18:20:56]*** CUTSNS_PIN = 0 [18:20:56]*** Brake cut motor [18:20:57]Read from MH i2c: 01 [18:20:57]MH_I2C_Read... [18:20:57]*** Stop cut motor [18:20:57]*** Cut end [18:20:57]Read from MH i2c: 01 07 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: 01 07 00 75 29 00 00 00 00 00 FF 0F B3 [18:20:57]process_action close_receipt done [18:20:57]requested_data is exist [18:20:57]produce_requested_data [18:20:57]requested_item fm.sn is exist - process it [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 11 00 00 [18:20:57]Write to MH i2c: E2 08 00 76 29 80 11 00 00 00 00 00 00 19 [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 17 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 17 00 76 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6C [18:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:20:57]wFMCommunicate OK [18:20:57]requested_item fd.num is exist - process it [18:20:57]SAM_PROTO_GetFieldsCounters [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 13 00 00 [18:20:57]Write to MH i2c: E2 08 00 77 29 80 13 00 00 00 00 00 00 1C [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 62 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 62 00 77 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [18:20:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9A ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:57]wFMCommunicate OK [18:20:57]SAM_PROTO_GetFieldsCounters done [18:20:57]requested_item shift.num is exist - process it [18:20:57]requested_item shift.opened is exist - process it [18:20:57]req_shift_opened [18:20:57]FM_GetShiftState [18:20:57]SAM_PROTO_GetShiftState [18:20:57]wFMCommunicate request_size=4 [18:20:57]MH_SAM_APDU [18:20:57]CAPDU: 80 13 01 00 [18:20:57]Write to MH i2c: E2 08 00 78 29 80 13 01 00 00 00 00 00 1E [18:20:57]Write i2c OK [18:20:57]MH_I2C_Read... [18:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:57]Read from MH i2c: E2 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0E 00 [18:20:57]MH_I2C_Read... [18:20:57]Read from MH i2c: E2 0E 00 78 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 97 [18:20:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:20:57]wFMCommunicate OK [18:20:57]SAM_PROTO_GetShiftState done [18:20:57]FM_GetShiftState done [18:20:57]req_shift_opened done [18:20:57]requested_item shift.open_date is exist - process it [18:20:57]req_shift_open_date [18:20:57]req_shift_open_date done [18:20:57]produce_requested_data done [18:20:57]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191898,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:20:57]process_action_free close_receipt [18:20:57]json_value_free [18:20:57]json_value_free done [18:20:57]process_json_proto returns [18:20:57]Send response to host [18:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191898,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:20:57]free response buf [18:20:57]execute_script done [18:20:57]execute_script returns [18:20:57]free content buf [18:20:57]Sock 6.Close socket [18:20:57]Sock 6.Thread stoped [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:01]accept exits with 5 [18:24:01]New connection [18:24:01]New thread 3066817892 created [18:24:01]Thread 3066961252 joined [18:24:01]Waiting for new connection... [18:24:01] Sock 5.Parse request [18:24:01]Sock 5.Check first char [18:24:01]Sock 5.First char is OK [18:24:01]request: POST /json_proto HTTP/1.0 [18:24:01]Method: POST [18:24:01]URL: /json_proto [18:24:01]Method is POST - this is cgi request [18:24:01]url: /json_proto [18:24:01]query_string will be loaded in cgi processing [18:24:01]execute_cgi json_proto POST (null) [18:24:01]execute_cgi path=json_proto method=POST [18:24:01]POST find Content-Length [18:24:01]Host: 172.17.63.131:8080 [18:24:01]Content-Length: 676 [18:24:01]Content-Type: application/json [18:24:01] [18:24:01]POST finish read [18:24:01]Found Content-Length = 676 [18:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:01]execute_script... [18:24:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:01]POST & json_proto [18:24:01]process_json_proto [18:24:01]json parsed OK: [18:24:01]protocol is kg_v1.0 [18:24:01]action value=close_receipt [18:24:01]process_action close_receipt [18:24:01]cmd_close_receipt [18:24:01]MH_GetDate [18:24:01]Write to MH i2c: F0 00 00 79 29 91 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: F0 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: F0 09 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: F0 09 00 79 29 00 D1 33 1D 67 22 05 6E 64 1B [18:24:01]GetLastDocTimeStamp 1729966869 [18:24:01]current date 1729967057 [18:24:01]FM_GetShiftState [18:24:01]SAM_PROTO_GetShiftState [18:24:01]wFMCommunicate request_size=4 [18:24:01]MH_SAM_APDU [18:24:01]CAPDU: 80 13 01 00 [18:24:01]Write to MH i2c: E2 08 00 7A 29 80 13 01 00 00 00 00 00 20 [18:24:01]Write i2c OK [18:24:01]MH_I2C_Read... [18:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:01]Read from MH i2c: E2 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 0E 00 [18:24:01]MH_I2C_Read... [18:24:01]Read from MH i2c: E2 0E 00 7A 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 99 [18:24:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:24:01]wFMCommunicate OK [18:24:01]SAM_PROTO_GetShiftState done [18:24:01]FM_GetShiftState done [18:24:01]opened in 1729902770 [18:24:01]opened+sec_in_day 1729989170 [18:24:01]quantity*price = 60009 [18:24:01]sum+1 = 60010 [18:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 262 26.10.2024 18:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191899 ФПД: 204061478439593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191899&fm=204061478439593&tin=02508201610067®Number=0000000000091776&sum=60000 [18:24:02]StoreToDocumentArchive [18:24:02]shift 541 fd 191899 [18:24:02]save to /storage/0541/doc_00191899 [18:24:02]save last doc name /storage/0541/doc_00191899 to /storage/kkm_last_doc_name [18:24:02]save OK [18:24:02]Clear old archive folders... [18:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:02]tlvbuf is 01C87B30 [18:24:02]SAM_PROTO_ClearQueue [18:24:02]wFMCommunicate request_size=4 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 09 00 00 [18:24:02]Write to MH i2c: E2 08 00 87 29 80 09 00 00 00 00 00 00 22 [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 03 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [18:24:02]RAPDU: 90 00 [18:24:02]wFMCommunicate OK [18:24:02]SAM_PROTO_ClearQueue done [18:24:02]KKMCreateOFDPacket [18:24:02]OFDProtocolAddRootSTLVToBuf [18:24:02]FM_MakeSignedData [18:24:02]FM_MakeSignedData [18:24:02]SAM_PROTO_SignData [18:24:02]wFMCommunicate request_size=4 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 0D 01 02 [18:24:02]Write to MH i2c: E2 08 00 88 29 80 0D 01 02 00 00 00 00 2A [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 03 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [18:24:02]RAPDU: 90 00 [18:24:02]wFMCommunicate OK [18:24:02]wFMCommunicate request_size=255 [18:24:02]MH_SAM_APDU [18:24: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D1 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B ED 02 00 35 04 06 00 B9 [18:24:02]Write to MH i2c: E2 02 01 89 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D1 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B ED 02 00 35 04 06 00 B9 00 00 8C [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 [18:24:02]MH_I2C_Read... [18:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:02]Read from MH i2c: E2 03 00 [18:24:02]MH_I2C_Read... [18:24:02]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [18:24:02]RAPDU: 90 00 [18:24:02]wFMCommunicate OK [18:24:02]wFMCommunicate request_size=10 [18:24:02]MH_SAM_APDU [18:24:02]CAPDU: 80 0D 02 02 05 97 C3 EF 4A A9 [18:24:02]Write to MH i2c: E2 0D 00 8A 29 80 0D 02 02 05 00 97 C3 EF 4A A9 00 00 73 [18:24:02]Write i2c OK [18:24:02]MH_I2C_Read... [18:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:03]Read from MH i2c: E2 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 03 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 03 00 8A 29 00 90 00 27 [18:24:03]RAPDU: 90 00 [18:24:03]wFMCommunicate OK [18:24:03]wFMCommunicate request_size=4 [18:24:03]MH_SAM_APDU [18:24:03]CAPDU: 80 0D 03 02 [18:24:03]Write to MH i2c: E2 08 00 8B 29 80 0D 03 02 00 00 00 00 2F [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:03]Read from MH i2c: E2 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 0B 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 0B 00 8B 29 00 47 86 72 C5 AD 8D 89 53 90 00 4A [18:24:03]RAPDU: 47 86 72 C5 AD 8D 89 53 90 00 [18:24:03]wFMCommunicate OK [18:24:03]SAM_PROTO_SignData done [18:24:03]FM_MakeSignedData done [18:24:03]CreateOFDProtocolMessage [18:24:03]wFMCommunicate request_size=4 [18:24:03]MH_SAM_APDU [18:24:03]CAPDU: 80 11 00 00 [18:24:03]Write to MH i2c: E2 08 00 8C 29 80 11 00 00 00 00 00 00 2F [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:03]Read from MH i2c: E2 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 17 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: E2 17 00 8C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [18:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:24:03]wFMCommunicate OK [18:24:03]CreateOFDProtocolMessage done [18:24:03]OFDSenderStorePacket 191899 [18:24:03]StoreOFDPacket docnum=191899 [18:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 EE 07 01 92 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D1 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B ED 02 00 35 04 06 00 B9 97 C3 EF 4A A9 47 86 72 C5 AD 8D 89 53 [18:24:03]CheckFolder [18:24:03]dirname=/storage/ofd_packets [18:24:03]CheckFolder done [18:24:03]ProducePacketName [18:24:03]name=ofd_packets/00191899 [18:24:03]NVStorageSaveData ofd_packets/00191899 [18:24:03]File name is /storage/ofd_packets/00191899 [18:24:03]Write 301 bytes [18:24:03]NVStorageSaveData done [18:24:03]OFDSenderStorePacket done [18:24:03]KKMCreateOFDPacket done [18:24:03]NVStorageSaveData kkm_last_timestamp [18:24:03]File name is /storage/kkm_last_timestamp [18:24:03]Write 4 bytes [18:24:03]NVStorageSaveData done [18:24:03]ExternCall_PrintAddStr [18:24:03]wPrintStart [18:24:03]Write to MH i2c: 01 00 00 8D 29 B6 [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 07 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 07 00 8D 29 00 00 00 00 00 FF 0F CB [18:24:03]RasterBufferAndPrint [18:24:03]line Счет N : (1)31207 [18:24:03]line ИНН: 02508201610067 [18:24:03]line Контрольно-Кассовый Чек [18:24:03]line ПРОДАЖА [18:24:03]line ТРК (МРК, ГНК) : 21 [18:24:03]line Товар: 2710124130 [18:24:03]line Аи-92-К-5 [18:24:03]line 8.970 * 66.90 [18:24:03]line = 600.09 [18:24:03]line НДС 12% НСП 1% [18:24:03]line > о реализуемом товаре [18:24:03]line ОКРУГЛЕНИЕ: -0.09 [18:24:03]line ИТОГО: 600.00 [18:24:03]line Внесено: 600.00 [18:24:03]line СДАЧА: 0.00 [18:24:03]line НСП 1% : 5.31 [18:24:03]line НДС 12% : 63.73 [18:24:03]line Наличными: 600.00 [18:24:03]line Безнал.: 0.00 [18:24:03]line Место: АЗС № 170 "Партнер Нефть" [18:24:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:24:03]line СНО: Общий режим [18:24:03]line Чек 262 26.10.2024 18:24 [18:24:03]line Смена: 541 ФФД: 1.0 [18:24:03]line ЗНМ: 0300000110 [18:24:03]line РНМ: 0000000000091776 [18:24:03]line Версия ККМ: 001 [18:24:03]line ФМ: 0000000000871754 [18:24:03]line ФД: 191899 [18:24:03]line ФПД: 204061478439593 [18:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182417&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191899&fm=204061478439593&tin=02508201610067®Number=0000000000091776&sum=60000 [18:24:03]OFD Sender: Processing packet 191899 [packets to send 75, broken 74] [18:24:03]ProducePacketName [18:24:03]name=ofd_packets/00191899 [18:24:03]OFD Sender: To server: pG, [18:24:03]CommunicateWithHost lk.salyk.kg:30040 [18:24:03]ConnectInit lk.salyk.kg [18:24:03]written 0, free lines is 4095 [18:24:03]Connected sock=8 [18:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 31 EE 07 01 92 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D1 33 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B ED 02 00 35 04 06 00 B9 97 C3 EF 4A A9 47 86 72 C5 AD 8D 89 53 [18:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 85 03 47 00 11 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9B ED 02 00 F4 03 04 00 9B D8 1C 67 B6 04 01 00 00 5A BB 7F 8D DF DF 48 5B [18:24:03]CommunicateWithHost err = 0 [18:24:03]CheckOFDResponse [18:24:03]1017 (14) - 77093643461234 [18:24:03]1041 (16) - 0000000000871754 [18:24:03]1040 (4) - 191899 [18:24:03]1012 (4) - 26.10.2024 11:55 [18:24:03]1206 (1) - 0 [18:24:03]OFD Sender: Remove packet 191899 [18:24:03]ProducePacketName [18:24:03]name=ofd_packets/00191899 [18:24:03]NVStorageDeleteData [18:24:03]Write to MH i2c: 01 00 00 B8 29 E1 [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 07 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: 01 07 00 B8 29 00 00 00 00 00 C2 0C B6 [18:24:03]RasterBufferAndPrint [18:24:03]line [18:24:03]line [18:24:03]line [18:24:03]line [18:24:03]line [18:24:03]written 0, free lines is 3275 [18:24:03]MH_Cut [18:24:03]Write to MH i2c: D1 01 00 BF 29 01 BA [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: D1 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: D1 01 00 [18:24:03]MH_I2C_Read... [18:24:03]Read from MH i2c: D1 01 00 BF 29 00 B9 [18:24:03]Write to MH i2c: 01 00 00 C0 29 E9 [18:24:03]Write i2c OK [18:24:03]MH_I2C_Read... [18:24:04]OFD Sender: No OFD packet to send [18:24:04]*** Cut start [18:24:04]*** Partial cut [18:24:04]*** CUTSNS_PIN = 1 [18:24:04]*** CUTSNS_PIN = 0 [18:24:05]*** Brake cut motor [18:24:05]Read from MH i2c: 01 [18:24:05]MH_I2C_Read... [18:24:05]*** Stop cut motor [18:24:05]*** Cut end [18:24:05]Read from MH i2c: 01 07 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: 01 07 00 C0 29 00 00 00 00 00 FF 0F FE [18:24:05]process_action close_receipt done [18:24:05]requested_data is exist [18:24:05]produce_requested_data [18:24:05]requested_item fm.sn is exist - process it [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 11 00 00 [18:24:05]Write to MH i2c: E2 08 00 C1 29 80 11 00 00 00 00 00 00 64 [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 17 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 17 00 C1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B7 [18:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:24:05]wFMCommunicate OK [18:24:05]requested_item fd.num is exist - process it [18:24:05]SAM_PROTO_GetFieldsCounters [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 13 00 00 [18:24:05]Write to MH i2c: E2 08 00 C2 29 80 13 00 00 00 00 00 00 67 [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 62 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 62 00 C2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [18:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9B ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:05]wFMCommunicate OK [18:24:05]SAM_PROTO_GetFieldsCounters done [18:24:05]requested_item shift.num is exist - process it [18:24:05]requested_item shift.opened is exist - process it [18:24:05]req_shift_opened [18:24:05]FM_GetShiftState [18:24:05]SAM_PROTO_GetShiftState [18:24:05]wFMCommunicate request_size=4 [18:24:05]MH_SAM_APDU [18:24:05]CAPDU: 80 13 01 00 [18:24:05]Write to MH i2c: E2 08 00 C3 29 80 13 01 00 00 00 00 00 69 [18:24:05]Write i2c OK [18:24:05]MH_I2C_Read... [18:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:05]Read from MH i2c: E2 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0E 00 [18:24:05]MH_I2C_Read... [18:24:05]Read from MH i2c: E2 0E 00 C3 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E2 [18:24:05]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:24:05]wFMCommunicate OK [18:24:05]SAM_PROTO_GetShiftState done [18:24:05]FM_GetShiftState done [18:24:05]req_shift_opened done [18:24:05]requested_item shift.open_date is exist - process it [18:24:05]req_shift_open_date [18:24:05]req_shift_open_date done [18:24:05]produce_requested_data done [18:24:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191899,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:24:05]process_action_free close_receipt [18:24:05]json_value_free [18:24:05]json_value_free done [18:24:05]process_json_proto returns [18:24:05]Send response to host [18:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191899,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:24:05]free response buf [18:24:05]execute_script done [18:24:05]execute_script returns [18:24:05]free content buf [18:24:05]Sock 5.Close socket [18:24:05]Sock 5.Thread stoped [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:08]accept exits with 6 [18:27:08]New connection [18:27:08]New thread 3066961252 created [18:27:08]Thread 3066817892 joined [18:27:08]Waiting for new connection... [18:27:08] Sock 6.Parse request [18:27:08]Sock 6.Check first char [18:27:08]Sock 6.First char is OK [18:27:08]request: POST /json_proto HTTP/1.0 [18:27:08]Method: POST [18:27:08]URL: /json_proto [18:27:08]Method is POST - this is cgi request [18:27:08]url: /json_proto [18:27:08]query_string will be loaded in cgi processing [18:27:08]execute_cgi json_proto POST (null) [18:27:08]execute_cgi path=json_proto method=POST [18:27:08]POST find Content-Length [18:27:08]Host: 172.17.63.131:8080 [18:27:08]Content-Length: 676 [18:27:08]Content-Type: application/json [18:27:08] [18:27:08]POST finish read [18:27:08]Found Content-Length = 676 [18:27:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:08]execute_script... [18:27: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)31208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:08]POST & json_proto [18:27:08]process_json_proto [18:27:08]json parsed OK: [18:27:08]protocol is kg_v1.0 [18:27:08]action value=close_receipt [18:27:08]process_action close_receipt [18:27:08]cmd_close_receipt [18:27:08]MH_GetDate [18:27:08]Write to MH i2c: F0 00 00 C4 29 DC [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: F0 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: F0 09 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: F0 09 00 C4 29 00 8C 34 1D 67 22 05 6E 64 22 [18:27:08]GetLastDocTimeStamp 1729967057 [18:27:08]current date 1729967244 [18:27:08]FM_GetShiftState [18:27:08]SAM_PROTO_GetShiftState [18:27:08]wFMCommunicate request_size=4 [18:27:08]MH_SAM_APDU [18:27:08]CAPDU: 80 13 01 00 [18:27:08]Write to MH i2c: E2 08 00 C5 29 80 13 01 00 00 00 00 00 6B [18:27:08]Write i2c OK [18:27:08]MH_I2C_Read... [18:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:08]Read from MH i2c: E2 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 [18:27:08]MH_I2C_Read... [18:27:08]Read from MH i2c: E2 0E 00 C5 29 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E4 [18:27:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:27:08]wFMCommunicate OK [18:27:08]SAM_PROTO_GetShiftState done [18:27:08]FM_GetShiftState done [18:27:08]opened in 1729902770 [18:27:08]opened+sec_in_day 1729989170 [18:27:08]quantity*price = 20003 [18:27:08]sum+1 = 20004 [18:27:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 263 26.10.2024 18:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191900 ФПД: 210424770244218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191900&fm=210424770244218&tin=02508201610067®Number=0000000000091776&sum=20000 [18:27:09]StoreToDocumentArchive [18:27:09]shift 541 fd 191900 [18:27:09]save to /storage/0541/doc_00191900 [18:27:09]save last doc name /storage/0541/doc_00191900 to /storage/kkm_last_doc_name [18:27:09]save OK [18:27:09]Clear old archive folders... [18:27:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:09]tlvbuf is 0172E9C0 [18:27:09]SAM_PROTO_ClearQueue [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 09 00 00 [18:27:09]Write to MH i2c: E2 08 00 D2 29 80 09 00 00 00 00 00 00 6D [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [18:27:09]RAPDU: 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_ClearQueue done [18:27:09]KKMCreateOFDPacket [18:27:09]OFDProtocolAddRootSTLVToBuf [18:27:09]FM_MakeSignedData [18:27:09]FM_MakeSignedData [18:27:09]SAM_PROTO_SignData [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 0D 01 02 [18:27:09]Write to MH i2c: E2 08 00 D3 29 80 0D 01 02 00 00 00 00 75 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 03 00 D3 29 00 90 00 70 [18:27:09]RAPDU: 90 00 [18:27:09]wFMCommunicate OK [18:27:09]wFMCommunicate request_size=255 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8C 34 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C ED 02 00 35 04 06 00 BF [18:27:09]Write to MH i2c: E2 02 01 D4 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8C 34 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C ED 02 00 35 04 06 00 BF 00 00 80 [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 D4 29 00 90 00 71 [18:27:10]RAPDU: 90 00 [18:27:10]wFMCommunicate OK [18:27:10]wFMCommunicate request_size=10 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 0D 02 02 05 61 55 AE AE 7A [18:27:10]Write to MH i2c: E2 0D 00 D5 29 80 0D 02 02 05 00 61 55 AE AE 7A 00 00 0E [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 03 00 D5 29 00 90 00 72 [18:27:10]RAPDU: 90 00 [18:27:10]wFMCommunicate OK [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 0D 03 02 [18:27:10]Write to MH i2c: E2 08 00 D6 29 80 0D 03 02 00 00 00 00 7A [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 0B 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 0B 00 D6 29 00 1B 3E B3 9A 50 1F 7F 9F 90 00 AE [18:27:10]RAPDU: 1B 3E B3 9A 50 1F 7F 9F 90 00 [18:27:10]wFMCommunicate OK [18:27:10]SAM_PROTO_SignData done [18:27:10]FM_MakeSignedData done [18:27:10]CreateOFDProtocolMessage [18:27:10]wFMCommunicate request_size=4 [18:27:10]MH_SAM_APDU [18:27:10]CAPDU: 80 11 00 00 [18:27:10]Write to MH i2c: E2 08 00 D7 29 80 11 00 00 00 00 00 00 7A [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:10]Read from MH i2c: E2 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 17 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: E2 17 00 D7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CD [18:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:27:10]wFMCommunicate OK [18:27:10]CreateOFDProtocolMessage done [18:27:10]OFDSenderStorePacket 191900 [18:27:10]StoreOFDPacket docnum=191900 [18:27:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 0C 07 01 79 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8C 34 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C ED 02 00 35 04 06 00 BF 61 55 AE AE 7A 1B 3E B3 9A 50 1F 7F 9F [18:27:10]CheckFolder [18:27:10]dirname=/storage/ofd_packets [18:27:10]CheckFolder done [18:27:10]ProducePacketName [18:27:10]name=ofd_packets/00191900 [18:27:10]NVStorageSaveData ofd_packets/00191900 [18:27:10]File name is /storage/ofd_packets/00191900 [18:27:10]Write 301 bytes [18:27:10]NVStorageSaveData done [18:27:10]OFDSenderStorePacket done [18:27:10]KKMCreateOFDPacket done [18:27:10]NVStorageSaveData kkm_last_timestamp [18:27:10]File name is /storage/kkm_last_timestamp [18:27:10]Write 4 bytes [18:27:10]NVStorageSaveData done [18:27:10]ExternCall_PrintAddStr [18:27:10]wPrintStart [18:27:10]Write to MH i2c: 01 00 00 D8 29 01 [18:27:10]Write i2c OK [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: 01 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: 01 07 00 [18:27:10]MH_I2C_Read... [18:27:10]Read from MH i2c: 01 07 00 D8 29 00 00 00 00 00 FF 0F 16 [18:27:10]RasterBufferAndPrint [18:27:10]line Счет N : (1)31208 [18:27:10]line ИНН: 02508201610067 [18:27:10]line Контрольно-Кассовый Чек [18:27:10]line ПРОДАЖА [18:27:10]line ТРК (МРК, ГНК) : 21 [18:27:10]line Товар: 2710124130 [18:27:10]line Аи-92-К-5 [18:27:10]line 2.990 * 66.90 [18:27:10]line = 200.03 [18:27:10]line НДС 12% НСП 1% [18:27:10]line > о реализуемом товаре [18:27:10]line ОКРУГЛЕНИЕ: -0.03 [18:27:10]line ИТОГО: 200.00 [18:27:10]line Внесено: 200.00 [18:27:10]line СДАЧА: 0.00 [18:27:10]line НСП 1% : 1.77 [18:27:10]line НДС 12% : 21.24 [18:27:10]line Наличными: 200.00 [18:27:10]line Безнал.: 0.00 [18:27:10]line Место: АЗС № 170 "Партнер Нефть" [18:27:10]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:27:10]line СНО: Общий режим [18:27:10]line Чек 263 26.10.2024 18:27 [18:27:10]line Смена: 541 ФФД: 1.0 [18:27:10]line ЗНМ: 0300000110 [18:27:10]line РНМ: 0000000000091776 [18:27:10]line Версия ККМ: 001 [18:27:10]line ФМ: 0000000000871754 [18:27:10]line ФД: 191900 [18:27:10]line ФПД: 210424770244218 [18:27:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T182724&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191900&fm=210424770244218&tin=02508201610067®Number=0000000000091776&sum=20000 [18:27:10]OFD Sender: Processing packet 191900 [packets to send 75, broken 74] [18:27:10]ProducePacketName [18:27:10]name=ofd_packets/00191900 [18:27:10]OFD Sender: To server: pG, [18:27:10]CommunicateWithHost lk.salyk.kg:30040 [18:27:10]ConnectInit lk.salyk.kg [18:27:10]written 0, free lines is 4095 [18:27:10]Connected sock=8 [18:27:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 0C 07 01 79 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8C 34 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C ED 02 00 35 04 06 00 BF 61 55 AE AE 7A 1B 3E B3 9A 50 1F 7F 9F [18:27:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B7 73 47 00 74 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9C ED 02 00 F4 03 04 00 56 D9 1C 67 B6 04 01 00 00 A3 FD 8C 0E 6B 02 1F 1B [18:27:10]CommunicateWithHost err = 0 [18:27:10]CheckOFDResponse [18:27:10]1017 (14) - 77093643461234 [18:27:10]1041 (16) - 0000000000871754 [18:27:10]1040 (4) - 191900 [18:27:10]1012 (4) - 26.10.2024 11:58 [18:27:10]1206 (1) - 0 [18:27:10]OFD Sender: Remove packet 191900 [18:27:10]ProducePacketName [18:27:10]name=ofd_packets/00191900 [18:27:10]NVStorageDeleteData [18:27:11]Write to MH i2c: 01 00 00 03 2A 2D [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: 01 07 00 03 2A 00 00 00 00 00 BB 0C FB [18:27:11]RasterBufferAndPrint [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]line [18:27:11]written 0, free lines is 3269 [18:27:11]MH_Cut [18:27:11]Write to MH i2c: D1 01 00 0A 2A 01 06 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 01 00 [18:27:11]MH_I2C_Read... [18:27:11]Read from MH i2c: D1 01 00 0A 2A 00 05 [18:27:11]Write to MH i2c: 01 00 00 0B 2A 35 [18:27:11]Write i2c OK [18:27:11]MH_I2C_Read... [18:27:11]OFD Sender: No OFD packet to send [18:27:11]*** Cut start [18:27:11]*** Partial cut [18:27:11]*** CUTSNS_PIN = 1 [18:27:11]*** CUTSNS_PIN = 0 [18:27:12]*** Brake cut motor [18:27:12]Read from MH i2c: 01 [18:27:12]MH_I2C_Read... [18:27:12]*** Stop cut motor [18:27:12]*** Cut end [18:27:12]Read from MH i2c: 01 07 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 FF 0F 4A [18:27:12]process_action close_receipt done [18:27:12]requested_data is exist [18:27:12]produce_requested_data [18:27:12]requested_item fm.sn is exist - process it [18:27:12]wFMCommunicate request_size=4 [18:27:12]MH_SAM_APDU [18:27:12]CAPDU: 80 11 00 00 [18:27:12]Write to MH i2c: E2 08 00 0C 2A 80 11 00 00 00 00 00 00 B0 [18:27:12]Write i2c OK [18:27:12]MH_I2C_Read... [18:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:12]Read from MH i2c: E2 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 17 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 17 00 0C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 03 [18:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:27:12]wFMCommunicate OK [18:27:12]requested_item fd.num is exist - process it [18:27:12]SAM_PROTO_GetFieldsCounters [18:27:12]wFMCommunicate request_size=4 [18:27:12]MH_SAM_APDU [18:27:12]CAPDU: 80 13 00 00 [18:27:12]Write to MH i2c: E2 08 00 0D 2A 80 13 00 00 00 00 00 00 B3 [18:27:12]Write i2c OK [18:27:12]MH_I2C_Read... [18:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:12]Read from MH i2c: E2 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 62 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 62 00 0D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [18:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9C ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:12]wFMCommunicate OK [18:27:12]SAM_PROTO_GetFieldsCounters done [18:27:12]requested_item shift.num is exist - process it [18:27:12]requested_item shift.opened is exist - process it [18:27:12]req_shift_opened [18:27:12]FM_GetShiftState [18:27:12]SAM_PROTO_GetShiftState [18:27:12]wFMCommunicate request_size=4 [18:27:12]MH_SAM_APDU [18:27:12]CAPDU: 80 13 01 00 [18:27:12]Write to MH i2c: E2 08 00 0E 2A 80 13 01 00 00 00 00 00 B5 [18:27:12]Write i2c OK [18:27:12]MH_I2C_Read... [18:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:12]Read from MH i2c: E2 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 0E 00 [18:27:12]MH_I2C_Read... [18:27:12]Read from MH i2c: E2 0E 00 0E 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2E [18:27:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:27:12]wFMCommunicate OK [18:27:12]SAM_PROTO_GetShiftState done [18:27:12]FM_GetShiftState done [18:27:12]req_shift_opened done [18:27:12]requested_item shift.open_date is exist - process it [18:27:12]req_shift_open_date [18:27:12]req_shift_open_date done [18:27:12]produce_requested_data done [18:27:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191900,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:27:12]process_action_free close_receipt [18:27:12]json_value_free [18:27:12]json_value_free done [18:27:12]process_json_proto returns [18:27:12]Send response to host [18:27:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191900,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:27:12]free response buf [18:27:12]execute_script done [18:27:12]execute_script returns [18:27:12]free content buf [18:27:12]Sock 6.Close socket [18:27:12]Sock 6.Thread stoped [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:34:59]accept exits with 5 [18:34:59]New connection [18:34:59]New thread 3066817892 created [18:34:59]Thread 3066961252 joined [18:34:59]Waiting for new connection... [18:34:59] Sock 5.Parse request [18:34:59]Sock 5.Check first char [18:34:59]Sock 5.First char is OK [18:34:59]request: POST /json_proto HTTP/1.0 [18:34:59]Method: POST [18:34:59]URL: /json_proto [18:34:59]Method is POST - this is cgi request [18:34:59]url: /json_proto [18:34:59]query_string will be loaded in cgi processing [18:34:59]execute_cgi json_proto POST (null) [18:34:59]execute_cgi path=json_proto method=POST [18:34:59]POST find Content-Length [18:34:59]Host: 172.17.63.131:8080 [18:34:59]Content-Length: 676 [18:34:59]Content-Type: application/json [18:34:59] [18:34:59]POST finish read [18:34:59]Found Content-Length = 676 [18:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:59]execute_script... [18:34: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)31209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:59]POST & json_proto [18:34:59]process_json_proto [18:34:59]json parsed OK: [18:34:59]protocol is kg_v1.0 [18:34:59]action value=close_receipt [18:34:59]process_action close_receipt [18:34:59]cmd_close_receipt [18:34:59]MH_GetDate [18:34:59]Write to MH i2c: F0 00 00 0F 2A 28 [18:34:59]Write i2c OK [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 09 00 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: F0 09 00 0F 2A 00 62 36 1D 67 22 05 6E 64 46 [18:34:59]GetLastDocTimeStamp 1729967244 [18:34:59]current date 1729967714 [18:34:59]FM_GetShiftState [18:34:59]SAM_PROTO_GetShiftState [18:34:59]wFMCommunicate request_size=4 [18:34:59]MH_SAM_APDU [18:34:59]CAPDU: 80 13 01 00 [18:34:59]Write to MH i2c: E2 08 00 10 2A 80 13 01 00 00 00 00 00 B7 [18:34:59]Write i2c OK [18:34:59]MH_I2C_Read... [18:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:59]Read from MH i2c: E2 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: E2 0E 00 [18:34:59]MH_I2C_Read... [18:34:59]Read from MH i2c: E2 0E 00 10 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 30 [18:34:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:34:59]wFMCommunicate OK [18:34:59]SAM_PROTO_GetShiftState done [18:34:59]FM_GetShiftState done [18:34:59]opened in 1729902770 [18:34:59]opened+sec_in_day 1729989170 [18:34:59]quantity*price = 40006 [18:34:59]sum+1 = 40007 [18:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 264 26.10.2024 18:35 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191901 ФПД: 47726591614684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183515&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191901&fm=47726591614684&tin=02508201610067®Number=0000000000091776&sum=40000 [18:35:00]StoreToDocumentArchive [18:35:00]shift 541 fd 191901 [18:35:00]save to /storage/0541/doc_00191901 [18:35:00]save last doc name /storage/0541/doc_00191901 to /storage/kkm_last_doc_name [18:35:00]save OK [18:35:00]Clear old archive folders... [18:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:00]tlvbuf is 019D2920 [18:35:00]SAM_PROTO_ClearQueue [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 09 00 00 [18:35:00]Write to MH i2c: E2 08 00 1D 2A 80 09 00 00 00 00 00 00 B9 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 1D 2A 00 90 00 BB [18:35:00]RAPDU: 90 00 [18:35:00]wFMCommunicate OK [18:35:00]SAM_PROTO_ClearQueue done [18:35:00]KKMCreateOFDPacket [18:35:00]OFDProtocolAddRootSTLVToBuf [18:35:00]FM_MakeSignedData [18:35:00]FM_MakeSignedData [18:35:00]SAM_PROTO_SignData [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 0D 01 02 [18:35:00]Write to MH i2c: E2 08 00 1E 2A 80 0D 01 02 00 00 00 00 C1 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 1E 2A 00 90 00 BC [18:35:00]RAPDU: 90 00 [18:35:00]wFMCommunicate OK [18:35:00]wFMCommunicate request_size=255 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 63 36 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D ED 02 00 35 04 06 00 2B [18:35:00]Write to MH i2c: E2 02 01 1F 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 63 36 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D ED 02 00 35 04 06 00 2B 00 00 20 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 1F 2A 00 90 00 BD [18:35:00]RAPDU: 90 00 [18:35:00]wFMCommunicate OK [18:35:00]wFMCommunicate request_size=10 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 0D 02 02 05 68 36 8A 1E DC [18:35:00]Write to MH i2c: E2 0D 00 20 2A 80 0D 02 02 05 00 68 36 8A 1E DC 00 00 F0 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 03 00 20 2A 00 90 00 BE [18:35:00]RAPDU: 90 00 [18:35:00]wFMCommunicate OK [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 0D 03 02 [18:35:00]Write to MH i2c: E2 08 00 21 2A 80 0D 03 02 00 00 00 00 C6 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 0B 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 0B 00 21 2A 00 78 07 CF 19 EC F4 6A 48 90 00 C0 [18:35:00]RAPDU: 78 07 CF 19 EC F4 6A 48 90 00 [18:35:00]wFMCommunicate OK [18:35:00]SAM_PROTO_SignData done [18:35:00]FM_MakeSignedData done [18:35:00]CreateOFDProtocolMessage [18:35:00]wFMCommunicate request_size=4 [18:35:00]MH_SAM_APDU [18:35:00]CAPDU: 80 11 00 00 [18:35:00]Write to MH i2c: E2 08 00 22 2A 80 11 00 00 00 00 00 00 C6 [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:00]Read from MH i2c: E2 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 17 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: E2 17 00 22 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 19 [18:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:35:00]wFMCommunicate OK [18:35:00]CreateOFDProtocolMessage done [18:35:00]OFDSenderStorePacket 191901 [18:35:00]StoreOFDPacket docnum=191901 [18:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 1F 07 01 17 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 63 36 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D ED 02 00 35 04 06 00 2B 68 36 8A 1E DC 78 07 CF 19 EC F4 6A 48 [18:35:00]CheckFolder [18:35:00]dirname=/storage/ofd_packets [18:35:00]CheckFolder done [18:35:00]ProducePacketName [18:35:00]name=ofd_packets/00191901 [18:35:00]NVStorageSaveData ofd_packets/00191901 [18:35:00]File name is /storage/ofd_packets/00191901 [18:35:00]Write 301 bytes [18:35:00]NVStorageSaveData done [18:35:00]OFDSenderStorePacket done [18:35:00]KKMCreateOFDPacket done [18:35:00]NVStorageSaveData kkm_last_timestamp [18:35:00]File name is /storage/kkm_last_timestamp [18:35:00]Write 4 bytes [18:35:00]NVStorageSaveData done [18:35:00]ExternCall_PrintAddStr [18:35:00]wPrintStart [18:35:00]Write to MH i2c: 01 00 00 23 2A 4D [18:35:00]Write i2c OK [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: 01 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: 01 07 00 [18:35:00]MH_I2C_Read... [18:35:00]Read from MH i2c: 01 07 00 23 2A 00 00 00 00 00 FF 0F 62 [18:35:00]RasterBufferAndPrint [18:35:00]line Счет N : (1)31209 [18:35:00]line ИНН: 02508201610067 [18:35:00]line Контрольно-Кассовый Чек [18:35:00]line ПРОДАЖА [18:35:00]line ТРК (МРК, ГНК) : 21 [18:35:00]line Товар: 2710124130 [18:35:00]line Аи-92-К-5 [18:35:00]line 5.980 * 66.90 [18:35:00]line = 400.06 [18:35:00]line НДС 12% НСП 1% [18:35:00]line > о реализуемом товаре [18:35:00]line ОКРУГЛЕНИЕ: -0.06 [18:35:00]line ИТОГО: 400.00 [18:35:00]line Внесено: 400.00 [18:35:00]line СДАЧА: 0.00 [18:35:00]line НСП 1% : 3.54 [18:35:00]line НДС 12% : 42.48 [18:35:00]line Наличными: 400.00 [18:35:00]line Безнал.: 0.00 [18:35:00]line Место: АЗС № 170 "Партнер Нефть" [18:35:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:35:00]line СНО: Общий режим [18:35:00]line Чек 264 26.10.2024 18:35 [18:35:00]line Смена: 541 ФФД: 1.0 [18:35:00]line ЗНМ: 0300000110 [18:35:00]line РНМ: 0000000000091776 [18:35:00]line Версия ККМ: 001 [18:35:00]line ФМ: 0000000000871754 [18:35:00]line ФД: 191901 [18:35:00]line ФПД: 47726591614684 [18:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T183515&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191901&fm=47726591614684&tin=02508201610067®Number=0000000000091776&sum=40000 [18:35:01]OFD Sender: Processing packet 191901 [packets to send 75, broken 74] [18:35:01]ProducePacketName [18:35:01]name=ofd_packets/00191901 [18:35:01]OFD Sender: To server: pG, [18:35:01]CommunicateWithHost lk.salyk.kg:30040 [18:35:01]ConnectInit lk.salyk.kg [18:35:01]written 0, free lines is 4095 [18:35:01]Connected sock=8 [18:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 36 1F 07 01 17 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 63 36 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D ED 02 00 35 04 06 00 2B 68 36 8A 1E DC 78 07 CF 19 EC F4 6A 48 [18:35:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7D 08 47 00 EF 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9D ED 02 00 F4 03 04 00 2D DB 1C 67 B6 04 01 00 00 EE B0 CF 9C 54 C1 36 5D [18:35:01]CommunicateWithHost err = 0 [18:35:01]CheckOFDResponse [18:35:01]1017 (14) - 77093643461234 [18:35:01]1041 (16) - 0000000000871754 [18:35:01]1040 (4) - 191901 [18:35:01]1012 (4) - 26.10.2024 12:06 [18:35:01]1206 (1) - 0 [18:35:01]OFD Sender: Remove packet 191901 [18:35:01]ProducePacketName [18:35:01]name=ofd_packets/00191901 [18:35:01]NVStorageDeleteData [18:35:01]Write to MH i2c: 01 00 00 4E 2A 78 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 07 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: 01 07 00 4E 2A 00 00 00 00 00 C6 0C 51 [18:35:01]RasterBufferAndPrint [18:35:01]line [18:35:01]line [18:35:01]line [18:35:01]line [18:35:01]line [18:35:01]written 0, free lines is 3276 [18:35:01]MH_Cut [18:35:01]Write to MH i2c: D1 01 00 55 2A 01 51 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: D1 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: D1 01 00 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: D1 01 00 55 2A 00 50 [18:35:01]Write to MH i2c: 01 00 00 56 2A 80 [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]OFD Sender: No OFD packet to send [18:35:02]*** Cut start [18:35:02]*** Partial cut [18:35:02]*** CUTSNS_PIN = 1 [18:35:02]*** CUTSNS_PIN = 0 [18:35:02]*** Brake cut motor [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]*** Stop cut motor [18:35:03]*** Cut end [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 56 2A 00 00 00 00 00 FF 0F 95 [18:35:03]process_action close_receipt done [18:35:03]requested_data is exist [18:35:03]produce_requested_data [18:35:03]requested_item fm.sn is exist - process it [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 11 00 00 [18:35:03]Write to MH i2c: E2 08 00 57 2A 80 11 00 00 00 00 00 00 FB [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 57 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4E [18:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:35:03]wFMCommunicate OK [18:35:03]requested_item fd.num is exist - process it [18:35:03]SAM_PROTO_GetFieldsCounters [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 13 00 00 [18:35:03]Write to MH i2c: E2 08 00 58 2A 80 13 00 00 00 00 00 00 FE [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 62 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 62 00 58 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [18:35:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9D ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_GetFieldsCounters done [18:35:03]requested_item shift.num is exist - process it [18:35:03]requested_item shift.opened is exist - process it [18:35:03]req_shift_opened [18:35:03]FM_GetShiftState [18:35:03]SAM_PROTO_GetShiftState [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 13 01 00 [18:35:03]Write to MH i2c: E2 08 00 59 2A 80 13 01 00 00 00 00 00 00 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0E 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0E 00 59 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 79 [18:35:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_GetShiftState done [18:35:03]FM_GetShiftState done [18:35:03]req_shift_opened done [18:35:03]requested_item shift.open_date is exist - process it [18:35:03]req_shift_open_date [18:35:03]req_shift_open_date done [18:35:03]produce_requested_data done [18:35:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191901,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:35:03]process_action_free close_receipt [18:35:03]json_value_free [18:35:03]json_value_free done [18:35:03]process_json_proto returns [18:35:03]Send response to host [18:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191901,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:35:03]free response buf [18:35:03]execute_script done [18:35:03]execute_script returns [18:35:03]free content buf [18:35:03]Sock 5.Close socket [18:35:03]Sock 5.Thread stoped [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]accept exits with 6 [18:39:57]New connection [18:39:57]New thread 3066961252 created [18:39:57]Thread 3066817892 joined [18:39:57]Waiting for new connection... [18:39:57] Sock 6.Parse request [18:39:57]Sock 6.Check first char [18:39:57]Sock 6.First char is OK [18:39:57]request: POST /json_proto HTTP/1.0 [18:39:57]Method: POST [18:39:57]URL: /json_proto [18:39:57]Method is POST - this is cgi request [18:39:57]url: /json_proto [18:39:57]query_string will be loaded in cgi processing [18:39:57]execute_cgi json_proto POST (null) [18:39:57]execute_cgi path=json_proto method=POST [18:39:57]POST find Content-Length [18:39:57]Host: 172.17.63.131:8080 [18:39:57]Content-Length: 681 [18:39:57]Content-Type: application/json [18:39:57] [18:39:57]POST finish read [18:39:57]Found Content-Length = 681 [18:39:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:57]execute_script... [18: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)31210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:57]POST & json_proto [18:39:57]process_json_proto [18:39:57]json parsed OK: [18:39:57]protocol is kg_v1.0 [18:39:57]action value=close_receipt [18:39:57]process_action close_receipt [18:39:57]cmd_close_receipt [18:39:57]MH_GetDate [18:39:57]Write to MH i2c: F0 00 00 5A 2A 73 [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: F0 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: F0 09 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: F0 09 00 5A 2A 00 8D 37 1D 67 22 05 6E 64 BD [18:39:57]GetLastDocTimeStamp 1729967715 [18:39:57]current date 1729968013 [18:39:57]FM_GetShiftState [18:39:57]SAM_PROTO_GetShiftState [18:39:57]wFMCommunicate request_size=4 [18:39:57]MH_SAM_APDU [18:39:57]CAPDU: 80 13 01 00 [18:39:57]Write to MH i2c: E2 08 00 5B 2A 80 13 01 00 00 00 00 00 02 [18:39:57]Write i2c OK [18:39:57]MH_I2C_Read... [18:39:57]OFD Sender: No OFD packet to send [18:39:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:57]Read from MH i2c: E2 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: E2 0E 00 [18:39:57]MH_I2C_Read... [18:39:57]Read from MH i2c: E2 0E 00 5B 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 7B [18:39:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:39:57]wFMCommunicate OK [18:39:57]SAM_PROTO_GetShiftState done [18:39:57]FM_GetShiftState done [18:39:57]opened in 1729902770 [18:39:57]opened+sec_in_day 1729989170 [18:39:57]quantity*price = 100015 [18:39:57]sum+1 = 100017 [18:39:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 265 26.10.2024 18:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191902 ФПД: 93204109751811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191902&fm=93204109751811&tin=02508201610067®Number=0000000000091776&sum=100000 [18:39:58]StoreToDocumentArchive [18:39:58]shift 541 fd 191902 [18:39:58]save to /storage/0541/doc_00191902 [18:39:58]save last doc name /storage/0541/doc_00191902 to /storage/kkm_last_doc_name [18:39:58]save OK [18:39:58]Clear old archive folders... [18:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:58]tlvbuf is 0187D3F0 [18:39:58]SAM_PROTO_ClearQueue [18:39:58]wFMCommunicate request_size=4 [18:39:58]MH_SAM_APDU [18:39:58]CAPDU: 80 09 00 00 [18:39:58]Write to MH i2c: E2 08 00 68 2A 80 09 00 00 00 00 00 00 04 [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:58]Read from MH i2c: E2 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 68 2A 00 90 00 06 [18:39:58]RAPDU: 90 00 [18:39:58]wFMCommunicate OK [18:39:58]SAM_PROTO_ClearQueue done [18:39:58]KKMCreateOFDPacket [18:39:58]OFDProtocolAddRootSTLVToBuf [18:39:58]FM_MakeSignedData [18:39:58]FM_MakeSignedData [18:39:58]SAM_PROTO_SignData [18:39:58]wFMCommunicate request_size=4 [18:39:58]MH_SAM_APDU [18:39:58]CAPDU: 80 0D 01 02 [18:39:58]Write to MH i2c: E2 08 00 69 2A 80 0D 01 02 00 00 00 00 0C [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:58]Read from MH i2c: E2 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 69 2A 00 90 00 07 [18:39:58]RAPDU: 90 00 [18:39:58]wFMCommunicate OK [18:39:58]wFMCommunicate request_size=255 [18:39:58]MH_SAM_APDU [18: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8D 37 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E ED 02 00 35 04 06 00 54 [18:39:58]Write to MH i2c: E2 02 01 6A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8D 37 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E ED 02 00 35 04 06 00 54 00 00 EC [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:58]Read from MH i2c: E2 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 6A 2A 00 90 00 08 [18:39:58]RAPDU: 90 00 [18:39:58]wFMCommunicate OK [18:39:58]wFMCommunicate request_size=10 [18:39:58]MH_SAM_APDU [18:39:58]CAPDU: 80 0D 02 02 05 C4 C5 DA 76 03 [18:39:58]Write to MH i2c: E2 0D 00 6B 2A 80 0D 02 02 05 00 C4 C5 DA 76 03 00 00 F5 [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:58]Read from MH i2c: E2 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 03 00 6B 2A 00 90 00 09 [18:39:58]RAPDU: 90 00 [18:39:58]wFMCommunicate OK [18:39:58]wFMCommunicate request_size=4 [18:39:58]MH_SAM_APDU [18:39:58]CAPDU: 80 0D 03 02 [18:39:58]Write to MH i2c: E2 08 00 6C 2A 80 0D 03 02 00 00 00 00 11 [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:58]Read from MH i2c: E2 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 0B 00 [18:39:58]MH_I2C_Read... [18:39:58]Read from MH i2c: E2 0B 00 6C 2A 00 19 DC E1 76 5E 42 14 91 90 00 A3 [18:39:58]RAPDU: 19 DC E1 76 5E 42 14 91 90 00 [18:39:58]wFMCommunicate OK [18:39:58]SAM_PROTO_SignData done [18:39:58]FM_MakeSignedData done [18:39:58]CreateOFDProtocolMessage [18:39:58]wFMCommunicate request_size=4 [18:39:58]MH_SAM_APDU [18:39:58]CAPDU: 80 11 00 00 [18:39:58]Write to MH i2c: E2 08 00 6D 2A 80 11 00 00 00 00 00 00 11 [18:39:58]Write i2c OK [18:39:58]MH_I2C_Read... [18:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:59]Read from MH i2c: E2 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: E2 17 00 6D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 64 [18:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:39:59]wFMCommunicate OK [18:39:59]CreateOFDProtocolMessage done [18:39:59]OFDSenderStorePacket 191902 [18:39:59]StoreOFDPacket docnum=191902 [18:39:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 48 07 01 29 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8D 37 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E ED 02 00 35 04 06 00 54 C4 C5 DA 76 03 19 DC E1 76 5E 42 14 91 [18:39:59]CheckFolder [18:39:59]dirname=/storage/ofd_packets [18:39:59]CheckFolder done [18:39:59]ProducePacketName [18:39:59]name=ofd_packets/00191902 [18:39:59]NVStorageSaveData ofd_packets/00191902 [18:39:59]File name is /storage/ofd_packets/00191902 [18:39:59]Write 301 bytes [18:39:59]NVStorageSaveData done [18:39:59]OFDSenderStorePacket done [18:39:59]KKMCreateOFDPacket done [18:39:59]NVStorageSaveData kkm_last_timestamp [18:39:59]File name is /storage/kkm_last_timestamp [18:39:59]Write 4 bytes [18:39:59]NVStorageSaveData done [18:39:59]ExternCall_PrintAddStr [18:39:59]wPrintStart [18:39:59]Write to MH i2c: 01 00 00 6E 2A 98 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 07 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 07 00 6E 2A 00 00 00 00 00 FF 0F AD [18:39:59]RasterBufferAndPrint [18:39:59]line Счет N : (1)31210 [18:39:59]line ИНН: 02508201610067 [18:39:59]line Контрольно-Кассовый Чек [18:39:59]line ПРОДАЖА [18:39:59]line ТРК (МРК, ГНК) : 21 [18:39:59]line Товар: 2710124130 [18:39:59]line Аи-92-К-5 [18:39:59]line 14.950 * 66.90 [18:39:59]line = 1000.16 [18:39:59]line НДС 12% НСП 1% [18:39:59]line > о реализуемом товаре [18:39:59]line ОКРУГЛЕНИЕ: -0.16 [18:39:59]line ИТОГО: 1000.00 [18:39:59]line Внесено: 1000.00 [18:39:59]line СДАЧА: 0.00 [18:39:59]line НСП 1% : 8.85 [18:39:59]line НДС 12% : 106.21 [18:39:59]line Наличными: 1000.00 [18:39:59]line Безнал.: 0.00 [18:39:59]line Место: АЗС № 170 "Партнер Нефть" [18:39:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:39:59]line СНО: Общий режим [18:39:59]line Чек 265 26.10.2024 18:40 [18:39:59]line Смена: 541 ФФД: 1.0 [18:39:59]line ЗНМ: 0300000110 [18:39:59]line РНМ: 0000000000091776 [18:39:59]line Версия ККМ: 001 [18:39:59]line ФМ: 0000000000871754 [18:39:59]line ФД: 191902 [18:39:59]line ФПД: 93204109751811 [18:39:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184013&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191902&fm=93204109751811&tin=02508201610067®Number=0000000000091776&sum=100000 [18:39:59]OFD Sender: Processing packet 191902 [packets to send 75, broken 74] [18:39:59]ProducePacketName [18:39:59]name=ofd_packets/00191902 [18:39:59]OFD Sender: To server: pG, [18:39:59]CommunicateWithHost lk.salyk.kg:30040 [18:39:59]ConnectInit lk.salyk.kg [18:39:59]written 0, free lines is 4095 [18:39:59]Connected sock=8 [18:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 38 48 07 01 29 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 8D 37 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E ED 02 00 35 04 06 00 54 C4 C5 DA 76 03 19 DC E1 76 5E 42 14 91 [18:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E5 D7 47 00 12 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9E ED 02 00 F4 03 04 00 57 DC 1C 67 B6 04 01 00 00 A4 AC A1 A7 DB 64 41 BC [18:39:59]CommunicateWithHost err = 0 [18:39:59]CheckOFDResponse [18:39:59]1017 (14) - 77093643461234 [18:39:59]1041 (16) - 0000000000871754 [18:39:59]1040 (4) - 191902 [18:39:59]1012 (4) - 26.10.2024 12:11 [18:39:59]1206 (1) - 0 [18:39:59]OFD Sender: Remove packet 191902 [18:39:59]ProducePacketName [18:39:59]name=ofd_packets/00191902 [18:39:59]NVStorageDeleteData [18:39:59]Write to MH i2c: 01 00 00 99 2A C3 [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 07 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: 01 07 00 99 2A 00 00 00 00 00 B9 0C 8F [18:39:59]RasterBufferAndPrint [18:39:59]line [18:39:59]line [18:39:59]line [18:39:59]line [18:39:59]line [18:39:59]written 0, free lines is 3265 [18:39:59]MH_Cut [18:39:59]Write to MH i2c: D1 01 00 A0 2A 01 9C [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: D1 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: D1 01 00 [18:39:59]MH_I2C_Read... [18:39:59]Read from MH i2c: D1 01 00 A0 2A 00 9B [18:39:59]Write to MH i2c: 01 00 00 A1 2A CB [18:39:59]Write i2c OK [18:39:59]MH_I2C_Read... [18:40:00]OFD Sender: No OFD packet to send [18:40:00]*** Cut start [18:40:00]*** Partial cut [18:40:00]*** CUTSNS_PIN = 1 [18:40:00]*** CUTSNS_PIN = 0 [18:40:00]*** Brake cut motor [18:40:01]Read from MH i2c: 01 [18:40:01]MH_I2C_Read... [18:40:01]*** Stop cut motor [18:40:01]*** Cut end [18:40:01]Read from MH i2c: 01 07 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: 01 07 00 A1 2A 00 00 00 00 00 FF 0F E0 [18:40:01]process_action close_receipt done [18:40:01]requested_data is exist [18:40:01]produce_requested_data [18:40:01]requested_item fm.sn is exist - process it [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 11 00 00 [18:40:01]Write to MH i2c: E2 08 00 A2 2A 80 11 00 00 00 00 00 00 46 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 17 00 A2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 99 [18:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:40:01]wFMCommunicate OK [18:40:01]requested_item fd.num is exist - process it [18:40:01]SAM_PROTO_GetFieldsCounters [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 13 00 00 [18:40:01]Write to MH i2c: E2 08 00 A3 2A 80 13 00 00 00 00 00 00 49 [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 62 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 62 00 A3 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [18:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9E ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:01]wFMCommunicate OK [18:40:01]SAM_PROTO_GetFieldsCounters done [18:40:01]requested_item shift.num is exist - process it [18:40:01]requested_item shift.opened is exist - process it [18:40:01]req_shift_opened [18:40:01]FM_GetShiftState [18:40:01]SAM_PROTO_GetShiftState [18:40:01]wFMCommunicate request_size=4 [18:40:01]MH_SAM_APDU [18:40:01]CAPDU: 80 13 01 00 [18:40:01]Write to MH i2c: E2 08 00 A4 2A 80 13 01 00 00 00 00 00 4B [18:40:01]Write i2c OK [18:40:01]MH_I2C_Read... [18:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:01]Read from MH i2c: E2 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 0E 00 [18:40:01]MH_I2C_Read... [18:40:01]Read from MH i2c: E2 0E 00 A4 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C4 [18:40:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:40:01]wFMCommunicate OK [18:40:01]SAM_PROTO_GetShiftState done [18:40:01]FM_GetShiftState done [18:40:01]req_shift_opened done [18:40:01]requested_item shift.open_date is exist - process it [18:40:01]req_shift_open_date [18:40:01]req_shift_open_date done [18:40:01]produce_requested_data done [18:40:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191902,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:40:01]process_action_free close_receipt [18:40:01]json_value_free [18:40:01]json_value_free done [18:40:01]process_json_proto returns [18:40:01]Send response to host [18:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191902,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:40:01]free response buf [18:40:01]execute_script done [18:40:01]execute_script returns [18:40:01]free content buf [18:40:01]Sock 6.Close socket [18:40:01]Sock 6.Thread stoped [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send 2A 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 8A [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=13 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 15 02 00 08 F4 03 04 00 74 38 1D 67 [18:43:49]Write to MH i2c: E2 10 00 AF 2A 80 15 02 00 08 00 F4 03 04 00 74 38 1D 67 00 00 94 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=25 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [18:43:49]Write to MH i2c: E2 1C 00 B0 2A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 C1 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 15 03 00 [18:43:49]Write to MH i2c: E2 08 00 B1 2A 80 15 03 00 00 00 00 00 5C [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 40 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 40 00 B1 2A 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 01 00 00 35 04 06 00 11 06 15 5F FA CA 90 00 59 [18:43:49]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 01 00 00 35 04 06 00 11 06 15 5F FA CA 90 00 [18:43:49]wFMCommunicate OK [18:43:49]SAM_PROTO_ProcessDocument answer len = 59 [18:43:49]SAM_PROTO_ProcessDocument done [18:43:49]SetTLVBufToDocument [18:43:49]Processing tag 1209 (04B9) [18:43:49]Malloc new data [18:43:49]Processing tag 1041 (0411) [18:43:49]Processing tag 1040 (0410) [18:43:49]Malloc new data [18:43:49]Processing tag 1038 (040E) [18:43:49]Malloc new data [18:43:49]Processing tag 1042 (0412) [18:43:49]Malloc new data [18:43:49]Processing tag 1077 (0435) [18:43:49]Malloc new data [18:43:49]SetTLVBufToDocument err=0 [18:43:49]KKMLoadAndSignReceiptData store KKM data [18:43:49]KKMLoadAndSignReceiptData err=0 [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 11 00 00 [18:43:49]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [18:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:43:49]wFMCommunicate OK [18:43:49]Счет N : (1)31211 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 14.950 * 66.90 = 1000.16 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 266 26.10.2024 18:44 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191903 ФПД: 18717826087626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191903&fm=18717826087626&tin=02508201610067®Number=0000000000091776&sum=100000 [18:43:49]StoreToDocumentArchive [18:43:49]shift 541 fd 191903 [18:43:49]save to /storage/0541/doc_00191903 [18:43:49]save last doc name /storage/0541/doc_00191903 to /storage/kkm_last_doc_name [18:43:49]save OK [18:43:49]Clear old archive folders... [18:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:49]tlvbuf is 01992260 [18:43:49]SAM_PROTO_ClearQueue [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 09 00 00 [18:43:49]Write to MH i2c: E2 08 00 B3 2A 80 09 00 00 00 00 00 00 4F [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 B3 2A 00 90 00 51 [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]SAM_PROTO_ClearQueue done [18:43:49]KKMCreateOFDPacket [18:43:49]OFDProtocolAddRootSTLVToBuf [18:43:49]FM_MakeSignedData [18:43:49]FM_MakeSignedData [18:43:49]SAM_PROTO_SignData [18:43:49]wFMCommunicate request_size=4 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 01 02 [18:43:49]Write to MH i2c: E2 08 00 B4 2A 80 0D 01 02 00 00 00 00 57 [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:49]Read from MH i2c: E2 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 [18:43:49]MH_I2C_Read... [18:43:49]Read from MH i2c: E2 03 00 B4 2A 00 90 00 52 [18:43:49]RAPDU: 90 00 [18:43:49]wFMCommunicate OK [18:43:49]wFMCommunicate request_size=255 [18:43:49]MH_SAM_APDU [18:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 74 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 35 04 06 00 11 [18:43:49]Write to MH i2c: E2 02 01 B5 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 74 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 35 04 06 00 11 00 00 DE [18:43:49]Write i2c OK [18:43:49]MH_I2C_Read... [18:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:50]Read from MH i2c: E2 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 03 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 03 00 B5 2A 00 90 00 53 [18:43:50]RAPDU: 90 00 [18:43:50]wFMCommunicate OK [18:43:50]wFMCommunicate request_size=10 [18:43:50]MH_SAM_APDU [18:43:50]CAPDU: 80 0D 02 02 05 06 15 5F FA CA [18:43:50]Write to MH i2c: E2 0D 00 B6 2A 80 0D 02 02 05 00 06 15 5F FA CA 00 00 A2 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:50]Read from MH i2c: E2 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 03 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 03 00 B6 2A 00 90 00 54 [18:43:50]RAPDU: 90 00 [18:43:50]wFMCommunicate OK [18:43:50]wFMCommunicate request_size=4 [18:43:50]MH_SAM_APDU [18:43:50]CAPDU: 80 0D 03 02 [18:43:50]Write to MH i2c: E2 08 00 B7 2A 80 0D 03 02 00 00 00 00 5C [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:50]Read from MH i2c: E2 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 0B 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 0B 00 B7 2A 00 7E 25 BC AA CD CE 80 65 90 00 E6 [18:43:50]RAPDU: 7E 25 BC AA CD CE 80 65 90 00 [18:43:50]wFMCommunicate OK [18:43:50]SAM_PROTO_SignData done [18:43:50]FM_MakeSignedData done [18:43:50]CreateOFDProtocolMessage [18:43:50]wFMCommunicate request_size=4 [18:43:50]MH_SAM_APDU [18:43:50]CAPDU: 80 11 00 00 [18:43:50]Write to MH i2c: E2 08 00 B8 2A 80 11 00 00 00 00 00 00 5C [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:50]Read from MH i2c: E2 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 17 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: E2 17 00 B8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AF [18:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:43:50]wFMCommunicate OK [18:43:50]CreateOFDProtocolMessage done [18:43:50]OFDSenderStorePacket 191903 [18:43:50]StoreOFDPacket docnum=191903 [18:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 37 07 01 24 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 74 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 35 04 06 00 11 06 15 5F FA CA 7E 25 BC AA CD CE 80 65 [18:43:50]CheckFolder [18:43:50]dirname=/storage/ofd_packets [18:43:50]CheckFolder done [18:43:50]ProducePacketName [18:43:50]name=ofd_packets/00191903 [18:43:50]NVStorageSaveData ofd_packets/00191903 [18:43:50]File name is /storage/ofd_packets/00191903 [18:43:50]Write 301 bytes [18:43:50]NVStorageSaveData done [18:43:50]OFDSenderStorePacket done [18:43:50]KKMCreateOFDPacket done [18:43:50]NVStorageSaveData kkm_last_timestamp [18:43:50]File name is /storage/kkm_last_timestamp [18:43:50]Write 4 bytes [18:43:50]NVStorageSaveData done [18:43:50]ExternCall_PrintAddStr [18:43:50]wPrintStart [18:43:50]Write to MH i2c: 01 00 00 B9 2A E3 [18:43:50]Write i2c OK [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 07 00 [18:43:50]MH_I2C_Read... [18:43:50]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 FF 0F F8 [18:43:50]RasterBufferAndPrint [18:43:50]line Счет N : (1)31211 [18:43:50]line ИНН: 02508201610067 [18:43:50]line Контрольно-Кассовый Чек [18:43:50]line ПРОДАЖА [18:43:50]line ТРК (МРК, ГНК) : 21 [18:43:50]line Товар: 2710124130 [18:43:50]line Аи-92-К-5 [18:43:50]line 14.950 * 66.90 [18:43:50]line = 1000.16 [18:43:50]line НДС 12% НСП 1% [18:43:50]line > о реализуемом товаре [18:43:50]line ОКРУГЛЕНИЕ: -0.16 [18:43:50]line ИТОГО: 1000.00 [18:43:50]line Внесено: 1000.00 [18:43:50]line СДАЧА: 0.00 [18:43:50]line НСП 1% : 8.85 [18:43:50]line НДС 12% : 106.21 [18:43:50]line Наличными: 1000.00 [18:43:50]line Безнал.: 0.00 [18:43:50]line Место: АЗС № 170 "Партнер Нефть" [18:43:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:43:50]line СНО: Общий режим [18:43:50]line Чек 266 26.10.2024 18:44 [18:43:50]line Смена: 541 ФФД: 1.0 [18:43:50]line ЗНМ: 0300000110 [18:43:50]line РНМ: 0000000000091776 [18:43:50]line Версия ККМ: 001 [18:43:50]line ФМ: 0000000000871754 [18:43:50]line ФД: 191903 [18:43:50]line ФПД: 18717826087626 [18:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184404&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191903&fm=18717826087626&tin=02508201610067®Number=0000000000091776&sum=100000 [18:43:50]OFD Sender: Processing packet 191903 [packets to send 75, broken 74] [18:43:50]ProducePacketName [18:43:50]name=ofd_packets/00191903 [18:43:50]OFD Sender: To server: pG, [18:43:50]CommunicateWithHost lk.salyk.kg:30040 [18:43:50]ConnectInit lk.salyk.kg [18:43:50]written 0, free lines is 4095 [18:43:50]Connected sock=9 [18:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 6C 37 07 01 24 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 74 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 35 04 06 00 11 06 15 5F FA CA 7E 25 BC AA CD CE 80 65 [18:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 15 E1 47 00 B3 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 9F ED 02 00 F4 03 04 00 3E DD 1C 67 B6 04 01 00 00 EA 50 C7 84 9B F9 CF D1 [18:43:50]CommunicateWithHost err = 0 [18:43:50]CheckOFDResponse [18:43:50]1017 (14) - 77093643461234 [18:43:50]1041 (16) - 0000000000871754 [18:43:50]1040 (4) - 191903 [18:43:50]1012 (4) - 26.10.2024 12:14 [18:43:50]1206 (1) - 0 [18:43:50]OFD Sender: Remove packet 191903 [18:43:50]ProducePacketName [18:43:50]name=ofd_packets/00191903 [18:43:50]NVStorageDeleteData [18:43:51]Write to MH i2c: 01 00 00 E4 2A 0E [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 07 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: 01 07 00 E4 2A 00 00 00 00 00 BA 0C DB [18:43:51]RasterBufferAndPrint [18:43:51]line [18:43:51]line [18:43:51]line [18:43:51]line [18:43:51]line [18:43:51]written 0, free lines is 3265 [18:43:51]MH_Cut [18:43:51]Write to MH i2c: D1 01 00 EB 2A 01 E7 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: D1 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: D1 01 00 [18:43:51]MH_I2C_Read... [18:43:51]Read from MH i2c: D1 01 00 EB 2A 00 E6 [18:43:51]Write to MH i2c: 01 00 00 EC 2A 16 [18:43:51]Write i2c OK [18:43:51]MH_I2C_Read... [18:43:51]OFD Sender: No OFD packet to send [18:43:51]*** Cut start [18:43:51]*** Partial cut [18:43:51]*** CUTSNS_PIN = 1 [18:43:51]*** CUTSNS_PIN = 0 [18:43:52]*** Brake cut motor [18:43:52]Read from MH i2c: 01 [18:43:52]MH_I2C_Read... [18:43:52]*** Stop cut motor [18:43:52]*** Cut end [18:43:52]Read from MH i2c: 01 07 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 FF 0F 2B [18:43:52]process_action close_receipt done [18:43:52]requested_data is exist [18:43:52]produce_requested_data [18:43:52]requested_item fm.sn is exist - process it [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 11 00 00 [18:43:52]Write to MH i2c: E2 08 00 ED 2A 80 11 00 00 00 00 00 00 91 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 17 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 17 00 ED 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E4 [18:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:43:52]wFMCommunicate OK [18:43:52]requested_item fd.num is exist - process it [18:43:52]SAM_PROTO_GetFieldsCounters [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 13 00 00 [18:43:52]Write to MH i2c: E2 08 00 EE 2A 80 13 00 00 00 00 00 00 94 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 62 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 62 00 EE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [18:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 9F ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:52]wFMCommunicate OK [18:43:52]SAM_PROTO_GetFieldsCounters done [18:43:52]requested_item shift.num is exist - process it [18:43:52]requested_item shift.opened is exist - process it [18:43:52]req_shift_opened [18:43:52]FM_GetShiftState [18:43:52]SAM_PROTO_GetShiftState [18:43:52]wFMCommunicate request_size=4 [18:43:52]MH_SAM_APDU [18:43:52]CAPDU: 80 13 01 00 [18:43:52]Write to MH i2c: E2 08 00 EF 2A 80 13 01 00 00 00 00 00 96 [18:43:52]Write i2c OK [18:43:52]MH_I2C_Read... [18:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:52]Read from MH i2c: E2 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 0E 00 [18:43:52]MH_I2C_Read... [18:43:52]Read from MH i2c: E2 0E 00 EF 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0F [18:43:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:43:52]wFMCommunicate OK [18:43:52]SAM_PROTO_GetShiftState done [18:43:52]FM_GetShiftState done [18:43:52]req_shift_opened done [18:43:52]requested_item shift.open_date is exist - process it [18:43:52]req_shift_open_date [18:43:52]req_shift_open_date done [18:43:52]produce_requested_data done [18:43:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191903,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:43:52]process_action_free close_receipt [18:43:52]json_value_free [18:43:52]json_value_free done [18:43:52]process_json_proto returns [18:43:52]Send response to host [18:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191903,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:43:52]free response buf [18:43:52]execute_script done [18:43:52]execute_script returns [18:43:52]free content buf [18:43:52]Sock 5.Close socket [18:43:52]Sock 5.Thread stoped [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]accept exits with 8 [18:44:56]New connection [18:44:56]New thread 3066961252 created [18:44:56]Thread 3066817892 joined [18:44:56]Waiting for new connection... [18:44:56] Sock 8.Parse request [18:44:56]Sock 8.Check first char [18:44:56]Sock 8.First char is OK [18:44:56]request: POST /json_proto HTTP/1.0 [18:44:56]Method: POST [18:44:56]URL: /json_proto [18:44:56]Method is POST - this is cgi request [18:44:56]url: /json_proto [18:44:56]query_string will be loaded in cgi processing [18:44:56]execute_cgi json_proto POST (null) [18:44:56]execute_cgi path=json_proto method=POST [18:44:56]POST find Content-Length [18:44:56]Host: 172.17.63.131:8080 [18:44:56]Content-Length: 681 [18:44:56]Content-Type: application/json [18:44:56] [18:44:56]POST finish read [18:44:56]Found Content-Length = 681 [18:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.900, "sum" : 1130.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1130.00, "total" : 1130.00, "payments": [ { "type": 0, "sum" : 1130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:56]execute_script... [18:44: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)31212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.900, "sum" : 1130.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1130.00, "total" : 1130.00, "payments": [ { "type": 0, "sum" : 1130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:56]POST & json_proto [18:44:56]process_json_proto [18:44:56]json parsed OK: [18:44:56]protocol is kg_v1.0 [18:44:56]action value=close_receipt [18:44:56]process_action close_receipt [18:44:56]cmd_close_receipt [18:44:56]MH_GetDate [18:44:56]Write to MH i2c: F0 00 00 F0 2A 09 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 09 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: F0 09 00 F0 2A 00 B8 38 1D 67 22 05 6E 64 7F [18:44:56]GetLastDocTimeStamp 1729968244 [18:44:56]current date 1729968312 [18:44:56]FM_GetShiftState [18:44:56]SAM_PROTO_GetShiftState [18:44:56]wFMCommunicate request_size=4 [18:44:56]MH_SAM_APDU [18:44:56]CAPDU: 80 13 01 00 [18:44:56]Write to MH i2c: E2 08 00 F1 2A 80 13 01 00 00 00 00 00 98 [18:44:56]Write i2c OK [18:44:56]MH_I2C_Read... [18:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:56]Read from MH i2c: E2 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0E 00 [18:44:56]MH_I2C_Read... [18:44:56]Read from MH i2c: E2 0E 00 F1 2A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 11 [18:44:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:44:56]wFMCommunicate OK [18:44:56]SAM_PROTO_GetShiftState done [18:44:56]FM_GetShiftState done [18:44:56]opened in 1729902770 [18:44:56]opened+sec_in_day 1729989170 [18:44:56]quantity*price = 113061 [18:44:56]sum+1 = 113062 [18:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1130.00 Внесено: 1130.00 СДАЧА: 0.00 НСП 1% : 10.00 НДС 12% : 120.06 Наличными: 1130.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 267 26.10.2024 18:45 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191904 ФПД: 174903181214075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184512&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191904&fm=174903181214075&tin=02508201610067®Number=0000000000091776&sum=113000 [18:44:57]StoreToDocumentArchive [18:44:57]shift 541 fd 191904 [18:44:57]save to /storage/0541/doc_00191904 [18:44:57]save last doc name /storage/0541/doc_00191904 to /storage/kkm_last_doc_name [18:44:57]save OK [18:44:57]Clear old archive folders... [18:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:57]tlvbuf is 01777570 [18:44:57]SAM_PROTO_ClearQueue [18:44:57]wFMCommunicate request_size=4 [18:44:57]MH_SAM_APDU [18:44:57]CAPDU: 80 09 00 00 [18:44:57]Write to MH i2c: E2 08 00 FE 2A 80 09 00 00 00 00 00 00 9A [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:57]Read from MH i2c: E2 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 FE 2A 00 90 00 9C [18:44:57]RAPDU: 90 00 [18:44:57]wFMCommunicate OK [18:44:57]SAM_PROTO_ClearQueue done [18:44:57]KKMCreateOFDPacket [18:44:57]OFDProtocolAddRootSTLVToBuf [18:44:57]FM_MakeSignedData [18:44:57]FM_MakeSignedData [18:44:57]SAM_PROTO_SignData [18:44:57]wFMCommunicate request_size=4 [18:44:57]MH_SAM_APDU [18:44:57]CAPDU: 80 0D 01 02 [18:44:57]Write to MH i2c: E2 08 00 FF 2A 80 0D 01 02 00 00 00 00 A2 [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:57]Read from MH i2c: E2 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 FF 2A 00 90 00 9D [18:44:57]RAPDU: 90 00 [18:44:57]wFMCommunicate OK [18:44:57]wFMCommunicate request_size=255 [18:44:57]MH_SAM_APDU [18:44: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 04 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B8 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 ED 02 00 35 04 06 00 9F [18:44:57]Write to MH i2c: E2 02 01 00 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 42 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 B9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 B9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 2E 00 00 00 00 07 04 06 00 68 B9 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B8 38 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A0 ED 02 00 35 04 06 00 9F 00 00 A3 [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:57]Read from MH i2c: E2 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 00 2B 00 90 00 9F [18:44:57]RAPDU: 90 00 [18:44:57]wFMCommunicate OK [18:44:57]wFMCommunicate request_size=10 [18:44:57]MH_SAM_APDU [18:44:57]CAPDU: 80 0D 02 02 05 12 D1 FC 81 7B [18:44:57]Write to MH i2c: E2 0D 00 01 2B 80 0D 02 02 05 00 12 D1 FC 81 7B 00 00 8B [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:57]Read from MH i2c: E2 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 [18:44:57]MH_I2C_Read... [18:44:57]Read from MH i2c: E2 03 00 01 2B 00 90 00 A0 [18:44:57]RAPDU: 90 00 [18:44:57]wFMCommunicate OK [18:44:57]wFMCommunicate request_size=4 [18:44:57]MH_SAM_APDU [18:44:57]CAPDU: 80 0D 03 02 [18:44:57]Write to MH i2c: E2 08 00 02 2B 80 0D 03 02 00 00 00 00 A8 [18:44:57]Write i2c OK [18:44:57]MH_I2C_Read... [18:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! 13 01 00 [18:45:00]Write to MH i2c: E2 08 00 3A 2B 80 13 01 00 00 00 00 00 E2 [18:45:00]Write i2c OK [18:45:00]MH_I2C_Read... [18:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:00]Read from MH i2c: E2 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 [18:45:00]MH_I2C_Read... [18:45:00]Read from MH i2c: E2 0E 00 3A 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5B [18:45:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:45:00]wFMCommunicate OK [18:45:00]SAM_PROTO_GetShiftState done [18:45:00]FM_GetShiftState done [18:45:00]req_shift_opened done [18:45:00]requested_item shift.open_date is exist - process it [18:45:00]req_shift_open_date [18:45:00]req_shift_open_date done [18:45:00]produce_requested_data done [18:45:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191904,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:45:00]process_action_free close_receipt [18:45:00]json_value_free [18:45:00]json_value_free done [18:45:00]process_json_proto returns [18:45:00]Send response to host [18:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191904,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:45:00]free response buf [18:45:00]execute_script done [18:45:00]execute_script returns [18:45:00]free content buf [18:45:00]Sock 8.Close socket [18:45:00]Sock 8.Thread stoped [18:45:03]OFD Sender: No OFD packet to send [18:45:05]ConnectInit Can't connect to host [18:45:08]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:23]ConnectInit Can't connect to host [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:22]accept exits with 5 [18:48:22]New connection [18:48:22]New thread 3066817892 created [18:48:22]Thread 3066961252 joined [18:48:22]Waiting for new connection... [18:48:22] Sock 5.Parse request [18:48:22]Sock 5.Check first char [18:48:22]Sock 5.First char is OK [18:48:22]request: POST /json_proto HTTP/1.0 [18:48:22]Method: POST [18:48:22]URL: /json_proto [18:48:22]Method is POST - this is cgi request [18:48:22]url: /json_proto [18:48:22]query_string will be loaded in cgi processing [18:48:22]execute_cgi json_proto POST (null) [18:48:22]execute_cgi path=json_proto method=POST [18:48:22]POST find Content-Length [18:48:22]Host: 172.17.63.131:8080 [18:48:22]Content-Length: 676 [18:48:22]Content-Type: application/json [18:48:22] [18:48:22]POST finish read [18:48:22]Found Content-Length = 676 [18:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]execute_script... [18:48: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)31213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:22]POST & json_proto [18:48:22]process_json_proto [18:48:22]json parsed OK: [18:48:22]protocol is kg_v1.0 [18:48:22]action value=close_receipt [18:48:22]process_action close_receipt [18:48:22]cmd_close_receipt [18:48:22]MH_GetDate [18:48:22]Write to MH i2c: F0 00 00 3B 2B 55 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: F0 09 00 3B 2B 00 86 39 1D 67 22 05 6E 64 9A [18:48:22]GetLastDocTimeStamp 1729968312 [18:48:22]current date 1729968518 [18:48:22]FM_GetShiftState [18:48:22]SAM_PROTO_GetShiftState [18:48:22]wFMCommunicate request_size=4 [18:48:22]MH_SAM_APDU [18:48:22]CAPDU: 80 13 01 00 [18:48:22]Write to MH i2c: E2 08 00 3C 2B 80 13 01 00 00 00 00 00 E4 [18:48:22]Write i2c OK [18:48:22]MH_I2C_Read... [18:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:22]Read from MH i2c: E2 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 [18:48:22]MH_I2C_Read... [18:48:22]Read from MH i2c: E2 0E 00 3C 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5D [18:48:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:48:22]wFMCommunicate OK [18:48:22]SAM_PROTO_GetShiftState done [18:48:22]FM_GetShiftState done [18:48:22]opened in 1729902770 [18:48:22]opened+sec_in_day 1729989170 [18:48:22]quantity*price = 50041 [18:48:22]sum+1 = 50042 [18:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 268 26.10.2024 18:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191905 ФПД: 213263974651821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191905&fm=213263974651821&tin=02508201610067®Number=0000000000091776&sum=50000 [18:48:23]StoreToDocumentArchive [18:48:23]shift 541 fd 191905 [18:48:23]save to /storage/0541/doc_00191905 [18:48:23]save last doc name /storage/0541/doc_00191905 to /storage/kkm_last_doc_name [18:48:23]save OK [18:48:23]Clear old archive folders... [18:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:23]tlvbuf is 018CA870 [18:48:23]SAM_PROTO_ClearQueue [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 09 00 00 [18:48:23]Write to MH i2c: E2 08 00 49 2B 80 09 00 00 00 00 00 00 E6 [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:23]Read from MH i2c: E2 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 [18:48:23]MH_I2C_Read... [18:48:23]Read from MH i2c: E2 03 00 49 2B 00 90 00 E8 [18:48:23]RAPDU: 90 00 [18:48:23]wFMCommunicate OK [18:48:23]SAM_PROTO_ClearQueue done [18:48:23]KKMCreateOFDPacket [18:48:23]OFDProtocolAddRootSTLVToBuf [18:48:23]FM_MakeSignedData [18:48:23]FM_MakeSignedData [18:48:23]SAM_PROTO_SignData [18:48:23]wFMCommunicate request_size=4 [18:48:23]MH_SAM_APDU [18:48:23]CAPDU: 80 0D 01 02 [18:48:23]Write to MH i2c: E2 08 00 4A 2B 80 0D 01 02 00 00 00 00 EE [18:48:23]Write i2c OK [18:48:23]MH_I2C_Read... [18:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4A 2B 00 90 00 E9 [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=255 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 86 39 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 ED 02 00 35 04 06 00 C1 [18:48:24]Write to MH i2c: E2 02 01 4B 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 86 39 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 ED 02 00 35 04 06 00 C1 00 00 42 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]OFD Sender: No OFD packet to send [18:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4B 2B 00 90 00 EA [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=10 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 02 02 05 F6 63 73 D7 AD [18:48:24]Write to MH i2c: E2 0D 00 4C 2B 80 0D 02 02 05 00 F6 63 73 D7 AD 00 00 4B [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 03 00 4C 2B 00 90 00 EB [18:48:24]RAPDU: 90 00 [18:48:24]wFMCommunicate OK [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 0D 03 02 [18:48:24]Write to MH i2c: E2 08 00 4D 2B 80 0D 03 02 00 00 00 00 F3 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0B 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 0B 00 4D 2B 00 30 AD 33 66 FD 24 F7 94 90 00 16 [18:48:24]RAPDU: 30 AD 33 66 FD 24 F7 94 90 00 [18:48:24]wFMCommunicate OK [18:48:24]SAM_PROTO_SignData done [18:48:24]FM_MakeSignedData done [18:48:24]CreateOFDProtocolMessage [18:48:24]wFMCommunicate request_size=4 [18:48:24]MH_SAM_APDU [18:48:24]CAPDU: 80 11 00 00 [18:48:24]Write to MH i2c: E2 08 00 4E 2B 80 11 00 00 00 00 00 00 F3 [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:24]Read from MH i2c: E2 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: E2 17 00 4E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [18:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:48:24]wFMCommunicate OK [18:48:24]CreateOFDProtocolMessage done [18:48:24]OFDSenderStorePacket 191905 [18:48:24]StoreOFDPacket docnum=191905 [18:48:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 1A 07 01 29 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 86 39 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 ED 02 00 35 04 06 00 C1 F6 63 73 D7 AD 30 AD 33 66 FD 24 F7 94 [18:48:24]CheckFolder [18:48:24]dirname=/storage/ofd_packets [18:48:24]CheckFolder done [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00191905 [18:48:24]NVStorageSaveData ofd_packets/00191905 [18:48:24]File name is /storage/ofd_packets/00191905 [18:48:24]Write 301 bytes [18:48:24]NVStorageSaveData done [18:48:24]OFDSenderStorePacket done [18:48:24]KKMCreateOFDPacket done [18:48:24]NVStorageSaveData kkm_last_timestamp [18:48:24]File name is /storage/kkm_last_timestamp [18:48:24]Write 4 bytes [18:48:24]NVStorageSaveData done [18:48:24]ExternCall_PrintAddStr [18:48:24]wPrintStart [18:48:24]Write to MH i2c: 01 00 00 4F 2B 7A [18:48:24]Write i2c OK [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 [18:48:24]MH_I2C_Read... [18:48:24]Read from MH i2c: 01 07 00 4F 2B 00 00 00 00 00 FF 0F 8F [18:48:24]RasterBufferAndPrint [18:48:24]line Счет N : (1)31213 [18:48:24]line ИНН: 02508201610067 [18:48:24]line Контрольно-Кассовый Чек [18:48:24]line ПРОДАЖА [18:48:24]line ТРК (МРК, ГНК) : 21 [18:48:24]line Товар: 2710124130 [18:48:24]line Аи-92-К-5 [18:48:24]line 7.480 * 66.90 [18:48:24]line = 500.41 [18:48:24]line НДС 12% НСП 1% [18:48:24]line > о реализуемом товаре [18:48:24]line ОКРУГЛЕНИЕ: -0.41 [18:48:24]line ИТОГО: 500.00 [18:48:24]line Внесено: 500.00 [18:48:24]line СДАЧА: 0.00 [18:48:24]line НСП 1% : 4.43 [18:48:24]line НДС 12% : 53.14 [18:48:24]line Наличными: 500.00 [18:48:24]line Безнал.: 0.00 [18:48:24]line Место: АЗС № 170 "Партнер Нефть" [18:48:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:48:24]line СНО: Общий режим [18:48:24]line Чек 268 26.10.2024 18:48 [18:48:24]line Смена: 541 ФФД: 1.0 [18:48:24]line ЗНМ: 0300000110 [18:48:24]line РНМ: 0000000000091776 [18:48:24]line Версия ККМ: 001 [18:48:24]line ФМ: 0000000000871754 [18:48:24]line ФД: 191905 [18:48:24]line ФПД: 213263974651821 [18:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T184838&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191905&fm=213263974651821&tin=02508201610067®Number=0000000000091776&sum=50000 [18:48:24]OFD Sender: Processing packet 191905 [packets to send 75, broken 74] [18:48:24]ProducePacketName [18:48:24]name=ofd_packets/00191905 [18:48:24]OFD Sender: To server: pG, [18:48:24]CommunicateWithHost lk.salyk.kg:30040 [18:48:24]ConnectInit lk.salyk.kg [18:48:24]written 0, free lines is 4095 [18:48:24]Connected sock=9 [18:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D7 1A 07 01 29 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 86 39 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 ED 02 00 35 04 06 00 C1 F6 63 73 D7 AD 30 AD 33 66 FD 24 F7 94 [18:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 29 63 47 00 FB FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A1 ED 02 00 F4 03 04 00 51 DE 1C 67 B6 04 01 00 00 BC B9 C4 35 EE ED 38 95 [18:48:25]CommunicateWithHost err = 0 [18:48:25]CheckOFDResponse [18:48:25]1017 (14) - 77093643461234 [18:48:25]1041 (16) - 0000000000871754 [18:48:25]1040 (4) - 191905 [18:48:25]1012 (4) - 26.10.2024 12:19 [18:48:25]1206 (1) - 0 [18:48:25]OFD Sender: Remove packet 191905 [18:48:25]ProducePacketName [18:48:25]name=ofd_packets/00191905 [18:48:25]NVStorageDeleteData [18:48:25]Write to MH i2c: 01 00 00 7A 2B A5 [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: 01 07 00 7A 2B 00 00 00 00 00 BC 0C 74 [18:48:25]RasterBufferAndPrint [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]line [18:48:25]written 0, free lines is 3270 [18:48:25]MH_Cut [18:48:25]Write to MH i2c: D1 01 00 81 2B 01 7E [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 01 00 [18:48:25]MH_I2C_Read... [18:48:25]Read from MH i2c: D1 01 00 81 2B 00 7D [18:48:25]Write to MH i2c: 01 00 00 82 2B AD [18:48:25]Write i2c OK [18:48:25]MH_I2C_Read... [18:48:25]OFD Sender: No OFD packet to send [18:48:26]*** Cut start [18:48:26]*** Partial cut [18:48:26]*** CUTSNS_PIN = 1 [18:48:26]*** CUTSNS_PIN = 0 [18:48:26]*** Brake cut motor [18:48:26]Read from MH i2c: 01 [18:48:26]MH_I2C_Read... [18:48:26]*** Stop cut motor [18:48:26]*** Cut end [18:48:26]Read from MH i2c: 01 07 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: 01 07 00 82 2B 00 00 00 00 00 FF 0F C2 [18:48:26]process_action close_receipt done [18:48:26]requested_data is exist [18:48:26]produce_requested_data [18:48:26]requested_item fm.sn is exist - process it [18:48:26]wFMCommunicate request_size=4 [18:48:26]MH_SAM_APDU [18:48:26]CAPDU: 80 11 00 00 [18:48:26]Write to MH i2c: E2 08 00 83 2B 80 11 00 00 00 00 00 00 28 [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:26]Read from MH i2c: E2 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 17 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 17 00 83 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [18:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:48:26]wFMCommunicate OK [18:48:26]requested_item fd.num is exist - process it [18:48:26]SAM_PROTO_GetFieldsCounters [18:48:26]wFMCommunicate request_size=4 [18:48:26]MH_SAM_APDU [18:48:26]CAPDU: 80 13 00 00 [18:48:26]Write to MH i2c: E2 08 00 84 2B 80 13 00 00 00 00 00 00 2B [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:26]Read from MH i2c: E2 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 62 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 62 00 84 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [18:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:26]wFMCommunicate OK [18:48:26]SAM_PROTO_GetFieldsCounters done [18:48:26]requested_item shift.num is exist - process it [18:48:26]requested_item shift.opened is exist - process it [18:48:26]req_shift_opened [18:48:26]FM_GetShiftState [18:48:26]SAM_PROTO_GetShiftState [18:48:26]wFMCommunicate request_size=4 [18:48:26]MH_SAM_APDU [18:48:26]CAPDU: 80 13 01 00 [18:48:26]Write to MH i2c: E2 08 00 85 2B 80 13 01 00 00 00 00 00 2D [18:48:26]Write i2c OK [18:48:26]MH_I2C_Read... [18:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:26]Read from MH i2c: E2 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 0E 00 [18:48:26]MH_I2C_Read... [18:48:26]Read from MH i2c: E2 0E 00 85 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A6 [18:48:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:48:26]wFMCommunicate OK [18:48:26]SAM_PROTO_GetShiftState done [18:48:26]FM_GetShiftState done [18:48:26]req_shift_opened done [18:48:26]requested_item shift.open_date is exist - process it [18:48:26]req_shift_open_date [18:48:26]req_shift_open_date done [18:48:26]produce_requested_data done [18:48:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191905,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:48:26]process_action_free close_receipt [18:48:26]json_value_free [18:48:26]json_value_free done [18:48:26]process_json_proto returns [18:48:26]Send response to host [18:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191905,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:48:26]free response buf [18:48:26]execute_script done [18:48:26]execute_script returns [18:48:26]free content buf [18:48:26]Sock 5.Close socket [18:48:26]Sock 5.Thread stoped [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:02]ConnectInit Can't connect to host [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:24]accept exits with 8 [18:50:24]New connection [18:50:24]New thread 3066961252 created [18:50:24]Thread 3066817892 joined [18:50:24]Waiting for new connection... [18:50:24] Sock 8.Parse request [18:50:24]Sock 8.Check first char [18:50:24]Sock 8.First char is OK [18:50:24]request: POST /json_proto HTTP/1.0 [18:50:24]Method: POST [18:50:24]URL: /json_proto [18:50:24]Method is POST - this is cgi request [18:50:24]url: /json_proto [18:50:24]query_string will be loaded in cgi processing [18:50:24]execute_cgi json_proto POST (null) [18:50:24]execute_cgi path=json_proto method=POST [18:50:24]POST find Content-Length [18:50:24]Host: 172.17.63.131:8080 [18:50:24]Content-Length: 862 [18:50:24]Content-Type: application/json [18:50:24] [18:50:24]POST finish read [18:50:24]Found Content-Length = 862 [18:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:24]execute_script... [18:50:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:24]POST & json_proto [18:50:24]process_json_proto [18:50:24]json parsed OK: [18:50:24]protocol is kg_v1.0 [18:50:24]action value=close_receipt [18:50:24]process_action close_receipt [18:50:24]cmd_close_receipt [18:50:24]MH_GetDate [18:50:24]Write to MH i2c: F0 00 00 86 2B A0 [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: F0 09 00 86 2B 00 00 3A 1D 67 22 05 6E 64 60 [18:50:24]GetLastDocTimeStamp 1729968518 [18:50:24]current date 1729968640 [18:50:24]FM_GetShiftState [18:50:24]SAM_PROTO_GetShiftState [18:50:24]wFMCommunicate request_size=4 [18:50:24]MH_SAM_APDU [18:50:24]CAPDU: 80 13 01 00 [18:50:24]Write to MH i2c: E2 08 00 87 2B 80 13 01 00 00 00 00 00 2F [18:50:24]Write i2c OK [18:50:24]MH_I2C_Read... [18:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:24]Read from MH i2c: E2 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 [18:50:24]MH_I2C_Read... [18:50:24]Read from MH i2c: E2 0E 00 87 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A8 [18:50:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:50:24]wFMCommunicate OK [18:50:24]SAM_PROTO_GetShiftState done [18:50:24]FM_GetShiftState done [18:50:24]opened in 1729902770 [18:50:24]opened+sec_in_day 1729989170 [18:50:24]quantity*price = 50041 [18:50:24]sum+1 = 50042 [18:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 269 26.10.2024 18:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191906 ФПД: 277630677200557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191906&fm=277630677200557&tin=02508201610067®Number=0000000000091776&sum=50041 [18:50:25]StoreToDocumentArchive [18:50:25]shift 541 fd 191906 [18:50:25]save to /storage/0541/doc_00191906 [18:50:25]save last doc name /storage/0541/doc_00191906 to /storage/kkm_last_doc_name [18:50:25]save OK [18:50:25]Clear old archive folders... [18:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:25]tlvbuf is 0183A1B0 [18:50:25]SAM_PROTO_ClearQueue [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 09 00 00 [18:50:25]Write to MH i2c: E2 08 00 94 2B 80 09 00 00 00 00 00 00 31 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]SAM_PROTO_ClearQueue done [18:50:25]KKMCreateOFDPacket [18:50:25]OFDProtocolAddRootSTLVToBuf [18:50:25]FM_MakeSignedData [18:50:25]FM_MakeSignedData [18:50:25]SAM_PROTO_SignData [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 01 02 [18:50:25]Write to MH i2c: E2 08 00 95 2B 80 0D 01 02 00 00 00 00 39 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 95 2B 00 90 00 34 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=255 [18:50:25]MH_SAM_APDU [18:50: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 3A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 ED 02 00 35 04 06 00 FC [18:50:25]Write to MH i2c: E2 02 01 96 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 3A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 ED 02 00 35 04 06 00 FC 00 00 97 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]OFD Sender: No OFD packet to send [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 96 2B 00 90 00 35 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=10 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 02 02 05 80 ED E4 AE AD [18:50:25]Write to MH i2c: E2 0D 00 97 2B 80 0D 02 02 05 00 80 ED E4 AE AD 00 00 F2 [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 03 00 97 2B 00 90 00 36 [18:50:25]RAPDU: 90 00 [18:50:25]wFMCommunicate OK [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 0D 03 02 [18:50:25]Write to MH i2c: E2 08 00 98 2B 80 0D 03 02 00 00 00 00 3E [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:25]Read from MH i2c: E2 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 0B 00 [18:50:25]MH_I2C_Read... [18:50:25]Read from MH i2c: E2 0B 00 98 2B 00 46 F9 33 5B 1A CA 32 AA 90 00 CC [18:50:25]RAPDU: 46 F9 33 5B 1A CA 32 AA 90 00 [18:50:25]wFMCommunicate OK [18:50:25]SAM_PROTO_SignData done [18:50:25]FM_MakeSignedData done [18:50:25]CreateOFDProtocolMessage [18:50:25]wFMCommunicate request_size=4 [18:50:25]MH_SAM_APDU [18:50:25]CAPDU: 80 11 00 00 [18:50:25]Write to MH i2c: E2 08 00 99 2B 80 11 00 00 00 00 00 00 3E [18:50:25]Write i2c OK [18:50:25]MH_I2C_Read... [18:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:26]Read from MH i2c: E2 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: E2 17 00 99 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [18:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:50:26]wFMCommunicate OK [18:50:26]CreateOFDProtocolMessage done [18:50:26]OFDSenderStorePacket 191906 [18:50:26]StoreOFDPacket docnum=191906 [18:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 B0 07 01 7E 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 3A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 ED 02 00 35 04 06 00 FC 80 ED E4 AE AD 46 F9 33 5B 1A CA 32 AA [18:50:26]CheckFolder [18:50:26]dirname=/storage/ofd_packets [18:50:26]CheckFolder done [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00191906 [18:50:26]NVStorageSaveData ofd_packets/00191906 [18:50:26]File name is /storage/ofd_packets/00191906 [18:50:26]Write 301 bytes [18:50:26]NVStorageSaveData done [18:50:26]OFDSenderStorePacket done [18:50:26]KKMCreateOFDPacket done [18:50:26]NVStorageSaveData kkm_last_timestamp [18:50:26]File name is /storage/kkm_last_timestamp [18:50:26]Write 4 bytes [18:50:26]NVStorageSaveData done [18:50:26]ExternCall_PrintAddStr [18:50:26]wPrintStart [18:50:26]Write to MH i2c: 01 00 00 9A 2B C5 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 9A 2B 00 00 00 00 00 FF 0F DA [18:50:26]RasterBufferAndPrint [18:50:26]line Счет N : (1)31214 [18:50:26]line ИНН: 02508201610067 [18:50:26]line Контрольно-Кассовый Чек [18:50:26]line ПРОДАЖА [18:50:26]line ТРК (МРК, ГНК) : 21 [18:50:26]line Товар: 2710124130 [18:50:26]line Аи-92-К-5 [18:50:26]line 7.480 * 66.90 [18:50:26]line = 500.41 [18:50:26]line НДС 12% НСП 1% [18:50:26]line > о реализуемом товаре [18:50:26]line ИТОГО: 500.41 [18:50:26]line НСП 1% : 4.43 [18:50:26]line НДС 12% : 53.14 [18:50:26]line Наличными: 0.00 [18:50:26]line Безнал.: 500.41 [18:50:26]line Место: АЗС № 170 "Партнер Нефть" [18:50:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:50:26]line СНО: Общий режим [18:50:26]line Чек 269 26.10.2024 18:50 [18:50:26]line Смена: 541 ФФД: 1.0 [18:50:26]line ЗНМ: 0300000110 [18:50:26]line РНМ: 0000000000091776 [18:50:26]line Версия ККМ: 001 [18:50:26]line Платежная система: Кыргызкоммерцбанк [18:50:26]line ФМ: 0000000000871754 [18:50:26]line ФД: 191906 [18:50:26]line ФПД: 277630677200557 [18:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185040&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191906&fm=277630677200557&tin=02508201610067®Number=0000000000091776&sum=50041 [18:50:26]OFD Sender: Processing packet 191906 [packets to send 75, broken 74] [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00191906 [18:50:26]OFD Sender: To server: pG, [18:50:26]CommunicateWithHost lk.salyk.kg:30040 [18:50:26]ConnectInit lk.salyk.kg [18:50:26]written 0, free lines is 4095 [18:50:26]Connected sock=6 [18:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 41 B0 07 01 7E 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 3A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 ED 02 00 35 04 06 00 FC 80 ED E4 AE AD 46 F9 33 5B 1A CA 32 AA [18:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 51 6A 47 00 A8 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A2 ED 02 00 F4 03 04 00 CA DE 1C 67 B6 04 01 00 00 C5 2C BF 80 FE BD CC 52 [18:50:26]CommunicateWithHost err = 0 [18:50:26]CheckOFDResponse [18:50:26]1017 (14) - 77093643461234 [18:50:26]1041 (16) - 0000000000871754 [18:50:26]1040 (4) - 191906 [18:50:26]1012 (4) - 26.10.2024 12:21 [18:50:26]1206 (1) - 0 [18:50:26]OFD Sender: Remove packet 191906 [18:50:26]ProducePacketName [18:50:26]name=ofd_packets/00191906 [18:50:26]NVStorageDeleteData [18:50:26]Write to MH i2c: 01 00 00 C4 2B EF [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 CE 0C D0 [18:50:26]RasterBufferAndPrint [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]line [18:50:26]written 0, free lines is 3288 [18:50:26]MH_Cut [18:50:26]Write to MH i2c: D1 01 00 CB 2B 01 C8 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 01 00 [18:50:26]MH_I2C_Read... [18:50:26]Read from MH i2c: D1 01 00 CB 2B 00 C7 [18:50:26]Write to MH i2c: 01 00 00 CC 2B F7 [18:50:26]Write i2c OK [18:50:26]MH_I2C_Read... [18:50:27]OFD Sender: No OFD packet to send [18:50:27]*** Cut start [18:50:27]*** Partial cut [18:50:27]*** CUTSNS_PIN = 1 [18:50:27]*** CUTSNS_PIN = 0 [18:50:27]*** Brake cut motor [18:50:28]Read from MH i2c: 01 [18:50:28]MH_I2C_Read... [18:50:28]*** Stop cut motor [18:50:28]*** Cut end [18:50:28]Read from MH i2c: 01 07 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: 01 07 00 CC 2B 00 00 00 00 00 FF 0F 0C [18:50:28]process_action close_receipt done [18:50:28]requested_data is exist [18:50:28]produce_requested_data [18:50:28]requested_item fm.sn is exist - process it [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 11 00 00 [18:50:28]Write to MH i2c: E2 08 00 CD 2B 80 11 00 00 00 00 00 00 72 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 17 00 CD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C5 [18:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:50:28]wFMCommunicate OK [18:50:28]requested_item fd.num is exist - process it [18:50:28]SAM_PROTO_GetFieldsCounters [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 00 00 [18:50:28]Write to MH i2c: E2 08 00 CE 2B 80 13 00 00 00 00 00 00 75 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 62 00 CE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 75 [18:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetFieldsCounters done [18:50:28]requested_item shift.num is exist - process it [18:50:28]requested_item shift.opened is exist - process it [18:50:28]req_shift_opened [18:50:28]FM_GetShiftState [18:50:28]SAM_PROTO_GetShiftState [18:50:28]wFMCommunicate request_size=4 [18:50:28]MH_SAM_APDU [18:50:28]CAPDU: 80 13 01 00 [18:50:28]Write to MH i2c: E2 08 00 CF 2B 80 13 01 00 00 00 00 00 77 [18:50:28]Write i2c OK [18:50:28]MH_I2C_Read... [18:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:28]Read from MH i2c: E2 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 [18:50:28]MH_I2C_Read... [18:50:28]Read from MH i2c: E2 0E 00 CF 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F0 [18:50:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:50:28]wFMCommunicate OK [18:50:28]SAM_PROTO_GetShiftState done [18:50:28]FM_GetShiftState done [18:50:28]req_shift_opened done [18:50:28]requested_item shift.open_date is exist - process it [18:50:28]req_shift_open_date [18:50:28]req_shift_open_date done [18:50:28]produce_requested_data done [18:50:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191906,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:50:28]process_action_free close_receipt [18:50:28]json_value_free [18:50:28]json_value_free done [18:50:28]process_json_proto returns [18:50:28]Send response to host [18:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191906,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:50:28]free response buf [18:50:28]execute_script done [18:50:28]execute_script returns [18:50:28]free content buf [18:50:28]Sock 8.Close socket [18:50:28]Sock 8.Thread stoped [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:20]accept exits with 5 [18:58:20]New connection [18:58:20]New thread 3066817892 created [18:58:20]Thread 3066961252 joined [18:58:20]Waiting for new connection... [18:58:20] Sock 5.Parse request [18:58:20]Sock 5.Check first char [18:58:20]Sock 5.First char is OK [18:58:20]request: POST /json_proto HTTP/1.0 [18:58:20]Method: POST [18:58:20]URL: /json_proto [18:58:20]Method is POST - this is cgi request [18:58:20]url: /json_proto [18:58:20]query_string will be loaded in cgi processing [18:58:20]execute_cgi json_proto POST (null) [18:58:20]execute_cgi path=json_proto method=POST [18:58:20]POST find Content-Length [18:58:20]Host: 172.17.63.131:8080 [18:58:20]Content-Length: 676 [18:58:20]Content-Type: application/json [18:58:20] [18:58:20]POST finish read [18:58:20]Found Content-Length = 676 [18:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:20]execute_script... [18:58: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)31215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:20]POST & json_proto [18:58:20]process_json_proto [18:58:20]json parsed OK: [18:58:20]protocol is kg_v1.0 [18:58:20]action value=close_receipt [18:58:20]process_action close_receipt [18:58:20]cmd_close_receipt [18:58:20]MH_GetDate [18:58:20]Write to MH i2c: F0 00 00 D0 2B EA [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 09 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: F0 09 00 D0 2B 00 DC 3B 1D 67 22 05 6E 64 87 [18:58:20]GetLastDocTimeStamp 1729968640 [18:58:20]current date 1729969116 [18:58:20]FM_GetShiftState [18:58:20]SAM_PROTO_GetShiftState [18:58:20]wFMCommunicate request_size=4 [18:58:20]MH_SAM_APDU [18:58:20]CAPDU: 80 13 01 00 [18:58:20]Write to MH i2c: E2 08 00 D1 2B 80 13 01 00 00 00 00 00 79 [18:58:20]Write i2c OK [18:58:20]MH_I2C_Read... [18:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:20]Read from MH i2c: E2 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 0E 00 [18:58:20]MH_I2C_Read... [18:58:20]Read from MH i2c: E2 0E 00 D1 2B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F2 [18:58:20]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:58:20]wFMCommunicate OK [18:58:20]SAM_PROTO_GetShiftState done [18:58:20]FM_GetShiftState done [18:58:20]opened in 1729902770 [18:58:20]opened+sec_in_day 1729989170 [18:58:20]quantity*price = 50041 [18:58:20]sum+1 = 50042 [18:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 270 26.10.2024 18:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191907 ФПД: 43367799694378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191907&fm=43367799694378&tin=02508201610067®Number=0000000000091776&sum=50000 [18:58:21]StoreToDocumentArchive [18:58:21]shift 541 fd 191907 [18:58:21]save to /storage/0541/doc_00191907 [18:58:21]save last doc name /storage/0541/doc_00191907 to /storage/kkm_last_doc_name [18:58:21]save OK [18:58:21]Clear old archive folders... [18:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:21]tlvbuf is 019D4D40 [18:58:21]SAM_PROTO_ClearQueue [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 09 00 00 [18:58:21]Write to MH i2c: E2 08 00 DE 2B 80 09 00 00 00 00 00 00 7B [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 DE 2B 00 90 00 7D [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]SAM_PROTO_ClearQueue done [18:58:21]KKMCreateOFDPacket [18:58:21]OFDProtocolAddRootSTLVToBuf [18:58:21]FM_MakeSignedData [18:58:21]FM_MakeSignedData [18:58:21]SAM_PROTO_SignData [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 0D 01 02 [18:58:21]Write to MH i2c: E2 08 00 DF 2B 80 0D 01 02 00 00 00 00 83 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]wFMCommunicate request_size=255 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 DC 3B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 ED 02 00 35 04 06 00 27 [18:58:21]Write to MH i2c: E2 02 01 E0 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 DC 3B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 ED 02 00 35 04 06 00 27 00 00 99 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]wFMCommunicate request_size=10 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 0D 02 02 05 71 5A 4B A4 2A [18:58:21]Write to MH i2c: E2 0D 00 E1 2B 80 0D 02 02 05 00 71 5A 4B A4 2A 00 00 74 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:21]Read from MH i2c: E2 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 [18:58:21]MH_I2C_Read... [18:58:21]Read from MH i2c: E2 03 00 E1 2B 00 90 00 80 [18:58:21]RAPDU: 90 00 [18:58:21]wFMCommunicate OK [18:58:21]wFMCommunicate request_size=4 [18:58:21]MH_SAM_APDU [18:58:21]CAPDU: 80 0D 03 02 [18:58:21]Write to MH i2c: E2 08 00 E2 2B 80 0D 03 02 00 00 00 00 88 [18:58:21]Write i2c OK [18:58:21]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 0B 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 0B 00 E2 2B 00 B3 91 55 16 DC 9E D6 1E 90 00 A6 [18:58:22]RAPDU: B3 91 55 16 DC 9E D6 1E 90 00 [18:58:22]wFMCommunicate OK [18:58:22]SAM_PROTO_SignData done [18:58:22]FM_MakeSignedData done [18:58:22]CreateOFDProtocolMessage [18:58:22]wFMCommunicate request_size=4 [18:58:22]MH_SAM_APDU [18:58:22]CAPDU: 80 11 00 00 [18:58:22]Write to MH i2c: E2 08 00 E3 2B 80 11 00 00 00 00 00 00 88 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:22]Read from MH i2c: E2 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 17 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: E2 17 00 E3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [18:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:22]wFMCommunicate OK [18:58:22]CreateOFDProtocolMessage done [18:58:22]OFDSenderStorePacket 191907 [18:58:22]StoreOFDPacket docnum=191907 [18:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 93 07 01 FB F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 DC 3B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 ED 02 00 35 04 06 00 27 71 5A 4B A4 2A B3 91 55 16 DC 9E D6 1E [18:58:22]CheckFolder [18:58:22]dirname=/storage/ofd_packets [18:58:22]CheckFolder done [18:58:22]ProducePacketName [18:58:22]name=ofd_packets/00191907 [18:58:22]NVStorageSaveData ofd_packets/00191907 [18:58:22]File name is /storage/ofd_packets/00191907 [18:58:22]Write 301 bytes [18:58:22]NVStorageSaveData done [18:58:22]OFDSenderStorePacket done [18:58:22]KKMCreateOFDPacket done [18:58:22]NVStorageSaveData kkm_last_timestamp [18:58:22]File name is /storage/kkm_last_timestamp [18:58:22]Write 4 bytes [18:58:22]NVStorageSaveData done [18:58:22]ExternCall_PrintAddStr [18:58:22]wPrintStart [18:58:22]Write to MH i2c: 01 00 00 E4 2B 0F [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 E4 2B 00 00 00 00 00 FF 0F 24 [18:58:22]RasterBufferAndPrint [18:58:22]line Счет N : (1)31215 [18:58:22]line ИНН: 02508201610067 [18:58:22]line Контрольно-Кассовый Чек [18:58:22]line ПРОДАЖА [18:58:22]line ТРК (МРК, ГНК) : 12 [18:58:22]line Товар: 2710124130 [18:58:22]line Аи-92-К-5 [18:58:22]line 7.480 * 66.90 [18:58:22]line = 500.41 [18:58:22]line НДС 12% НСП 1% [18:58:22]line > о реализуемом товаре [18:58:22]line ОКРУГЛЕНИЕ: -0.41 [18:58:22]line ИТОГО: 500.00 [18:58:22]line Внесено: 500.00 [18:58:22]line СДАЧА: 0.00 [18:58:22]line НСП 1% : 4.43 [18:58:22]line НДС 12% : 53.14 [18:58:22]line Наличными: 500.00 [18:58:22]line Безнал.: 0.00 [18:58:22]line Место: АЗС № 170 "Партнер Нефть" [18:58:22]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [18:58:22]line СНО: Общий режим [18:58:22]line Чек 270 26.10.2024 18:58 [18:58:22]line Смена: 541 ФФД: 1.0 [18:58:22]line ЗНМ: 0300000110 [18:58:22]line РНМ: 0000000000091776 [18:58:22]line Версия ККМ: 001 [18:58:22]line ФМ: 0000000000871754 [18:58:22]line ФД: 191907 [18:58:22]line ФПД: 43367799694378 [18:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T185836&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191907&fm=43367799694378&tin=02508201610067®Number=0000000000091776&sum=50000 [18:58:22]OFD Sender: Processing packet 191907 [packets to send 75, broken 74] [18:58:22]ProducePacketName [18:58:22]name=ofd_packets/00191907 [18:58:22]OFD Sender: To server: pG, [18:58:22]CommunicateWithHost lk.salyk.kg:30040 [18:58:22]ConnectInit lk.salyk.kg [18:58:22]written 0, free lines is 4095 [18:58:22]Connected sock=8 [18:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FD 93 07 01 FB F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 DC 3B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 ED 02 00 35 04 06 00 27 71 5A 4B A4 2A B3 91 55 16 DC 9E D6 1E [18:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F6 64 47 00 BF 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A3 ED 02 00 F4 03 04 00 A6 E0 1C 67 B6 04 01 00 00 38 02 44 0F EA C3 04 A2 [18:58:22]CommunicateWithHost err = 0 [18:58:22]CheckOFDResponse [18:58:22]1017 (14) - 77093643461234 [18:58:22]1041 (16) - 0000000000871754 [18:58:22]1040 (4) - 191907 [18:58:22]1012 (4) - 26.10.2024 12:29 [18:58:22]1206 (1) - 0 [18:58:22]OFD Sender: Remove packet 191907 [18:58:22]ProducePacketName [18:58:22]name=ofd_packets/00191907 [18:58:22]NVStorageDeleteData [18:58:22]Write to MH i2c: 01 00 00 0F 2C 3B [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 B8 0C 06 [18:58:22]RasterBufferAndPrint [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]line [18:58:22]written 0, free lines is 3263 [18:58:22]MH_Cut [18:58:22]Write to MH i2c: D1 01 00 16 2C 01 14 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 01 00 [18:58:22]MH_I2C_Read... [18:58:22]Read from MH i2c: D1 01 00 16 2C 00 13 [18:58:22]Write to MH i2c: 01 00 00 17 2C 43 [18:58:22]Write i2c OK [18:58:22]MH_I2C_Read... [18:58:23]OFD Sender: No OFD packet to send [18:58:23]*** Cut start [18:58:23]*** Partial cut [18:58:23]*** CUTSNS_PIN = 1 [18:58:23]*** CUTSNS_PIN = 0 [18:58:23]*** Brake cut motor [18:58:24]Read from MH i2c: 01 [18:58:24]MH_I2C_Read... [18:58:24]*** Stop cut motor [18:58:24]*** Cut end [18:58:24]Read from MH i2c: 01 07 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: 01 07 00 17 2C 00 00 00 00 00 FF 0F 58 [18:58:24]process_action close_receipt done [18:58:24]requested_data is exist [18:58:24]produce_requested_data [18:58:24]requested_item fm.sn is exist - process it [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 11 00 00 [18:58:24]Write to MH i2c: E2 08 00 18 2C 80 11 00 00 00 00 00 00 BE [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 17 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 17 00 18 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [18:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [18:58:24]wFMCommunicate OK [18:58:24]requested_item fd.num is exist - process it [18:58:24]SAM_PROTO_GetFieldsCounters [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 13 00 00 [18:58:24]Write to MH i2c: E2 08 00 19 2C 80 13 00 00 00 00 00 00 C1 [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 62 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 62 00 19 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [18:58:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:24]wFMCommunicate OK [18:58:24]SAM_PROTO_GetFieldsCounters done [18:58:24]requested_item shift.num is exist - process it [18:58:24]requested_item shift.opened is exist - process it [18:58:24]req_shift_opened [18:58:24]FM_GetShiftState [18:58:24]SAM_PROTO_GetShiftState [18:58:24]wFMCommunicate request_size=4 [18:58:24]MH_SAM_APDU [18:58:24]CAPDU: 80 13 01 00 [18:58:24]Write to MH i2c: E2 08 00 1A 2C 80 13 01 00 00 00 00 00 C3 [18:58:24]Write i2c OK [18:58:24]MH_I2C_Read... [18:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:24]Read from MH i2c: E2 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 0E 00 [18:58:24]MH_I2C_Read... [18:58:24]Read from MH i2c: E2 0E 00 1A 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3C [18:58:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [18:58:24]wFMCommunicate OK [18:58:24]SAM_PROTO_GetShiftState done [18:58:24]FM_GetShiftState done [18:58:24]req_shift_opened done [18:58:24]requested_item shift.open_date is exist - process it [18:58:24]req_shift_open_date [18:58:24]req_shift_open_date done [18:58:24]produce_requested_data done [18:58:24]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191907,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [18:58:24]process_action_free close_receipt [18:58:24]json_value_free [18:58:24]json_value_free done [18:58:24]process_json_proto returns [18:58:24]Send response to host [18:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191907,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [18:58:24]free response buf [18:58:24]execute_script done [18:58:24]execute_script returns [18:58:24]free content buf [18:58:24]Sock 5.Close socket [18:58:24]Sock 5.Thread stoped [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:14]accept exits with 6 [19:01:14]New connection [19:01:14]New thread 3066961252 created [19:01:14]Thread 3066817892 joined [19:01:14]Waiting for new connection... [19:01:14] Sock 6.Parse request [19:01:14]Sock 6.Check first char [19:01:14]Sock 6.First char is OK [19:01:14]request: POST /json_proto HTTP/1.0 [19:01:14]Method: POST [19:01:14]URL: /json_proto [19:01:14]Method is POST - this is cgi request [19:01:14]url: /json_proto [19:01:14]query_string will be loaded in cgi processing [19:01:14]execute_cgi json_proto POST (null) [19:01:14]execute_cgi path=json_proto method=POST [19:01:14]POST find Content-Length [19:01:14]Host: 172.17.63.131:8080 [19:01:14]Content-Length: 676 [19:01:14]Content-Type: application/json [19:01:14] [19:01:14]POST finish read [19:01:14]Found Content-Length = 676 [19:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]execute_script... [19:01: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)31216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:14]POST & json_proto [19:01:14]process_json_proto [19:01:14]json parsed OK: [19:01:14]protocol is kg_v1.0 [19:01:14]action value=close_receipt [19:01:14]process_action close_receipt [19:01:14]cmd_close_receipt [19:01:14]MH_GetDate [19:01:14]Write to MH i2c: F0 00 00 1B 2C 36 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 09 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: F0 09 00 1B 2C 00 89 3C 1D 67 22 05 6E 64 81 [19:01:14]GetLastDocTimeStamp 1729969116 [19:01:14]current date 1729969289 [19:01:14]FM_GetShiftState [19:01:14]SAM_PROTO_GetShiftState [19:01:14]wFMCommunicate request_size=4 [19:01:14]MH_SAM_APDU [19:01:14]CAPDU: 80 13 01 00 [19:01:14]Write to MH i2c: E2 08 00 1C 2C 80 13 01 00 00 00 00 00 C5 [19:01:14]Write i2c OK [19:01:14]MH_I2C_Read... [19:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:14]Read from MH i2c: E2 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 [19:01:14]MH_I2C_Read... [19:01:14]Read from MH i2c: E2 0E 00 1C 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3E [19:01:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:01:14]wFMCommunicate OK [19:01:14]SAM_PROTO_GetShiftState done [19:01:14]FM_GetShiftState done [19:01:14]opened in 1729902770 [19:01:14]opened+sec_in_day 1729989170 [19:01:14]quantity*price = 34052 [19:01:14]sum+1 = 34053 [19:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 271 26.10.2024 19:01 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191908 ФПД: 118265133046821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191908&fm=118265133046821&tin=02508201610067®Number=0000000000091776&sum=34000 [19:01:15]StoreToDocumentArchive [19:01:15]shift 541 fd 191908 [19:01:15]save to /storage/0541/doc_00191908 [19:01:15]save last doc name /storage/0541/doc_00191908 to /storage/kkm_last_doc_name [19:01:15]save OK [19:01:15]Clear old archive folders... [19:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:15]tlvbuf is 015C86C0 [19:01:15]SAM_PROTO_ClearQueue [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 09 00 00 [19:01:15]Write to MH i2c: E2 08 00 29 2C 80 09 00 00 00 00 00 00 C7 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 29 2C 00 90 00 C9 [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]SAM_PROTO_ClearQueue done [19:01:15]KKMCreateOFDPacket [19:01:15]OFDProtocolAddRootSTLVToBuf [19:01:15]FM_MakeSignedData [19:01:15]FM_MakeSignedData [19:01:15]SAM_PROTO_SignData [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 01 02 [19:01:15]Write to MH i2c: E2 08 00 2A 2C 80 0D 01 02 00 00 00 00 CF [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 2A 2C 00 90 00 CA [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=255 [19:01:15]MH_SAM_APDU [19:01: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8A 3C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 ED 02 00 35 04 06 00 6B [19:01:15]Write to MH i2c: E2 02 01 2B 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8A 3C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 ED 02 00 35 04 06 00 6B 00 00 13 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 2B 2C 00 90 00 CB [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=10 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 02 02 05 8F BF 3E 9C 25 [19:01:15]Write to MH i2c: E2 0D 00 2C 2C 80 0D 02 02 05 00 8F BF 3E 9C 25 00 00 29 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 03 00 2C 2C 00 90 00 CC [19:01:15]RAPDU: 90 00 [19:01:15]wFMCommunicate OK [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 0D 03 02 [19:01:15]Write to MH i2c: E2 08 00 2D 2C 80 0D 03 02 00 00 00 00 D4 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 0B 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 0B 00 2D 2C 00 E1 9A D4 ED 00 08 6C CA 90 00 4F [19:01:15]RAPDU: E1 9A D4 ED 00 08 6C CA 90 00 [19:01:15]wFMCommunicate OK [19:01:15]SAM_PROTO_SignData done [19:01:15]FM_MakeSignedData done [19:01:15]CreateOFDProtocolMessage [19:01:15]wFMCommunicate request_size=4 [19:01:15]MH_SAM_APDU [19:01:15]CAPDU: 80 11 00 00 [19:01:15]Write to MH i2c: E2 08 00 2E 2C 80 11 00 00 00 00 00 00 D4 [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:15]Read from MH i2c: E2 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 17 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: E2 17 00 2E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [19:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:01:15]wFMCommunicate OK [19:01:15]CreateOFDProtocolMessage done [19:01:15]OFDSenderStorePacket 191908 [19:01:15]StoreOFDPacket docnum=191908 [19:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 A3 07 01 8A 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8A 3C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 ED 02 00 35 04 06 00 6B 8F BF 3E 9C 25 E1 9A D4 ED 00 08 6C CA [19:01:15]CheckFolder [19:01:15]dirname=/storage/ofd_packets [19:01:15]CheckFolder done [19:01:15]ProducePacketName [19:01:15]name=ofd_packets/00191908 [19:01:15]NVStorageSaveData ofd_packets/00191908 [19:01:15]File name is /storage/ofd_packets/00191908 [19:01:15]Write 301 bytes [19:01:15]NVStorageSaveData done [19:01:15]OFDSenderStorePacket done [19:01:15]KKMCreateOFDPacket done [19:01:15]NVStorageSaveData kkm_last_timestamp [19:01:15]File name is /storage/kkm_last_timestamp [19:01:15]Write 4 bytes [19:01:15]NVStorageSaveData done [19:01:15]ExternCall_PrintAddStr [19:01:15]wPrintStart [19:01:15]Write to MH i2c: 01 00 00 2F 2C 5B [19:01:15]Write i2c OK [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 07 00 [19:01:15]MH_I2C_Read... [19:01:15]Read from MH i2c: 01 07 00 2F 2C 00 00 00 00 00 FF 0F 70 [19:01:15]RasterBufferAndPrint [19:01:15]line Счет N : (1)31216 [19:01:15]line ИНН: 02508201610067 [19:01:15]line Контрольно-Кассовый Чек [19:01:15]line ПРОДАЖА [19:01:15]line ТРК (МРК, ГНК) : 21 [19:01:15]line Товар: 2710124130 [19:01:15]line Аи-92-К-5 [19:01:15]line 5.090 * 66.90 [19:01:15]line = 340.52 [19:01:15]line НДС 12% НСП 1% [19:01:15]line > о реализуемом товаре [19:01:15]line ОКРУГЛЕНИЕ: -0.52 [19:01:15]line ИТОГО: 340.00 [19:01:15]line Внесено: 340.00 [19:01:15]line СДАЧА: 0.00 [19:01:15]line НСП 1% : 3.01 [19:01:15]line НДС 12% : 36.16 [19:01:15]line Наличными: 340.00 [19:01:15]line Безнал.: 0.00 [19:01:15]line Место: АЗС № 170 "Партнер Нефть" [19:01:15]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:01:15]line СНО: Общий режим [19:01:15]line Чек 271 26.10.2024 19:01 [19:01:15]line Смена: 541 ФФД: 1.0 [19:01:15]line ЗНМ: 0300000110 [19:01:15]line РНМ: 0000000000091776 [19:01:15]line Версия ККМ: 001 [19:01:15]line ФМ: 0000000000871754 [19:01:15]line ФД: 191908 [19:01:15]line ФПД: 118265133046821 [19:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190130&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191908&fm=118265133046821&tin=02508201610067®Number=0000000000091776&sum=34000 [19:01:16]OFD Sender: Processing packet 191908 [packets to send 75, broken 74] [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00191908 [19:01:16]OFD Sender: To server: pG, [19:01:16]CommunicateWithHost lk.salyk.kg:30040 [19:01:16]ConnectInit lk.salyk.kg [19:01:16]written 0, free lines is 4095 [19:01:16]Connected sock=8 [19:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 A3 07 01 8A 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 8A 3C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 ED 02 00 35 04 06 00 6B 8F BF 3E 9C 25 E1 9A D4 ED 00 08 6C CA [19:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 05 79 47 00 71 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A4 ED 02 00 F4 03 04 00 54 E1 1C 67 B6 04 01 00 00 B1 19 0F 6D C0 1E 0E B5 [19:01:16]CommunicateWithHost err = 0 [19:01:16]CheckOFDResponse [19:01:16]1017 (14) - 77093643461234 [19:01:16]1041 (16) - 0000000000871754 [19:01:16]1040 (4) - 191908 [19:01:16]1012 (4) - 26.10.2024 12:32 [19:01:16]1206 (1) - 0 [19:01:16]OFD Sender: Remove packet 191908 [19:01:16]ProducePacketName [19:01:16]name=ofd_packets/00191908 [19:01:16]NVStorageDeleteData [19:01:16]Write to MH i2c: 01 00 00 5A 2C 86 [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: 01 07 00 5A 2C 00 00 00 00 00 B8 0C 51 [19:01:16]RasterBufferAndPrint [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]line [19:01:16]written 0, free lines is 3263 [19:01:16]MH_Cut [19:01:16]Write to MH i2c: D1 01 00 61 2C 01 5F [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: D1 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: D1 01 00 [19:01:16]MH_I2C_Read... [19:01:16]Read from MH i2c: D1 01 00 61 2C 00 5E [19:01:16]Write to MH i2c: 01 00 00 62 2C 8E [19:01:16]Write i2c OK [19:01:16]MH_I2C_Read... [19:01:16]OFD Sender: No OFD packet to send [19:01:17]*** Cut start [19:01:17]*** Partial cut [19:01:17]*** CUTSNS_PIN = 1 [19:01:17]*** CUTSNS_PIN = 0 [19:01:17]*** Brake cut motor [19:01:17]Read from MH i2c: 01 [19:01:17]MH_I2C_Read... [19:01:17]*** Stop cut motor [19:01:17]*** Cut end [19:01:17]Read from MH i2c: 01 07 00 [19:01:17]MH_I2C_Read... [19:01:17]Read from MH i2c: 01 07 00 62 2C 00 00 00 00 00 FF 0F A3 [19:01:17]process_action close_receipt done [19:01:17]requested_data is exist [19:01:17]produce_requested_data [19:01:17]requested_item fm.sn is exist - process it [19:01:17]wFMCommunicate request_size=4 [19:01:17]MH_SAM_APDU [19:01:17]CAPDU: 80 11 00 00 [19:01:17]Write to MH i2c: E2 08 00 63 2C 80 11 00 00 00 00 00 00 09 [19:01:17]Write i2c OK [19:01:17]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 17 00 63 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [19:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:01:18]wFMCommunicate OK [19:01:18]requested_item fd.num is exist - process it [19:01:18]SAM_PROTO_GetFieldsCounters [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 13 00 00 [19:01:18]Write to MH i2c: E2 08 00 64 2C 80 13 00 00 00 00 00 00 0C [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 62 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 62 00 64 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [19:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_GetFieldsCounters done [19:01:18]requested_item shift.num is exist - process it [19:01:18]requested_item shift.opened is exist - process it [19:01:18]req_shift_opened [19:01:18]FM_GetShiftState [19:01:18]SAM_PROTO_GetShiftState [19:01:18]wFMCommunicate request_size=4 [19:01:18]MH_SAM_APDU [19:01:18]CAPDU: 80 13 01 00 [19:01:18]Write to MH i2c: E2 08 00 65 2C 80 13 01 00 00 00 00 00 0E [19:01:18]Write i2c OK [19:01:18]MH_I2C_Read... [19:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:18]Read from MH i2c: E2 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0E 00 [19:01:18]MH_I2C_Read... [19:01:18]Read from MH i2c: E2 0E 00 65 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 87 [19:01:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:01:18]wFMCommunicate OK [19:01:18]SAM_PROTO_GetShiftState done [19:01:18]FM_GetShiftState done [19:01:18]req_shift_opened done [19:01:18]requested_item shift.open_date is exist - process it [19:01:18]req_shift_open_date [19:01:18]req_shift_open_date done [19:01:18]produce_requested_data done [19:01:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191908,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:01:18]process_action_free close_receipt [19:01:18]json_value_free [19:01:18]json_value_free done [19:01:18]process_json_proto returns [19:01:18]Send response to host [19:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191908,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:01:18]free response buf [19:01:18]execute_script done [19:01:18]execute_script returns [19:01:18]free content buf [19:01:18]Sock 6.Close socket [19:01:18]Sock 6.Thread stoped [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:21]accept exits with 5 [19:03:21]New connection [19:03:21]New thread 3066817892 created [19:03:21]Thread 3066961252 joined [19:03:21]Waiting for new connection... [19:03:21] Sock 5.Parse request [19:03:21]Sock 5.Check first char [19:03:21]Sock 5.First char is OK [19:03:21]request: POST /json_proto HTTP/1.0 [19:03:21]Method: POST [19:03:21]URL: /json_proto [19:03:21]Method is POST - this is cgi request [19:03:21]url: /json_proto [19:03:21]query_string will be loaded in cgi processing [19:03:21]execute_cgi json_proto POST (null) [19:03:21]execute_cgi path=json_proto method=POST [19:03:21]POST find Content-Length [19:03:21]Host: 172.17.63.131:8080 [19:03:21]Content-Length: 676 [19:03:21]Content-Type: application/json [19:03:21] [19:03:21]POST finish read [19:03:21]Found Content-Length = 676 [19:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:21]execute_script... [19:03: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)31217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:21]POST & json_proto [19:03:21]process_json_proto [19:03:21]json parsed OK: [19:03:21]protocol is kg_v1.0 [19:03:21]action value=close_receipt [19:03:21]process_action close_receipt [19:03:21]cmd_close_receipt [19:03:21]MH_GetDate [19:03:21]Write to MH i2c: F0 00 00 66 2C 81 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: F0 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: F0 09 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: F0 09 00 66 2C 00 09 3D 1D 67 22 05 6E 64 4D [19:03:21]GetLastDocTimeStamp 1729969290 [19:03:21]current date 1729969417 [19:03:21]FM_GetShiftState [19:03:21]SAM_PROTO_GetShiftState [19:03:21]wFMCommunicate request_size=4 [19:03:21]MH_SAM_APDU [19:03:21]CAPDU: 80 13 01 00 [19:03:21]Write to MH i2c: E2 08 00 67 2C 80 13 01 00 00 00 00 00 10 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:21]Read from MH i2c: E2 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 0E 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: E2 0E 00 67 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 89 [19:03:21]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:03:21]wFMCommunicate OK [19:03:21]SAM_PROTO_GetShiftState done [19:03:21]FM_GetShiftState done [19:03:21]opened in 1729902770 [19:03:21]opened+sec_in_day 1729989170 [19:03:21]quantity*price = 20003 [19:03:21]sum+1 = 20004 [19:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 272 26.10.2024 19:03 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191909 ФПД: 195632485983307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190337&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191909&fm=195632485983307&tin=02508201610067®Number=0000000000091776&sum=20000 [19:03:22]StoreToDocumentArchive [19:03:22]shift 541 fd 191909 [19:03:22]save to /storage/0541/doc_00191909 [19:03:22]save last doc name /storage/0541/doc_00191909 to /storage/kkm_last_doc_name [19:03:22]save OK [19:03:22]Clear old archive folders... [19:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:22]tlvbuf is 016BC560 [19:03:22]SAM_PROTO_ClearQueue [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 09 00 00 [19:03:22]Write to MH i2c: E2 08 00 74 2C 80 09 00 00 00 00 00 00 12 [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 74 2C 00 90 00 14 [19:03:22]RAPDU: 90 00 [19:03:22]wFMCommunicate OK [19:03:22]SAM_PROTO_ClearQueue done [19:03:22]KKMCreateOFDPacket [19:03:22]OFDProtocolAddRootSTLVToBuf [19:03:22]FM_MakeSignedData [19:03:22]FM_MakeSignedData [19:03:22]SAM_PROTO_SignData [19:03:22]wFMCommunicate request_size=4 [19:03:22]MH_SAM_APDU [19:03:22]CAPDU: 80 0D 01 02 [19:03:22]Write to MH i2c: E2 08 00 75 2C 80 0D 01 02 00 00 00 00 1A [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:22]Read from MH i2c: E2 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 [19:03:22]MH_I2C_Read... [19:03:22]Read from MH i2c: E2 03 00 75 2C 00 90 00 15 [19:03:22]RAPDU: 90 00 [19:03:22]wFMCommunicate OK [19:03:22]wFMCommunicate request_size=255 [19:03:22]MH_SAM_APDU [19:03: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 09 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 ED 02 00 35 04 06 00 B1 [19:03:22]Write to MH i2c: E2 02 01 76 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 09 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 ED 02 00 35 04 06 00 B1 00 00 AF [19:03:22]Write i2c OK [19:03:22]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 03 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 03 00 76 2C 00 90 00 16 [19:03:23]RAPDU: 90 00 [19:03:23]wFMCommunicate OK [19:03:23]wFMCommunicate request_size=10 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 0D 02 02 05 ED 3C D5 64 4B [19:03:23]Write to MH i2c: E2 0D 00 77 2C 80 0D 02 02 05 00 ED 3C D5 64 4B 00 00 D4 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 03 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 03 00 77 2C 00 90 00 17 [19:03:23]RAPDU: 90 00 [19:03:23]wFMCommunicate OK [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 0D 03 02 [19:03:23]Write to MH i2c: E2 08 00 78 2C 80 0D 03 02 00 00 00 00 1F [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0B 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0B 00 78 2C 00 42 0E 46 E5 E5 70 A1 8A 90 00 1B [19:03:23]RAPDU: 42 0E 46 E5 E5 70 A1 8A 90 00 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_SignData done [19:03:23]FM_MakeSignedData done [19:03:23]CreateOFDProtocolMessage [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 11 00 00 [19:03:23]Write to MH i2c: E2 08 00 79 2C 80 11 00 00 00 00 00 00 1F [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 79 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [19:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:23]wFMCommunicate OK [19:03:23]CreateOFDProtocolMessage done [19:03:23]OFDSenderStorePacket 191909 [19:03:23]StoreOFDPacket docnum=191909 [19:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 6A 07 01 76 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 09 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 ED 02 00 35 04 06 00 B1 ED 3C D5 64 4B 42 0E 46 E5 E5 70 A1 8A [19:03:23]CheckFolder [19:03:23]dirname=/storage/ofd_packets [19:03:23]CheckFolder done [19:03:23]ProducePacketName [19:03:23]name=ofd_packets/00191909 [19:03:23]NVStorageSaveData ofd_packets/00191909 [19:03:23]File name is /storage/ofd_packets/00191909 [19:03:23]Write 301 bytes [19:03:23]NVStorageSaveData done [19:03:23]OFDSenderStorePacket done [19:03:23]KKMCreateOFDPacket done [19:03:23]NVStorageSaveData kkm_last_timestamp [19:03:23]File name is /storage/kkm_last_timestamp [19:03:23]Write 4 bytes [19:03:23]NVStorageSaveData done [19:03:23]ExternCall_PrintAddStr [19:03:23]wPrintStart [19:03:23]Write to MH i2c: 01 00 00 7A 2C A6 [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 7A 2C 00 00 00 00 00 FF 0F BB [19:03:23]RasterBufferAndPrint [19:03:23]line Счет N : (1)31217 [19:03:23]line ИНН: 02508201610067 [19:03:23]line Контрольно-Кассовый Чек [19:03:23]line ПРОДАЖА [19:03:23]line ТРК (МРК, ГНК) : 21 [19:03:23]line Товар: 2710124130 [19:03:23]line Аи-92-К-5 [19:03:23]line 2.990 * 66.90 [19:03:23]line = 200.03 [19:03:23]line НДС 12% НСП 1% [19:03:23]line > о реализуемом товаре [19:03:23]line ОКРУГЛЕНИЕ: -0.03 [19:03:23]line ИТОГО: 200.00 [19:03:23]line Внесено: 200.00 [19:03:23]line СДАЧА: 0.00 [19:03:23]line НСП 1% : 1.77 [19:03:23]line НДС 12% : 21.24 [19:03:23]line Наличными: 200.00 [19:03:23]line Безнал.: 0.00 [19:03:23]line Место: АЗС № 170 "Партнер Нефть" [19:03:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:03:23]line СНО: Общий режим [19:03:23]line Чек 272 26.10.2024 19:03 [19:03:23]line Смена: 541 ФФД: 1.0 [19:03:23]line ЗНМ: 0300000110 [19:03:23]line РНМ: 0000000000091776 [19:03:23]line Версия ККМ: 001 [19:03:23]line ФМ: 0000000000871754 [19:03:23]line ФД: 191909 [19:03:23]line ФПД: 195632485983307 [19:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190337&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191909&fm=195632485983307&tin=02508201610067®Number=0000000000091776&sum=20000 [19:03:23]OFD Sender: Processing packet 191909 [packets to send 75, broken 74] [19:03:23]ProducePacketName [19:03:23]name=ofd_packets/00191909 [19:03:23]OFD Sender: To server: pG, [19:03:23]CommunicateWithHost lk.salyk.kg:30040 [19:03:23]ConnectInit lk.salyk.kg [19:03:23]written 0, free lines is 4095 [19:03:23]Connected sock=8 [19:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C4 6A 07 01 76 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 09 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 ED 02 00 35 04 06 00 B1 ED 3C D5 64 4B 42 0E 46 E5 E5 70 A1 8A [19:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 53 D5 47 00 A9 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A5 ED 02 00 F4 03 04 00 D3 E1 1C 67 B6 04 01 00 00 9E 1B 1B 25 80 36 1B EE [19:03:24]CommunicateWithHost err = 0 [19:03:24]CheckOFDResponse [19:03:24]1017 (14) - 77093643461234 [19:03:24]1041 (16) - 0000000000871754 [19:03:24]1040 (4) - 191909 [19:03:24]1012 (4) - 26.10.2024 12:34 [19:03:24]1206 (1) - 0 [19:03:24]OFD Sender: Remove packet 191909 [19:03:24]ProducePacketName [19:03:24]name=ofd_packets/00191909 [19:03:24]NVStorageDeleteData [19:03:24]Write to MH i2c: 01 00 00 A5 2C D1 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: 01 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: 01 07 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: 01 07 00 A5 2C 00 00 00 00 00 A7 0C 8B [19:03:24]RasterBufferAndPrint [19:03:24]line [19:03:24]line [19:03:24]line [19:03:24]line [19:03:24]line [19:03:24]written 0, free lines is 3245 [19:03:24]MH_Cut [19:03:24]Write to MH i2c: D1 01 00 AC 2C 01 AA [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: D1 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: D1 01 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: D1 01 00 AC 2C 00 A9 [19:03:24]Write to MH i2c: 01 00 00 AD 2C D9 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]OFD Sender: No OFD packet to send [19:03:25]*** Cut start [19:03:25]*** Partial cut [19:03:25]*** CUTSNS_PIN = 1 [19:03:25]*** CUTSNS_PIN = 0 [19:03:25]*** Brake cut motor [19:03:25]Read from MH i2c: 01 [19:03:25]MH_I2C_Read... [19:03:25]*** Stop cut motor [19:03:25]*** Cut end [19:03:25]Read from MH i2c: 01 07 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: 01 07 00 AD 2C 00 00 00 00 00 FF 0F EE [19:03:25]process_action close_receipt done [19:03:25]requested_data is exist [19:03:25]produce_requested_data [19:03:25]requested_item fm.sn is exist - process it [19:03:25]wFMCommunicate request_size=4 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 11 00 00 [19:03:25]Write to MH i2c: E2 08 00 AE 2C 80 11 00 00 00 00 00 00 54 [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 17 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 17 00 AE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [19:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:03:25]wFMCommunicate OK [19:03:25]requested_item fd.num is exist - process it [19:03:25]SAM_PROTO_GetFieldsCounters [19:03:25]wFMCommunicate request_size=4 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 13 00 00 [19:03:25]Write to MH i2c: E2 08 00 AF 2C 80 13 00 00 00 00 00 00 57 [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 62 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 62 00 AF 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 63 [19:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:25]wFMCommunicate OK [19:03:25]SAM_PROTO_GetFieldsCounters done [19:03:25]requested_item shift.num is exist - process it [19:03:25]requested_item shift.opened is exist - process it [19:03:25]req_shift_opened [19:03:25]FM_GetShiftState [19:03:25]SAM_PROTO_GetShiftState [19:03:25]wFMCommunicate request_size=4 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 13 01 00 [19:03:25]Write to MH i2c: E2 08 00 B0 2C 80 13 01 00 00 00 00 00 59 [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 0E 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 0E 00 B0 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D2 [19:03:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:03:25]wFMCommunicate OK [19:03:25]SAM_PROTO_GetShiftState done [19:03:25]FM_GetShiftState done [19:03:25]req_shift_opened done [19:03:25]requested_item shift.open_date is exist - process it [19:03:25]req_shift_open_date [19:03:25]req_shift_open_date done [19:03:25]produce_requested_data done [19:03:25]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191909,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:03:25]process_action_free close_receipt [19:03:25]json_value_free [19:03:25]json_value_free done [19:03:25]process_json_proto returns [19:03:25]Send response to host [19:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191909,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:03:25]free response buf [19:03:25]execute_script done [19:03:25]execute_script returns [19:03:25]free content buf [19:03:25]Sock 5.Close socket [19:03:25]Sock 5.Thread stoped [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:08]accept exits with 6 [19:05:08]New connection [19:05:08]New thread 3066961252 created [19:05:08]Thread 3066817892 joined [19:05:08]Waiting for new connection... [19:05:08] Sock 6.Parse request [19:05:08]Sock 6.Check first char [19:05:08]Sock 6.First char is OK [19:05:08]request: POST /json_proto HTTP/1.0 [19:05:08]Method: POST [19:05:08]URL: /json_proto [19:05:08]Method is POST - this is cgi request [19:05:08]url: /json_proto [19:05:08]query_string will be loaded in cgi processing [19:05:08]execute_cgi json_proto POST (null) [19:05:08]execute_cgi path=json_proto method=POST [19:05:08]POST find Content-Length [19:05:08]Host: 172.17.63.131:8080 [19:05:08]Content-Length: 676 [19:05:08]Content-Type: application/json [19:05:08] [19:05:08]POST finish read [19:05:08]Found Content-Length = 676 [19:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:08]execute_script... [19:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:08]POST & json_proto [19:05:08]process_json_proto [19:05:08]json parsed OK: [19:05:08]protocol is kg_v1.0 [19:05:08]action value=close_receipt [19:05:08]process_action close_receipt [19:05:08]cmd_close_receipt [19:05:08]MH_GetDate [19:05:08]Write to MH i2c: F0 00 00 B1 2C CC [19:05:08]Write i2c OK [19:05:08]MH_I2C_Read... [19:05:08]Read from MH i2c: F0 [19:05:08]MH_I2C_Read... [19:05:08]Read from MH i2c: F0 09 00 [19:05:08]MH_I2C_Read... [19:05:08]Read from MH i2c: F0 09 00 B1 2C 00 74 3D 1D 67 22 05 6E 64 03 [19:05:08]GetLastDocTimeStamp 1729969417 [19:05:08]current date 1729969524 [19:05:08]FM_GetShiftState [19:05:08]SAM_PROTO_GetShiftState [19:05:08]wFMCommunicate request_size=4 [19:05:08]MH_SAM_APDU [19:05:08]CAPDU: 80 13 01 00 [19:05:08]Write to MH i2c: E2 08 00 B2 2C 80 13 01 00 00 00 00 00 5B [19:05:08]Write i2c OK [19:05:08]MH_I2C_Read... [19:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:08]Read from MH i2c: E2 [19:05:08]MH_I2C_Read... [19:05:08]Read from MH i2c: E2 0E 00 [19:05:08]MH_I2C_Read... [19:05:08]Read from MH i2c: E2 0E 00 B2 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D4 [19:05:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:05:08]wFMCommunicate OK [19:05:08]SAM_PROTO_GetShiftState done [19:05:08]FM_GetShiftState done [19:05:08]opened in 1729902770 [19:05:08]opened+sec_in_day 1729989170 [19:05:08]quantity*price = 50041 [19:05:08]sum+1 = 50042 [19:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 273 26.10.2024 19:05 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191910 ФПД: 168354305857841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191910&fm=168354305857841&tin=02508201610067®Number=0000000000091776&sum=50000 [19:05:09]StoreToDocumentArchive [19:05:09]shift 541 fd 191910 [19:05:09]save to /storage/0541/doc_00191910 [19:05:09]save last doc name /storage/0541/doc_00191910 to /storage/kkm_last_doc_name [19:05:09]save OK [19:05:09]Clear old archive folders... [19:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:09]tlvbuf is 015C8BB0 [19:05:09]SAM_PROTO_ClearQueue [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 09 00 00 [19:05:09]Write to MH i2c: E2 08 00 BF 2C 80 09 00 00 00 00 00 00 5D [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 BF 2C 00 90 00 5F [19:05:09]RAPDU: 90 00 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_ClearQueue done [19:05:09]KKMCreateOFDPacket [19:05:09]OFDProtocolAddRootSTLVToBuf [19:05:09]FM_MakeSignedData [19:05:09]FM_MakeSignedData [19:05:09]SAM_PROTO_SignData [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 0D 01 02 [19:05:09]Write to MH i2c: E2 08 00 C0 2C 80 0D 01 02 00 00 00 00 65 [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 C0 2C 00 90 00 60 [19:05:09]RAPDU: 90 00 [19:05:09]wFMCommunicate OK [19:05:09]wFMCommunicate request_size=255 [19:05:09]MH_SAM_APDU [19:05: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 74 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 ED 02 00 35 04 06 00 99 [19:05:09]Write to MH i2c: E2 02 01 C1 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 74 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 ED 02 00 35 04 06 00 99 00 00 8D [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 C1 2C 00 90 00 61 [19:05:09]RAPDU: 90 00 [19:05:09]wFMCommunicate OK [19:05:09]wFMCommunicate request_size=10 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 0D 02 02 05 1E 0A 98 D9 31 [19:05:09]Write to MH i2c: E2 0D 00 C2 2C 80 0D 02 02 05 00 1E 0A 98 D9 31 00 00 3C [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]OFD Sender: No OFD packet to send [19:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 03 00 C2 2C 00 90 00 62 [19:05:09]RAPDU: 90 00 [19:05:09]wFMCommunicate OK [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 0D 03 02 [19:05:09]Write to MH i2c: E2 08 00 C3 2C 80 0D 03 02 00 00 00 00 6A [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0B 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 0B 00 C3 2C 00 E1 23 C1 24 66 DE AB 31 90 00 74 [19:05:09]RAPDU: E1 23 C1 24 66 DE AB 31 90 00 [19:05:09]wFMCommunicate OK [19:05:09]SAM_PROTO_SignData done [19:05:09]FM_MakeSignedData done [19:05:09]CreateOFDProtocolMessage [19:05:09]wFMCommunicate request_size=4 [19:05:09]MH_SAM_APDU [19:05:09]CAPDU: 80 11 00 00 [19:05:09]Write to MH i2c: E2 08 00 C4 2C 80 11 00 00 00 00 00 00 6A [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:09]Read from MH i2c: E2 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 17 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: E2 17 00 C4 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BD [19:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:05:09]wFMCommunicate OK [19:05:09]CreateOFDProtocolMessage done [19:05:09]OFDSenderStorePacket 191910 [19:05:09]StoreOFDPacket docnum=191910 [19:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 4F 07 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 74 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 ED 02 00 35 04 06 00 99 1E 0A 98 D9 31 E1 23 C1 24 66 DE AB 31 [19:05:09]CheckFolder [19:05:09]dirname=/storage/ofd_packets [19:05:09]CheckFolder done [19:05:09]ProducePacketName [19:05:09]name=ofd_packets/00191910 [19:05:09]NVStorageSaveData ofd_packets/00191910 [19:05:09]File name is /storage/ofd_packets/00191910 [19:05:09]Write 301 bytes [19:05:09]NVStorageSaveData done [19:05:09]OFDSenderStorePacket done [19:05:09]KKMCreateOFDPacket done [19:05:09]NVStorageSaveData kkm_last_timestamp [19:05:09]File name is /storage/kkm_last_timestamp [19:05:09]Write 4 bytes [19:05:09]NVStorageSaveData done [19:05:09]ExternCall_PrintAddStr [19:05:09]wPrintStart [19:05:09]Write to MH i2c: 01 00 00 C5 2C F1 [19:05:09]Write i2c OK [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: 01 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: 01 07 00 [19:05:09]MH_I2C_Read... [19:05:09]Read from MH i2c: 01 07 00 C5 2C 00 00 00 00 00 FF 0F 06 [19:05:09]RasterBufferAndPrint [19:05:09]line Счет N : (1)31218 [19:05:09]line ИНН: 02508201610067 [19:05:09]line Контрольно-Кассовый Чек [19:05:09]line ПРОДАЖА [19:05:09]line ТРК (МРК, ГНК) : 21 [19:05:09]line Товар: 2710124130 [19:05:09]line Аи-92-К-5 [19:05:09]line 7.480 * 66.90 [19:05:09]line = 500.41 [19:05:09]line НДС 12% НСП 1% [19:05:09]line > о реализуемом товаре [19:05:09]line ОКРУГЛЕНИЕ: -0.41 [19:05:09]line ИТОГО: 500.00 [19:05:09]line Внесено: 500.00 [19:05:09]line СДАЧА: 0.00 [19:05:09]line НСП 1% : 4.43 [19:05:09]line НДС 12% : 53.14 [19:05:09]line Наличными: 500.00 [19:05:09]line Безнал.: 0.00 [19:05:09]line Место: АЗС № 170 "Партнер Нефть" [19:05:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:05:09]line СНО: Общий режим [19:05:09]line Чек 273 26.10.2024 19:05 [19:05:09]line Смена: 541 ФФД: 1.0 [19:05:09]line ЗНМ: 0300000110 [19:05:09]line РНМ: 0000000000091776 [19:05:09]line Версия ККМ: 001 [19:05:10]line ФМ: 0000000000871754 [19:05:10]line ФД: 191910 [19:05:10]line ФПД: 168354305857841 [19:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190524&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191910&fm=168354305857841&tin=02508201610067®Number=0000000000091776&sum=50000 [19:05:10]OFD Sender: Processing packet 191910 [packets to send 75, broken 74] [19:05:10]ProducePacketName [19:05:10]name=ofd_packets/00191910 [19:05:10]OFD Sender: To server: pG, [19:05:10]CommunicateWithHost lk.salyk.kg:30040 [19:05:10]ConnectInit lk.salyk.kg [19:05:10]written 0, free lines is 4095 [19:05:10]Connected sock=8 [19:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BD 4F 07 01 9E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 74 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 ED 02 00 35 04 06 00 99 1E 0A 98 D9 31 E1 23 C1 24 66 DE AB 31 [19:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 19 69 47 00 75 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A6 ED 02 00 F4 03 04 00 3E E2 1C 67 B6 04 01 00 00 E3 B0 C0 16 AE CE 72 2C [19:05:10]CommunicateWithHost err = 0 [19:05:10]CheckOFDResponse [19:05:10]1017 (14) - 77093643461234 [19:05:10]1041 (16) - 0000000000871754 [19:05:10]1040 (4) - 191910 [19:05:10]1012 (4) - 26.10.2024 12:36 [19:05:10]1206 (1) - 0 [19:05:10]OFD Sender: Remove packet 191910 [19:05:10]ProducePacketName [19:05:10]name=ofd_packets/00191910 [19:05:10]NVStorageDeleteData [19:05:10]Write to MH i2c: 01 00 00 F0 2C 1C [19:05:10]Write i2c OK [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 07 00 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: 01 07 00 F0 2C 00 00 00 00 00 A9 0C D8 [19:05:10]RasterBufferAndPrint [19:05:10]line [19:05:10]line [19:05:10]line [19:05:10]line [19:05:10]line [19:05:10]written 0, free lines is 3246 [19:05:10]MH_Cut [19:05:10]Write to MH i2c: D1 01 00 F7 2C 01 F5 [19:05:10]Write i2c OK [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: D1 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: D1 01 00 [19:05:10]MH_I2C_Read... [19:05:10]Read from MH i2c: D1 01 00 F7 2C 00 F4 [19:05:10]Write to MH i2c: 01 00 00 F8 2C 24 [19:05:10]Write i2c OK [19:05:10]MH_I2C_Read... [19:05:10]OFD Sender: No OFD packet to send [19:05:11]*** Cut start [19:05:11]*** Partial cut [19:05:11]*** CUTSNS_PIN = 1 [19:05:11]*** CUTSNS_PIN = 0 [19:05:11]*** Brake cut motor [19:05:12]Read from MH i2c: 01 [19:05:12]MH_I2C_Read... [19:05:12]*** Stop cut motor [19:05:12]*** Cut end [19:05:12]Read from MH i2c: 01 07 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: 01 07 00 F8 2C 00 00 00 00 00 FF 0F 39 [19:05:12]process_action close_receipt done [19:05:12]requested_data is exist [19:05:12]produce_requested_data [19:05:12]requested_item fm.sn is exist - process it [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 11 00 00 [19:05:12]Write to MH i2c: E2 08 00 F9 2C 80 11 00 00 00 00 00 00 9F [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 17 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 17 00 F9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F2 [19:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:05:12]wFMCommunicate OK [19:05:12]requested_item fd.num is exist - process it [19:05:12]SAM_PROTO_GetFieldsCounters [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 13 00 00 [19:05:12]Write to MH i2c: E2 08 00 FA 2C 80 13 00 00 00 00 00 00 A2 [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 62 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 62 00 FA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:12]wFMCommunicate OK [19:05:12]SAM_PROTO_GetFieldsCounters done [19:05:12]requested_item shift.num is exist - process it [19:05:12]requested_item shift.opened is exist - process it [19:05:12]req_shift_opened [19:05:12]FM_GetShiftState [19:05:12]SAM_PROTO_GetShiftState [19:05:12]wFMCommunicate request_size=4 [19:05:12]MH_SAM_APDU [19:05:12]CAPDU: 80 13 01 00 [19:05:12]Write to MH i2c: E2 08 00 FB 2C 80 13 01 00 00 00 00 00 A4 [19:05:12]Write i2c OK [19:05:12]MH_I2C_Read... [19:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:12]Read from MH i2c: E2 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 0E 00 [19:05:12]MH_I2C_Read... [19:05:12]Read from MH i2c: E2 0E 00 FB 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1D [19:05:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:05:12]wFMCommunicate OK [19:05:12]SAM_PROTO_GetShiftState done [19:05:12]FM_GetShiftState done [19:05:12]req_shift_opened done [19:05:12]requested_item shift.open_date is exist - process it [19:05:12]req_shift_open_date [19:05:12]req_shift_open_date done [19:05:12]produce_requested_data done [19:05:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191910,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:05:12]process_action_free close_receipt [19:05:12]json_value_free [19:05:12]json_value_free done [19:05:12]process_json_proto returns [19:05:12]Send response to host [19:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191910,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:05:12]free response buf [19:05:12]execute_script done [19:05:12]execute_script returns [19:05:12]free content buf [19:05:12]Sock 6.Close socket [19:05:12]Sock 6.Thread stoped [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:52]accept exits with 5 [19:05:52]New connection [19:05:52]New thread 3066817892 created [19:05:52]Thread 3066961252 joined [19:05:52]Waiting for new connection... [19:05:52] Sock 5.Parse request [19:05:52]Sock 5.Check first char [19:05:52]Sock 5.First char is OK [19:05:52]request: POST /json_proto HTTP/1.0 [19:05:52]Method: POST [19:05:52]URL: /json_proto [19:05:52]Method is POST - this is cgi request [19:05:52]url: /json_proto [19:05:52]query_string will be loaded in cgi processing [19:05:52]execute_cgi json_proto POST (null) [19:05:52]execute_cgi path=json_proto method=POST [19:05:52]POST find Content-Length [19:05:52]Host: 172.17.63.131:8080 [19:05:52]Content-Length: 676 [19:05:52]Content-Type: application/json [19:05:52] [19:05:52]POST finish read [19:05:52]Found Content-Length = 676 [19:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:52]execute_script... [19:05: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)31219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:52]POST & json_proto [19:05:52]process_json_proto [19:05:52]json parsed OK: [19:05:52]protocol is kg_v1.0 [19:05:52]action value=close_receipt [19:05:52]process_action close_receipt [19:05:52]cmd_close_receipt [19:05:52]MH_GetDate [19:05:52]Write to MH i2c: F0 00 00 FC 2C 17 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: F0 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: F0 09 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: F0 09 00 FC 2C 00 A0 3D 1D 67 22 05 6E 64 7A [19:05:52]GetLastDocTimeStamp 1729969524 [19:05:52]current date 1729969568 [19:05:52]FM_GetShiftState [19:05:52]SAM_PROTO_GetShiftState [19:05:52]wFMCommunicate request_size=4 [19:05:52]MH_SAM_APDU [19:05:52]CAPDU: 80 13 01 00 [19:05:52]Write to MH i2c: E2 08 00 FD 2C 80 13 01 00 00 00 00 00 A6 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:52]Read from MH i2c: E2 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: E2 0E 00 FD 2C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1F [19:05:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:05:52]wFMCommunicate OK [19:05:52]SAM_PROTO_GetShiftState done [19:05:52]FM_GetShiftState done [19:05:52]opened in 1729902770 [19:05:52]opened+sec_in_day 1729989170 [19:05:52]quantity*price = 50041 [19:05:52]sum+1 = 50042 [19:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 274 26.10.2024 19:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191911 ФПД: 235379107508575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191911&fm=235379107508575&tin=02508201610067®Number=0000000000091776&sum=50000 [19:05:53]StoreToDocumentArchive [19:05:53]shift 541 fd 191911 [19:05:53]save to /storage/0541/doc_00191911 [19:05:53]save last doc name /storage/0541/doc_00191911 to /storage/kkm_last_doc_name [19:05:53]save OK [19:05:53]Clear old archive folders... [19:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:53]tlvbuf is 015C8720 [19:05:53]SAM_PROTO_ClearQueue [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 09 00 00 [19:05:53]Write to MH i2c: E2 08 00 0A 2D 80 09 00 00 00 00 00 00 A9 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 0A 2D 00 90 00 AB [19:05:53]RAPDU: 90 00 [19:05:53]wFMCommunicate OK [19:05:53]SAM_PROTO_ClearQueue done [19:05:53]KKMCreateOFDPacket [19:05:53]OFDProtocolAddRootSTLVToBuf [19:05:53]FM_MakeSignedData [19:05:53]FM_MakeSignedData [19:05:53]SAM_PROTO_SignData [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 0D 01 02 [19:05:53]Write to MH i2c: E2 08 00 0B 2D 80 0D 01 02 00 00 00 00 B1 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [19:05:53]RAPDU: 90 00 [19:05:53]wFMCommunicate OK [19:05:53]wFMCommunicate request_size=255 [19:05:53]MH_SAM_APDU [19:05: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A0 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 ED 02 00 35 04 06 00 D6 [19:05:53]Write to MH i2c: E2 02 01 0C 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A0 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 ED 02 00 35 04 06 00 D6 00 00 44 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [19:05:53]RAPDU: 90 00 [19:05:53]wFMCommunicate OK [19:05:53]wFMCommunicate request_size=10 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 0D 02 02 05 13 78 17 31 5F [19:05:53]Write to MH i2c: E2 0D 00 0D 2D 80 0D 02 02 05 00 13 78 17 31 5F 00 00 F0 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 03 00 0D 2D 00 90 00 AE [19:05:53]RAPDU: 90 00 [19:05:53]wFMCommunicate OK [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 0D 03 02 [19:05:53]Write to MH i2c: E2 08 00 0E 2D 80 0D 03 02 00 00 00 00 B6 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 0B 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 0B 00 0E 2D 00 7D 40 5D 77 D6 C7 5D B0 90 00 F2 [19:05:53]RAPDU: 7D 40 5D 77 D6 C7 5D B0 90 00 [19:05:53]wFMCommunicate OK [19:05:53]SAM_PROTO_SignData done [19:05:53]FM_MakeSignedData done [19:05:53]CreateOFDProtocolMessage [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 11 00 00 [19:05:53]Write to MH i2c: E2 08 00 0F 2D 80 11 00 00 00 00 00 00 B6 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 17 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 17 00 0F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 09 [19:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:05:53]wFMCommunicate OK [19:05:53]CreateOFDProtocolMessage done [19:05:53]OFDSenderStorePacket 191911 [19:05:53]StoreOFDPacket docnum=191911 [19:05:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 70 07 01 66 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A0 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 ED 02 00 35 04 06 00 D6 13 78 17 31 5F 7D 40 5D 77 D6 C7 5D B0 [19:05:53]CheckFolder [19:05:53]dirname=/storage/ofd_packets [19:05:53]CheckFolder done [19:05:53]ProducePacketName [19:05:53]name=ofd_packets/00191911 [19:05:53]NVStorageSaveData ofd_packets/00191911 [19:05:53]File name is /storage/ofd_packets/00191911 [19:05:53]Write 301 bytes [19:05:53]NVStorageSaveData done [19:05:53]OFDSenderStorePacket done [19:05:53]KKMCreateOFDPacket done [19:05:53]NVStorageSaveData kkm_last_timestamp [19:05:53]File name is /storage/kkm_last_timestamp [19:05:53]Write 4 bytes [19:05:53]NVStorageSaveData done [19:05:53]ExternCall_PrintAddStr [19:05:53]wPrintStart [19:05:53]Write to MH i2c: 01 00 00 10 2D 3D [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 10 2D 00 00 00 00 00 FF 0F 52 [19:05:53]RasterBufferAndPrint [19:05:53]line Счет N : (1)31219 [19:05:53]line ИНН: 02508201610067 [19:05:53]line Контрольно-Кассовый Чек [19:05:53]line ПРОДАЖА [19:05:53]line ТРК (МРК, ГНК) : 12 [19:05:53]line Товар: 2710124130 [19:05:53]line Аи-92-К-5 [19:05:53]line 7.480 * 66.90 [19:05:53]line = 500.41 [19:05:53]line НДС 12% НСП 1% [19:05:53]line > о реализуемом товаре [19:05:53]line ОКРУГЛЕНИЕ: -0.41 [19:05:53]line ИТОГО: 500.00 [19:05:53]line Внесено: 500.00 [19:05:53]line СДАЧА: 0.00 [19:05:53]line НСП 1% : 4.43 [19:05:53]line НДС 12% : 53.14 [19:05:53]line Наличными: 500.00 [19:05:53]line Безнал.: 0.00 [19:05:53]line Место: АЗС № 170 "Партнер Нефть" [19:05:53]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:05:53]line СНО: Общий режим [19:05:53]line Чек 274 26.10.2024 19:06 [19:05:53]line Смена: 541 ФФД: 1.0 [19:05:53]line ЗНМ: 0300000110 [19:05:53]line РНМ: 0000000000091776 [19:05:53]line Версия ККМ: 001 [19:05:53]line ФМ: 0000000000871754 [19:05:53]line ФД: 191911 [19:05:53]line ФПД: 235379107508575 [19:05:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191911&fm=235379107508575&tin=02508201610067®Number=0000000000091776&sum=50000 [19:05:54]OFD Sender: Processing packet 191911 [packets to send 75, broken 74] [19:05:54]ProducePacketName [19:05:54]name=ofd_packets/00191911 [19:05:54]OFD Sender: To server: pG, [19:05:54]CommunicateWithHost lk.salyk.kg:30040 [19:05:54]ConnectInit lk.salyk.kg [19:05:54]written 0, free lines is 4095 [19:05:54]Connected sock=8 [19:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 70 07 01 66 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A0 3D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 ED 02 00 35 04 06 00 D6 13 78 17 31 5F 7D 40 5D 77 D6 C7 5D B0 [19:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 35 67 47 00 D2 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A7 ED 02 00 F4 03 04 00 6A E2 1C 67 B6 04 01 00 00 2A 44 41 0E FD 5E 0B 5B [19:05:54]CommunicateWithHost err = 0 [19:05:54]CheckOFDResponse [19:05:54]1017 (14) - 77093643461234 [19:05:54]1041 (16) - 0000000000871754 [19:05:54]1040 (4) - 191911 [19:05:54]1012 (4) - 26.10.2024 12:36 [19:05:54]1206 (1) - 0 [19:05:54]OFD Sender: Remove packet 191911 [19:05:54]ProducePacketName [19:05:54]name=ofd_packets/00191911 [19:05:54]NVStorageDeleteData [19:05:54]Write to MH i2c: 01 00 00 3B 2D 68 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: 01 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: 01 07 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: 01 07 00 3B 2D 00 00 00 00 00 A8 0C 23 [19:05:54]RasterBufferAndPrint [19:05:54]line [19:05:54]line [19:05:54]line [19:05:54]line [19:05:54]line [19:05:54]written 0, free lines is 3248 [19:05:54]MH_Cut [19:05:54]Write to MH i2c: D1 01 00 42 2D 01 41 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: D1 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: D1 01 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: D1 01 00 42 2D 00 40 [19:05:54]Write to MH i2c: 01 00 00 43 2D 70 [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:55]OFD Sender: No OFD packet to send [19:05:55]*** Cut start [19:05:55]*** Partial cut [19:05:55]*** CUTSNS_PIN = 1 [19:05:55]*** CUTSNS_PIN = 0 [19:05:55]*** Brake cut motor [19:05:56]Read from MH i2c: 01 [19:05:56]MH_I2C_Read... [19:05:56]*** Stop cut motor [19:05:56]*** Cut end [19:05:56]Read from MH i2c: 01 07 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 43 2D 00 00 00 00 00 FF 0F 85 [19:05:56]process_action close_receipt done [19:05:56]requested_data is exist [19:05:56]produce_requested_data [19:05:56]requested_item fm.sn is exist - process it [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 11 00 00 [19:05:56]Write to MH i2c: E2 08 00 44 2D 80 11 00 00 00 00 00 00 EB [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 44 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3E [19:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:05:56]wFMCommunicate OK [19:05:56]requested_item fd.num is exist - process it [19:05:56]SAM_PROTO_GetFieldsCounters [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 13 00 00 [19:05:56]Write to MH i2c: E2 08 00 45 2D 80 13 00 00 00 00 00 00 EE [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 62 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 62 00 45 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [19:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_GetFieldsCounters done [19:05:56]requested_item shift.num is exist - process it [19:05:56]requested_item shift.opened is exist - process it [19:05:56]req_shift_opened [19:05:56]FM_GetShiftState [19:05:56]SAM_PROTO_GetShiftState [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 13 01 00 [19:05:56]Write to MH i2c: E2 08 00 46 2D 80 13 01 00 00 00 00 00 F0 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0E 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0E 00 46 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 69 [19:05:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_GetShiftState done [19:05:56]FM_GetShiftState done [19:05:56]req_shift_opened done [19:05:56]requested_item shift.open_date is exist - process it [19:05:56]req_shift_open_date [19:05:56]req_shift_open_date done [19:05:56]produce_requested_data done [19:05:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191911,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:05:56]process_action_free close_receipt [19:05:56]json_value_free [19:05:56]json_value_free done [19:05:56]process_json_proto returns [19:05:56]Send response to host [19:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191911,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:05:56]free response buf [19:05:56]execute_script done [19:05:56]execute_script returns [19:05:56]free content buf [19:05:56]Sock 5.Close socket [19:05:56]Sock 5.Thread stoped [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]accept exits with 6 [19:07:35]New connection [19:07:35]New thread 3066961252 created [19:07:35]Thread 3066817892 joined [19:07:35]Waiting for new connection... [19:07:35] Sock 6.Parse request [19:07:35]Sock 6.Check first char [19:07:35]Sock 6.First char is OK [19:07:35]request: POST /json_proto HTTP/1.0 [19:07:35]Method: POST [19:07:35]URL: /json_proto [19:07:35]Method is POST - this is cgi request [19:07:35]url: /json_proto [19:07:35]query_string will be loaded in cgi processing [19:07:35]execute_cgi json_proto POST (null) [19:07:35]execute_cgi path=json_proto method=POST [19:07:35]POST find Content-Length [19:07:35]Host: 172.17.63.131:8080 [19:07:35]Content-Length: 676 [19:07:35]Content-Type: application/json [19:07:35] [19:07:35]POST finish read [19:07:35]Found Content-Length = 676 [19:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:35]execute_script... [19:07:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:35]POST & json_proto [19:07:35]process_json_proto [19:07:35]json parsed OK: [19:07:35]protocol is kg_v1.0 [19:07:35]action value=close_receipt [19:07:35]process_action close_receipt [19:07:35]cmd_close_receipt [19:07:35]MH_GetDate [19:07:35]Write to MH i2c: F0 00 00 47 2D 63 [19:07:35]Write i2c OK [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: F0 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: F0 09 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: F0 09 00 47 2D 00 07 3E 1D 67 22 05 6E 64 2E [19:07:35]GetLastDocTimeStamp 1729969568 [19:07:35]current date 1729969671 [19:07:35]FM_GetShiftState [19:07:35]SAM_PROTO_GetShiftState [19:07:35]wFMCommunicate request_size=4 [19:07:35]MH_SAM_APDU [19:07:35]CAPDU: 80 13 01 00 [19:07:35]Write to MH i2c: E2 08 00 48 2D 80 13 01 00 00 00 00 00 F2 [19:07:35]Write i2c OK [19:07:35]MH_I2C_Read... [19:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:35]Read from MH i2c: E2 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 0E 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 0E 00 48 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6B [19:07:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:07:35]wFMCommunicate OK [19:07:35]SAM_PROTO_GetShiftState done [19:07:35]FM_GetShiftState done [19:07:35]opened in 1729902770 [19:07:35]opened+sec_in_day 1729989170 [19:07:35]quantity*price = 30038 [19:07:35]sum+1 = 30039 [19:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 275 26.10.2024 19:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191912 ФПД: 138586226314638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191912&fm=138586226314638&tin=02508201610067®Number=0000000000091776&sum=30000 [19:07:36]StoreToDocumentArchive [19:07:36]shift 541 fd 191912 [19:07:36]save to /storage/0541/doc_00191912 [19:07:36]save last doc name /storage/0541/doc_00191912 to /storage/kkm_last_doc_name [19:07:36]save OK [19:07:36]Clear old archive folders... [19:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:36]tlvbuf is 0160B460 [19:07:36]SAM_PROTO_ClearQueue [19:07:36]wFMCommunicate request_size=4 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 09 00 00 [19:07:36]Write to MH i2c: E2 08 00 55 2D 80 09 00 00 00 00 00 00 F4 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 55 2D 00 90 00 F6 [19:07:36]RAPDU: 90 00 [19:07:36]wFMCommunicate OK [19:07:36]SAM_PROTO_ClearQueue done [19:07:36]KKMCreateOFDPacket [19:07:36]OFDProtocolAddRootSTLVToBuf [19:07:36]FM_MakeSignedData [19:07:36]FM_MakeSignedData [19:07:36]SAM_PROTO_SignData [19:07:36]wFMCommunicate request_size=4 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 0D 01 02 [19:07:36]Write to MH i2c: E2 08 00 56 2D 80 0D 01 02 00 00 00 00 FC [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 56 2D 00 90 00 F7 [19:07:36]RAPDU: 90 00 [19:07:36]wFMCommunicate OK [19:07:36]wFMCommunicate request_size=255 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 07 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 ED 02 00 35 04 06 00 7E [19:07:36]Write to MH i2c: E2 02 01 57 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 07 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 ED 02 00 35 04 06 00 7E 00 00 95 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 57 2D 00 90 00 F8 [19:07:36]RAPDU: 90 00 [19:07:36]wFMCommunicate OK [19:07:36]wFMCommunicate request_size=10 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 0D 02 02 05 0B 1E CA 4D 8E [19:07:36]Write to MH i2c: E2 0D 00 58 2D 80 0D 02 02 05 00 0B 1E CA 4D 8E 00 00 D7 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 03 00 58 2D 00 90 00 F9 [19:07:36]RAPDU: 90 00 [19:07:36]wFMCommunicate OK [19:07:36]wFMCommunicate request_size=4 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 0D 03 02 [19:07:36]Write to MH i2c: E2 08 00 59 2D 80 0D 03 02 00 00 00 00 01 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 0B 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 0B 00 59 2D 00 4D 4A BB 64 11 98 D4 BB 90 00 F0 [19:07:36]RAPDU: 4D 4A BB 64 11 98 D4 BB 90 00 [19:07:36]wFMCommunicate OK [19:07:36]SAM_PROTO_SignData done [19:07:36]FM_MakeSignedData done [19:07:36]CreateOFDProtocolMessage [19:07:36]wFMCommunicate request_size=4 [19:07:36]MH_SAM_APDU [19:07:36]CAPDU: 80 11 00 00 [19:07:36]Write to MH i2c: E2 08 00 5A 2D 80 11 00 00 00 00 00 00 01 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:36]Read from MH i2c: E2 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 17 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: E2 17 00 5A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 54 [19:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:07:36]wFMCommunicate OK [19:07:36]CreateOFDProtocolMessage done [19:07:36]OFDSenderStorePacket 191912 [19:07:36]StoreOFDPacket docnum=191912 [19:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA DE 07 01 54 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 07 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 ED 02 00 35 04 06 00 7E 0B 1E CA 4D 8E 4D 4A BB 64 11 98 D4 BB [19:07:36]CheckFolder [19:07:36]dirname=/storage/ofd_packets [19:07:36]CheckFolder done [19:07:36]ProducePacketName [19:07:36]name=ofd_packets/00191912 [19:07:36]NVStorageSaveData ofd_packets/00191912 [19:07:36]File name is /storage/ofd_packets/00191912 [19:07:36]Write 301 bytes [19:07:36]NVStorageSaveData done [19:07:36]OFDSenderStorePacket done [19:07:36]KKMCreateOFDPacket done [19:07:36]NVStorageSaveData kkm_last_timestamp [19:07:36]File name is /storage/kkm_last_timestamp [19:07:36]Write 4 bytes [19:07:36]NVStorageSaveData done [19:07:36]ExternCall_PrintAddStr [19:07:36]wPrintStart [19:07:36]Write to MH i2c: 01 00 00 5B 2D 88 [19:07:36]Write i2c OK [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: 01 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: 01 07 00 [19:07:36]MH_I2C_Read... [19:07:36]Read from MH i2c: 01 07 00 5B 2D 00 00 00 00 00 FF 0F 9D [19:07:36]RasterBufferAndPrint [19:07:36]line Счет N : (1)31220 [19:07:36]line ИНН: 02508201610067 [19:07:36]line Контрольно-Кассовый Чек [19:07:36]line ПРОДАЖА [19:07:36]line ТРК (МРК, ГНК) : 12 [19:07:36]line Товар: 2710124130 [19:07:36]line Аи-92-К-5 [19:07:36]line 4.490 * 66.90 [19:07:36]line = 300.38 [19:07:36]line НДС 12% НСП 1% [19:07:36]line > о реализуемом товаре [19:07:36]line ОКРУГЛЕНИЕ: -0.38 [19:07:36]line ИТОГО: 300.00 [19:07:36]line Внесено: 300.00 [19:07:36]line СДАЧА: 0.00 [19:07:36]line НСП 1% : 2.66 [19:07:36]line НДС 12% : 31.90 [19:07:36]line Наличными: 300.00 [19:07:36]line Безнал.: 0.00 [19:07:36]line Место: АЗС № 170 "Партнер Нефть" [19:07:36]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:07:36]line СНО: Общий режим [19:07:36]line Чек 275 26.10.2024 19:07 [19:07:36]line Смена: 541 ФФД: 1.0 [19:07:36]line ЗНМ: 0300000110 [19:07:36]line РНМ: 0000000000091776 [19:07:36]line Версия ККМ: 001 [19:07:36]line ФМ: 0000000000871754 [19:07:36]line ФД: 191912 [19:07:36]line ФПД: 138586226314638 [19:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T190751&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191912&fm=138586226314638&tin=02508201610067®Number=0000000000091776&sum=30000 [19:07:37]OFD Sender: Processing packet 191912 [packets to send 75, broken 74] [19:07:37]ProducePacketName [19:07:37]name=ofd_packets/00191912 [19:07:37]OFD Sender: To server: pG, [19:07:37]CommunicateWithHost lk.salyk.kg:30040 [19:07:37]ConnectInit lk.salyk.kg [19:07:37]written 0, free lines is 4095 [19:07:37]Connected sock=8 [19:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BA DE 07 01 54 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 07 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 ED 02 00 35 04 06 00 7E 0B 1E CA 4D 8E 4D 4A BB 64 11 98 D4 BB [19:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 4B 47 00 56 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A8 ED 02 00 F4 03 04 00 D1 E2 1C 67 B6 04 01 00 00 57 09 40 E4 05 36 50 C9 [19:07:37]CommunicateWithHost err = 0 [19:07:37]CheckOFDResponse [19:07:37]1017 (14) - 77093643461234 [19:07:37]1041 (16) - 0000000000871754 [19:07:37]1040 (4) - 191912 [19:07:37]1012 (4) - 26.10.2024 12:38 [19:07:37]1206 (1) - 0 [19:07:37]OFD Sender: Remove packet 191912 [19:07:37]ProducePacketName [19:07:37]name=ofd_packets/00191912 [19:07:37]NVStorageDeleteData [19:07:37]Write to MH i2c: 01 00 00 86 2D B3 [19:07:37]Write i2c OK [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: 01 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: 01 07 00 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: 01 07 00 86 2D 00 00 00 00 00 B5 0C 7B [19:07:37]RasterBufferAndPrint [19:07:37]line [19:07:37]line [19:07:37]line [19:07:37]line [19:07:37]line [19:07:37]written 0, free lines is 3259 [19:07:37]MH_Cut [19:07:37]Write to MH i2c: D1 01 00 8D 2D 01 8C [19:07:37]Write i2c OK [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: D1 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: D1 01 00 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: D1 01 00 8D 2D 00 8B [19:07:37]Write to MH i2c: 01 00 00 8E 2D BB [19:07:37]Write i2c OK [19:07:37]MH_I2C_Read... [19:07:38]OFD Sender: No OFD packet to send [19:07:38]*** Cut start [19:07:38]*** Partial cut [19:07:38]*** CUTSNS_PIN = 1 [19:07:38]*** CUTSNS_PIN = 0 [19:07:38]*** Brake cut motor [19:07:39]Read from MH i2c: 01 [19:07:39]MH_I2C_Read... [19:07:39]*** Stop cut motor [19:07:39]*** Cut end [19:07:39]Read from MH i2c: 01 07 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 FF 0F D0 [19:07:39]process_action close_receipt done [19:07:39]requested_data is exist [19:07:39]produce_requested_data [19:07:39]requested_item fm.sn is exist - process it [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 11 00 00 [19:07:39]Write to MH i2c: E2 08 00 8F 2D 80 11 00 00 00 00 00 00 36 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 17 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 17 00 8F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 89 [19:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:07:39]wFMCommunicate OK [19:07:39]requested_item fd.num is exist - process it [19:07:39]SAM_PROTO_GetFieldsCounters [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 13 00 00 [19:07:39]Write to MH i2c: E2 08 00 90 2D 80 13 00 00 00 00 00 00 39 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 62 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 62 00 90 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [19:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:39]wFMCommunicate OK [19:07:39]SAM_PROTO_GetFieldsCounters done [19:07:39]requested_item shift.num is exist - process it [19:07:39]requested_item shift.opened is exist - process it [19:07:39]req_shift_opened [19:07:39]FM_GetShiftState [19:07:39]SAM_PROTO_GetShiftState [19:07:39]wFMCommunicate request_size=4 [19:07:39]MH_SAM_APDU [19:07:39]CAPDU: 80 13 01 00 [19:07:39]Write to MH i2c: E2 08 00 91 2D 80 13 01 00 00 00 00 00 3B [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:39]Read from MH i2c: E2 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0E 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: E2 0E 00 91 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B4 [19:07:39]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:07:39]wFMCommunicate OK [19:07:39]SAM_PROTO_GetShiftState done [19:07:39]FM_GetShiftState done [19:07:39]req_shift_opened done [19:07:39]requested_item shift.open_date is exist - process it [19:07:39]req_shift_open_date [19:07:39]req_shift_open_date done [19:07:39]produce_requested_data done [19:07:39]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191912,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:07:39]process_action_free close_receipt [19:07:39]json_value_free [19:07:39]json_value_free done [19:07:39]process_json_proto returns [19:07:39]Send response to host [19:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191912,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:07:39]free response buf [19:07:39]execute_script done [19:07:39]execute_script returns [19:07:39]free content buf [19:07:39]Sock 6.Close socket [19:07:39]Sock 6.Thread stoped [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:57]accept exits with 5 [19:10:57]New connection [19:10:57]New thread 3066817892 created [19:10:57]Thread 3066961252 joined [19:10:57]Waiting for new connection... [19:10:57] Sock 5.Parse request [19:10:57]Sock 5.Check first char [19:10:57]Sock 5.First char is OK [19:10:57]request: POST /json_proto HTTP/1.0 [19:10:57]Method: POST [19:10:57]URL: /json_proto [19:10:57]Method is POST - this is cgi request [19:10:57]url: /json_proto [19:10:57]query_string will be loaded in cgi processing [19:10:57]execute_cgi json_proto POST (null) [19:10:57]execute_cgi path=json_proto method=POST [19:10:57]POST find Content-Length [19:10:57]Host: 172.17.63.131:8080 [19:10:57]Content-Length: 673 [19:10:57]Content-Type: application/json [19:10:57] [19:10:57]POST finish read [19:10:57]Found Content-Length = 673 [19:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31221", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:57]execute_script... [19:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31221", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:57]POST & json_proto [19:10:57]process_json_proto [19:10:57]json parsed OK: [19:10:57]protocol is kg_v1.0 [19:10:57]action value=close_receipt [19:10:57]process_action close_receipt [19:10:57]cmd_close_receipt [19:10:57]MH_GetDate [19:10:57]Write to MH i2c: F0 00 00 92 2D AE [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: F0 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: F0 09 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: F0 09 00 92 2D 00 D1 3E 1D 67 22 05 6E 64 43 [19:10:57]GetLastDocTimeStamp 1729969671 [19:10:57]current date 1729969873 [19:10:57]FM_GetShiftState [19:10:57]SAM_PROTO_GetShiftState [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 01 00 [19:10:57]Write to MH i2c: E2 08 00 93 2D 80 13 01 00 00 00 00 00 3D [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 93 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B6 [19:10:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetShiftState done [19:10:57]FM_GetShiftState done [19:10:57]opened in 1729902770 [19:10:57]opened+sec_in_day 1729989170 [19:10:57]quantity*price = 50063 [19:10:57]sum+1 = 50064 [19:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 276 26.10.2024 19:11 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191913 ФПД: 256543424535457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191113&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191913&fm=256543424535457&tin=02508201610067®Number=0000000000091776&sum=50000 [19:10:58]StoreToDocumentArchive [19:10:58]shift 541 fd 191913 [19:10:58]save to /storage/0541/doc_00191913 [19:10:58]save last doc name /storage/0541/doc_00191913 to /storage/kkm_last_doc_name [19:10:58]save OK [19:10:58]Clear old archive folders... [19:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:58]tlvbuf is 019928E0 [19:10:58]SAM_PROTO_ClearQueue [19:10:58]wFMCommunicate request_size=4 [19:10:58]MH_SAM_APDU [19:10:58]CAPDU: 80 09 00 00 [19:10:58]Write to MH i2c: E2 08 00 A0 2D 80 09 00 00 00 00 00 00 3F [19:10:58]Write i2c OK [19:10:58]MH_I2C_Read... [19:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [19:10:59]RAPDU: 90 00 [19:10:59]wFMCommunicate OK [19:10:59]SAM_PROTO_ClearQueue done [19:10:59]KKMCreateOFDPacket [19:10:59]OFDProtocolAddRootSTLVToBuf [19:10:59]FM_MakeSignedData [19:10:59]FM_MakeSignedData [19:10:59]SAM_PROTO_SignData [19:10:59]wFMCommunicate request_size=4 [19:10:59]MH_SAM_APDU [19:10:59]CAPDU: 80 0D 01 02 [19:10:59]Write to MH i2c: E2 08 00 A1 2D 80 0D 01 02 00 00 00 00 47 [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 A1 2D 00 90 00 42 [19:10:59]RAPDU: 90 00 [19:10:59]wFMCommunicate OK [19:10:59]wFMCommunicate request_size=255 [19:10:59]MH_SAM_APDU [19:10:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D1 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 ED 02 00 35 04 06 00 E9 53 2B B0 [19:10:59]Write to MH i2c: E2 02 01 A2 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D1 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 ED 02 00 35 04 06 00 E9 53 2B B0 00 00 CF [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 A2 2D 00 90 00 43 [19:10:59]RAPDU: 90 00 [19:10:59]wFMCommunicate OK [19:10:59]wFMCommunicate request_size=7 [19:10:59]MH_SAM_APDU [19:10:59]CAPDU: 80 0D 02 02 02 5B A1 [19:10:59]Write to MH i2c: E2 0A 00 A3 2D 80 0D 02 02 02 00 5B A1 00 00 4A [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 03 00 A3 2D 00 90 00 44 [19:10:59]RAPDU: 90 00 [19:10:59]wFMCommunicate OK [19:10:59]wFMCommunicate request_size=4 [19:10:59]MH_SAM_APDU [19:10:59]CAPDU: 80 0D 03 02 [19:10:59]Write to MH i2c: E2 08 00 A4 2D 80 0D 03 02 00 00 00 00 4C [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 0B 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 0B 00 A4 2D 00 A8 B7 B0 70 45 68 14 96 90 00 23 [19:10:59]RAPDU: A8 B7 B0 70 45 68 14 96 90 00 [19:10:59]wFMCommunicate OK [19:10:59]SAM_PROTO_SignData done [19:10:59]FM_MakeSignedData done [19:10:59]CreateOFDProtocolMessage [19:10:59]wFMCommunicate request_size=4 [19:10:59]MH_SAM_APDU [19:10:59]CAPDU: 80 11 00 00 [19:10:59]Write to MH i2c: E2 08 00 A5 2D 80 11 00 00 00 00 00 00 4C [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:59]Read from MH i2c: E2 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 17 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: E2 17 00 A5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9F [19:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:10:59]wFMCommunicate OK [19:10:59]CreateOFDProtocolMessage done [19:10:59]OFDSenderStorePacket 191913 [19:10:59]StoreOFDPacket docnum=191913 [19:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 01 B2 04 01 73 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D1 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 ED 02 00 35 04 06 00 E9 53 2B B0 5B A1 A8 B7 B0 70 45 68 14 96 [19:10:59]CheckFolder [19:10:59]dirname=/storage/ofd_packets [19:10:59]CheckFolder done [19:10:59]ProducePacketName [19:10:59]name=ofd_packets/00191913 [19:10:59]NVStorageSaveData ofd_packets/00191913 [19:10:59]File name is /storage/ofd_packets/00191913 [19:10:59]Write 298 bytes [19:10:59]NVStorageSaveData done [19:10:59]OFDSenderStorePacket done [19:10:59]KKMCreateOFDPacket done [19:10:59]NVStorageSaveData kkm_last_timestamp [19:10:59]File name is /storage/kkm_last_timestamp [19:10:59]Write 4 bytes [19:10:59]NVStorageSaveData done [19:10:59]ExternCall_PrintAddStr [19:10:59]wPrintStart [19:10:59]Write to MH i2c: 01 00 00 A6 2D D3 [19:10:59]Write i2c OK [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: 01 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: 01 07 00 [19:10:59]MH_I2C_Read... [19:10:59]Read from MH i2c: 01 07 00 A6 2D 00 00 00 00 00 FF 0F E8 [19:10:59]RasterBufferAndPrint [19:10:59]line Счет N : (1)31221 [19:10:59]line ИНН: 02508201610067 [19:10:59]line Контрольно-Кассовый Чек [19:10:59]line ПРОДАЖА [19:10:59]line ТРК (МРК, ГНК) : 22 [19:10:59]line Товар: 2710194210 [19:10:59]line ДТ-К-5 [19:10:59]line 6.570 * 76.20 [19:10:59]line = 500.63 [19:10:59]line НДС 12% НСП 1% [19:10:59]line > о реализуемом товаре [19:10:59]line ОКРУГЛЕНИЕ: -0.63 [19:10:59]line ИТОГО: 500.00 [19:10:59]line Внесено: 500.00 [19:10:59]line СДАЧА: 0.00 [19:10:59]line НСП 1% : 4.43 [19:10:59]line НДС 12% : 53.16 [19:10:59]line Наличными: 500.00 [19:10:59]line Безнал.: 0.00 [19:10:59]line Место: АЗС № 170 "Партнер Нефть" [19:10:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:10:59]line СНО: Общий режим [19:10:59]line Чек 276 26.10.2024 19:11 [19:10:59]line Смена: 541 ФФД: 1.0 [19:10:59]line ЗНМ: 0300000110 [19:10:59]line РНМ: 0000000000091776 [19:10:59]line Версия ККМ: 001 [19:10:59]line ФМ: 0000000000871754 [19:10:59]line ФД: 191913 [19:10:59]line ФПД: 256543424535457 [19:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191113&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191913&fm=256543424535457&tin=02508201610067®Number=0000000000091776&sum=50000 [19:10:59]OFD Sender: Processing packet 191913 [packets to send 75, broken 74] [19:10:59]ProducePacketName [19:10:59]name=ofd_packets/00191913 [19:10:59]OFD Sender: To server: pG, [19:10:59]CommunicateWithHost lk.salyk.kg:30040 [19:10:59]ConnectInit lk.salyk.kg [19:10:59]written 0, free lines is 4095 [19:10:59]Connected sock=8 [19:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 01 B2 04 01 73 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 D1 3E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 ED 02 00 35 04 06 00 E9 53 2B B0 5B A1 A8 B7 B0 70 45 68 14 96 [19:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 79 F5 47 00 D7 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 A9 ED 02 00 F4 03 04 00 9C E3 1C 67 B6 04 01 00 00 D6 3A 5D 5F 00 E4 7B 7B [19:11:00]CommunicateWithHost err = 0 [19:11:00]CheckOFDResponse [19:11:00]1017 (14) - 77093643461234 [19:11:00]1041 (16) - 0000000000871754 [19:11:00]1040 (4) - 191913 [19:11:00]1012 (4) - 26.10.2024 12:42 [19:11:00]1206 (1) - 0 [19:11:00]OFD Sender: Remove packet 191913 [19:11:00]ProducePacketName [19:11:00]name=ofd_packets/00191913 [19:11:00]NVStorageDeleteData [19:11:00]Write to MH i2c: 01 00 00 D1 2D FE [19:11:00]Write i2c OK [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: 01 [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: 01 07 00 [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: 01 07 00 D1 2D 00 00 00 00 00 A6 0C B7 [19:11:00]RasterBufferAndPrint [19:11:00]line [19:11:00]line [19:11:00]line [19:11:00]line [19:11:00]line [19:11:00]written 0, free lines is 3243 [19:11:00]MH_Cut [19:11:00]Write to MH i2c: D1 01 00 D8 2D 01 D7 [19:11:00]Write i2c OK [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: D1 [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: D1 01 00 [19:11:00]MH_I2C_Read... [19:11:00]Read from MH i2c: D1 01 00 D8 2D 00 D6 [19:11:00]Write to MH i2c: 01 00 00 D9 2D 06 [19:11:00]Write i2c OK [19:11:00]MH_I2C_Read... [19:11:00]OFD Sender: No OFD packet to send [19:11:01]*** Cut start [19:11:01]*** Partial cut [19:11:01]*** CUTSNS_PIN = 1 [19:11:01]*** CUTSNS_PIN = 0 [19:11:01]*** Brake cut motor [19:11:01]Read from MH i2c: 01 [19:11:01]MH_I2C_Read... [19:11:01]*** Stop cut motor [19:11:01]*** Cut end [19:11:01]Read from MH i2c: 01 07 00 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 FF 0F 1B [19:11:01]process_action close_receipt done [19:11:01]requested_data is exist [19:11:01]produce_requested_data [19:11:01]requested_item fm.sn is exist - process it [19:11:01]wFMCommunicate request_size=4 [19:11:01]MH_SAM_APDU [19:11:01]CAPDU: 80 11 00 00 [19:11:01]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [19:11:01]Write i2c OK [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 [19:11:01]MH_I2C_Read... [19:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:01]Read from MH i2c: E2 17 00 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D4 [19:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:11:01]wFMCommunicate OK [19:11:01]requested_item fd.num is exist - process it [19:11:01]SAM_PROTO_GetFieldsCounters [19:11:01]wFMCommunicate request_size=4 [19:11:01]MH_SAM_APDU [19:11:01]CAPDU: 80 13 00 00 [19:11:01]Write to MH i2c: E2 08 00 DB 2D 80 13 00 00 00 00 00 00 84 [19:11:01]Write i2c OK [19:11:01]MH_I2C_Read... [19:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:01]Read from MH i2c: E2 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 62 00 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 62 00 DB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [19:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 A9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:01]wFMCommunicate OK [19:11:01]SAM_PROTO_GetFieldsCounters done [19:11:01]requested_item shift.num is exist - process it [19:11:01]requested_item shift.opened is exist - process it [19:11:01]req_shift_opened [19:11:01]FM_GetShiftState [19:11:01]SAM_PROTO_GetShiftState [19:11:01]wFMCommunicate request_size=4 [19:11:01]MH_SAM_APDU [19:11:01]CAPDU: 80 13 01 00 [19:11:01]Write to MH i2c: E2 08 00 DC 2D 80 13 01 00 00 00 00 00 86 [19:11:01]Write i2c OK [19:11:01]MH_I2C_Read... [19:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:01]Read from MH i2c: E2 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 0E 00 [19:11:01]MH_I2C_Read... [19:11:01]Read from MH i2c: E2 0E 00 DC 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FF [19:11:01]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:11:01]wFMCommunicate OK [19:11:01]SAM_PROTO_GetShiftState done [19:11:01]FM_GetShiftState done [19:11:01]req_shift_opened done [19:11:01]requested_item shift.open_date is exist - process it [19:11:01]req_shift_open_date [19:11:01]req_shift_open_date done [19:11:01]produce_requested_data done [19:11:01]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191913,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:11:01]process_action_free close_receipt [19:11:01]json_value_free [19:11:01]json_value_free done [19:11:01]process_json_proto returns [19:11:01]Send response to host [19:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191913,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:11:01]free response buf [19:11:01]execute_script done [19:11:01]execute_script returns [19:11:01]free content buf [19:11:01]Sock 5.Close socket [19:11:01]Sock 5.Thread stoped [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]accept exits with 6 [19:15:25]New connection [19:15:25]New thread 3066961252 created [19:15:25]Thread 3066817892 joined [19:15:25]Waiting for new connection... [19:15:25] Sock 6.Parse request [19:15:25]Sock 6.Check first char [19:15:25]Sock 6.First char is OK [19:15:25]request: POST /json_proto HTTP/1.0 [19:15:25]Method: POST [19:15:25]URL: /json_proto [19:15:25]Method is POST - this is cgi request [19:15:25]url: /json_proto [19:15:25]query_string will be loaded in cgi processing [19:15:25]execute_cgi json_proto POST (null) [19:15:25]execute_cgi path=json_proto method=POST [19:15:25]POST find Content-Length [19:15:25]Host: 172.17.63.131:8080 [19:15:25]Content-Length: 673 [19:15:25]Content-Type: application/json [19:15:25] [19:15:25]POST finish read [19:15:25]Found Content-Length = 673 [19:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31222", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:25]execute_script... [19:15: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)31222", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:25]POST & json_proto [19:15:25]process_json_proto [19:15:25]json parsed OK: [19:15:25]protocol is kg_v1.0 [19:15:25]action value=close_receipt [19:15:25]process_action close_receipt [19:15:25]cmd_close_receipt [19:15:25]MH_GetDate [19:15:25]Write to MH i2c: F0 00 00 DD 2D F9 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: F0 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: F0 09 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: F0 09 00 DD 2D 00 DD 3F 1D 67 22 05 6E 64 9B [19:15:25]GetLastDocTimeStamp 1729969873 [19:15:25]current date 1729970141 [19:15:25]FM_GetShiftState [19:15:25]SAM_PROTO_GetShiftState [19:15:25]wFMCommunicate request_size=4 [19:15:25]MH_SAM_APDU [19:15:25]CAPDU: 80 13 01 00 [19:15:25]Write to MH i2c: E2 08 00 DE 2D 80 13 01 00 00 00 00 00 88 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:25]Read from MH i2c: E2 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 0E 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: E2 0E 00 DE 2D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 01 [19:15:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:15:25]wFMCommunicate OK [19:15:25]SAM_PROTO_GetShiftState done [19:15:25]FM_GetShiftState done [19:15:25]opened in 1729902770 [19:15:25]opened+sec_in_day 1729989170 [19:15:25]quantity*price = 50063 [19:15:25]sum+1 = 50064 [19:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 277 26.10.2024 19:15 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191914 ФПД: 163917369405157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191541&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191914&fm=163917369405157&tin=02508201610067®Number=0000000000091776&sum=50000 [19:15:26]StoreToDocumentArchive [19:15:26]shift 541 fd 191914 [19:15:26]save to /storage/0541/doc_00191914 [19:15:26]save last doc name /storage/0541/doc_00191914 to /storage/kkm_last_doc_name [19:15:26]save OK [19:15:26]Clear old archive folders... [19:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:15:26]tlvbuf is 0172E6A0 [19:15:26]SAM_PROTO_ClearQueue [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 09 00 00 [19:15:26]Write to MH i2c: E2 08 00 EB 2D 80 09 00 00 00 00 00 00 8A [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 EB 2D 00 90 00 8C [19:15:26]RAPDU: 90 00 [19:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_ClearQueue done [19:15:26]KKMCreateOFDPacket [19:15:26]OFDProtocolAddRootSTLVToBuf [19:15:26]FM_MakeSignedData [19:15:26]FM_MakeSignedData [19:15:26]SAM_PROTO_SignData [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 0D 01 02 [19:15:26]Write to MH i2c: E2 08 00 EC 2D 80 0D 01 02 00 00 00 00 92 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [19:15:26]RAPDU: 90 00 [19:15:26]wFMCommunicate OK [19:15:26]wFMCommunicate request_size=255 [19:15:26]MH_SAM_APDU [19:15: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DD 3F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA ED 02 00 35 04 06 00 95 14 FC 93 [19:15:26]Write to MH i2c: E2 02 01 ED 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DD 3F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA ED 02 00 35 04 06 00 95 14 FC 93 00 00 4A [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 ED 2D 00 90 00 8E [19:15:27]RAPDU: 90 00 [19:15:27]wFMCommunicate OK [19:15:27]wFMCommunicate request_size=7 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 0D 02 02 02 6E E5 [19:15:27]Write to MH i2c: E2 0A 00 EE 2D 80 0D 02 02 02 00 6E E5 00 00 EC [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 03 00 EE 2D 00 90 00 8F [19:15:27]RAPDU: 90 00 [19:15:27]wFMCommunicate OK [19:15:27]wFMCommunicate request_size=4 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 0D 03 02 [19:15:27]Write to MH i2c: E2 08 00 EF 2D 80 0D 03 02 00 00 00 00 97 [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0B 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 0B 00 EF 2D 00 49 8F C9 8B C1 FE B7 99 90 00 D3 [19:15:27]RAPDU: 49 8F C9 8B C1 FE B7 99 90 00 [19:15:27]wFMCommunicate OK [19:15:27]SAM_PROTO_SignData done [19:15:27]FM_MakeSignedData done [19:15:27]CreateOFDProtocolMessage [19:15:27]wFMCommunicate request_size=4 [19:15:27]MH_SAM_APDU [19:15:27]CAPDU: 80 11 00 00 [19:15:27]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:27]Read from MH i2c: E2 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 17 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 EA [19:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:27]wFMCommunicate OK [19:15:27]CreateOFDProtocolMessage done [19:15:27]OFDSenderStorePacket 191914 [19:15:27]StoreOFDPacket docnum=191914 [19:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D6 1D 04 01 B5 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DD 3F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA ED 02 00 35 04 06 00 95 14 FC 93 6E E5 49 8F C9 8B C1 FE B7 99 [19:15:27]CheckFolder [19:15:27]dirname=/storage/ofd_packets [19:15:27]CheckFolder done [19:15:27]ProducePacketName [19:15:27]name=ofd_packets/00191914 [19:15:27]NVStorageSaveData ofd_packets/00191914 [19:15:27]File name is /storage/ofd_packets/00191914 [19:15:27]Write 298 bytes [19:15:27]NVStorageSaveData done [19:15:27]OFDSenderStorePacket done [19:15:27]KKMCreateOFDPacket done [19:15:27]NVStorageSaveData kkm_last_timestamp [19:15:27]File name is /storage/kkm_last_timestamp [19:15:27]Write 4 bytes [19:15:27]NVStorageSaveData done [19:15:27]ExternCall_PrintAddStr [19:15:27]wPrintStart [19:15:27]Write to MH i2c: 01 00 00 F1 2D 1E [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 F1 2D 00 00 00 00 00 FF 0F 33 [19:15:27]RasterBufferAndPrint [19:15:27]line Счет N : (1)31222 [19:15:27]line ИНН: 02508201610067 [19:15:27]line Контрольно-Кассовый Чек [19:15:27]line ПРОДАЖА [19:15:27]line ТРК (МРК, ГНК) : 22 [19:15:27]line Товар: 2710194210 [19:15:27]line ДТ-К-5 [19:15:27]line 6.570 * 76.20 [19:15:27]line = 500.63 [19:15:27]line НДС 12% НСП 1% [19:15:27]line > о реализуемом товаре [19:15:27]line ОКРУГЛЕНИЕ: -0.63 [19:15:27]line ИТОГО: 500.00 [19:15:27]line Внесено: 500.00 [19:15:27]line СДАЧА: 0.00 [19:15:27]line НСП 1% : 4.43 [19:15:27]line НДС 12% : 53.16 [19:15:27]line Наличными: 500.00 [19:15:27]line Безнал.: 0.00 [19:15:27]line Место: АЗС № 170 "Партнер Нефть" [19:15:27]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:15:27]line СНО: Общий режим [19:15:27]line Чек 277 26.10.2024 19:15 [19:15:27]line Смена: 541 ФФД: 1.0 [19:15:27]line ЗНМ: 0300000110 [19:15:27]line РНМ: 0000000000091776 [19:15:27]line Версия ККМ: 001 [19:15:27]line ФМ: 0000000000871754 [19:15:27]line ФД: 191914 [19:15:27]line ФПД: 163917369405157 [19:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T191541&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191914&fm=163917369405157&tin=02508201610067®Number=0000000000091776&sum=50000 [19:15:27]OFD Sender: Processing packet 191914 [packets to send 75, broken 74] [19:15:27]ProducePacketName [19:15:27]name=ofd_packets/00191914 [19:15:27]OFD Sender: To server: pG, [19:15:27]CommunicateWithHost lk.salyk.kg:30040 [19:15:27]ConnectInit lk.salyk.kg [19:15:27]written 0, free lines is 4095 [19:15:27]Connected sock=8 [19:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D6 1D 04 01 B5 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 DD 3F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA ED 02 00 35 04 06 00 95 14 FC 93 6E E5 49 8F C9 8B C1 FE B7 99 [19:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 74 10 47 00 87 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AA ED 02 00 F4 03 04 00 A7 E4 1C 67 B6 04 01 00 00 59 C1 96 CF 0A 43 AD 11 [19:15:27]CommunicateWithHost err = 0 [19:15:27]CheckOFDResponse [19:15:27]1017 (14) - 77093643461234 [19:15:27]1041 (16) - 0000000000871754 [19:15:27]1040 (4) - 191914 [19:15:27]1012 (4) - 26.10.2024 12:46 [19:15:27]1206 (1) - 0 [19:15:27]OFD Sender: Remove packet 191914 [19:15:27]ProducePacketName [19:15:27]name=ofd_packets/00191914 [19:15:27]NVStorageDeleteData [19:15:27]Write to MH i2c: 01 00 00 1C 2E 4A [19:15:27]Write i2c OK [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 [19:15:27]MH_I2C_Read... [19:15:27]Read from MH i2c: 01 07 00 1C 2E 00 00 00 00 00 A7 0C 04 [19:15:27]RasterBufferAndPrint [19:15:27]line [19:15:27]line [19:15:27]line [19:15:27]line [19:15:27]line [19:15:27]written 0, free lines is 3245 [19:15:28]MH_Cut [19:15:28]Write to MH i2c: D1 01 00 23 2E 01 23 [19:15:28]Write i2c OK [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 01 00 [19:15:28]MH_I2C_Read... [19:15:28]Read from MH i2c: D1 01 00 23 2E 00 22 [19:15:28]Write to MH i2c: 01 00 00 24 2E 52 [19:15:28]Write i2c OK [19:15:28]MH_I2C_Read... [19:15:28]OFD Sender: No OFD packet to send [19:15:28]*** Cut start [19:15:28]*** Partial cut [19:15:28]*** CUTSNS_PIN = 1 [19:15:28]*** CUTSNS_PIN = 0 [19:15:29]*** Brake cut motor [19:15:29]Read from MH i2c: 01 [19:15:29]MH_I2C_Read... [19:15:29]*** Stop cut motor [19:15:29]*** Cut end [19:15:29]Read from MH i2c: 01 07 00 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: 01 07 00 24 2E 00 00 00 00 00 FF 0F 67 [19:15:29]process_action close_receipt done [19:15:29]requested_data is exist [19:15:29]produce_requested_data [19:15:29]requested_item fm.sn is exist - process it [19:15:29]wFMCommunicate request_size=4 [19:15:29]MH_SAM_APDU [19:15:29]CAPDU: 80 11 00 00 [19:15:29]Write to MH i2c: E2 08 00 25 2E 80 11 00 00 00 00 00 00 CD [19:15:29]Write i2c OK [19:15:29]MH_I2C_Read... [19:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:29]Read from MH i2c: E2 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 17 00 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 17 00 25 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 20 [19:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:15:29]wFMCommunicate OK [19:15:29]requested_item fd.num is exist - process it [19:15:29]SAM_PROTO_GetFieldsCounters [19:15:29]wFMCommunicate request_size=4 [19:15:29]MH_SAM_APDU [19:15:29]CAPDU: 80 13 00 00 [19:15:29]Write to MH i2c: E2 08 00 26 2E 80 13 00 00 00 00 00 00 D0 [19:15:29]Write i2c OK [19:15:29]MH_I2C_Read... [19:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:29]Read from MH i2c: E2 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 62 00 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 62 00 26 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [19:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:29]wFMCommunicate OK [19:15:29]SAM_PROTO_GetFieldsCounters done [19:15:29]requested_item shift.num is exist - process it [19:15:29]requested_item shift.opened is exist - process it [19:15:29]req_shift_opened [19:15:29]FM_GetShiftState [19:15:29]SAM_PROTO_GetShiftState [19:15:29]wFMCommunicate request_size=4 [19:15:29]MH_SAM_APDU [19:15:29]CAPDU: 80 13 01 00 [19:15:29]Write to MH i2c: E2 08 00 27 2E 80 13 01 00 00 00 00 00 D2 [19:15:29]Write i2c OK [19:15:29]MH_I2C_Read... [19:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:29]Read from MH i2c: E2 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 0E 00 [19:15:29]MH_I2C_Read... [19:15:29]Read from MH i2c: E2 0E 00 27 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4B [19:15:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:15:29]wFMCommunicate OK [19:15:29]SAM_PROTO_GetShiftState done [19:15:29]FM_GetShiftState done [19:15:29]req_shift_opened done [19:15:29]requested_item shift.open_date is exist - process it [19:15:29]req_shift_open_date [19:15:29]req_shift_open_date done [19:15:29]produce_requested_data done [19:15:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191914,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:15:29]process_action_free close_receipt [19:15:29]json_value_free [19:15:29]json_value_free done [19:15:29]process_json_proto returns [19:15:29]Send response to host [19:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191914,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:15:29]free response buf [19:15:29]execute_script done [19:15:29]execute_script returns [19:15:29]free content buf [19:15:29]Sock 6.Close socket [19:15:29]Sock 6.Thread stoped [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:47]accept exits with 5 [19:30:47]New connection [19:30:47]New thread 3066817892 created [19:30:47]Thread 3066961252 joined [19:30:47]Waiting for new connection... [19:30:47] Sock 5.Parse request [19:30:47]Sock 5.Check first char [19:30:47]Sock 5.First char is OK [19:30:47]request: POST /json_proto HTTP/1.0 [19:30:47]Method: POST [19:30:47]URL: /json_proto [19:30:47]Method is POST - this is cgi request [19:30:47]url: /json_proto [19:30:47]query_string will be loaded in cgi processing [19:30:47]execute_cgi json_proto POST (null) [19:30:47]execute_cgi path=json_proto method=POST [19:30:47]POST find Content-Length [19:30:47]Host: 172.17.63.131:8080 [19:30:47]Content-Length: 863 [19:30:47]Content-Type: application/json [19:30:47] [19:30:47]POST finish read [19:30:47]Found Content-Length = 863 [19:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]execute_script... [19:30:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:47]POST & json_proto [19:30:47]process_json_proto [19:30:47]json parsed OK: [19:30:47]protocol is kg_v1.0 [19:30:47]action value=close_receipt [19:30:47]process_action close_receipt [19:30:47]cmd_close_receipt [19:30:47]MH_GetDate [19:30:47]Write to MH i2c: F0 00 00 28 2E 45 [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: F0 09 00 28 2E 00 77 43 1D 67 22 05 6E 64 85 [19:30:47]GetLastDocTimeStamp 1729970141 [19:30:47]current date 1729971063 [19:30:47]FM_GetShiftState [19:30:47]SAM_PROTO_GetShiftState [19:30:47]wFMCommunicate request_size=4 [19:30:47]MH_SAM_APDU [19:30:47]CAPDU: 80 13 01 00 [19:30:47]Write to MH i2c: E2 08 00 29 2E 80 13 01 00 00 00 00 00 D4 [19:30:47]Write i2c OK [19:30:47]MH_I2C_Read... [19:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:47]Read from MH i2c: E2 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 [19:30:47]MH_I2C_Read... [19:30:47]Read from MH i2c: E2 0E 00 29 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4D [19:30:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:30:47]wFMCommunicate OK [19:30:47]SAM_PROTO_GetShiftState done [19:30:47]FM_GetShiftState done [19:30:47]opened in 1729902770 [19:30:47]opened+sec_in_day 1729989170 [19:30:47]quantity*price = 70044 [19:30:47]sum+1 = 70045 [19:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 278 26.10.2024 19:31 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191915 ФПД: 116422855856643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191915&fm=116422855856643&tin=02508201610067®Number=0000000000091776&sum=70044 [19:30:48]StoreToDocumentArchive [19:30:48]shift 541 fd 191915 [19:30:48]save to /storage/0541/doc_00191915 [19:30:48]save last doc name /storage/0541/doc_00191915 to /storage/kkm_last_doc_name [19:30:48]save OK [19:30:48]Clear old archive folders... [19:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:30:48]tlvbuf is 015A7920 [19:30:48]SAM_PROTO_ClearQueue [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 09 00 00 [19:30:48]Write to MH i2c: E2 08 00 36 2E 80 09 00 00 00 00 00 00 D6 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 36 2E 00 90 00 D8 [19:30:48]RAPDU: 90 00 [19:30:48]wFMCommunicate OK [19:30:48]SAM_PROTO_ClearQueue done [19:30:48]KKMCreateOFDPacket [19:30:48]OFDProtocolAddRootSTLVToBuf [19:30:48]FM_MakeSignedData [19:30:48]FM_MakeSignedData [19:30:48]SAM_PROTO_SignData [19:30:48]wFMCommunicate request_size=4 [19:30:48]MH_SAM_APDU [19:30:48]CAPDU: 80 0D 01 02 [19:30:48]Write to MH i2c: E2 08 00 37 2E 80 0D 01 02 00 00 00 00 DE [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:48]Read from MH i2c: E2 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 [19:30:48]MH_I2C_Read... [19:30:48]Read from MH i2c: E2 03 00 37 2E 00 90 00 D9 [19:30:48]RAPDU: 90 00 [19:30:48]wFMCommunicate OK [19:30:48]wFMCommunicate request_size=255 [19:30:48]MH_SAM_APDU [19:30: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 43 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB ED 02 00 35 04 06 00 69 [19:30:48]Write to MH i2c: E2 02 01 38 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 43 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB ED 02 00 35 04 06 00 69 00 00 51 [19:30:48]Write i2c OK [19:30:48]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 38 2E 00 90 00 DA [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=10 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 02 02 05 E2 CE F7 92 03 [19:30:49]Write to MH i2c: E2 0D 00 39 2E 80 0D 02 02 05 00 E2 CE F7 92 03 00 00 27 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 03 00 39 2E 00 90 00 DB [19:30:49]RAPDU: 90 00 [19:30:49]wFMCommunicate OK [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 0D 03 02 [19:30:49]Write to MH i2c: E2 08 00 3A 2E 80 0D 03 02 00 00 00 00 E3 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 0B 00 3A 2E 00 50 F5 D3 5C 72 5C FA 97 90 00 B7 [19:30:49]RAPDU: 50 F5 D3 5C 72 5C FA 97 90 00 [19:30:49]wFMCommunicate OK [19:30:49]SAM_PROTO_SignData done [19:30:49]FM_MakeSignedData done [19:30:49]CreateOFDProtocolMessage [19:30:49]wFMCommunicate request_size=4 [19:30:49]MH_SAM_APDU [19:30:49]CAPDU: 80 11 00 00 [19:30:49]Write to MH i2c: E2 08 00 3B 2E 80 11 00 00 00 00 00 00 E3 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:49]Read from MH i2c: E2 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: E2 17 00 3B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 36 [19:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:49]wFMCommunicate OK [19:30:49]CreateOFDProtocolMessage done [19:30:49]OFDSenderStorePacket 191915 [19:30:49]StoreOFDPacket docnum=191915 [19:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 6D 07 01 ED 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 43 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB ED 02 00 35 04 06 00 69 E2 CE F7 92 03 50 F5 D3 5C 72 5C FA 97 [19:30:49]CheckFolder [19:30:49]dirname=/storage/ofd_packets [19:30:49]CheckFolder done [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00191915 [19:30:49]NVStorageSaveData ofd_packets/00191915 [19:30:49]File name is /storage/ofd_packets/00191915 [19:30:49]Write 301 bytes [19:30:49]NVStorageSaveData done [19:30:49]OFDSenderStorePacket done [19:30:49]KKMCreateOFDPacket done [19:30:49]NVStorageSaveData kkm_last_timestamp [19:30:49]File name is /storage/kkm_last_timestamp [19:30:49]Write 4 bytes [19:30:49]NVStorageSaveData done [19:30:49]ExternCall_PrintAddStr [19:30:49]wPrintStart [19:30:49]Write to MH i2c: 01 00 00 3C 2E 6A [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 FF 0F 7F [19:30:49]RasterBufferAndPrint [19:30:49]line Счет N : (1)31223 [19:30:49]line ИНН: 02508201610067 [19:30:49]line Контрольно-Кассовый Чек [19:30:49]line ПРОДАЖА [19:30:49]line ТРК (МРК, ГНК) : 21 [19:30:49]line Товар: 2710124130 [19:30:49]line Аи-92-К-5 [19:30:49]line 10.470 * 66.90 [19:30:49]line = 700.44 [19:30:49]line НДС 12% НСП 1% [19:30:49]line > о реализуемом товаре [19:30:49]line ИТОГО: 700.44 [19:30:49]line НСП 1% : 6.20 [19:30:49]line НДС 12% : 74.38 [19:30:49]line Наличными: 0.00 [19:30:49]line Безнал.: 700.44 [19:30:49]line Место: АЗС № 170 "Партнер Нефть" [19:30:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:30:49]line СНО: Общий режим [19:30:49]line Чек 278 26.10.2024 19:31 [19:30:49]line Смена: 541 ФФД: 1.0 [19:30:49]line ЗНМ: 0300000110 [19:30:49]line РНМ: 0000000000091776 [19:30:49]line Версия ККМ: 001 [19:30:49]line Платежная система: Кыргызкоммерцбанк [19:30:49]line ФМ: 0000000000871754 [19:30:49]line ФД: 191915 [19:30:49]line ФПД: 116422855856643 [19:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193103&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191915&fm=116422855856643&tin=02508201610067®Number=0000000000091776&sum=70044 [19:30:49]written 0, free lines is 4095 [19:30:49]OFD Sender: Processing packet 191915 [packets to send 75, broken 74] [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00191915 [19:30:49]OFD Sender: To server: pG, [19:30:49]CommunicateWithHost lk.salyk.kg:30040 [19:30:49]ConnectInit lk.salyk.kg [19:30:49]Connected sock=8 [19:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2E 6D 07 01 ED 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 77 43 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB ED 02 00 35 04 06 00 69 E2 CE F7 92 03 50 F5 D3 5C 72 5C FA 97 [19:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F1 47 47 00 28 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AB ED 02 00 F4 03 04 00 41 E8 1C 67 B6 04 01 00 00 07 FD AE E6 9A E8 32 2E [19:30:49]CommunicateWithHost err = 0 [19:30:49]CheckOFDResponse [19:30:49]1017 (14) - 77093643461234 [19:30:49]1041 (16) - 0000000000871754 [19:30:49]1040 (4) - 191915 [19:30:49]1012 (4) - 26.10.2024 13:01 [19:30:49]1206 (1) - 0 [19:30:49]OFD Sender: Remove packet 191915 [19:30:49]ProducePacketName [19:30:49]name=ofd_packets/00191915 [19:30:49]NVStorageDeleteData [19:30:49]Write to MH i2c: 01 00 00 66 2E 94 [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: 01 07 00 66 2E 00 00 00 00 00 C5 0C 6C [19:30:49]RasterBufferAndPrint [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]line [19:30:49]written 0, free lines is 3275 [19:30:49]MH_Cut [19:30:49]Write to MH i2c: D1 01 00 6D 2E 01 6D [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: D1 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: D1 01 00 [19:30:49]MH_I2C_Read... [19:30:49]Read from MH i2c: D1 01 00 6D 2E 00 6C [19:30:49]Write to MH i2c: 01 00 00 6E 2E 9C [19:30:49]Write i2c OK [19:30:49]MH_I2C_Read... [19:30:50]OFD Sender: No OFD packet to send [19:30:50]*** Cut start [19:30:50]*** Partial cut [19:30:50]*** CUTSNS_PIN = 1 [19:30:50]*** CUTSNS_PIN = 0 [19:30:50]*** Brake cut motor [19:30:51]Read from MH i2c: 01 [19:30:51]MH_I2C_Read... [19:30:51]*** Stop cut motor [19:30:51]*** Cut end [19:30:51]Read from MH i2c: 01 07 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: 01 07 00 6E 2E 00 00 00 00 00 FF 0F B1 [19:30:51]process_action close_receipt done [19:30:51]requested_data is exist [19:30:51]produce_requested_data [19:30:51]requested_item fm.sn is exist - process it [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 11 00 00 [19:30:51]Write to MH i2c: E2 08 00 6F 2E 80 11 00 00 00 00 00 00 17 [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 17 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 17 00 6F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [19:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:30:51]wFMCommunicate OK [19:30:51]requested_item fd.num is exist - process it [19:30:51]SAM_PROTO_GetFieldsCounters [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 13 00 00 [19:30:51]Write to MH i2c: E2 08 00 70 2E 80 13 00 00 00 00 00 00 1A [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 62 00 70 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [19:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:51]wFMCommunicate OK [19:30:51]SAM_PROTO_GetFieldsCounters done [19:30:51]requested_item shift.num is exist - process it [19:30:51]requested_item shift.opened is exist - process it [19:30:51]req_shift_opened [19:30:51]FM_GetShiftState [19:30:51]SAM_PROTO_GetShiftState [19:30:51]wFMCommunicate request_size=4 [19:30:51]MH_SAM_APDU [19:30:51]CAPDU: 80 13 01 00 [19:30:51]Write to MH i2c: E2 08 00 71 2E 80 13 01 00 00 00 00 00 1C [19:30:51]Write i2c OK [19:30:51]MH_I2C_Read... [19:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:51]Read from MH i2c: E2 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 0E 00 [19:30:51]MH_I2C_Read... [19:30:51]Read from MH i2c: E2 0E 00 71 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 95 [19:30:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:30:51]wFMCommunicate OK [19:30:51]SAM_PROTO_GetShiftState done [19:30:51]FM_GetShiftState done [19:30:51]req_shift_opened done [19:30:51]requested_item shift.open_date is exist - process it [19:30:51]req_shift_open_date [19:30:51]req_shift_open_date done [19:30:51]produce_requested_data done [19:30:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191915,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:30:51]process_action_free close_receipt [19:30:51]json_value_free [19:30:51]json_value_free done [19:30:51]process_json_proto returns [19:30:51]Send response to host [19:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191915,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:30:51]free response buf [19:30:51]execute_script done [19:30:51]execute_script returns [19:30:51]free content buf [19:30:51]Sock 5.Close socket [19:30:51]Sock 5.Thread stoped [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:28]accept exits with 6 [19:33:28]New connection [19:33:28]New thread 3066961252 created [19:33:28]Thread 3066817892 joined [19:33:28]Waiting for new connection... [19:33:28] Sock 6.Parse request [19:33:28]Sock 6.Check first char [19:33:28]Sock 6.First char is OK [19:33:28]request: POST /json_proto HTTP/1.0 [19:33:28]Method: POST [19:33:28]URL: /json_proto [19:33:28]Method is POST - this is cgi request [19:33:28]url: /json_proto [19:33:28]query_string will be loaded in cgi processing [19:33:28]execute_cgi json_proto POST (null) [19:33:28]execute_cgi path=json_proto method=POST [19:33:28]POST find Content-Length [19:33:28]Host: 172.17.63.131:8080 [19:33:28]Content-Length: 676 [19:33:28]Content-Type: application/json [19:33:28] [19:33:28]POST finish read [19:33:28]Found Content-Length = 676 [19:33:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:28]execute_script... [19:33: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)31224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:28]POST & json_proto [19:33:28]process_json_proto [19:33:28]json parsed OK: [19:33:28]protocol is kg_v1.0 [19:33:28]action value=close_receipt [19:33:28]process_action close_receipt [19:33:28]cmd_close_receipt [19:33:28]MH_GetDate [19:33:28]Write to MH i2c: F0 00 00 72 2E 8F [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: F0 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: F0 09 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: F0 09 00 72 2E 00 18 44 1D 67 22 05 6E 64 71 [19:33:28]GetLastDocTimeStamp 1729971063 [19:33:28]current date 1729971224 [19:33:28]FM_GetShiftState [19:33:28]SAM_PROTO_GetShiftState [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 13 01 00 [19:33:28]Write to MH i2c: E2 08 00 73 2E 80 13 01 00 00 00 00 00 1E [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 0E 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 0E 00 73 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 97 [19:33:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:33:28]wFMCommunicate OK [19:33:28]SAM_PROTO_GetShiftState done [19:33:28]FM_GetShiftState done [19:33:28]opened in 1729902770 [19:33:28]opened+sec_in_day 1729989170 [19:33:28]quantity*price = 30038 [19:33:28]sum+1 = 30039 [19:33:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 279 26.10.2024 19:33 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191916 ФПД: 60949597490752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191916&fm=60949597490752&tin=02508201610067®Number=0000000000091776&sum=30000 [19:33:29]StoreToDocumentArchive [19:33:29]shift 541 fd 191916 [19:33:29]save to /storage/0541/doc_00191916 [19:33:29]save last doc name /storage/0541/doc_00191916 to /storage/kkm_last_doc_name [19:33:29]save OK [19:33:29]Clear old archive folders... [19:33:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:29]tlvbuf is 01B0C770 [19:33:29]SAM_PROTO_ClearQueue [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 09 00 00 [19:33:29]Write to MH i2c: E2 08 00 80 2E 80 09 00 00 00 00 00 00 20 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 80 2E 00 90 00 22 [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]SAM_PROTO_ClearQueue done [19:33:29]KKMCreateOFDPacket [19:33:29]OFDProtocolAddRootSTLVToBuf [19:33:29]FM_MakeSignedData [19:33:29]FM_MakeSignedData [19:33:29]SAM_PROTO_SignData [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 01 02 [19:33:29]Write to MH i2c: E2 08 00 81 2E 80 0D 01 02 00 00 00 00 28 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 81 2E 00 90 00 23 [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]wFMCommunicate request_size=255 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 18 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC ED 02 00 35 04 06 00 37 [19:33:29]Write to MH i2c: E2 02 01 82 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 18 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC ED 02 00 35 04 06 00 37 00 00 99 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 82 2E 00 90 00 24 [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]wFMCommunicate request_size=10 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 02 02 05 6E EF 1B 8E 40 [19:33:29]Write to MH i2c: E2 0D 00 83 2E 80 0D 02 02 05 00 6E EF 1B 8E 40 00 00 7B [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 83 2E 00 90 00 25 [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 03 02 [19:33:29]Write to MH i2c: E2 08 00 84 2E 80 0D 03 02 00 00 00 00 2D [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0B 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0B 00 84 2E 00 1C 12 01 5A F3 52 7D 23 90 00 9C [19:33:29]RAPDU: 1C 12 01 5A F3 52 7D 23 90 00 [19:33:29]wFMCommunicate OK [19:33:29]SAM_PROTO_SignData done [19:33:29]FM_MakeSignedData done [19:33:29]CreateOFDProtocolMessage [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 11 00 00 [19:33:29]Write to MH i2c: E2 08 00 85 2E 80 11 00 00 00 00 00 00 2D [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 85 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [19:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:33:29]wFMCommunicate OK [19:33:29]CreateOFDProtocolMessage done [19:33:29]OFDSenderStorePacket 191916 [19:33:29]StoreOFDPacket docnum=191916 [19:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DB 16 07 01 83 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 18 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC ED 02 00 35 04 06 00 37 6E EF 1B 8E 40 1C 12 01 5A F3 52 7D 23 [19:33:29]CheckFolder [19:33:29]dirname=/storage/ofd_packets [19:33:29]CheckFolder done [19:33:29]ProducePacketName [19:33:29]name=ofd_packets/00191916 [19:33:29]NVStorageSaveData ofd_packets/00191916 [19:33:29]File name is /storage/ofd_packets/00191916 [19:33:29]Write 301 bytes [19:33:29]NVStorageSaveData done [19:33:29]OFDSenderStorePacket done [19:33:29]KKMCreateOFDPacket done [19:33:29]NVStorageSaveData kkm_last_timestamp [19:33:29]File name is /storage/kkm_last_timestamp [19:33:29]Write 4 bytes [19:33:29]NVStorageSaveData done [19:33:29]ExternCall_PrintAddStr [19:33:29]wPrintStart [19:33:29]Write to MH i2c: 01 00 00 86 2E B4 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 86 2E 00 00 00 00 00 FF 0F C9 [19:33:29]RasterBufferAndPrint [19:33:29]line Счет N : (1)31224 [19:33:29]line ИНН: 02508201610067 [19:33:29]line Контрольно-Кассовый Чек [19:33:29]line ПРОДАЖА [19:33:29]line ТРК (МРК, ГНК) : 21 [19:33:29]line Товар: 2710124130 [19:33:29]line Аи-92-К-5 [19:33:29]line 4.490 * 66.90 [19:33:29]line = 300.38 [19:33:29]line НДС 12% НСП 1% [19:33:29]line > о реализуемом товаре [19:33:29]line ОКРУГЛЕНИЕ: -0.38 [19:33:29]line ИТОГО: 300.00 [19:33:29]line Внесено: 300.00 [19:33:29]line СДАЧА: 0.00 [19:33:29]line НСП 1% : 2.66 [19:33:29]line НДС 12% : 31.90 [19:33:29]line Наличными: 300.00 [19:33:29]line Безнал.: 0.00 [19:33:29]line Место: АЗС № 170 "Партнер Нефть" [19:33:29]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:33:29]line СНО: Общий режим [19:33:29]line Чек 279 26.10.2024 19:33 [19:33:29]line Смена: 541 ФФД: 1.0 [19:33:29]line ЗНМ: 0300000110 [19:33:29]line РНМ: 0000000000091776 [19:33:29]line Версия ККМ: 001 [19:33:29]line ФМ: 0000000000871754 [19:33:29]line ФД: 191916 [19:33:29]line ФПД: 60949597490752 [19:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191916&fm=60949597490752&tin=02508201610067®Number=0000000000091776&sum=30000 [19:33:30]OFD Sender: Processing packet 191916 [packets to send 75, broken 74] [19:33:30]ProducePacketName [19:33:30]name=ofd_packets/00191916 [19:33:30]OFD Sender: To server: pG, [19:33:30]CommunicateWithHost lk.salyk.kg:30040 [19:33:30]ConnectInit lk.salyk.kg [19:33:30]written 0, free lines is 4095 [19:33:30]Connected sock=8 [19:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 DB 16 07 01 83 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 18 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC ED 02 00 35 04 06 00 37 6E EF 1B 8E 40 1C 12 01 5A F3 52 7D 23 [19:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 06 B0 47 00 41 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AC ED 02 00 F4 03 04 00 E2 E8 1C 67 B6 04 01 00 00 0E E0 49 68 4A 6D 55 81 [19:33:30]CommunicateWithHost err = 0 [19:33:30]CheckOFDResponse [19:33:30]1017 (14) - 77093643461234 [19:33:30]1041 (16) - 0000000000871754 [19:33:30]1040 (4) - 191916 [19:33:30]1012 (4) - 26.10.2024 13:04 [19:33:30]1206 (1) - 0 [19:33:30]OFD Sender: Remove packet 191916 [19:33:30]ProducePacketName [19:33:30]name=ofd_packets/00191916 [19:33:30]NVStorageDeleteData [19:33:30]Write to MH i2c: 01 00 00 B1 2E DF [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: 01 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: 01 07 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: 01 07 00 B1 2E 00 00 00 00 00 A5 0C 97 [19:33:30]RasterBufferAndPrint [19:33:30]line [19:33:30]line [19:33:30]line [19:33:30]line [19:33:30]line [19:33:30]written 0, free lines is 3242 [19:33:30]MH_Cut [19:33:30]Write to MH i2c: D1 01 00 B8 2E 01 B8 [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: D1 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: D1 01 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: D1 01 00 B8 2E 00 B7 [19:33:30]Write to MH i2c: 01 00 00 B9 2E E7 [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:31]OFD Sender: No OFD packet to send [19:33:31]*** Cut start [19:33:31]*** Partial cut [19:33:31]*** CUTSNS_PIN = 1 [19:33:31]*** CUTSNS_PIN = 0 [19:33:31]*** Brake cut motor [19:33:32]Read from MH i2c: 01 [19:33:32]MH_I2C_Read... [19:33:32]*** Stop cut motor [19:33:32]*** Cut end [19:33:32]Read from MH i2c: 01 07 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: 01 07 00 B9 2E 00 00 00 00 00 FF 0F FC [19:33:32]process_action close_receipt done [19:33:32]requested_data is exist [19:33:32]produce_requested_data [19:33:32]requested_item fm.sn is exist - process it [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 11 00 00 [19:33:32]Write to MH i2c: E2 08 00 BA 2E 80 11 00 00 00 00 00 00 62 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 17 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 17 00 BA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [19:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:33:32]wFMCommunicate OK [19:33:32]requested_item fd.num is exist - process it [19:33:32]SAM_PROTO_GetFieldsCounters [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 13 00 00 [19:33:32]Write to MH i2c: E2 08 00 BB 2E 80 13 00 00 00 00 00 00 65 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 62 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 62 00 BB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [19:33:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:32]wFMCommunicate OK [19:33:32]SAM_PROTO_GetFieldsCounters done [19:33:32]requested_item shift.num is exist - process it [19:33:32]requested_item shift.opened is exist - process it [19:33:32]req_shift_opened [19:33:32]FM_GetShiftState [19:33:32]SAM_PROTO_GetShiftState [19:33:32]wFMCommunicate request_size=4 [19:33:32]MH_SAM_APDU [19:33:32]CAPDU: 80 13 01 00 [19:33:32]Write to MH i2c: E2 08 00 BC 2E 80 13 01 00 00 00 00 00 67 [19:33:32]Write i2c OK [19:33:32]MH_I2C_Read... [19:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:32]Read from MH i2c: E2 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 0E 00 [19:33:32]MH_I2C_Read... [19:33:32]Read from MH i2c: E2 0E 00 BC 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E0 [19:33:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:33:32]wFMCommunicate OK [19:33:32]SAM_PROTO_GetShiftState done [19:33:32]FM_GetShiftState done [19:33:32]req_shift_opened done [19:33:32]requested_item shift.open_date is exist - process it [19:33:32]req_shift_open_date [19:33:32]req_shift_open_date done [19:33:32]produce_requested_data done [19:33:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191916,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:33:32]process_action_free close_receipt [19:33:32]json_value_free [19:33:32]json_value_free done [19:33:32]process_json_proto returns [19:33:32]Send response to host [19:33:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191916,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:33:32]free response buf [19:33:32]execute_script done [19:33:32]execute_script returns [19:33:32]free content buf [19:33:32]Sock 6.Close socket [19:33:32]Sock 6.Thread stoped [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:27]accept exits with 5 [19:34:27]New connection [19:34:27]New thread 3066817892 created [19:34:27]Thread 3066961252 joined [19:34:27]Waiting for new connection... [19:34:27] Sock 5.Parse request [19:34:27]Sock 5.Check first char [19:34:27]Sock 5.First char is OK [19:34:27]request: POST /json_proto HTTP/1.0 [19:34:27]Method: POST [19:34:27]URL: /json_proto [19:34:27]Method is POST - this is cgi request [19:34:27]url: /json_proto [19:34:27]query_string will be loaded in cgi processing [19:34:27]execute_cgi json_proto POST (null) [19:34:27]execute_cgi path=json_proto method=POST [19:34:27]POST find Content-Length [19:34:27]Host: 172.17.63.131:8080 [19:34:27]Content-Length: 673 [19:34:27]Content-Type: application/json [19:34:27] [19:34:27]POST finish read [19:34:27]Found Content-Length = 673 [19:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:27]execute_script... [19:34: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)31225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:27]POST & json_proto [19:34:27]process_json_proto [19:34:27]json parsed OK: [19:34:27]protocol is kg_v1.0 [19:34:27]action value=close_receipt [19:34:27]process_action close_receipt [19:34:27]cmd_close_receipt [19:34:27]MH_GetDate [19:34:27]Write to MH i2c: F0 00 00 BD 2E DA [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: F0 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: F0 09 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: F0 09 00 BD 2E 00 53 44 1D 67 22 05 6E 64 F7 [19:34:27]GetLastDocTimeStamp 1729971224 [19:34:27]current date 1729971283 [19:34:27]FM_GetShiftState [19:34:27]SAM_PROTO_GetShiftState [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 13 01 00 [19:34:27]Write to MH i2c: E2 08 00 BE 2E 80 13 01 00 00 00 00 00 69 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0E 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0E 00 BE 2E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E2 [19:34:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_GetShiftState done [19:34:27]FM_GetShiftState done [19:34:27]opened in 1729902770 [19:34:27]opened+sec_in_day 1729989170 [19:34:27]quantity*price = 50063 [19:34:27]sum+1 = 50064 [19:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 280 26.10.2024 19:34 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191917 ФПД: 207273261280837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191917&fm=207273261280837&tin=02508201610067®Number=0000000000091776&sum=50000 [19:34:28]StoreToDocumentArchive [19:34:28]shift 541 fd 191917 [19:34:28]save to /storage/0541/doc_00191917 [19:34:28]save last doc name /storage/0541/doc_00191917 to /storage/kkm_last_doc_name [19:34:28]save OK [19:34:28]Clear old archive folders... [19:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:28]tlvbuf is 016252E0 [19:34:28]SAM_PROTO_ClearQueue [19:34:28]wFMCommunicate request_size=4 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 09 00 00 [19:34:28]Write to MH i2c: E2 08 00 CB 2E 80 09 00 00 00 00 00 00 6B [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 CB 2E 00 90 00 6D [19:34:28]RAPDU: 90 00 [19:34:28]wFMCommunicate OK [19:34:28]SAM_PROTO_ClearQueue done [19:34:28]KKMCreateOFDPacket [19:34:28]OFDProtocolAddRootSTLVToBuf [19:34:28]FM_MakeSignedData [19:34:28]FM_MakeSignedData [19:34:28]SAM_PROTO_SignData [19:34:28]wFMCommunicate request_size=4 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 0D 01 02 [19:34:28]Write to MH i2c: E2 08 00 CC 2E 80 0D 01 02 00 00 00 00 73 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 CC 2E 00 90 00 6E [19:34:28]RAPDU: 90 00 [19:34:28]wFMCommunicate OK [19:34:28]wFMCommunicate request_size=255 [19:34:28]MH_SAM_APDU [19:34: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 53 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD ED 02 00 35 04 06 00 BC 83 91 1C [19:34:28]Write to MH i2c: E2 02 01 CD 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 53 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD ED 02 00 35 04 06 00 BC 83 91 1C 00 00 60 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 CD 2E 00 90 00 6F [19:34:28]RAPDU: 90 00 [19:34:28]wFMCommunicate OK [19:34:28]wFMCommunicate request_size=7 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 0D 02 02 02 2E 45 [19:34:28]Write to MH i2c: E2 0A 00 CE 2E 80 0D 02 02 02 00 2E 45 00 00 ED [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 03 00 CE 2E 00 90 00 70 [19:34:28]RAPDU: 90 00 [19:34:28]wFMCommunicate OK [19:34:28]wFMCommunicate request_size=4 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 0D 03 02 [19:34:28]Write to MH i2c: E2 08 00 CF 2E 80 0D 03 02 00 00 00 00 78 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 0B 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 0B 00 CF 2E 00 2C 45 28 AE 2E 2E C9 C2 90 00 A7 [19:34:28]RAPDU: 2C 45 28 AE 2E 2E C9 C2 90 00 [19:34:28]wFMCommunicate OK [19:34:28]SAM_PROTO_SignData done [19:34:28]FM_MakeSignedData done [19:34:28]CreateOFDProtocolMessage [19:34:28]wFMCommunicate request_size=4 [19:34:28]MH_SAM_APDU [19:34:28]CAPDU: 80 11 00 00 [19:34:28]Write to MH i2c: E2 08 00 D0 2E 80 11 00 00 00 00 00 00 78 [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:28]Read from MH i2c: E2 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 17 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: E2 17 00 D0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [19:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:34:28]wFMCommunicate OK [19:34:28]CreateOFDProtocolMessage done [19:34:28]OFDSenderStorePacket 191917 [19:34:28]StoreOFDPacket docnum=191917 [19:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 D2 2A 04 01 33 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 53 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD ED 02 00 35 04 06 00 BC 83 91 1C 2E 45 2C 45 28 AE 2E 2E C9 C2 [19:34:28]CheckFolder [19:34:28]dirname=/storage/ofd_packets [19:34:28]CheckFolder done [19:34:28]ProducePacketName [19:34:28]name=ofd_packets/00191917 [19:34:28]NVStorageSaveData ofd_packets/00191917 [19:34:28]File name is /storage/ofd_packets/00191917 [19:34:28]Write 298 bytes [19:34:28]NVStorageSaveData done [19:34:28]OFDSenderStorePacket done [19:34:28]KKMCreateOFDPacket done [19:34:28]NVStorageSaveData kkm_last_timestamp [19:34:28]File name is /storage/kkm_last_timestamp [19:34:28]Write 4 bytes [19:34:28]NVStorageSaveData done [19:34:28]ExternCall_PrintAddStr [19:34:28]wPrintStart [19:34:28]Write to MH i2c: 01 00 00 D1 2E FF [19:34:28]Write i2c OK [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 07 00 [19:34:28]MH_I2C_Read... [19:34:28]Read from MH i2c: 01 07 00 D1 2E 00 00 00 00 00 FF 0F 14 [19:34:28]RasterBufferAndPrint [19:34:28]line Счет N : (1)31225 [19:34:28]line ИНН: 02508201610067 [19:34:28]line Контрольно-Кассовый Чек [19:34:28]line ПРОДАЖА [19:34:28]line ТРК (МРК, ГНК) : 11 [19:34:28]line Товар: 2710194210 [19:34:28]line ДТ-К-5 [19:34:28]line 6.570 * 76.20 [19:34:28]line = 500.63 [19:34:28]line НДС 12% НСП 1% [19:34:28]line > о реализуемом товаре [19:34:28]line ОКРУГЛЕНИЕ: -0.63 [19:34:28]line ИТОГО: 500.00 [19:34:28]line Внесено: 500.00 [19:34:28]line СДАЧА: 0.00 [19:34:28]line НСП 1% : 4.43 [19:34:28]line НДС 12% : 53.16 [19:34:28]line Наличными: 500.00 [19:34:28]line Безнал.: 0.00 [19:34:28]line Место: АЗС № 170 "Партнер Нефть" [19:34:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:34:28]line СНО: Общий режим [19:34:28]line Чек 280 26.10.2024 19:34 [19:34:28]line Смена: 541 ФФД: 1.0 [19:34:28]line ЗНМ: 0300000110 [19:34:28]line РНМ: 0000000000091776 [19:34:28]line Версия ККМ: 001 [19:34:28]line ФМ: 0000000000871754 [19:34:28]line ФД: 191917 [19:34:28]line ФПД: 207273261280837 [19:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193443&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191917&fm=207273261280837&tin=02508201610067®Number=0000000000091776&sum=50000 [19:34:29]OFD Sender: Processing packet 191917 [packets to send 75, broken 74] [19:34:29]ProducePacketName [19:34:29]name=ofd_packets/00191917 [19:34:29]OFD Sender: To server: pG, [19:34:29]CommunicateWithHost lk.salyk.kg:30040 [19:34:29]ConnectInit lk.salyk.kg [19:34:29]written 0, free lines is 4095 [19:34:29]Connected sock=8 [19: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 31 37 35 34 0C 01 00 00 D2 2A 04 01 33 DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 53 44 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD ED 02 00 35 04 06 00 BC 83 91 1C 2E 45 2C 45 28 AE 2E 2E C9 C2 [19:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9B 66 47 00 57 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AD ED 02 00 F4 03 04 00 1D E9 1C 67 B6 04 01 00 00 21 28 05 28 CC F5 92 49 [19:34:29]CommunicateWithHost err = 0 [19:34:29]CheckOFDResponse [19:34:29]1017 (14) - 77093643461234 [19:34:29]1041 (16) - 0000000000871754 [19:34:29]1040 (4) - 191917 [19:34:29]1012 (4) - 26.10.2024 13:05 [19:34:29]1206 (1) - 0 [19:34:29]OFD Sender: Remove packet 191917 [19:34:29]ProducePacketName [19:34:29]name=ofd_packets/00191917 [19:34:29]NVStorageDeleteData [19:34:29]Write to MH i2c: 01 00 00 FC 2E 2A [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: 01 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: 01 07 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: 01 07 00 FC 2E 00 00 00 00 00 A3 0C E0 [19:34:29]RasterBufferAndPrint [19:34:29]line [19:34:29]line [19:34:29]line [19:34:29]line [19:34:29]line [19:34:29]written 0, free lines is 3243 [19:34:29]MH_Cut [19:34:29]Write to MH i2c: D1 01 00 03 2F 01 04 [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: D1 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: D1 01 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: D1 01 00 03 2F 00 03 [19:34:29]Write to MH i2c: 01 00 00 04 2F 33 [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:30]OFD Sender: No OFD packet to send [19:34:30]*** Cut start [19:34:30]*** Partial cut [19:34:30]*** CUTSNS_PIN = 1 [19:34:30]*** CUTSNS_PIN = 0 [19:34:30]*** Brake cut motor [19:34:31]Read from MH i2c: 01 [19:34:31]MH_I2C_Read... [19:34:31]*** Stop cut motor [19:34:31]*** Cut end [19:34:31]Read from MH i2c: 01 07 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: 01 07 00 04 2F 00 00 00 00 00 FF 0F 48 [19:34:31]process_action close_receipt done [19:34:31]requested_data is exist [19:34:31]produce_requested_data [19:34:31]requested_item fm.sn is exist - process it [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 11 00 00 [19:34:31]Write to MH i2c: E2 08 00 05 2F 80 11 00 00 00 00 00 00 AE [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 17 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 17 00 05 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [19:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:34:31]wFMCommunicate OK [19:34:31]requested_item fd.num is exist - process it [19:34:31]SAM_PROTO_GetFieldsCounters [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 13 00 00 [19:34:31]Write to MH i2c: E2 08 00 06 2F 80 13 00 00 00 00 00 00 B1 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 62 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 62 00 06 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [19:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:31]wFMCommunicate OK [19:34:31]SAM_PROTO_GetFieldsCounters done [19:34:31]requested_item shift.num is exist - process it [19:34:31]requested_item shift.opened is exist - process it [19:34:31]req_shift_opened [19:34:31]FM_GetShiftState [19:34:31]SAM_PROTO_GetShiftState [19:34:31]wFMCommunicate request_size=4 [19:34:31]MH_SAM_APDU [19:34:31]CAPDU: 80 13 01 00 [19:34:31]Write to MH i2c: E2 08 00 07 2F 80 13 01 00 00 00 00 00 B3 [19:34:31]Write i2c OK [19:34:31]MH_I2C_Read... [19:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:31]Read from MH i2c: E2 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0E 00 [19:34:31]MH_I2C_Read... [19:34:31]Read from MH i2c: E2 0E 00 07 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2C [19:34:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:34:31]wFMCommunicate OK [19:34:31]SAM_PROTO_GetShiftState done [19:34:31]FM_GetShiftState done [19:34:31]req_shift_opened done [19:34:31]requested_item shift.open_date is exist - process it [19:34:31]req_shift_open_date [19:34:31]req_shift_open_date done [19:34:31]produce_requested_data done [19:34:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191917,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:34:31]process_action_free close_receipt [19:34:31]json_value_free [19:34:31]json_value_free done [19:34:31]process_json_proto returns [19:34:31]Send response to host [19:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191917,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:34:31]free response buf [19:34:31]execute_script done [19:34:31]execute_script returns [19:34:31]free content buf [19:34:31]Sock 5.Close socket [19:34:31]Sock 5.Thread stoped [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:35]accept exits with 6 [19:39:35]New connection [19:39:35]New thread 3066961252 created [19:39:35]Thread 3066817892 joined [19:39:35]Waiting for new connection... [19:39:35] Sock 6.Parse request [19:39:35]Sock 6.Check first char [19:39:35]Sock 6.First char is OK [19:39:35]request: POST /json_proto HTTP/1.0 [19:39:35]Method: POST [19:39:35]URL: /json_proto [19:39:35]Method is POST - this is cgi request [19:39:35]url: /json_proto [19:39:35]query_string will be loaded in cgi processing [19:39:35]execute_cgi json_proto POST (null) [19:39:35]execute_cgi path=json_proto method=POST [19:39:35]POST find Content-Length [19:39:35]Host: 172.17.63.131:8080 [19:39:35]Content-Length: 678 [19:39:35]Content-Type: application/json [19:39:35] [19:39:35]POST finish read [19:39:35]Found Content-Length = 678 [19:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]execute_script... [19:39: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)31226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:35]POST & json_proto [19:39:35]process_json_proto [19:39:35]json parsed OK: [19:39:35]protocol is kg_v1.0 [19:39:35]action value=close_receipt [19:39:35]process_action close_receipt [19:39:35]cmd_close_receipt [19:39:35]MH_GetDate [19:39:35]Write to MH i2c: F0 00 00 08 2F 26 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: F0 09 00 08 2F 00 88 45 1D 67 22 05 6E 64 79 [19:39:35]GetLastDocTimeStamp 1729971283 [19:39:35]current date 1729971592 [19:39:35]FM_GetShiftState [19:39:35]SAM_PROTO_GetShiftState [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 01 00 [19:39:35]Write to MH i2c: E2 08 00 09 2F 80 13 01 00 00 00 00 00 B5 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 09 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2E [19:39:35]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetShiftState done [19:39:35]FM_GetShiftState done [19:39:35]opened in 1729902770 [19:39:35]opened+sec_in_day 1729989170 [19:39:35]quantity*price = 150037 [19:39:35]sum+1 = 150039 [19:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 281 26.10.2024 19:39 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191918 ФПД: 232855432305150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191918&fm=232855432305150&tin=02508201610067®Number=0000000000091776&sum=150000 [19:39:37]StoreToDocumentArchive [19:39:37]shift 541 fd 191918 [19:39:37]save to /storage/0541/doc_00191918 [19:39:37]save last doc name /storage/0541/doc_00191918 to /storage/kkm_last_doc_name [19:39:37]save OK [19:39:37]Clear old archive folders... [19:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:37]tlvbuf is 017F15A0 [19:39:37]SAM_PROTO_ClearQueue [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 09 00 00 [19:39:37]Write to MH i2c: E2 08 00 16 2F 80 09 00 00 00 00 00 00 B7 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 16 2F 00 90 00 B9 [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_ClearQueue done [19:39:37]KKMCreateOFDPacket [19:39:37]OFDProtocolAddRootSTLVToBuf [19:39:37]FM_MakeSignedData [19:39:37]FM_MakeSignedData [19:39:37]SAM_PROTO_SignData [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 01 02 [19:39:37]Write to MH i2c: E2 08 00 17 2F 80 0D 01 02 00 00 00 00 BF [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 17 2F 00 90 00 BA [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=255 [19:39:37]MH_SAM_APDU [19:39: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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 88 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE ED 02 00 35 04 06 00 D3 C7 E1 53 [19:39:37]Write to MH i2c: E2 02 01 18 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 88 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE ED 02 00 35 04 06 00 D3 C7 E1 53 00 00 B5 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 18 2F 00 90 00 BB [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=7 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 02 02 02 99 FE [19:39:37]Write to MH i2c: E2 0A 00 19 2F 80 0D 02 02 02 00 99 FE 00 00 5D [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 03 00 19 2F 00 90 00 BC [19:39:37]RAPDU: 90 00 [19:39:37]wFMCommunicate OK [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 0D 03 02 [19:39:37]Write to MH i2c: E2 08 00 1A 2F 80 0D 03 02 00 00 00 00 C4 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0B 00 1A 2F 00 60 FA 4A F0 E4 B0 97 79 90 00 FD [19:39:37]RAPDU: 60 FA 4A F0 E4 B0 97 79 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_SignData done [19:39:37]FM_MakeSignedData done [19:39:37]CreateOFDProtocolMessage [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 11 00 00 [19:39:37]Write to MH i2c: E2 08 00 1B 2F 80 11 00 00 00 00 00 00 C4 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 1B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [19:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:39:37]wFMCommunicate OK [19:39:37]CreateOFDProtocolMessage done [19:39:37]OFDSenderStorePacket 191918 [19:39:37]StoreOFDPacket docnum=191918 [19:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 46 8B 04 01 9C 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 88 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE ED 02 00 35 04 06 00 D3 C7 E1 53 99 FE 60 FA 4A F0 E4 B0 97 79 [19:39:37]CheckFolder [19:39:37]dirname=/storage/ofd_packets [19:39:37]CheckFolder done [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00191918 [19:39:37]NVStorageSaveData ofd_packets/00191918 [19:39:37]File name is /storage/ofd_packets/00191918 [19:39:37]Write 298 bytes [19:39:37]NVStorageSaveData done [19:39:37]OFDSenderStorePacket done [19:39:37]KKMCreateOFDPacket done [19:39:37]NVStorageSaveData kkm_last_timestamp [19:39:37]File name is /storage/kkm_last_timestamp [19:39:37]Write 4 bytes [19:39:37]NVStorageSaveData done [19:39:37]ExternCall_PrintAddStr [19:39:37]wPrintStart [19:39:37]Write to MH i2c: 01 00 00 1C 2F 4B [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 1C 2F 00 00 00 00 00 FF 0F 60 [19:39:37]RasterBufferAndPrint [19:39:37]line Счет N : (1)31226 [19:39:37]line ИНН: 02508201610067 [19:39:37]line Контрольно-Кассовый Чек [19:39:37]line ПРОДАЖА [19:39:37]line ТРК (МРК, ГНК) : 11 [19:39:37]line Товар: 2710194210 [19:39:37]line ДТ-К-5 [19:39:37]line 19.690 * 76.20 [19:39:37]line = 1500.38 [19:39:37]line НДС 12% НСП 1% [19:39:37]line > о реализуемом товаре [19:39:37]line ОКРУГЛЕНИЕ: -0.38 [19:39:37]line ИТОГО: 1500.00 [19:39:37]line Внесено: 1500.00 [19:39:37]line СДАЧА: 0.00 [19:39:37]line НСП 1% : 13.28 [19:39:37]line НДС 12% : 159.33 [19:39:37]line Наличными: 1500.00 [19:39:37]line Безнал.: 0.00 [19:39:37]line Место: АЗС № 170 "Партнер Нефть" [19:39:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:39:37]line СНО: Общий режим [19:39:37]line Чек 281 26.10.2024 19:39 [19:39:37]line Смена: 541 ФФД: 1.0 [19:39:37]line ЗНМ: 0300000110 [19:39:37]line РНМ: 0000000000091776 [19:39:37]line Версия ККМ: 001 [19:39:37]line ФМ: 0000000000871754 [19:39:37]line ФД: 191918 [19:39:37]line ФПД: 232855432305150 [19:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T193952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191918&fm=232855432305150&tin=02508201610067®Number=0000000000091776&sum=150000 [19:39:37]OFD Sender: Processing packet 191918 [packets to send 75, broken 74] [19:39:37]ProducePacketName [19:39:37]name=ofd_packets/00191918 [19:39:37]OFD Sender: To server: pG, [19:39:37]CommunicateWithHost lk.salyk.kg:30040 [19:39:37]ConnectInit lk.salyk.kg [19:39:37]written 0, free lines is 4095 [19:39:38]Connected sock=8 [19:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 46 8B 04 01 9C 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 88 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE ED 02 00 35 04 06 00 D3 C7 E1 53 99 FE 60 FA 4A F0 E4 B0 97 79 [19:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C8 84 47 00 09 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AE ED 02 00 F4 03 04 00 52 EA 1C 67 B6 04 01 00 00 A7 EB 5C 47 D2 E7 E8 39 [19:39:38]CommunicateWithHost err = 0 [19:39:38]CheckOFDResponse [19:39:38]1017 (14) - 77093643461234 [19:39:38]1041 (16) - 0000000000871754 [19:39:38]1040 (4) - 191918 [19:39:38]1012 (4) - 26.10.2024 13:10 [19:39:38]1206 (1) - 0 [19:39:38]OFD Sender: Remove packet 191918 [19:39:38]ProducePacketName [19:39:38]name=ofd_packets/00191918 [19:39:38]NVStorageDeleteData [19:39:38]Write to MH i2c: 01 00 00 47 2F 76 [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 07 00 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: 01 07 00 47 2F 00 00 00 00 00 AF 0C 38 [19:39:38]RasterBufferAndPrint [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]line [19:39:38]written 0, free lines is 3253 [19:39:38]MH_Cut [19:39:38]Write to MH i2c: D1 01 00 4E 2F 01 4F [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 01 00 [19:39:38]MH_I2C_Read... [19:39:38]Read from MH i2c: D1 01 00 4E 2F 00 4E [19:39:38]Write to MH i2c: 01 00 00 4F 2F 7E [19:39:38]Write i2c OK [19:39:38]MH_I2C_Read... [19:39:38]OFD Sender: No OFD packet to send [19:39:39]*** Cut start [19:39:39]*** Partial cut [19:39:39]*** CUTSNS_PIN = 1 [19:39:39]*** CUTSNS_PIN = 0 [19:39:39]*** Brake cut motor [19:39:39]Read from MH i2c: 01 [19:39:39]MH_I2C_Read... [19:39:39]*** Stop cut motor [19:39:39]*** Cut end [19:39:39]Read from MH i2c: 01 07 00 [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: 01 07 00 4F 2F 00 00 00 00 00 FF 0F 93 [19:39:39]process_action close_receipt done [19:39:39]requested_data is exist [19:39:39]produce_requested_data [19:39:39]requested_item fm.sn is exist - process it [19:39:39]wFMCommunicate request_size=4 [19:39:39]MH_SAM_APDU [19:39:39]CAPDU: 80 11 00 00 [19:39:39]Write to MH i2c: E2 08 00 50 2F 80 11 00 00 00 00 00 00 F9 [19:39:39]Write i2c OK [19:39:39]MH_I2C_Read... [19:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:39]Read from MH i2c: E2 [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: E2 17 00 [19:39:39]MH_I2C_Read... [19:39:39]Read from MH i2c: E2 17 00 50 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [19:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:39:39]wFMCommunicate OK [19:39:39]requested_item fd.num is exist - process it [19:39:39]SAM_PROTO_GetFieldsCounters [19:39:39]wFMCommunicate request_size=4 [19:39:39]MH_SAM_APDU [19:39:39]CAPDU: 80 13 00 00 [19:39:39]Write to MH i2c: E2 08 00 51 2F 80 13 00 00 00 00 00 00 FC [19:39:39]Write i2c OK [19:39:39]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 62 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 62 00 51 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetFieldsCounters done [19:39:40]requested_item shift.num is exist - process it [19:39:40]requested_item shift.opened is exist - process it [19:39:40]req_shift_opened [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 52 2F 80 13 01 00 00 00 00 00 FE [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 52 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 77 [19:39:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]req_shift_opened done [19:39:40]requested_item shift.open_date is exist - process it [19:39:40]req_shift_open_date [19:39:40]req_shift_open_date done [19:39:40]produce_requested_data done [19:39:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191918,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:39:40]process_action_free close_receipt [19:39:40]json_value_free [19:39:40]json_value_free done [19:39:40]process_json_proto returns [19:39:40]Send response to host [19:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191918,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:39:40]free response buf [19:39:40]execute_script done [19:39:40]execute_script returns [19:39:40]free content buf [19:39:40]Sock 6.Close socket [19:39:40]Sock 6.Thread stoped [19:39:43]OFD Sender: No OFD packet to send [19:39:48]OFD Sender: No OFD packet to send [19:39:53]OFD Sender: No OFD packet to send [19:39:58]OFD Sender: No OFD packet to send [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]accept exits with 5 [19:40:48]New connection [19:40:48]New thread 3066817892 created [19:40:48]Thread 3066961252 joined [19:40:48]Waiting for new connection... [19:40:48] Sock 5.Parse request [19:40:48]Sock 5.Check first char [19:40:48]Sock 5.First char is OK [19:40:48]request: POST /json_proto HTTP/1.0 [19:40:48]Method: POST [19:40:48]URL: /json_proto [19:40:48]Method is POST - this is cgi request [19:40:48]url: /json_proto [19:40:48]query_string will be loaded in cgi processing [19:40:48]execute_cgi json_proto POST (null) [19:40:48]execute_cgi path=json_proto method=POST [19:40:48]POST find Content-Length [19:40:48]Host: 172.17.63.131:8080 [19:40:48]Content-Length: 678 [19:40:48]Content-Type: application/json [19:40:48] [19:40:48]POST finish read [19:40:48]Found Content-Length = 678 [19:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31227", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:48]execute_script... [19:40: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)31227", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:48]POST & json_proto [19:40:48]process_json_proto [19:40:48]json parsed OK: [19:40:48]protocol is kg_v1.0 [19:40:48]action value=close_receipt [19:40:48]process_action close_receipt [19:40:48]cmd_close_receipt [19:40:48]MH_GetDate [19:40:48]Write to MH i2c: F0 00 00 53 2F 71 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: F0 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: F0 09 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: F0 09 00 53 2F 00 D0 45 1D 67 22 05 6E 64 0C [19:40:48]GetLastDocTimeStamp 1729971592 [19:40:48]current date 1729971664 [19:40:48]FM_GetShiftState [19:40:48]SAM_PROTO_GetShiftState [19:40:48]wFMCommunicate request_size=4 [19:40:48]MH_SAM_APDU [19:40:48]CAPDU: 80 13 01 00 [19:40:48]Write to MH i2c: E2 08 00 54 2F 80 13 01 00 00 00 00 00 00 [19:40:48]Write i2c OK [19:40:48]MH_I2C_Read... [19:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:48]Read from MH i2c: E2 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 0E 00 [19:40:48]MH_I2C_Read... [19:40:48]Read from MH i2c: E2 0E 00 54 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 79 [19:40:48]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:40:48]wFMCommunicate OK [19:40:48]SAM_PROTO_GetShiftState done [19:40:48]FM_GetShiftState done [19:40:48]opened in 1729902770 [19:40:48]opened+sec_in_day 1729989170 [19:40:48]quantity*price = 160020 [19:40:48]sum+1 = 160021 [19:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 282 26.10.2024 19:41 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191919 ФПД: 75919209365254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191919&fm=75919209365254&tin=02508201610067®Number=0000000000091776&sum=160000 [19:40:49]StoreToDocumentArchive [19:40:49]shift 541 fd 191919 [19:40:49]save to /storage/0541/doc_00191919 [19:40:49]save last doc name /storage/0541/doc_00191919 to /storage/kkm_last_doc_name [19:40:49]save OK [19:40:49]Clear old archive folders... [19:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:49]tlvbuf is 01789F10 [19:40:49]SAM_PROTO_ClearQueue [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 09 00 00 [19:40:49]Write to MH i2c: E2 08 00 61 2F 80 09 00 00 00 00 00 00 02 [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:49]Read from MH i2c: E2 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 03 00 [19:40:49]MH_I2C_Read... [19:40:49]Read from MH i2c: E2 03 00 61 2F 00 90 00 04 [19:40:49]RAPDU: 90 00 [19:40:49]wFMCommunicate OK [19:40:49]SAM_PROTO_ClearQueue done [19:40:49]KKMCreateOFDPacket [19:40:49]OFDProtocolAddRootSTLVToBuf [19:40:49]FM_MakeSignedData [19:40:49]FM_MakeSignedData [19:40:49]SAM_PROTO_SignData [19:40:49]wFMCommunicate request_size=4 [19:40:49]MH_SAM_APDU [19:40:49]CAPDU: 80 0D 01 02 [19:40:49]Write to MH i2c: E2 08 00 62 2F 80 0D 01 02 00 00 00 00 0A [19:40:49]Write i2c OK [19:40:49]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 62 2F 00 90 00 05 [19:40:50]RAPDU: 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=255 [19:40:50]MH_SAM_APDU [19:40: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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 D0 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF ED 02 00 35 04 06 00 45 0C 51 81 [19:40:50]Write to MH i2c: E2 02 01 63 2F 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 D0 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF ED 02 00 35 04 06 00 45 0C 51 81 00 00 D8 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 63 2F 00 90 00 06 [19:40:50]RAPDU: 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=7 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 0D 02 02 02 7F 06 [19:40:50]Write to MH i2c: E2 0A 00 64 2F 80 0D 02 02 02 00 7F 06 00 00 96 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 03 00 64 2F 00 90 00 07 [19:40:50]RAPDU: 90 00 [19:40:50]wFMCommunicate OK [19:40:50]wFMCommunicate request_size=4 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 0D 03 02 [19:40:50]Write to MH i2c: E2 08 00 65 2F 80 0D 03 02 00 00 00 00 0F [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 0B 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 0B 00 65 2F 00 BC 69 82 2D 8C BD 53 9A 90 00 1A [19:40:50]RAPDU: BC 69 82 2D 8C BD 53 9A 90 00 [19:40:50]wFMCommunicate OK [19:40:50]SAM_PROTO_SignData done [19:40:50]FM_MakeSignedData done [19:40:50]CreateOFDProtocolMessage [19:40:50]wFMCommunicate request_size=4 [19:40:50]MH_SAM_APDU [19:40:50]CAPDU: 80 11 00 00 [19:40:50]Write to MH i2c: E2 08 00 66 2F 80 11 00 00 00 00 00 00 0F [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:50]Read from MH i2c: E2 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 17 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: E2 17 00 66 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [19:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:40:50]wFMCommunicate OK [19:40:50]CreateOFDProtocolMessage done [19:40:50]OFDSenderStorePacket 191919 [19:40:50]StoreOFDPacket docnum=191919 [19:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 00 34 04 01 1A B2 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 D0 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF ED 02 00 35 04 06 00 45 0C 51 81 7F 06 BC 69 82 2D 8C BD 53 9A [19:40:50]CheckFolder [19:40:50]dirname=/storage/ofd_packets [19:40:50]CheckFolder done [19:40:50]ProducePacketName [19:40:50]name=ofd_packets/00191919 [19:40:50]NVStorageSaveData ofd_packets/00191919 [19:40:50]File name is /storage/ofd_packets/00191919 [19:40:50]Write 298 bytes [19:40:50]NVStorageSaveData done [19:40:50]OFDSenderStorePacket done [19:40:50]KKMCreateOFDPacket done [19:40:50]NVStorageSaveData kkm_last_timestamp [19:40:50]File name is /storage/kkm_last_timestamp [19:40:50]Write 4 bytes [19:40:50]NVStorageSaveData done [19:40:50]ExternCall_PrintAddStr [19:40:50]wPrintStart [19:40:50]Write to MH i2c: 01 00 00 67 2F 96 [19:40:50]Write i2c OK [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: 01 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: 01 07 00 [19:40:50]MH_I2C_Read... [19:40:50]Read from MH i2c: 01 07 00 67 2F 00 00 00 00 00 FF 0F AB [19:40:50]RasterBufferAndPrint [19:40:50]line Счет N : (1)31227 [19:40:50]line ИНН: 02508201610067 [19:40:50]line Контрольно-Кассовый Чек [19:40:50]line ПРОДАЖА [19:40:50]line ТРК (МРК, ГНК) : 22 [19:40:50]line Товар: 2710194210 [19:40:50]line ДТ-К-5 [19:40:50]line 21.000 * 76.20 [19:40:50]line = 1600.20 [19:40:50]line НДС 12% НСП 1% [19:40:50]line > о реализуемом товаре [19:40:50]line ОКРУГЛЕНИЕ: -0.20 [19:40:50]line ИТОГО: 1600.00 [19:40:50]line Внесено: 1600.00 [19:40:50]line СДАЧА: 0.00 [19:40:50]line НСП 1% : 14.16 [19:40:50]line НДС 12% : 169.93 [19:40:50]line Наличными: 1600.00 [19:40:50]line Безнал.: 0.00 [19:40:50]line Место: АЗС № 170 "Партнер Нефть" [19:40:50]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:40:50]line СНО: Общий режим [19:40:50]line Чек 282 26.10.2024 19:41 [19:40:50]line Смена: 541 ФФД: 1.0 [19:40:50]line ЗНМ: 0300000110 [19:40:50]line РНМ: 0000000000091776 [19:40:50]line Версия ККМ: 001 [19:40:50]line ФМ: 0000000000871754 [19:40:50]line ФД: 191919 [19:40:50]line ФПД: 75919209365254 [19:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194104&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191919&fm=75919209365254&tin=02508201610067®Number=0000000000091776&sum=160000 [19:40:50]OFD Sender: Processing packet 191919 [packets to send 75, broken 74] [19:40:50]ProducePacketName [19:40:50]name=ofd_packets/00191919 [19:40:50]OFD Sender: To server: pG, [19:40:50]CommunicateWithHost lk.salyk.kg:30040 [19:40:50]ConnectInit lk.salyk.kg [19:40:50]written 0, free lines is 4095 [19:40:50]Connected sock=8 [19:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 00 34 04 01 1A B2 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 D0 45 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF ED 02 00 35 04 06 00 45 0C 51 81 7F 06 BC 69 82 2D 8C BD 53 9A [19:40:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 17 47 00 39 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 AF ED 02 00 F4 03 04 00 9B EA 1C 67 B6 04 01 00 00 22 6C 17 74 FF 04 6F E4 [19:40:51]CommunicateWithHost err = 0 [19:40:51]CheckOFDResponse [19:40:51]1017 (14) - 77093643461234 [19:40:51]1041 (16) - 0000000000871754 [19:40:51]1040 (4) - 191919 [19:40:51]1012 (4) - 26.10.2024 13:11 [19:40:51]1206 (1) - 0 [19:40:51]OFD Sender: Remove packet 191919 [19:40:51]ProducePacketName [19:40:51]name=ofd_packets/00191919 [19:40:51]NVStorageDeleteData [19:40:51]Write to MH i2c: 01 00 00 92 2F C1 [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: 01 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: 01 07 00 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: 01 07 00 92 2F 00 00 00 00 00 B1 0C 85 [19:40:51]RasterBufferAndPrint [19:40:51]line [19:40:51]line [19:40:51]line [19:40:51]line [19:40:51]line [19:40:51]written 0, free lines is 3256 [19:40:51]MH_Cut [19:40:51]Write to MH i2c: D1 01 00 99 2F 01 9A [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: D1 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: D1 01 00 [19:40:51]MH_I2C_Read... [19:40:51]Read from MH i2c: D1 01 00 99 2F 00 99 [19:40:51]Write to MH i2c: 01 00 00 9A 2F C9 [19:40:51]Write i2c OK [19:40:51]MH_I2C_Read... [19:40:51]OFD Sender: No OFD packet to send [19:40:52]*** Cut start [19:40:52]*** Partial cut [19:40:52]*** CUTSNS_PIN = 1 [19:40:52]*** CUTSNS_PIN = 0 [19:40:52]*** Brake cut motor [19:40:52]Read from MH i2c: 01 [19:40:52]MH_I2C_Read... [19:40:52]*** Stop cut motor [19:40:52]*** Cut end [19:40:52]Read from MH i2c: 01 07 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 FF 0F DE [19:40:52]process_action close_receipt done [19:40:52]requested_data is exist [19:40:52]produce_requested_data [19:40:52]requested_item fm.sn is exist - process it [19:40:52]wFMCommunicate request_size=4 [19:40:52]MH_SAM_APDU [19:40:52]CAPDU: 80 11 00 00 [19:40:52]Write to MH i2c: E2 08 00 9B 2F 80 11 00 00 00 00 00 00 44 [19:40:52]Write i2c OK [19:40:52]MH_I2C_Read... [19:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 17 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 17 00 9B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [19:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:40:52]wFMCommunicate OK [19:40:52]requested_item fd.num is exist - process it [19:40:52]SAM_PROTO_GetFieldsCounters [19:40:52]wFMCommunicate request_size=4 [19:40:52]MH_SAM_APDU [19:40:52]CAPDU: 80 13 00 00 [19:40:52]Write to MH i2c: E2 08 00 9C 2F 80 13 00 00 00 00 00 00 47 [19:40:52]Write i2c OK [19:40:52]MH_I2C_Read... [19:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 62 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 62 00 9C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:40:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 AF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:52]wFMCommunicate OK [19:40:52]SAM_PROTO_GetFieldsCounters done [19:40:52]requested_item shift.num is exist - process it [19:40:52]requested_item shift.opened is exist - process it [19:40:52]req_shift_opened [19:40:52]FM_GetShiftState [19:40:52]SAM_PROTO_GetShiftState [19:40:52]wFMCommunicate request_size=4 [19:40:52]MH_SAM_APDU [19:40:52]CAPDU: 80 13 01 00 [19:40:52]Write to MH i2c: E2 08 00 9D 2F 80 13 01 00 00 00 00 00 49 [19:40:52]Write i2c OK [19:40:52]MH_I2C_Read... [19:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:52]Read from MH i2c: E2 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 0E 00 [19:40:52]MH_I2C_Read... [19:40:52]Read from MH i2c: E2 0E 00 9D 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C2 [19:40:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:40:52]wFMCommunicate OK [19:40:52]SAM_PROTO_GetShiftState done [19:40:52]FM_GetShiftState done [19:40:52]req_shift_opened done [19:40:52]requested_item shift.open_date is exist - process it [19:40:52]req_shift_open_date [19:40:52]req_shift_open_date done [19:40:52]produce_requested_data done [19:40:52]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191919,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:40:52]process_action_free close_receipt [19:40:52]json_value_free [19:40:52]json_value_free done [19:40:52]process_json_proto returns [19:40:52]Send response to host [19:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191919,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:40:52]free response buf [19:40:52]execute_script done [19:40:52]execute_script returns [19:40:52]free content buf [19:40:52]Sock 5.Close socket [19:40:52]Sock 5.Thread stoped [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:15]accept exits with 6 [19:42:15]New connection [19:42:15]New thread 3066961252 created [19:42:15]Thread 3066817892 joined [19:42:15]Waiting for new connection... [19:42:15] Sock 6.Parse request [19:42:15]Sock 6.Check first char [19:42:15]Sock 6.First char is OK [19:42:15]request: POST /json_proto HTTP/1.0 [19:42:15]Method: POST [19:42:15]URL: /json_proto [19:42:15]Method is POST - this is cgi request [19:42:15]url: /json_proto [19:42:15]query_string will be loaded in cgi processing [19:42:15]execute_cgi json_proto POST (null) [19:42:15]execute_cgi path=json_proto method=POST [19:42:15]POST find Content-Length [19:42:15]Host: 172.17.63.131:8080 [19:42:15]Content-Length: 678 [19:42:15]Content-Type: application/json [19:42:15] [19:42:15]POST finish read [19:42:15]Found Content-Length = 678 [19:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:15]execute_script... [19:42: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)31228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:15]POST & json_proto [19:42:15]process_json_proto [19:42:15]json parsed OK: [19:42:15]protocol is kg_v1.0 [19:42:15]action value=close_receipt [19:42:15]process_action close_receipt [19:42:15]cmd_close_receipt [19:42:15]MH_GetDate [19:42:15]Write to MH i2c: F0 00 00 9E 2F BC [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: F0 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: F0 09 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: F0 09 00 9E 2F 00 27 46 1D 67 22 05 6E 64 AF [19:42:15]GetLastDocTimeStamp 1729971664 [19:42:15]current date 1729971751 [19:42:15]FM_GetShiftState [19:42:15]SAM_PROTO_GetShiftState [19:42:15]wFMCommunicate request_size=4 [19:42:15]MH_SAM_APDU [19:42:15]CAPDU: 80 13 01 00 [19:42:15]Write to MH i2c: E2 08 00 9F 2F 80 13 01 00 00 00 00 00 4B [19:42:15]Write i2c OK [19:42:15]MH_I2C_Read... [19:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:15]Read from MH i2c: E2 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 0E 00 [19:42:15]MH_I2C_Read... [19:42:15]Read from MH i2c: E2 0E 00 9F 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C4 [19:42:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:42:15]wFMCommunicate OK [19:42:15]SAM_PROTO_GetShiftState done [19:42:15]FM_GetShiftState done [19:42:15]opened in 1729902770 [19:42:15]opened+sec_in_day 1729989170 [19:42:15]quantity*price = 100050 [19:42:15]sum+1 = 100052 [19:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 283 26.10.2024 19:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191920 ФПД: 156587830342963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191920&fm=156587830342963&tin=02508201610067®Number=0000000000091776&sum=100000 [19:42:16]StoreToDocumentArchive [19:42:16]shift 541 fd 191920 [19:42:16]save to /storage/0541/doc_00191920 [19:42:16]save last doc name /storage/0541/doc_00191920 to /storage/kkm_last_doc_name [19:42:16]save OK [19:42:16]Clear old archive folders... [19:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:16]tlvbuf is 0172E7A0 [19:42:16]SAM_PROTO_ClearQueue [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 09 00 00 [19:42:16]Write to MH i2c: E2 08 00 AC 2F 80 09 00 00 00 00 00 00 4D [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 AC 2F 00 90 00 4F [19:42:16]RAPDU: 90 00 [19:42:16]wFMCommunicate OK [19:42:16]SAM_PROTO_ClearQueue done [19:42:16]KKMCreateOFDPacket [19:42:16]OFDProtocolAddRootSTLVToBuf [19:42:16]FM_MakeSignedData [19:42:16]FM_MakeSignedData [19:42:16]SAM_PROTO_SignData [19:42:16]wFMCommunicate request_size=4 [19:42:16]MH_SAM_APDU [19:42:16]CAPDU: 80 0D 01 02 [19:42:16]Write to MH i2c: E2 08 00 AD 2F 80 0D 01 02 00 00 00 00 55 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:16]OFD Sender: No OFD packet to send [19:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:16]Read from MH i2c: E2 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 [19:42:16]MH_I2C_Read... [19:42:16]Read from MH i2c: E2 03 00 AD 2F 00 90 00 50 [19:42:16]RAPDU: 90 00 [19:42:16]wFMCommunicate OK [19:42:16]wFMCommunicate request_size=255 [19:42:16]MH_SAM_APDU [19:42: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 27 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 ED 02 00 35 04 06 00 8E 6A 72 00 [19:42:16]Write to MH i2c: E2 02 01 AE 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 27 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 ED 02 00 35 04 06 00 8E 6A 72 00 00 00 14 [19:42:16]Write i2c OK [19:42:16]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 AE 2F 00 90 00 51 [19:42:17]RAPDU: 90 00 [19:42:17]wFMCommunicate OK [19:42:17]wFMCommunicate request_size=7 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 0D 02 02 02 F5 33 [19:42:17]Write to MH i2c: E2 0A 00 AF 2F 80 0D 02 02 02 00 F5 33 00 00 84 [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 03 00 AF 2F 00 90 00 52 [19:42:17]RAPDU: 90 00 [19:42:17]wFMCommunicate OK [19:42:17]wFMCommunicate request_size=4 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 0D 03 02 [19:42:17]Write to MH i2c: E2 08 00 B0 2F 80 0D 03 02 00 00 00 00 5A [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 0B 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 0B 00 B0 2F 00 C1 20 D7 20 AD D7 1A FE 90 00 CF [19:42:17]RAPDU: C1 20 D7 20 AD D7 1A FE 90 00 [19:42:17]wFMCommunicate OK [19:42:17]SAM_PROTO_SignData done [19:42:17]FM_MakeSignedData done [19:42:17]CreateOFDProtocolMessage [19:42:17]wFMCommunicate request_size=4 [19:42:17]MH_SAM_APDU [19:42:17]CAPDU: 80 11 00 00 [19:42:17]Write to MH i2c: E2 08 00 B1 2F 80 11 00 00 00 00 00 00 5A [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:17]Read from MH i2c: E2 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 17 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: E2 17 00 B1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [19:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:42:17]wFMCommunicate OK [19:42:17]CreateOFDProtocolMessage done [19:42:17]OFDSenderStorePacket 191920 [19:42:17]StoreOFDPacket docnum=191920 [19:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A6 FD 04 01 87 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 27 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 ED 02 00 35 04 06 00 8E 6A 72 00 F5 33 C1 20 D7 20 AD D7 1A FE [19:42:17]CheckFolder [19:42:17]dirname=/storage/ofd_packets [19:42:17]CheckFolder done [19:42:17]ProducePacketName [19:42:17]name=ofd_packets/00191920 [19:42:17]NVStorageSaveData ofd_packets/00191920 [19:42:17]File name is /storage/ofd_packets/00191920 [19:42:17]Write 298 bytes [19:42:17]NVStorageSaveData done [19:42:17]OFDSenderStorePacket done [19:42:17]KKMCreateOFDPacket done [19:42:17]NVStorageSaveData kkm_last_timestamp [19:42:17]File name is /storage/kkm_last_timestamp [19:42:17]Write 4 bytes [19:42:17]NVStorageSaveData done [19:42:17]ExternCall_PrintAddStr [19:42:17]wPrintStart [19:42:17]Write to MH i2c: 01 00 00 B2 2F E1 [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 07 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 07 00 B2 2F 00 00 00 00 00 FF 0F F6 [19:42:17]RasterBufferAndPrint [19:42:17]line Счет N : (1)31228 [19:42:17]line ИНН: 02508201610067 [19:42:17]line Контрольно-Кассовый Чек [19:42:17]line ПРОДАЖА [19:42:17]line ТРК (МРК, ГНК) : 11 [19:42:17]line Товар: 2710194210 [19:42:17]line ДТ-К-5 [19:42:17]line 13.130 * 76.20 [19:42:17]line = 1000.51 [19:42:17]line НДС 12% НСП 1% [19:42:17]line > о реализуемом товаре [19:42:17]line ОКРУГЛЕНИЕ: -0.51 [19:42:17]line ИТОГО: 1000.00 [19:42:17]line Внесено: 1000.00 [19:42:17]line СДАЧА: 0.00 [19:42:17]line НСП 1% : 8.85 [19:42:17]line НДС 12% : 106.25 [19:42:17]line Наличными: 1000.00 [19:42:17]line Безнал.: 0.00 [19:42:17]line Место: АЗС № 170 "Партнер Нефть" [19:42:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:42:17]line СНО: Общий режим [19:42:17]line Чек 283 26.10.2024 19:42 [19:42:17]line Смена: 541 ФФД: 1.0 [19:42:17]line ЗНМ: 0300000110 [19:42:17]line РНМ: 0000000000091776 [19:42:17]line Версия ККМ: 001 [19:42:17]line ФМ: 0000000000871754 [19:42:17]line ФД: 191920 [19:42:17]line ФПД: 156587830342963 [19:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191920&fm=156587830342963&tin=02508201610067®Number=0000000000091776&sum=100000 [19:42:17]OFD Sender: Processing packet 191920 [packets to send 75, broken 74] [19:42:17]ProducePacketName [19:42:17]name=ofd_packets/00191920 [19:42:17]OFD Sender: To server: pG, [19:42:17]CommunicateWithHost lk.salyk.kg:30040 [19:42:17]ConnectInit lk.salyk.kg [19:42:17]written 0, free lines is 4095 [19:42:17]Connected sock=8 [19:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 A6 FD 04 01 87 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 27 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 ED 02 00 35 04 06 00 8E 6A 72 00 F5 33 C1 20 D7 20 AD D7 1A FE [19:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 96 FB 47 00 8C CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B0 ED 02 00 F4 03 04 00 F1 EA 1C 67 B6 04 01 00 00 1A A9 F8 66 7E 42 07 DF [19:42:17]CommunicateWithHost err = 0 [19:42:17]CheckOFDResponse [19:42:17]1017 (14) - 77093643461234 [19:42:17]1041 (16) - 0000000000871754 [19:42:17]1040 (4) - 191920 [19:42:17]1012 (4) - 26.10.2024 13:13 [19:42:17]1206 (1) - 0 [19:42:17]OFD Sender: Remove packet 191920 [19:42:17]ProducePacketName [19:42:17]name=ofd_packets/00191920 [19:42:17]NVStorageDeleteData [19:42:17]Write to MH i2c: 01 00 00 DD 2F 0C [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 07 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: 01 07 00 DD 2F 00 00 00 00 00 AF 0C CE [19:42:17]RasterBufferAndPrint [19:42:17]line [19:42:17]line [19:42:17]line [19:42:17]line [19:42:17]line [19:42:17]written 0, free lines is 3254 [19:42:17]MH_Cut [19:42:17]Write to MH i2c: D1 01 00 E4 2F 01 E5 [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: D1 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: D1 01 00 [19:42:17]MH_I2C_Read... [19:42:17]Read from MH i2c: D1 01 00 E4 2F 00 E4 [19:42:17]Write to MH i2c: 01 00 00 E5 2F 14 [19:42:17]Write i2c OK [19:42:17]MH_I2C_Read... [19:42:18]OFD Sender: No OFD packet to send [19:42:18]*** Cut start [19:42:18]*** Partial cut [19:42:18]*** CUTSNS_PIN = 1 [19:42:18]*** CUTSNS_PIN = 0 [19:42:19]*** Brake cut motor [19:42:19]Read from MH i2c: 01 [19:42:19]MH_I2C_Read... [19:42:19]*** Stop cut motor [19:42:19]*** Cut end [19:42:19]Read from MH i2c: 01 07 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: 01 07 00 E5 2F 00 00 00 00 00 FF 0F 29 [19:42:19]process_action close_receipt done [19:42:19]requested_data is exist [19:42:19]produce_requested_data [19:42:19]requested_item fm.sn is exist - process it [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 11 00 00 [19:42:19]Write to MH i2c: E2 08 00 E6 2F 80 11 00 00 00 00 00 00 8F [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 17 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 17 00 E6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [19:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:42:19]wFMCommunicate OK [19:42:19]requested_item fd.num is exist - process it [19:42:19]SAM_PROTO_GetFieldsCounters [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 13 00 00 [19:42:19]Write to MH i2c: E2 08 00 E7 2F 80 13 00 00 00 00 00 00 92 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 62 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 62 00 E7 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:42:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_GetFieldsCounters done [19:42:19]requested_item shift.num is exist - process it [19:42:19]requested_item shift.opened is exist - process it [19:42:19]req_shift_opened [19:42:19]FM_GetShiftState [19:42:19]SAM_PROTO_GetShiftState [19:42:19]wFMCommunicate request_size=4 [19:42:19]MH_SAM_APDU [19:42:19]CAPDU: 80 13 01 00 [19:42:19]Write to MH i2c: E2 08 00 E8 2F 80 13 01 00 00 00 00 00 94 [19:42:19]Write i2c OK [19:42:19]MH_I2C_Read... [19:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:19]Read from MH i2c: E2 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0E 00 [19:42:19]MH_I2C_Read... [19:42:19]Read from MH i2c: E2 0E 00 E8 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0D [19:42:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:42:19]wFMCommunicate OK [19:42:19]SAM_PROTO_GetShiftState done [19:42:19]FM_GetShiftState done [19:42:19]req_shift_opened done [19:42:19]requested_item shift.open_date is exist - process it [19:42:19]req_shift_open_date [19:42:19]req_shift_open_date done [19:42:19]produce_requested_data done [19:42:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191920,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:42:19]process_action_free close_receipt [19:42:19]json_value_free [19:42:19]json_value_free done [19:42:19]process_json_proto returns [19:42:19]Send response to host [19:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191920,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:42:19]free response buf [19:42:19]execute_script done [19:42:19]execute_script returns [19:42:19]free content buf [19:42:19]Sock 6.Close socket [19:42:19]Sock 6.Thread stoped [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:10]accept exits with 5 [19:43:10]New connection [19:43:10]New thread 3066817892 created [19:43:10]Thread 3066961252 joined [19:43:10]Waiting for new connection... [19:43:10] Sock 5.Parse request [19:43:10]Sock 5.Check first char [19:43:10]Sock 5.First char is OK [19:43:10]request: POST /json_proto HTTP/1.0 [19:43:10]Method: POST [19:43:10]URL: /json_proto [19:43:10]Method is POST - this is cgi request [19:43:10]url: /json_proto [19:43:10]query_string will be loaded in cgi processing [19:43:10]execute_cgi json_proto POST (null) [19:43:10]execute_cgi path=json_proto method=POST [19:43:10]POST find Content-Length [19:43:10]Host: 172.17.63.131:8080 [19:43:10]Content-Length: 676 [19:43:10]Content-Type: application/json [19:43:10] [19:43:10]POST finish read [19:43:10]Found Content-Length = 676 [19:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:10]execute_script... [19:43: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)31229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:10]POST & json_proto [19:43:10]process_json_proto [19:43:10]json parsed OK: [19:43:10]protocol is kg_v1.0 [19:43:10]action value=close_receipt [19:43:10]process_action close_receipt [19:43:10]cmd_close_receipt [19:43:10]MH_GetDate [19:43:10]Write to MH i2c: F0 00 00 E9 2F 07 [19:43:10]Write i2c OK [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: F0 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: F0 09 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: F0 09 00 E9 2F 00 5F 46 1D 67 22 05 6E 64 32 [19:43:10]GetLastDocTimeStamp 1729971751 [19:43:10]current date 1729971807 [19:43:10]FM_GetShiftState [19:43:10]SAM_PROTO_GetShiftState [19:43:10]wFMCommunicate request_size=4 [19:43:10]MH_SAM_APDU [19:43:10]CAPDU: 80 13 01 00 [19:43:10]Write to MH i2c: E2 08 00 EA 2F 80 13 01 00 00 00 00 00 96 [19:43:10]Write i2c OK [19:43:10]MH_I2C_Read... [19:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:10]Read from MH i2c: E2 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 0E 00 [19:43:10]MH_I2C_Read... [19:43:10]Read from MH i2c: E2 0E 00 EA 2F 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0F [19:43:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:43:10]wFMCommunicate OK [19:43:10]SAM_PROTO_GetShiftState done [19:43:10]FM_GetShiftState done [19:43:10]opened in 1729902770 [19:43:10]opened+sec_in_day 1729989170 [19:43:10]quantity*price = 60009 [19:43:10]sum+1 = 60010 [19:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 284 26.10.2024 19:43 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191921 ФПД: 216405877924462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194327&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191921&fm=216405877924462&tin=02508201610067®Number=0000000000091776&sum=60000 [19:43:12]StoreToDocumentArchive [19:43:12]shift 541 fd 191921 [19:43:12]save to /storage/0541/doc_00191921 [19:43:12]save last doc name /storage/0541/doc_00191921 to /storage/kkm_last_doc_name [19:43:12]save OK [19:43:12]Clear old archive folders... [19:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:12]tlvbuf is 01789F10 [19:43:12]SAM_PROTO_ClearQueue [19:43:12]wFMCommunicate request_size=4 [19:43:12]MH_SAM_APDU [19:43:12]CAPDU: 80 09 00 00 [19:43:12]Write to MH i2c: E2 08 00 F7 2F 80 09 00 00 00 00 00 00 98 [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 F7 2F 00 90 00 9A [19:43:12]RAPDU: 90 00 [19:43:12]wFMCommunicate OK [19:43:12]SAM_PROTO_ClearQueue done [19:43:12]KKMCreateOFDPacket [19:43:12]OFDProtocolAddRootSTLVToBuf [19:43:12]FM_MakeSignedData [19:43:12]FM_MakeSignedData [19:43:12]SAM_PROTO_SignData [19:43:12]wFMCommunicate request_size=4 [19:43:12]MH_SAM_APDU [19:43:12]CAPDU: 80 0D 01 02 [19:43:12]Write to MH i2c: E2 08 00 F8 2F 80 0D 01 02 00 00 00 00 A0 [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 F8 2F 00 90 00 9B [19:43:12]RAPDU: 90 00 [19:43:12]wFMCommunicate OK [19:43:12]wFMCommunicate request_size=255 [19:43:12]MH_SAM_APDU [19:43: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 5F 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 ED 02 00 35 04 06 00 C4 [19:43:12]Write to MH i2c: E2 02 01 F9 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 5F 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 ED 02 00 35 04 06 00 C4 00 00 DA [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 F9 2F 00 90 00 9C [19:43:12]RAPDU: 90 00 [19:43:12]wFMCommunicate OK [19:43:12]wFMCommunicate request_size=10 [19:43:12]MH_SAM_APDU [19:43:12]CAPDU: 80 0D 02 02 05 D1 EB 7B 22 6E [19:43:12]Write to MH i2c: E2 0D 00 FA 2F 80 0D 02 02 05 00 D1 EB 7B 22 6E 00 00 74 [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 03 00 FA 2F 00 90 00 9D [19:43:12]RAPDU: 90 00 [19:43:12]wFMCommunicate OK [19:43:12]wFMCommunicate request_size=4 [19:43:12]MH_SAM_APDU [19:43:12]CAPDU: 80 0D 03 02 [19:43:12]Write to MH i2c: E2 08 00 FB 2F 80 0D 03 02 00 00 00 00 A5 [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 0B 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 0B 00 FB 2F 00 DC 82 8C 60 53 03 35 E1 90 00 5C [19:43:12]RAPDU: DC 82 8C 60 53 03 35 E1 90 00 [19:43:12]wFMCommunicate OK [19:43:12]SAM_PROTO_SignData done [19:43:12]FM_MakeSignedData done [19:43:12]CreateOFDProtocolMessage [19:43:12]wFMCommunicate request_size=4 [19:43:12]MH_SAM_APDU [19:43:12]CAPDU: 80 11 00 00 [19:43:12]Write to MH i2c: E2 08 00 FC 2F 80 11 00 00 00 00 00 00 A5 [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:12]Read from MH i2c: E2 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 17 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: E2 17 00 FC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [19:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:12]wFMCommunicate OK [19:43:12]CreateOFDProtocolMessage done [19:43:12]OFDSenderStorePacket 191921 [19:43:12]StoreOFDPacket docnum=191921 [19:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 A5 07 01 A3 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 5F 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 ED 02 00 35 04 06 00 C4 D1 EB 7B 22 6E DC 82 8C 60 53 03 35 E1 [19:43:12]CheckFolder [19:43:12]dirname=/storage/ofd_packets [19:43:12]CheckFolder done [19:43:12]ProducePacketName [19:43:12]name=ofd_packets/00191921 [19:43:12]NVStorageSaveData ofd_packets/00191921 [19:43:12]File name is /storage/ofd_packets/00191921 [19:43:12]Write 301 bytes [19:43:12]NVStorageSaveData done [19:43:12]OFDSenderStorePacket done [19:43:12]KKMCreateOFDPacket done [19:43:12]NVStorageSaveData kkm_last_timestamp [19:43:12]File name is /storage/kkm_last_timestamp [19:43:12]Write 4 bytes [19:43:12]NVStorageSaveData done [19:43:12]ExternCall_PrintAddStr [19:43:12]wPrintStart [19:43:12]Write to MH i2c: 01 00 00 FD 2F 2C [19:43:12]Write i2c OK [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: 01 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: 01 07 00 [19:43:12]MH_I2C_Read... [19:43:12]Read from MH i2c: 01 07 00 FD 2F 00 00 00 00 00 FF 0F 41 [19:43:12]RasterBufferAndPrint [19:43:12]line Счет N : (1)31229 [19:43:12]line ИНН: 02508201610067 [19:43:12]line Контрольно-Кассовый Чек [19:43:12]line ПРОДАЖА [19:43:12]line ТРК (МРК, ГНК) : 21 [19:43:12]line Товар: 2710124130 [19:43:12]line Аи-92-К-5 [19:43:12]line 8.970 * 66.90 [19:43:12]line = 600.09 [19:43:12]line НДС 12% НСП 1% [19:43:12]line > о реализуемом товаре [19:43:12]line ОКРУГЛЕНИЕ: -0.09 [19:43:12]line ИТОГО: 600.00 [19:43:12]line Внесено: 600.00 [19:43:12]line СДАЧА: 0.00 [19:43:12]line НСП 1% : 5.31 [19:43:12]line НДС 12% : 63.73 [19:43:12]line Наличными: 600.00 [19:43:12]line Безнал.: 0.00 [19:43:12]line Место: АЗС № 170 "Партнер Нефть" [19:43:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:43:12]line СНО: Общий режим [19:43:12]line Чек 284 26.10.2024 19:43 [19:43:12]line Смена: 541 ФФД: 1.0 [19:43:12]line ЗНМ: 0300000110 [19:43:12]line РНМ: 0000000000091776 [19:43:12]line Версия ККМ: 001 [19:43:12]line ФМ: 0000000000871754 [19:43:12]line ФД: 191921 [19:43:12]line ФПД: 216405877924462 [19:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194327&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191921&fm=216405877924462&tin=02508201610067®Number=0000000000091776&sum=60000 [19:43:12]OFD Sender: Processing packet 191921 [packets to send 75, broken 74] [19:43:12]ProducePacketName [19:43:12]name=ofd_packets/00191921 [19:43:12]OFD Sender: To server: pG, [19:43:12]CommunicateWithHost lk.salyk.kg:30040 [19:43:12]ConnectInit lk.salyk.kg [19:43:12]written 0, free lines is 4095 [19:43:13]Connected sock=8 [19:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 02 A5 07 01 A3 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 5F 46 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 ED 02 00 35 04 06 00 C4 D1 EB 7B 22 6E DC 82 8C 60 53 03 35 E1 [19:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D1 AD 47 00 CC 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B1 ED 02 00 F4 03 04 00 29 EB 1C 67 B6 04 01 00 00 C6 2D C8 B1 3F 63 75 C1 [19:43:13]CommunicateWithHost err = 0 [19:43:13]CheckOFDResponse [19:43:13]1017 (14) - 77093643461234 [19:43:13]1041 (16) - 0000000000871754 [19:43:13]1040 (4) - 191921 [19:43:13]1012 (4) - 26.10.2024 13:14 [19:43:13]1206 (1) - 0 [19:43:13]OFD Sender: Remove packet 191921 [19:43:13]ProducePacketName [19:43:13]name=ofd_packets/00191921 [19:43:13]NVStorageDeleteData [19:43:13]Write to MH i2c: 01 00 00 28 30 58 [19:43:13]Write i2c OK [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: 01 [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: 01 07 00 [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: 01 07 00 28 30 00 00 00 00 00 A5 0C 10 [19:43:13]RasterBufferAndPrint [19:43:13]line [19:43:13]line [19:43:13]line [19:43:13]line [19:43:13]line [19:43:13]written 0, free lines is 3242 [19:43:13]MH_Cut [19:43:13]Write to MH i2c: D1 01 00 2F 30 01 31 [19:43:13]Write i2c OK [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: D1 [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: D1 01 00 [19:43:13]MH_I2C_Read... [19:43:13]Read from MH i2c: D1 01 00 2F 30 00 30 [19:43:13]Write to MH i2c: 01 00 00 30 30 60 [19:43:13]Write i2c OK [19:43:13]MH_I2C_Read... [19:43:13]OFD Sender: No OFD packet to send [19:43:14]*** Cut start [19:43:14]*** Partial cut [19:43:14]*** CUTSNS_PIN = 1 [19:43:14]*** CUTSNS_PIN = 0 [19:43:14]*** Brake cut motor [19:43:14]Read from MH i2c: 01 [19:43:14]MH_I2C_Read... [19:43:14]*** Stop cut motor [19:43:14]*** Cut end [19:43:14]Read from MH i2c: 01 07 00 [19:43:14]MH_I2C_Read... [19:43:14]Read from MH i2c: 01 07 00 30 30 00 00 00 00 00 FF 0F 75 [19:43:14]process_action close_receipt done [19:43:14]requested_data is exist [19:43:14]produce_requested_data [19:43:14]requested_item fm.sn is exist - process it [19:43:14]wFMCommunicate request_size=4 [19:43:14]MH_SAM_APDU [19:43:14]CAPDU: 80 11 00 00 [19:43:14]Write to MH i2c: E2 08 00 31 30 80 11 00 00 00 00 00 00 DB [19:43:14]Write i2c OK [19:43:14]MH_I2C_Read... [19:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:14]Read from MH i2c: E2 [19:43:14]MH_I2C_Read... [19:43:14]Read from MH i2c: E2 17 00 [19:43:14]MH_I2C_Read... [19:43:14]Read from MH i2c: E2 17 00 31 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [19:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:43:14]wFMCommunicate OK [19:43:14]requested_item fd.num is exist - process it [19:43:14]SAM_PROTO_GetFieldsCounters [19:43:14]wFMCommunicate request_size=4 [19:43:14]MH_SAM_APDU [19:43:14]CAPDU: 80 13 00 00 [19:43:14]Write to MH i2c: E2 08 00 32 30 80 13 00 00 00 00 00 00 DE [19:43:14]Write i2c OK [19:43:14]MH_I2C_Read... [19:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:15]Read from MH i2c: E2 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 62 00 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 62 00 32 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [19:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:15]wFMCommunicate OK [19:43:15]SAM_PROTO_GetFieldsCounters done [19:43:15]requested_item shift.num is exist - process it [19:43:15]requested_item shift.opened is exist - process it [19:43:15]req_shift_opened [19:43:15]FM_GetShiftState [19:43:15]SAM_PROTO_GetShiftState [19:43:15]wFMCommunicate request_size=4 [19:43:15]MH_SAM_APDU [19:43:15]CAPDU: 80 13 01 00 [19:43:15]Write to MH i2c: E2 08 00 33 30 80 13 01 00 00 00 00 00 E0 [19:43:15]Write i2c OK [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 [19:43:15]MH_I2C_Read... [19:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:15]Read from MH i2c: E2 0E 00 [19:43:15]MH_I2C_Read... [19:43:15]Read from MH i2c: E2 0E 00 33 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 59 [19:43:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:43:15]wFMCommunicate OK [19:43:15]SAM_PROTO_GetShiftState done [19:43:15]FM_GetShiftState done [19:43:15]req_shift_opened done [19:43:15]requested_item shift.open_date is exist - process it [19:43:15]req_shift_open_date [19:43:15]req_shift_open_date done [19:43:15]produce_requested_data done [19:43:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191921,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:43:15]process_action_free close_receipt [19:43:15]json_value_free [19:43:15]json_value_free done [19:43:15]process_json_proto returns [19:43:15]Send response to host [19:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191921,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:43:15]free response buf [19:43:15]execute_script done [19:43:15]execute_script returns [19:43:15]free content buf [19:43:15]Sock 5.Close socket [19:43:15]Sock 5.Thread stoped [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:19]accept exits with 6 [19:49:19]New connection [19:49:19]New thread 3066961252 created [19:49:19]Thread 3066817892 joined [19:49:19]Waiting for new connection... [19:49:19] Sock 6.Parse request [19:49:19]Sock 6.Check first char [19:49:19]Sock 6.First char is OK [19:49:19]request: POST /json_proto HTTP/1.0 [19:49:19]Method: POST [19:49:19]URL: /json_proto [19:49:19]Method is POST - this is cgi request [19:49:19]url: /json_proto [19:49:19]query_string will be loaded in cgi processing [19:49:19]execute_cgi json_proto POST (null) [19:49:19]execute_cgi path=json_proto method=POST [19:49:19]POST find Content-Length [19:49:19]Host: 172.17.63.131:8080 [19:49:19]Content-Length: 676 [19:49:19]Content-Type: application/json [19:49:19] [19:49:19]POST finish read [19:49:19]Found Content-Length = 676 [19:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:19]execute_script... [19:49: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)31230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:19]POST & json_proto [19:49:19]process_json_proto [19:49:19]json parsed OK: [19:49:19]protocol is kg_v1.0 [19:49:19]action value=close_receipt [19:49:19]process_action close_receipt [19:49:19]cmd_close_receipt [19:49:19]MH_GetDate [19:49:19]Write to MH i2c: F0 00 00 34 30 53 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: F0 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: F0 09 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: F0 09 00 34 30 00 CF 47 1D 67 22 05 6E 64 EF [19:49:19]GetLastDocTimeStamp 1729971807 [19:49:19]current date 1729972175 [19:49:19]FM_GetShiftState [19:49:19]SAM_PROTO_GetShiftState [19:49:19]wFMCommunicate request_size=4 [19:49:19]MH_SAM_APDU [19:49:19]CAPDU: 80 13 01 00 [19:49:19]Write to MH i2c: E2 08 00 35 30 80 13 01 00 00 00 00 00 E2 [19:49:19]Write i2c OK [19:49:19]MH_I2C_Read... [19:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:19]Read from MH i2c: E2 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0E 00 [19:49:19]MH_I2C_Read... [19:49:19]Read from MH i2c: E2 0E 00 35 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5B [19:49:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:49:19]wFMCommunicate OK [19:49:19]SAM_PROTO_GetShiftState done [19:49:19]FM_GetShiftState done [19:49:19]opened in 1729902770 [19:49:19]opened+sec_in_day 1729989170 [19:49:19]quantity*price = 30038 [19:49:19]sum+1 = 30039 [19:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 285 26.10.2024 19:49 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191922 ФПД: 214878665534392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191922&fm=214878665534392&tin=02508201610067®Number=0000000000091776&sum=30000 [19:49:20]StoreToDocumentArchive [19:49:20]shift 541 fd 191922 [19:49:20]save to /storage/0541/doc_00191922 [19:49:20]save last doc name /storage/0541/doc_00191922 to /storage/kkm_last_doc_name [19:49:20]save OK [19:49:20]Clear old archive folders... [19:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:20]tlvbuf is 01609400 [19:49:20]SAM_PROTO_ClearQueue [19:49:20]wFMCommunicate request_size=4 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 09 00 00 [19:49:20]Write to MH i2c: E2 08 00 42 30 80 09 00 00 00 00 00 00 E4 [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 03 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 03 00 42 30 00 90 00 E6 [19:49:20]RAPDU: 90 00 [19:49:20]wFMCommunicate OK [19:49:20]SAM_PROTO_ClearQueue done [19:49:20]KKMCreateOFDPacket [19:49:20]OFDProtocolAddRootSTLVToBuf [19:49:20]FM_MakeSignedData [19:49:20]FM_MakeSignedData [19:49:20]SAM_PROTO_SignData [19:49:20]wFMCommunicate request_size=4 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 0D 01 02 [19:49:20]Write to MH i2c: E2 08 00 43 30 80 0D 01 02 00 00 00 00 EC [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:20]Read from MH i2c: E2 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 03 00 [19:49:20]MH_I2C_Read... [19:49:20]Read from MH i2c: E2 03 00 43 30 00 90 00 E7 [19:49:20]RAPDU: 90 00 [19:49:20]wFMCommunicate OK [19:49:20]wFMCommunicate request_size=255 [19:49:20]MH_SAM_APDU [19:49:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 CF 47 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 ED 02 00 35 04 06 00 C3 [19:49:20]Write to MH i2c: E2 02 01 44 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 CF 47 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 ED 02 00 35 04 06 00 C3 00 00 AF [19:49:20]Write i2c OK [19:49:20]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 44 30 00 90 00 E8 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=10 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 02 02 05 6E 56 87 6B B8 [19:49:21]Write to MH i2c: E2 0D 00 45 30 80 0D 02 02 05 00 6E 56 87 6B B8 00 00 67 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 03 00 45 30 00 90 00 E9 [19:49:21]RAPDU: 90 00 [19:49:21]wFMCommunicate OK [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 0D 03 02 [19:49:21]Write to MH i2c: E2 08 00 46 30 80 0D 03 02 00 00 00 00 F1 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0B 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 0B 00 46 30 00 F2 58 42 DE B0 59 E2 EC 90 00 33 [19:49:21]RAPDU: F2 58 42 DE B0 59 E2 EC 90 00 [19:49:21]wFMCommunicate OK [19:49:21]SAM_PROTO_SignData done [19:49:21]FM_MakeSignedData done [19:49:21]CreateOFDProtocolMessage [19:49:21]wFMCommunicate request_size=4 [19:49:21]MH_SAM_APDU [19:49:21]CAPDU: 80 11 00 00 [19:49:21]Write to MH i2c: E2 08 00 47 30 80 11 00 00 00 00 00 00 F1 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:21]Read from MH i2c: E2 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 17 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: E2 17 00 47 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [19:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:49:21]wFMCommunicate OK [19:49:21]CreateOFDProtocolMessage done [19:49:21]OFDSenderStorePacket 191922 [19:49:21]StoreOFDPacket docnum=191922 [19:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 AC 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 CF 47 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 ED 02 00 35 04 06 00 C3 6E 56 87 6B B8 F2 58 42 DE B0 59 E2 EC [19:49:21]CheckFolder [19:49:21]dirname=/storage/ofd_packets [19:49:21]CheckFolder done [19:49:21]ProducePacketName [19:49:21]name=ofd_packets/00191922 [19:49:21]NVStorageSaveData ofd_packets/00191922 [19:49:21]File name is /storage/ofd_packets/00191922 [19:49:21]Write 301 bytes [19:49:21]NVStorageSaveData done [19:49:21]OFDSenderStorePacket done [19:49:21]KKMCreateOFDPacket done [19:49:21]NVStorageSaveData kkm_last_timestamp [19:49:21]File name is /storage/kkm_last_timestamp [19:49:21]Write 4 bytes [19:49:21]NVStorageSaveData done [19:49:21]ExternCall_PrintAddStr [19:49:21]wPrintStart [19:49:21]Write to MH i2c: 01 00 00 48 30 78 [19:49:21]Write i2c OK [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 07 00 [19:49:21]MH_I2C_Read... [19:49:21]Read from MH i2c: 01 07 00 48 30 00 00 00 00 00 FF 0F 8D [19:49:21]RasterBufferAndPrint [19:49:21]line Счет N : (1)31230 [19:49:21]line ИНН: 02508201610067 [19:49:21]line Контрольно-Кассовый Чек [19:49:21]line ПРОДАЖА [19:49:21]line ТРК (МРК, ГНК) : 21 [19:49:21]line Товар: 2710124130 [19:49:21]line Аи-92-К-5 [19:49:21]line 4.490 * 66.90 [19:49:21]line = 300.38 [19:49:21]line НДС 12% НСП 1% [19:49:21]line > о реализуемом товаре [19:49:21]line ОКРУГЛЕНИЕ: -0.38 [19:49:21]line ИТОГО: 300.00 [19:49:21]line Внесено: 300.00 [19:49:21]line СДАЧА: 0.00 [19:49:21]line НСП 1% : 2.66 [19:49:21]line НДС 12% : 31.90 [19:49:21]line Наличными: 300.00 [19:49:21]line Безнал.: 0.00 [19:49:21]line Место: АЗС № 170 "Партнер Нефть" [19:49:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:49:21]line СНО: Общий режим [19:49:21]line Чек 285 26.10.2024 19:49 [19:49:21]line Смена: 541 ФФД: 1.0 [19:49:21]line ЗНМ: 0300000110 [19:49:21]line РНМ: 0000000000091776 [19:49:21]line Версия ККМ: 001 [19:49:21]line ФМ: 0000000000871754 [19:49:21]line ФД: 191922 [19:49:21]line ФПД: 214878665534392 [19:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T194935&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191922&fm=214878665534392&tin=02508201610067®Number=0000000000091776&sum=30000 [19:49:21]OFD Sender: Processing packet 191922 [packets to send 75, broken 74] [19:49:21]ProducePacketName [19:49:21]name=ofd_packets/00191922 [19:49:21]OFD Sender: To server: pG, [19:49:21]CommunicateWithHost lk.salyk.kg:30040 [19:49:21]ConnectInit lk.salyk.kg [19:49:21]written 0, free lines is 4095 [19:49:21]Connected sock=8 [19:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 45 AC 07 01 4A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 CF 47 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 ED 02 00 35 04 06 00 C3 6E 56 87 6B B8 F2 58 42 DE B0 59 E2 EC [19:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 A1 78 47 00 6B 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B2 ED 02 00 F4 03 04 00 9A EC 1C 67 B6 04 01 00 00 D1 11 8E B5 31 4F BE 0A [19:49:22]CommunicateWithHost err = 0 [19:49:22]CheckOFDResponse [19:49:22]1017 (14) - 77093643461234 [19:49:22]1041 (16) - 0000000000871754 [19:49:22]1040 (4) - 191922 [19:49:22]1012 (4) - 26.10.2024 13:20 [19:49:22]1206 (1) - 0 [19:49:22]OFD Sender: Remove packet 191922 [19:49:22]ProducePacketName [19:49:22]name=ofd_packets/00191922 [19:49:22]NVStorageDeleteData [19:49:22]Write to MH i2c: 01 00 00 73 30 A3 [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 B0 0C 66 [19:49:22]RasterBufferAndPrint [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]line [19:49:22]written 0, free lines is 3256 [19:49:22]MH_Cut [19:49:22]Write to MH i2c: D1 01 00 7A 30 01 7C [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 01 00 [19:49:22]MH_I2C_Read... [19:49:22]Read from MH i2c: D1 01 00 7A 30 00 7B [19:49:22]Write to MH i2c: 01 00 00 7B 30 AB [19:49:22]Write i2c OK [19:49:22]MH_I2C_Read... [19:49:22]OFD Sender: No OFD packet to send [19:49:23]*** Cut start [19:49:23]*** Partial cut [19:49:23]*** CUTSNS_PIN = 1 [19:49:23]*** CUTSNS_PIN = 0 [19:49:23]*** Brake cut motor [19:49:23]Read from MH i2c: 01 [19:49:23]MH_I2C_Read... [19:49:23]*** Stop cut motor [19:49:23]*** Cut end [19:49:23]Read from MH i2c: 01 07 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: 01 07 00 7B 30 00 00 00 00 00 FF 0F C0 [19:49:23]process_action close_receipt done [19:49:23]requested_data is exist [19:49:23]produce_requested_data [19:49:23]requested_item fm.sn is exist - process it [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 11 00 00 [19:49:23]Write to MH i2c: E2 08 00 7C 30 80 11 00 00 00 00 00 00 26 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 17 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 17 00 7C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [19:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:49:23]wFMCommunicate OK [19:49:23]requested_item fd.num is exist - process it [19:49:23]SAM_PROTO_GetFieldsCounters [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 13 00 00 [19:49:23]Write to MH i2c: E2 08 00 7D 30 80 13 00 00 00 00 00 00 29 [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 62 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 62 00 7D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [19:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:23]wFMCommunicate OK [19:49:23]SAM_PROTO_GetFieldsCounters done [19:49:23]requested_item shift.num is exist - process it [19:49:23]requested_item shift.opened is exist - process it [19:49:23]req_shift_opened [19:49:23]FM_GetShiftState [19:49:23]SAM_PROTO_GetShiftState [19:49:23]wFMCommunicate request_size=4 [19:49:23]MH_SAM_APDU [19:49:23]CAPDU: 80 13 01 00 [19:49:23]Write to MH i2c: E2 08 00 7E 30 80 13 01 00 00 00 00 00 2B [19:49:23]Write i2c OK [19:49:23]MH_I2C_Read... [19:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:23]Read from MH i2c: E2 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 0E 00 [19:49:23]MH_I2C_Read... [19:49:23]Read from MH i2c: E2 0E 00 7E 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A4 [19:49:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:49:23]wFMCommunicate OK [19:49:23]SAM_PROTO_GetShiftState done [19:49:23]FM_GetShiftState done [19:49:23]req_shift_opened done [19:49:23]requested_item shift.open_date is exist - process it [19:49:23]req_shift_open_date [19:49:23]req_shift_open_date done [19:49:23]produce_requested_data done [19:49:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191922,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:49:23]process_action_free close_receipt [19:49:23]json_value_free [19:49:23]json_value_free done [19:49:23]process_json_proto returns [19:49:23]Send response to host [19:49:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191922,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:49:23]free response buf [19:49:23]execute_script done [19:49:23]execute_script returns [19:49:23]free content buf [19:49:23]Sock 6.Close socket [19:49:23]Sock 6.Thread stoped [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:33]accept exits with 5 [19:50:33]New connection [19:50:33]New thread 3066817892 created [19:50:33]Thread 3066961252 joined [19:50:33]Waiting for new connection... [19:50:33] Sock 5.Parse request [19:50:33]Sock 5.Check first char [19:50:33]Sock 5.First char is OK [19:50:33]request: POST /json_proto HTTP/1.0 [19:50:33]Method: POST [19:50:33]URL: /json_proto [19:50:33]Method is POST - this is cgi request [19:50:33]url: /json_proto [19:50:33]query_string will be loaded in cgi processing [19:50:33]execute_cgi json_proto POST (null) [19:50:33]execute_cgi path=json_proto method=POST [19:50:33]POST find Content-Length [19:50:33]Host: 172.17.63.131:8080 [19:50:33]Content-Length: 676 [19:50:33]Content-Type: application/json [19:50:33] [19:50:33]POST finish read [19:50:33]Found Content-Length = 676 [19:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:33]execute_script... [19:50:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:33]POST & json_proto [19:50:33]process_json_proto [19:50:33]json parsed OK: [19:50:33]protocol is kg_v1.0 [19:50:33]action value=close_receipt [19:50:33]process_action close_receipt [19:50:33]cmd_close_receipt [19:50:33]MH_GetDate [19:50:33]Write to MH i2c: F0 00 00 7F 30 9E [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: F0 09 00 7F 30 00 19 48 1D 67 22 05 6E 64 85 [19:50:33]GetLastDocTimeStamp 1729972175 [19:50:33]current date 1729972249 [19:50:33]FM_GetShiftState [19:50:33]SAM_PROTO_GetShiftState [19:50:33]wFMCommunicate request_size=4 [19:50:33]MH_SAM_APDU [19:50:33]CAPDU: 80 13 01 00 [19:50:33]Write to MH i2c: E2 08 00 80 30 80 13 01 00 00 00 00 00 2D [19:50:33]Write i2c OK [19:50:33]MH_I2C_Read... [19:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:33]Read from MH i2c: E2 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 0E 00 [19:50:33]MH_I2C_Read... [19:50:33]Read from MH i2c: E2 0E 00 80 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A6 [19:50:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:50:33]wFMCommunicate OK [19:50:33]SAM_PROTO_GetShiftState done [19:50:33]FM_GetShiftState done [19:50:33]opened in 1729902770 [19:50:33]opened+sec_in_day 1729989170 [19:50:33]quantity*price = 22010 [19:50:33]sum+1 = 22011 [19:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 286 26.10.2024 19:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191923 ФПД: 278732041842705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191923&fm=278732041842705&tin=02508201610067®Number=0000000000091776&sum=22000 [19:50:34]StoreToDocumentArchive [19:50:34]shift 541 fd 191923 [19:50:34]save to /storage/0541/doc_00191923 [19:50:34]save last doc name /storage/0541/doc_00191923 to /storage/kkm_last_doc_name [19:50:34]save OK [19:50:34]Clear old archive folders... [19:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:50:34]tlvbuf is 01A50BE0 [19:50:34]SAM_PROTO_ClearQueue [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 09 00 00 [19:50:34]Write to MH i2c: E2 08 00 8D 30 80 09 00 00 00 00 00 00 2F [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]SAM_PROTO_ClearQueue done [19:50:34]KKMCreateOFDPacket [19:50:34]OFDProtocolAddRootSTLVToBuf [19:50:34]FM_MakeSignedData [19:50:34]FM_MakeSignedData [19:50:34]SAM_PROTO_SignData [19:50:34]wFMCommunicate request_size=4 [19:50:34]MH_SAM_APDU [19:50:34]CAPDU: 80 0D 01 02 [19:50:34]Write to MH i2c: E2 08 00 8E 30 80 0D 01 02 00 00 00 00 37 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:34]Read from MH i2c: E2 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 [19:50:34]MH_I2C_Read... [19:50:34]Read from MH i2c: E2 03 00 8E 30 00 90 00 32 [19:50:34]RAPDU: 90 00 [19:50:34]wFMCommunicate OK [19:50:34]wFMCommunicate request_size=255 [19:50:34]MH_SAM_APDU [19:50: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 ED 02 00 35 04 06 00 FD [19:50:34]Write to MH i2c: E2 02 01 8F 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 ED 02 00 35 04 06 00 FD 00 00 F0 [19:50:34]Write i2c OK [19:50:34]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 8F 30 00 90 00 33 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=10 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 02 02 05 81 5C 57 70 11 [19:50:35]Write to MH i2c: E2 0D 00 90 30 80 0D 02 02 05 00 81 5C 57 70 11 00 00 F9 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 03 00 90 30 00 90 00 34 [19:50:35]RAPDU: 90 00 [19:50:35]wFMCommunicate OK [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 0D 03 02 [19:50:35]Write to MH i2c: E2 08 00 91 30 80 0D 03 02 00 00 00 00 3C [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 0B 00 91 30 00 26 5B E7 D7 1E B1 11 F1 90 00 4D [19:50:35]RAPDU: 26 5B E7 D7 1E B1 11 F1 90 00 [19:50:35]wFMCommunicate OK [19:50:35]SAM_PROTO_SignData done [19:50:35]FM_MakeSignedData done [19:50:35]CreateOFDProtocolMessage [19:50:35]wFMCommunicate request_size=4 [19:50:35]MH_SAM_APDU [19:50:35]CAPDU: 80 11 00 00 [19:50:35]Write to MH i2c: E2 08 00 92 30 80 11 00 00 00 00 00 00 3C [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:35]Read from MH i2c: E2 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: E2 17 00 92 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [19:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:50:35]wFMCommunicate OK [19:50:35]CreateOFDProtocolMessage done [19:50:35]OFDSenderStorePacket 191923 [19:50:35]StoreOFDPacket docnum=191923 [19:50:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 64 07 01 59 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 ED 02 00 35 04 06 00 FD 81 5C 57 70 11 26 5B E7 D7 1E B1 11 F1 [19:50:35]CheckFolder [19:50:35]dirname=/storage/ofd_packets [19:50:35]CheckFolder done [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00191923 [19:50:35]NVStorageSaveData ofd_packets/00191923 [19:50:35]File name is /storage/ofd_packets/00191923 [19:50:35]Write 301 bytes [19:50:35]NVStorageSaveData done [19:50:35]OFDSenderStorePacket done [19:50:35]KKMCreateOFDPacket done [19:50:35]NVStorageSaveData kkm_last_timestamp [19:50:35]File name is /storage/kkm_last_timestamp [19:50:35]Write 4 bytes [19:50:35]NVStorageSaveData done [19:50:35]ExternCall_PrintAddStr [19:50:35]wPrintStart [19:50:35]Write to MH i2c: 01 00 00 93 30 C3 [19:50:35]Write i2c OK [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 [19:50:35]MH_I2C_Read... [19:50:35]Read from MH i2c: 01 07 00 93 30 00 00 00 00 00 FF 0F D8 [19:50:35]RasterBufferAndPrint [19:50:35]line Счет N : (1)31231 [19:50:35]line ИНН: 02508201610067 [19:50:35]line Контрольно-Кассовый Чек [19:50:35]line ПРОДАЖА [19:50:35]line ТРК (МРК, ГНК) : 12 [19:50:35]line Товар: 2710124130 [19:50:35]line Аи-92-К-5 [19:50:35]line 3.290 * 66.90 [19:50:35]line = 220.10 [19:50:35]line НДС 12% НСП 1% [19:50:35]line > о реализуемом товаре [19:50:35]line ОКРУГЛЕНИЕ: -0.10 [19:50:35]line ИТОГО: 220.00 [19:50:35]line Внесено: 220.00 [19:50:35]line СДАЧА: 0.00 [19:50:35]line НСП 1% : 1.95 [19:50:35]line НДС 12% : 23.37 [19:50:35]line Наличными: 220.00 [19:50:35]line Безнал.: 0.00 [19:50:35]line Место: АЗС № 170 "Партнер Нефть" [19:50:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:50:35]line СНО: Общий режим [19:50:35]line Чек 286 26.10.2024 19:50 [19:50:35]line Смена: 541 ФФД: 1.0 [19:50:35]line ЗНМ: 0300000110 [19:50:35]line РНМ: 0000000000091776 [19:50:35]line Версия ККМ: 001 [19:50:35]line ФМ: 0000000000871754 [19:50:35]line ФД: 191923 [19:50:35]line ФПД: 278732041842705 [19:50:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195049&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191923&fm=278732041842705&tin=02508201610067®Number=0000000000091776&sum=22000 [19:50:35]OFD Sender: Processing packet 191923 [packets to send 75, broken 74] [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00191923 [19:50:35]OFD Sender: To server: pG, [19:50:35]CommunicateWithHost lk.salyk.kg:30040 [19:50:35]ConnectInit lk.salyk.kg [19:50:35]written 0, free lines is 4095 [19:50:35]Connected sock=8 [19:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B8 64 07 01 59 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 19 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 ED 02 00 35 04 06 00 FD 81 5C 57 70 11 26 5B E7 D7 1E B1 11 F1 [19:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 66 23 47 00 2F 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B3 ED 02 00 F4 03 04 00 E3 EC 1C 67 B6 04 01 00 00 59 7D 69 91 09 8E E3 AA [19:50:35]CommunicateWithHost err = 0 [19:50:35]CheckOFDResponse [19:50:35]1017 (14) - 77093643461234 [19:50:35]1041 (16) - 0000000000871754 [19:50:35]1040 (4) - 191923 [19:50:35]1012 (4) - 26.10.2024 13:21 [19:50:35]1206 (1) - 0 [19:50:35]OFD Sender: Remove packet 191923 [19:50:35]ProducePacketName [19:50:35]name=ofd_packets/00191923 [19:50:35]NVStorageDeleteData [19:50:36]Write to MH i2c: 01 00 00 BE 30 EE [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 07 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: 01 07 00 BE 30 00 00 00 00 00 AE 0C AF [19:50:36]RasterBufferAndPrint [19:50:36]line [19:50:36]line [19:50:36]line [19:50:36]line [19:50:36]line [19:50:36]written 0, free lines is 3252 [19:50:36]MH_Cut [19:50:36]Write to MH i2c: D1 01 00 C5 30 01 C7 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: D1 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: D1 01 00 [19:50:36]MH_I2C_Read... [19:50:36]Read from MH i2c: D1 01 00 C5 30 00 C6 [19:50:36]Write to MH i2c: 01 00 00 C6 30 F6 [19:50:36]Write i2c OK [19:50:36]MH_I2C_Read... [19:50:36]OFD Sender: No OFD packet to send [19:50:36]*** Cut start [19:50:36]*** Partial cut [19:50:36]*** CUTSNS_PIN = 1 [19:50:36]*** CUTSNS_PIN = 0 [19:50:37]*** Brake cut motor [19:50:37]Read from MH i2c: 01 [19:50:37]MH_I2C_Read... [19:50:37]*** Stop cut motor [19:50:37]*** Cut end [19:50:37]Read from MH i2c: 01 07 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: 01 07 00 C6 30 00 00 00 00 00 FF 0F 0B [19:50:37]process_action close_receipt done [19:50:37]requested_data is exist [19:50:37]produce_requested_data [19:50:37]requested_item fm.sn is exist - process it [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 11 00 00 [19:50:37]Write to MH i2c: E2 08 00 C7 30 80 11 00 00 00 00 00 00 71 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 17 00 C7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C4 [19:50:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:50:37]wFMCommunicate OK [19:50:37]requested_item fd.num is exist - process it [19:50:37]SAM_PROTO_GetFieldsCounters [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 00 00 [19:50:37]Write to MH i2c: E2 08 00 C8 30 80 13 00 00 00 00 00 00 74 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 62 00 C8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [19:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetFieldsCounters done [19:50:37]requested_item shift.num is exist - process it [19:50:37]requested_item shift.opened is exist - process it [19:50:37]req_shift_opened [19:50:37]FM_GetShiftState [19:50:37]SAM_PROTO_GetShiftState [19:50:37]wFMCommunicate request_size=4 [19:50:37]MH_SAM_APDU [19:50:37]CAPDU: 80 13 01 00 [19:50:37]Write to MH i2c: E2 08 00 C9 30 80 13 01 00 00 00 00 00 76 [19:50:37]Write i2c OK [19:50:37]MH_I2C_Read... [19:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:37]Read from MH i2c: E2 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 [19:50:37]MH_I2C_Read... [19:50:37]Read from MH i2c: E2 0E 00 C9 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EF [19:50:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:50:37]wFMCommunicate OK [19:50:37]SAM_PROTO_GetShiftState done [19:50:37]FM_GetShiftState done [19:50:37]req_shift_opened done [19:50:37]requested_item shift.open_date is exist - process it [19:50:37]req_shift_open_date [19:50:37]req_shift_open_date done [19:50:37]produce_requested_data done [19:50:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191923,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:50:37]process_action_free close_receipt [19:50:37]json_value_free [19:50:37]json_value_free done [19:50:37]process_json_proto returns [19:50:37]Send response to host [19:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191923,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:50:37]free response buf [19:50:37]execute_script done [19:50:37]execute_script returns [19:50:37]free content buf [19:50:37]Sock 5.Close socket [19:50:37]Sock 5.Thread stoped [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:07]accept exits with 6 [19:52:07]New connection [19:52:07]New thread 3066961252 created [19:52:07]Thread 3066817892 joined [19:52:07]Waiting for new connection... [19:52:07] Sock 6.Parse request [19:52:07]Sock 6.Check first char [19:52:07]Sock 6.First char is OK [19:52:07]request: POST /json_proto HTTP/1.0 [19:52:07]Method: POST [19:52:07]URL: /json_proto [19:52:07]Method is POST - this is cgi request [19:52:07]url: /json_proto [19:52:07]query_string will be loaded in cgi processing [19:52:07]execute_cgi json_proto POST (null) [19:52:07]execute_cgi path=json_proto method=POST [19:52:07]POST find Content-Length [19:52:07]Host: 172.17.63.131:8080 [19:52:07]Content-Length: 676 [19:52:07]Content-Type: application/json [19:52:07] [19:52:07]POST finish read [19:52:07]Found Content-Length = 676 [19:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:07]execute_script... [19: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)31232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:07]POST & json_proto [19:52:07]process_json_proto [19:52:07]json parsed OK: [19:52:07]protocol is kg_v1.0 [19:52:07]action value=close_receipt [19:52:07]process_action close_receipt [19:52:07]cmd_close_receipt [19:52:07]MH_GetDate [19:52:07]Write to MH i2c: F0 00 00 CA 30 E9 [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: F0 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: F0 09 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: F0 09 00 CA 30 00 77 48 1D 67 22 05 6E 64 2E [19:52:07]GetLastDocTimeStamp 1729972249 [19:52:07]current date 1729972343 [19:52:07]FM_GetShiftState [19:52:07]SAM_PROTO_GetShiftState [19:52:07]wFMCommunicate request_size=4 [19:52:07]MH_SAM_APDU [19:52:07]CAPDU: 80 13 01 00 [19:52:07]Write to MH i2c: E2 08 00 CB 30 80 13 01 00 00 00 00 00 78 [19:52:07]Write i2c OK [19:52:07]MH_I2C_Read... [19:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:07]Read from MH i2c: E2 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 0E 00 [19:52:07]MH_I2C_Read... [19:52:07]Read from MH i2c: E2 0E 00 CB 30 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F1 [19:52:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:52:07]wFMCommunicate OK [19:52:07]SAM_PROTO_GetShiftState done [19:52:07]FM_GetShiftState done [19:52:07]opened in 1729902770 [19:52:07]opened+sec_in_day 1729989170 [19:52:07]quantity*price = 50041 [19:52:07]sum+1 = 50042 [19:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 287 26.10.2024 19:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191924 ФПД: 168987844838824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191924&fm=168987844838824&tin=02508201610067®Number=0000000000091776&sum=50000 [19:52:08]StoreToDocumentArchive [19:52:08]shift 541 fd 191924 [19:52:08]save to /storage/0541/doc_00191924 [19:52:08]save last doc name /storage/0541/doc_00191924 to /storage/kkm_last_doc_name [19:52:08]save OK [19:52:08]Clear old archive folders... [19:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:08]tlvbuf is 01960C70 [19:52:08]SAM_PROTO_ClearQueue [19:52:08]wFMCommunicate request_size=4 [19:52:08]MH_SAM_APDU [19:52:08]CAPDU: 80 09 00 00 [19:52:08]Write to MH i2c: E2 08 00 D8 30 80 09 00 00 00 00 00 00 7A [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:08]Read from MH i2c: E2 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 03 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 03 00 D8 30 00 90 00 7C [19:52:08]RAPDU: 90 00 [19:52:08]wFMCommunicate OK [19:52:08]SAM_PROTO_ClearQueue done [19:52:08]KKMCreateOFDPacket [19:52:08]OFDProtocolAddRootSTLVToBuf [19:52:08]FM_MakeSignedData [19:52:08]FM_MakeSignedData [19:52:08]SAM_PROTO_SignData [19:52:08]wFMCommunicate request_size=4 [19:52:08]MH_SAM_APDU [19:52:08]CAPDU: 80 0D 01 02 [19:52:08]Write to MH i2c: E2 08 00 D9 30 80 0D 01 02 00 00 00 00 82 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:08]Read from MH i2c: E2 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 03 00 [19:52:08]MH_I2C_Read... [19:52:08]Read from MH i2c: E2 03 00 D9 30 00 90 00 7D [19:52:08]RAPDU: 90 00 [19:52:08]wFMCommunicate OK [19:52:08]wFMCommunicate request_size=255 [19:52:08]MH_SAM_APDU [19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 77 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 ED 02 00 35 04 06 00 99 [19:52:08]Write to MH i2c: E2 02 01 DA 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 77 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 ED 02 00 35 04 06 00 99 00 00 D4 [19:52:08]Write i2c OK [19:52:08]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 DA 30 00 90 00 7E [19:52:09]RAPDU: 90 00 [19:52:09]wFMCommunicate OK [19:52:09]wFMCommunicate request_size=10 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 0D 02 02 05 B1 8C 76 85 A8 [19:52:09]Write to MH i2c: E2 0D 00 DB 30 80 0D 02 02 05 00 B1 8C 76 85 A8 00 00 6F [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [19:52:09]RAPDU: 90 00 [19:52:09]wFMCommunicate OK [19:52:09]wFMCommunicate request_size=4 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 0D 03 02 [19:52:09]Write to MH i2c: E2 08 00 DC 30 80 0D 03 02 00 00 00 00 87 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 0B 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 0B 00 DC 30 00 EC 7E 5C EB 98 81 AE CF 90 00 CF [19:52:09]RAPDU: EC 7E 5C EB 98 81 AE CF 90 00 [19:52:09]wFMCommunicate OK [19:52:09]SAM_PROTO_SignData done [19:52:09]FM_MakeSignedData done [19:52:09]CreateOFDProtocolMessage [19:52:09]wFMCommunicate request_size=4 [19:52:09]MH_SAM_APDU [19:52:09]CAPDU: 80 11 00 00 [19:52:09]Write to MH i2c: E2 08 00 DD 30 80 11 00 00 00 00 00 00 87 [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:09]Read from MH i2c: E2 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 17 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: E2 17 00 DD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DA [19:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:52:09]wFMCommunicate OK [19:52:09]CreateOFDProtocolMessage done [19:52:09]OFDSenderStorePacket 191924 [19:52:09]StoreOFDPacket docnum=191924 [19:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B0 AA 07 01 E1 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 77 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 ED 02 00 35 04 06 00 99 B1 8C 76 85 A8 EC 7E 5C EB 98 81 AE CF [19:52:09]CheckFolder [19:52:09]dirname=/storage/ofd_packets [19:52:09]CheckFolder done [19:52:09]ProducePacketName [19:52:09]name=ofd_packets/00191924 [19:52:09]NVStorageSaveData ofd_packets/00191924 [19:52:09]File name is /storage/ofd_packets/00191924 [19:52:09]Write 301 bytes [19:52:09]NVStorageSaveData done [19:52:09]OFDSenderStorePacket done [19:52:09]KKMCreateOFDPacket done [19:52:09]NVStorageSaveData kkm_last_timestamp [19:52:09]File name is /storage/kkm_last_timestamp [19:52:09]Write 4 bytes [19:52:09]NVStorageSaveData done [19:52:09]ExternCall_PrintAddStr [19:52:09]wPrintStart [19:52:09]Write to MH i2c: 01 00 00 DE 30 0E [19:52:09]Write i2c OK [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: 01 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: 01 07 00 [19:52:09]MH_I2C_Read... [19:52:09]Read from MH i2c: 01 07 00 DE 30 00 00 00 00 00 FF 0F 23 [19:52:09]RasterBufferAndPrint [19:52:09]line Счет N : (1)31232 [19:52:09]line ИНН: 02508201610067 [19:52:09]line Контрольно-Кассовый Чек [19:52:09]line ПРОДАЖА [19:52:09]line ТРК (МРК, ГНК) : 21 [19:52:09]line Товар: 2710124130 [19:52:09]line Аи-92-К-5 [19:52:09]line 7.480 * 66.90 [19:52:09]line = 500.41 [19:52:09]line НДС 12% НСП 1% [19:52:09]line > о реализуемом товаре [19:52:09]line ОКРУГЛЕНИЕ: -0.41 [19:52:09]line ИТОГО: 500.00 [19:52:09]line Внесено: 500.00 [19:52:09]line СДАЧА: 0.00 [19:52:09]line НСП 1% : 4.43 [19:52:09]line НДС 12% : 53.14 [19:52:09]line Наличными: 500.00 [19:52:09]line Безнал.: 0.00 [19:52:09]line Место: АЗС № 170 "Партнер Нефть" [19:52:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:52:09]line СНО: Общий режим [19:52:09]line Чек 287 26.10.2024 19:52 [19:52:09]line Смена: 541 ФФД: 1.0 [19:52:09]line ЗНМ: 0300000110 [19:52:09]line РНМ: 0000000000091776 [19:52:09]line Версия ККМ: 001 [19:52:09]line ФМ: 0000000000871754 [19:52:09]line ФД: 191924 [19:52:09]line ФПД: 168987844838824 [19:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195223&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191924&fm=168987844838824&tin=02508201610067®Number=0000000000091776&sum=50000 [19:52:09]OFD Sender: Processing packet 191924 [packets to send 75, broken 74] [19:52:09]ProducePacketName [19:52:09]name=ofd_packets/00191924 [19:52:09]OFD Sender: To server: pG, [19:52:09]CommunicateWithHost lk.salyk.kg:30040 [19:52:09]ConnectInit lk.salyk.kg [19:52:09]written 0, free lines is 4095 [19:52:09]Connected sock=5 [19: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 31 37 35 34 0F 01 00 00 B0 AA 07 01 E1 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 77 48 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 ED 02 00 35 04 06 00 99 B1 8C 76 85 A8 EC 7E 5C EB 98 81 AE CF [19:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 84 16 47 00 69 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B4 ED 02 00 F4 03 04 00 42 ED 1C 67 B6 04 01 00 00 FF 84 5E 59 AB 0E 43 74 [19:52:10]CommunicateWithHost err = 0 [19:52:10]CheckOFDResponse [19:52:10]1017 (14) - 77093643461234 [19:52:10]1041 (16) - 0000000000871754 [19:52:10]1040 (4) - 191924 [19:52:10]1012 (4) - 26.10.2024 13:23 [19:52:10]1206 (1) - 0 [19:52:10]OFD Sender: Remove packet 191924 [19:52:10]ProducePacketName [19:52:10]name=ofd_packets/00191924 [19:52:10]NVStorageDeleteData [19:52:10]Write to MH i2c: 01 00 00 09 31 3A [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: 01 07 00 09 31 00 00 00 00 00 A4 0C F1 [19:52:10]RasterBufferAndPrint [19:52:10]line [19:52:10]line [19:52:10]line [19:52:10]line [19:52:10]line [19:52:10]written 0, free lines is 3242 [19:52:10]MH_Cut [19:52:10]Write to MH i2c: D1 01 00 10 31 01 13 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: D1 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: D1 01 00 [19:52:10]MH_I2C_Read... [19:52:10]Read from MH i2c: D1 01 00 10 31 00 12 [19:52:10]Write to MH i2c: 01 00 00 11 31 42 [19:52:10]Write i2c OK [19:52:10]MH_I2C_Read... [19:52:10]OFD Sender: No OFD packet to send [19:52:10]*** Cut start [19:52:10]*** Partial cut [19:52:10]*** CUTSNS_PIN = 1 [19:52:11]*** CUTSNS_PIN = 0 [19:52:11]*** Brake cut motor [19:52:11]Read from MH i2c: 01 [19:52:11]MH_I2C_Read... [19:52:11]*** Stop cut motor [19:52:11]*** Cut end [19:52:11]Read from MH i2c: 01 07 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: 01 07 00 11 31 00 00 00 00 00 FF 0F 57 [19:52:11]process_action close_receipt done [19:52:11]requested_data is exist [19:52:11]produce_requested_data [19:52:11]requested_item fm.sn is exist - process it [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 11 00 00 [19:52:11]Write to MH i2c: E2 08 00 12 31 80 11 00 00 00 00 00 00 BD [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 17 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 17 00 12 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [19:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:52:11]wFMCommunicate OK [19:52:11]requested_item fd.num is exist - process it [19:52:11]SAM_PROTO_GetFieldsCounters [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 13 00 00 [19:52:11]Write to MH i2c: E2 08 00 13 31 80 13 00 00 00 00 00 00 C0 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 62 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 62 00 13 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [19: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:11]wFMCommunicate OK [19:52:11]SAM_PROTO_GetFieldsCounters done [19:52:11]requested_item shift.num is exist - process it [19:52:11]requested_item shift.opened is exist - process it [19:52:11]req_shift_opened [19:52:11]FM_GetShiftState [19:52:11]SAM_PROTO_GetShiftState [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 13 01 00 [19:52:11]Write to MH i2c: E2 08 00 14 31 80 13 01 00 00 00 00 00 C2 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0E 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0E 00 14 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3B [19:52:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:52:11]wFMCommunicate OK [19:52:11]SAM_PROTO_GetShiftState done [19:52:11]FM_GetShiftState done [19:52:11]req_shift_opened done [19:52:11]requested_item shift.open_date is exist - process it [19:52:11]req_shift_open_date [19:52:11]req_shift_open_date done [19:52:11]produce_requested_data done [19:52:11]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191924,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:52:11]process_action_free close_receipt [19:52:11]json_value_free [19:52:11]json_value_free done [19:52:11]process_json_proto returns [19:52:11]Send response to host [19:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191924,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:52:11]free response buf [19:52:11]execute_script done [19:52:11]execute_script returns [19:52:11]free content buf [19:52:11]Sock 6.Close socket [19:52:11]Sock 6.Thread stoped [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:04]accept exits with 8 [19:56:04]New connection [19:56:04]New thread 3066817892 created [19:56:04]Thread 3066961252 joined [19:56:04]Waiting for new connection... [19:56:04] Sock 8.Parse request [19:56:04]Sock 8.Check first char [19:56:04]Sock 8.First char is OK [19:56:04]request: POST /json_proto HTTP/1.0 [19:56:04]Method: POST [19:56:04]URL: /json_proto [19:56:04]Method is POST - this is cgi request [19:56:04]url: /json_proto [19:56:04]query_string will be loaded in cgi processing [19:56:04]execute_cgi json_proto POST (null) [19:56:04]execute_cgi path=json_proto method=POST [19:56:04]POST find Content-Length [19:56:04]Host: 172.17.63.131:8080 [19:56:04]Content-Length: 678 [19:56:04]Content-Type: application/json [19:56:04] [19:56:04]POST finish read [19:56:04]Found Content-Length = 678 [19:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31233", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:04]execute_script... [19:56: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)31233", "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" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:04]POST & json_proto [19:56:04]process_json_proto [19:56:04]json parsed OK: [19:56:04]protocol is kg_v1.0 [19:56:04]action value=close_receipt [19:56:04]process_action close_receipt [19:56:04]cmd_close_receipt [19:56:04]MH_GetDate [19:56:04]Write to MH i2c: F0 00 00 15 31 35 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: F0 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: F0 09 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: F0 09 00 15 31 00 64 49 1D 67 22 05 6E 64 68 [19:56:04]GetLastDocTimeStamp 1729972343 [19:56:04]current date 1729972580 [19:56:04]FM_GetShiftState [19:56:04]SAM_PROTO_GetShiftState [19:56:04]wFMCommunicate request_size=4 [19:56:04]MH_SAM_APDU [19:56:04]CAPDU: 80 13 01 00 [19:56:04]Write to MH i2c: E2 08 00 16 31 80 13 01 00 00 00 00 00 C4 [19:56:04]Write i2c OK [19:56:04]MH_I2C_Read... [19:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:04]Read from MH i2c: E2 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0E 00 [19:56:04]MH_I2C_Read... [19:56:04]Read from MH i2c: E2 0E 00 16 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3D [19:56:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:56:04]wFMCommunicate OK [19:56:04]SAM_PROTO_GetShiftState done [19:56:04]FM_GetShiftState done [19:56:04]opened in 1729902770 [19:56:04]opened+sec_in_day 1729989170 [19:56:04]quantity*price = 160020 [19:56:04]sum+1 = 160021 [19:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 288 26.10.2024 19:56 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191925 ФПД: 158337762655992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191925&fm=158337762655992&tin=02508201610067®Number=0000000000091776&sum=160000 [19:56:05]StoreToDocumentArchive [19:56:05]shift 541 fd 191925 [19:56:05]save to /storage/0541/doc_00191925 [19:56:05]save last doc name /storage/0541/doc_00191925 to /storage/kkm_last_doc_name [19:56:05]save OK [19:56:05]Clear old archive folders... [19:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:05]tlvbuf is 01749110 [19:56:05]SAM_PROTO_ClearQueue [19:56:05]wFMCommunicate request_size=4 [19:56:05]MH_SAM_APDU [19:56:05]CAPDU: 80 09 00 00 [19:56:05]Write to MH i2c: E2 08 00 23 31 80 09 00 00 00 00 00 00 C6 [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:05]Read from MH i2c: E2 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 03 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 03 00 23 31 00 90 00 C8 [19:56:05]RAPDU: 90 00 [19:56:05]wFMCommunicate OK [19:56:05]SAM_PROTO_ClearQueue done [19:56:05]KKMCreateOFDPacket [19:56:05]OFDProtocolAddRootSTLVToBuf [19:56:05]FM_MakeSignedData [19:56:05]FM_MakeSignedData [19:56:05]SAM_PROTO_SignData [19:56:05]wFMCommunicate request_size=4 [19:56:05]MH_SAM_APDU [19:56:05]CAPDU: 80 0D 01 02 [19:56:05]Write to MH i2c: E2 08 00 24 31 80 0D 01 02 00 00 00 00 CE [19:56:05]Write i2c OK [19:56:05]MH_I2C_Read... [19:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:05]Read from MH i2c: E2 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 03 00 [19:56:05]MH_I2C_Read... [19:56:05]Read from MH i2c: E2 03 00 24 31 00 90 00 C9 [19:56:05]RAPDU: 90 00 [19:56:05]wFMCommunicate OK [19:56:05]wFMCommunicate request_size=255 [19:56:05]MH_SAM_APDU [19:56: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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 64 49 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 ED 02 00 35 04 06 00 90 01 E2 18 [19:56:06]Write to MH i2c: E2 02 01 25 31 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 64 49 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 ED 02 00 35 04 06 00 90 01 E2 18 00 00 A8 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 03 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 03 00 25 31 00 90 00 CA [19:56:06]RAPDU: 90 00 [19:56:06]wFMCommunicate OK [19:56:06]wFMCommunicate request_size=7 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 0D 02 02 02 FE F8 [19:56:06]Write to MH i2c: E2 0A 00 26 31 80 0D 02 02 02 00 FE F8 00 00 CB [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 03 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 03 00 26 31 00 90 00 CB [19:56:06]RAPDU: 90 00 [19:56:06]wFMCommunicate OK [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 0D 03 02 [19:56:06]Write to MH i2c: E2 08 00 27 31 80 0D 03 02 00 00 00 00 D3 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0B 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 0B 00 27 31 00 07 6D 42 92 6E 2D 8C 30 90 00 73 [19:56:06]RAPDU: 07 6D 42 92 6E 2D 8C 30 90 00 [19:56:06]wFMCommunicate OK [19:56:06]SAM_PROTO_SignData done [19:56:06]FM_MakeSignedData done [19:56:06]CreateOFDProtocolMessage [19:56:06]wFMCommunicate request_size=4 [19:56:06]MH_SAM_APDU [19:56:06]CAPDU: 80 11 00 00 [19:56:06]Write to MH i2c: E2 08 00 28 31 80 11 00 00 00 00 00 00 D3 [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:06]Read from MH i2c: E2 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 17 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: E2 17 00 28 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 26 [19:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:56:06]wFMCommunicate OK [19:56:06]CreateOFDProtocolMessage done [19:56:06]OFDSenderStorePacket 191925 [19:56:06]StoreOFDPacket docnum=191925 [19:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AC F8 04 01 C1 C6 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 64 49 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 ED 02 00 35 04 06 00 90 01 E2 18 FE F8 07 6D 42 92 6E 2D 8C 30 [19:56:06]CheckFolder [19:56:06]dirname=/storage/ofd_packets [19:56:06]CheckFolder done [19:56:06]ProducePacketName [19:56:06]name=ofd_packets/00191925 [19:56:06]NVStorageSaveData ofd_packets/00191925 [19:56:06]File name is /storage/ofd_packets/00191925 [19:56:06]Write 298 bytes [19:56:06]NVStorageSaveData done [19:56:06]OFDSenderStorePacket done [19:56:06]KKMCreateOFDPacket done [19:56:06]NVStorageSaveData kkm_last_timestamp [19:56:06]File name is /storage/kkm_last_timestamp [19:56:06]Write 4 bytes [19:56:06]NVStorageSaveData done [19:56:06]ExternCall_PrintAddStr [19:56:06]wPrintStart [19:56:06]Write to MH i2c: 01 00 00 29 31 5A [19:56:06]Write i2c OK [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: 01 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: 01 07 00 [19:56:06]MH_I2C_Read... [19:56:06]Read from MH i2c: 01 07 00 29 31 00 00 00 00 00 FF 0F 6F [19:56:06]RasterBufferAndPrint [19:56:06]line Счет N : (1)31233 [19:56:06]line ИНН: 02508201610067 [19:56:06]line Контрольно-Кассовый Чек [19:56:06]line ПРОДАЖА [19:56:06]line ТРК (МРК, ГНК) : 22 [19:56:06]line Товар: 2710194210 [19:56:06]line ДТ-К-5 [19:56:06]line 21.000 * 76.20 [19:56:06]line = 1600.20 [19:56:06]line НДС 12% НСП 1% [19:56:06]line > о реализуемом товаре [19:56:06]line ОКРУГЛЕНИЕ: -0.20 [19:56:06]line ИТОГО: 1600.00 [19:56:06]line Внесено: 1600.00 [19:56:06]line СДАЧА: 0.00 [19:56:06]line НСП 1% : 14.16 [19:56:06]line НДС 12% : 169.93 [19:56:06]line Наличными: 1600.00 [19:56:06]line Безнал.: 0.00 [19:56:06]line Место: АЗС № 170 "Партнер Нефть" [19:56:06]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:56:06]line СНО: Общий режим [19:56:06]line Чек 288 26.10.2024 19:56 [19:56:06]line Смена: 541 ФФД: 1.0 [19:56:06]line ЗНМ: 0300000110 [19:56:06]line РНМ: 0000000000091776 [19:56:06]line Версия ККМ: 001 [19:56:06]line ФМ: 0000000000871754 [19:56:06]line ФД: 191925 [19:56:06]line ФПД: 158337762655992 [19:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195620&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191925&fm=158337762655992&tin=02508201610067®Number=0000000000091776&sum=160000 [19:56:06]OFD Sender: Processing packet 191925 [packets to send 75, broken 74] [19:56:06]ProducePacketName [19:56:06]name=ofd_packets/00191925 [19:56:06]OFD Sender: To server: pG, [19:56:06]CommunicateWithHost lk.salyk.kg:30040 [19:56:06]ConnectInit lk.salyk.kg [19:56:06]written 0, free lines is 4095 [19:56:06]Connected sock=6 [19:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 AC F8 04 01 C1 C6 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 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 64 49 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 ED 02 00 35 04 06 00 90 01 E2 18 FE F8 07 6D 42 92 6E 2D 8C 30 [19:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A FB 47 00 1B 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B5 ED 02 00 F4 03 04 00 2F EE 1C 67 B6 04 01 00 00 46 E8 09 BE 60 AD 49 77 [19:56:07]CommunicateWithHost err = 0 [19:56:07]CheckOFDResponse [19:56:07]1017 (14) - 77093643461234 [19:56:07]1041 (16) - 0000000000871754 [19:56:07]1040 (4) - 191925 [19:56:07]1012 (4) - 26.10.2024 13:27 [19:56:07]1206 (1) - 0 [19:56:07]OFD Sender: Remove packet 191925 [19:56:07]ProducePacketName [19:56:07]name=ofd_packets/00191925 [19:56:07]NVStorageDeleteData [19:56:07]Write to MH i2c: 01 00 00 54 31 85 [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 07 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: 01 07 00 54 31 00 00 00 00 00 B5 0C 4D [19:56:07]RasterBufferAndPrint [19:56:07]line [19:56:07]line [19:56:07]line [19:56:07]line [19:56:07]line [19:56:07]written 0, free lines is 3258 [19:56:07]MH_Cut [19:56:07]Write to MH i2c: D1 01 00 5B 31 01 5E [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: D1 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: D1 01 00 [19:56:07]MH_I2C_Read... [19:56:07]Read from MH i2c: D1 01 00 5B 31 00 5D [19:56:07]Write to MH i2c: 01 00 00 5C 31 8D [19:56:07]Write i2c OK [19:56:07]MH_I2C_Read... [19:56:07]OFD Sender: No OFD packet to send [19:56:08]*** Cut start [19:56:08]*** Partial cut [19:56:08]*** CUTSNS_PIN = 1 [19:56:08]*** CUTSNS_PIN = 0 [19:56:08]*** Brake cut motor [19:56:08]Read from MH i2c: 01 [19:56:08]MH_I2C_Read... [19:56:08]*** Stop cut motor [19:56:08]*** Cut end [19:56:08]Read from MH i2c: 01 07 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: 01 07 00 5C 31 00 00 00 00 00 FF 0F A2 [19:56:08]process_action close_receipt done [19:56:08]requested_data is exist [19:56:08]produce_requested_data [19:56:08]requested_item fm.sn is exist - process it [19:56:08]wFMCommunicate request_size=4 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 11 00 00 [19:56:08]Write to MH i2c: E2 08 00 5D 31 80 11 00 00 00 00 00 00 08 [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 17 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 17 00 5D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [19:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:56:08]wFMCommunicate OK [19:56:08]requested_item fd.num is exist - process it [19:56:08]SAM_PROTO_GetFieldsCounters [19:56:08]wFMCommunicate request_size=4 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 13 00 00 [19:56:08]Write to MH i2c: E2 08 00 5E 31 80 13 00 00 00 00 00 00 0B [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 62 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 62 00 5E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [19:56:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:08]wFMCommunicate OK [19:56:08]SAM_PROTO_GetFieldsCounters done [19:56:08]requested_item shift.num is exist - process it [19:56:08]requested_item shift.opened is exist - process it [19:56:08]req_shift_opened [19:56:08]FM_GetShiftState [19:56:08]SAM_PROTO_GetShiftState [19:56:08]wFMCommunicate request_size=4 [19:56:08]MH_SAM_APDU [19:56:08]CAPDU: 80 13 01 00 [19:56:08]Write to MH i2c: E2 08 00 5F 31 80 13 01 00 00 00 00 00 0D [19:56:08]Write i2c OK [19:56:08]MH_I2C_Read... [19:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:08]Read from MH i2c: E2 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 0E 00 [19:56:08]MH_I2C_Read... [19:56:08]Read from MH i2c: E2 0E 00 5F 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 86 [19:56:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:56:08]wFMCommunicate OK [19:56:08]SAM_PROTO_GetShiftState done [19:56:08]FM_GetShiftState done [19:56:08]req_shift_opened done [19:56:08]requested_item shift.open_date is exist - process it [19:56:08]req_shift_open_date [19:56:08]req_shift_open_date done [19:56:08]produce_requested_data done [19:56:08]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191925,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:56:08]process_action_free close_receipt [19:56:08]json_value_free [19:56:08]json_value_free done [19:56:08]process_json_proto returns [19:56:08]Send response to host [19:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191925,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:56:08]free response buf [19:56:08]execute_script done [19:56:08]execute_script returns [19:56:08]free content buf [19:56:08]Sock 8.Close socket [19:56:08]Sock 8.Thread stoped [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:36]accept exits with 5 [19:59:36]New connection [19:59:36]New thread 3066961252 created [19:59:36]Thread 3066817892 joined [19:59:36]Waiting for new connection... [19:59:36] Sock 5.Parse request [19:59:36]Sock 5.Check first char [19:59:36]Sock 5.First char is OK [19:59:36]request: POST /json_proto HTTP/1.0 [19:59:36]Method: POST [19:59:36]URL: /json_proto [19:59:36]Method is POST - this is cgi request [19:59:36]url: /json_proto [19:59:36]query_string will be loaded in cgi processing [19:59:36]execute_cgi json_proto POST (null) [19:59:36]execute_cgi path=json_proto method=POST [19:59:36]POST find Content-Length [19:59:36]Host: 172.17.63.131:8080 [19:59:36]Content-Length: 676 [19:59:36]Content-Type: application/json [19:59:36] [19:59:36]POST finish read [19:59:36]Found Content-Length = 676 [19:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:36]execute_script... [19:59: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)31234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:36]POST & json_proto [19:59:36]process_json_proto [19:59:36]json parsed OK: [19:59:36]protocol is kg_v1.0 [19:59:36]action value=close_receipt [19:59:36]process_action close_receipt [19:59:36]cmd_close_receipt [19:59:36]MH_GetDate [19:59:36]Write to MH i2c: F0 00 00 60 31 80 [19:59:36]Write i2c OK [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: F0 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: F0 09 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: F0 09 00 60 31 00 38 4A 1D 67 22 05 6E 64 88 [19:59:36]GetLastDocTimeStamp 1729972580 [19:59:36]current date 1729972792 [19:59:36]FM_GetShiftState [19:59:36]SAM_PROTO_GetShiftState [19:59:36]wFMCommunicate request_size=4 [19:59:36]MH_SAM_APDU [19:59:36]CAPDU: 80 13 01 00 [19:59:36]Write to MH i2c: E2 08 00 61 31 80 13 01 00 00 00 00 00 0F [19:59:36]Write i2c OK [19:59:36]MH_I2C_Read... [19:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:36]Read from MH i2c: E2 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 0E 00 [19:59:36]MH_I2C_Read... [19:59:36]Read from MH i2c: E2 0E 00 61 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 88 [19:59:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:59:36]wFMCommunicate OK [19:59:36]SAM_PROTO_GetShiftState done [19:59:36]FM_GetShiftState done [19:59:36]opened in 1729902770 [19:59:36]opened+sec_in_day 1729989170 [19:59:36]quantity*price = 30038 [19:59:36]sum+1 = 30039 [19:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 289 26.10.2024 19:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191926 ФПД: 162362744521134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191926&fm=162362744521134&tin=02508201610067®Number=0000000000091776&sum=30000 [19:59:37]StoreToDocumentArchive [19:59:37]shift 541 fd 191926 [19:59:37]save to /storage/0541/doc_00191926 [19:59:37]save last doc name /storage/0541/doc_00191926 to /storage/kkm_last_doc_name [19:59:37]save OK [19:59:37]Clear old archive folders... [19:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:37]tlvbuf is 01614600 [19:59:37]SAM_PROTO_ClearQueue [19:59:37]wFMCommunicate request_size=4 [19:59:37]MH_SAM_APDU [19:59:37]CAPDU: 80 09 00 00 [19:59:37]Write to MH i2c: E2 08 00 6E 31 80 09 00 00 00 00 00 00 11 [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 6E 31 00 90 00 13 [19:59:37]RAPDU: 90 00 [19:59:37]wFMCommunicate OK [19:59:37]SAM_PROTO_ClearQueue done [19:59:37]KKMCreateOFDPacket [19:59:37]OFDProtocolAddRootSTLVToBuf [19:59:37]FM_MakeSignedData [19:59:37]FM_MakeSignedData [19:59:37]SAM_PROTO_SignData [19:59:37]wFMCommunicate request_size=4 [19:59:37]MH_SAM_APDU [19:59:37]CAPDU: 80 0D 01 02 [19:59:37]Write to MH i2c: E2 08 00 6F 31 80 0D 01 02 00 00 00 00 19 [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 6F 31 00 90 00 14 [19:59:37]RAPDU: 90 00 [19:59:37]wFMCommunicate OK [19:59:37]wFMCommunicate request_size=255 [19:59:37]MH_SAM_APDU [19:59: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 38 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 ED 02 00 35 04 06 00 93 [19:59:37]Write to MH i2c: E2 02 01 70 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 38 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 ED 02 00 35 04 06 00 93 00 00 20 [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 70 31 00 90 00 15 [19:59:37]RAPDU: 90 00 [19:59:37]wFMCommunicate OK [19:59:37]wFMCommunicate request_size=10 [19:59:37]MH_SAM_APDU [19:59:37]CAPDU: 80 0D 02 02 05 AB 05 B6 41 AE [19:59:37]Write to MH i2c: E2 0D 00 71 31 80 0D 02 02 05 00 AB 05 B6 41 AE 00 00 7B [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 03 00 71 31 00 90 00 16 [19:59:37]RAPDU: 90 00 [19:59:37]wFMCommunicate OK [19:59:37]wFMCommunicate request_size=4 [19:59:37]MH_SAM_APDU [19:59:37]CAPDU: 80 0D 03 02 [19:59:37]Write to MH i2c: E2 08 00 72 31 80 0D 03 02 00 00 00 00 1E [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]OFD Sender: No OFD packet to send [19:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 0B 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 0B 00 72 31 00 93 52 52 B8 D0 02 57 7A 90 00 B1 [19:59:37]RAPDU: 93 52 52 B8 D0 02 57 7A 90 00 [19:59:37]wFMCommunicate OK [19:59:37]SAM_PROTO_SignData done [19:59:37]FM_MakeSignedData done [19:59:37]CreateOFDProtocolMessage [19:59:37]wFMCommunicate request_size=4 [19:59:37]MH_SAM_APDU [19:59:37]CAPDU: 80 11 00 00 [19:59:37]Write to MH i2c: E2 08 00 73 31 80 11 00 00 00 00 00 00 1E [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:37]Read from MH i2c: E2 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 17 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: E2 17 00 73 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 71 [19:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:59:37]wFMCommunicate OK [19:59:37]CreateOFDProtocolMessage done [19:59:37]OFDSenderStorePacket 191926 [19:59:37]StoreOFDPacket docnum=191926 [19:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 EC 07 01 7B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 38 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 ED 02 00 35 04 06 00 93 AB 05 B6 41 AE 93 52 52 B8 D0 02 57 7A [19:59:37]CheckFolder [19:59:37]dirname=/storage/ofd_packets [19:59:37]CheckFolder done [19:59:37]ProducePacketName [19:59:37]name=ofd_packets/00191926 [19:59:37]NVStorageSaveData ofd_packets/00191926 [19:59:37]File name is /storage/ofd_packets/00191926 [19:59:37]Write 301 bytes [19:59:37]NVStorageSaveData done [19:59:37]OFDSenderStorePacket done [19:59:37]KKMCreateOFDPacket done [19:59:37]NVStorageSaveData kkm_last_timestamp [19:59:37]File name is /storage/kkm_last_timestamp [19:59:37]Write 4 bytes [19:59:37]NVStorageSaveData done [19:59:37]ExternCall_PrintAddStr [19:59:37]wPrintStart [19:59:37]Write to MH i2c: 01 00 00 74 31 A5 [19:59:37]Write i2c OK [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: 01 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: 01 07 00 [19:59:37]MH_I2C_Read... [19:59:37]Read from MH i2c: 01 07 00 74 31 00 00 00 00 00 FF 0F BA [19:59:37]RasterBufferAndPrint [19:59:37]line Счет N : (1)31234 [19:59:37]line ИНН: 02508201610067 [19:59:37]line Контрольно-Кассовый Чек [19:59:37]line ПРОДАЖА [19:59:37]line ТРК (МРК, ГНК) : 12 [19:59:37]line Товар: 2710124130 [19:59:37]line Аи-92-К-5 [19:59:37]line 4.490 * 66.90 [19:59:37]line = 300.38 [19:59:37]line НДС 12% НСП 1% [19:59:37]line > о реализуемом товаре [19:59:37]line ОКРУГЛЕНИЕ: -0.38 [19:59:37]line ИТОГО: 300.00 [19:59:37]line Внесено: 300.00 [19:59:37]line СДАЧА: 0.00 [19:59:37]line НСП 1% : 2.66 [19:59:37]line НДС 12% : 31.90 [19:59:37]line Наличными: 300.00 [19:59:37]line Безнал.: 0.00 [19:59:37]line Место: АЗС № 170 "Партнер Нефть" [19:59:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [19:59:37]line СНО: Общий режим [19:59:37]line Чек 289 26.10.2024 19:59 [19:59:37]line Смена: 541 ФФД: 1.0 [19:59:37]line ЗНМ: 0300000110 [19:59:37]line РНМ: 0000000000091776 [19:59:37]line Версия ККМ: 001 [19:59:37]line ФМ: 0000000000871754 [19:59:37]line ФД: 191926 [19:59:37]line ФПД: 162362744521134 [19:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T195952&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191926&fm=162362744521134&tin=02508201610067®Number=0000000000091776&sum=30000 [19:59:38]OFD Sender: Processing packet 191926 [packets to send 75, broken 74] [19:59:38]ProducePacketName [19:59:38]name=ofd_packets/00191926 [19:59:38]OFD Sender: To server: pG, [19:59:38]CommunicateWithHost lk.salyk.kg:30040 [19:59:38]ConnectInit lk.salyk.kg [19:59:38]written 0, free lines is 4095 [19:59:38]Connected sock=8 [19:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 B7 EC 07 01 7B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 38 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 ED 02 00 35 04 06 00 93 AB 05 B6 41 AE 93 52 52 B8 D0 02 57 7A [19:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4E A8 47 00 3B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B6 ED 02 00 F4 03 04 00 02 EF 1C 67 B6 04 01 00 00 B4 B1 7E 84 4C 60 EB 92 [19:59:38]CommunicateWithHost err = 0 [19:59:38]CheckOFDResponse [19:59:38]1017 (14) - 77093643461234 [19:59:38]1041 (16) - 0000000000871754 [19:59:38]1040 (4) - 191926 [19:59:38]1012 (4) - 26.10.2024 13:30 [19:59:38]1206 (1) - 0 [19:59:38]OFD Sender: Remove packet 191926 [19:59:38]ProducePacketName [19:59:38]name=ofd_packets/00191926 [19:59:38]NVStorageDeleteData [19:59:38]Write to MH i2c: 01 00 00 9F 31 D0 [19:59:38]Write i2c OK [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: 01 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: 01 07 00 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: 01 07 00 9F 31 00 00 00 00 00 AB 0C 8E [19:59:38]RasterBufferAndPrint [19:59:38]line [19:59:38]line [19:59:38]line [19:59:38]line [19:59:38]line [19:59:38]written 0, free lines is 3248 [19:59:38]MH_Cut [19:59:38]Write to MH i2c: D1 01 00 A6 31 01 A9 [19:59:38]Write i2c OK [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: D1 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: D1 01 00 [19:59:38]MH_I2C_Read... [19:59:38]Read from MH i2c: D1 01 00 A6 31 00 A8 [19:59:38]Write to MH i2c: 01 00 00 A7 31 D8 [19:59:38]Write i2c OK [19:59:38]MH_I2C_Read... [19:59:39]OFD Sender: No OFD packet to send [19:59:39]*** Cut start [19:59:39]*** Partial cut [19:59:39]*** CUTSNS_PIN = 1 [19:59:39]*** CUTSNS_PIN = 0 [19:59:39]*** Brake cut motor [19:59:40]Read from MH i2c: 01 [19:59:40]MH_I2C_Read... [19:59:40]*** Stop cut motor [19:59:40]*** Cut end [19:59:40]Read from MH i2c: 01 07 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: 01 07 00 A7 31 00 00 00 00 00 FF 0F ED [19:59:40]process_action close_receipt done [19:59:40]requested_data is exist [19:59:40]produce_requested_data [19:59:40]requested_item fm.sn is exist - process it [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 11 00 00 [19:59:40]Write to MH i2c: E2 08 00 A8 31 80 11 00 00 00 00 00 00 53 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 17 00 A8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [19:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [19:59:40]wFMCommunicate OK [19:59:40]requested_item fd.num is exist - process it [19:59:40]SAM_PROTO_GetFieldsCounters [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 13 00 00 [19:59:40]Write to MH i2c: E2 08 00 A9 31 80 13 00 00 00 00 00 00 56 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 62 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 62 00 A9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [19:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:40]wFMCommunicate OK [19:59:40]SAM_PROTO_GetFieldsCounters done [19:59:40]requested_item shift.num is exist - process it [19:59:40]requested_item shift.opened is exist - process it [19:59:40]req_shift_opened [19:59:40]FM_GetShiftState [19:59:40]SAM_PROTO_GetShiftState [19:59:40]wFMCommunicate request_size=4 [19:59:40]MH_SAM_APDU [19:59:40]CAPDU: 80 13 01 00 [19:59:40]Write to MH i2c: E2 08 00 AA 31 80 13 01 00 00 00 00 00 58 [19:59:40]Write i2c OK [19:59:40]MH_I2C_Read... [19:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:40]Read from MH i2c: E2 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0E 00 [19:59:40]MH_I2C_Read... [19:59:40]Read from MH i2c: E2 0E 00 AA 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D1 [19:59:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [19:59:40]wFMCommunicate OK [19:59:40]SAM_PROTO_GetShiftState done [19:59:40]FM_GetShiftState done [19:59:40]req_shift_opened done [19:59:40]requested_item shift.open_date is exist - process it [19:59:40]req_shift_open_date [19:59:40]req_shift_open_date done [19:59:40]produce_requested_data done [19:59:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191926,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [19:59:40]process_action_free close_receipt [19:59:40]json_value_free [19:59:40]json_value_free done [19:59:40]process_json_proto returns [19:59:40]Send response to host [19:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191926,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [19:59:40]free response buf [19:59:40]execute_script done [19:59:40]execute_script returns [19:59:40]free content buf [19:59:40]Sock 5.Close socket [19:59:40]Sock 5.Thread stoped [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:41]accept exits with 6 [20:01:41]New connection [20:01:41]New thread 3066817892 created [20:01:41]Thread 3066961252 joined [20:01:41]Waiting for new connection... [20:01:41] Sock 6.Parse request [20:01:41]Sock 6.Check first char [20:01:41]Sock 6.First char is OK [20:01:41]request: POST /json_proto HTTP/1.0 [20:01:41]Method: POST [20:01:41]URL: /json_proto [20:01:41]Method is POST - this is cgi request [20:01:41]url: /json_proto [20:01:41]query_string will be loaded in cgi processing [20:01:41]execute_cgi json_proto POST (null) [20:01:41]execute_cgi path=json_proto method=POST [20:01:41]POST find Content-Length [20:01:41]Host: 172.17.63.131:8080 [20:01:41]Content-Length: 676 [20:01:41]Content-Type: application/json [20:01:41] [20:01:41]POST finish read [20:01:41]Found Content-Length = 676 [20:01:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:41]execute_script... [20:01:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:41]POST & json_proto [20:01:41]process_json_proto [20:01:41]json parsed OK: [20:01:41]protocol is kg_v1.0 [20:01:41]action value=close_receipt [20:01:41]process_action close_receipt [20:01:41]cmd_close_receipt [20:01:41]MH_GetDate [20:01:41]Write to MH i2c: F0 00 00 AB 31 CB [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: F0 09 00 AB 31 00 B5 4A 1D 67 22 05 6E 64 50 [20:01:41]GetLastDocTimeStamp 1729972792 [20:01:41]current date 1729972917 [20:01:41]FM_GetShiftState [20:01:41]SAM_PROTO_GetShiftState [20:01:41]wFMCommunicate request_size=4 [20:01:41]MH_SAM_APDU [20:01:41]CAPDU: 80 13 01 00 [20:01:41]Write to MH i2c: E2 08 00 AC 31 80 13 01 00 00 00 00 00 5A [20:01:41]Write i2c OK [20:01:41]MH_I2C_Read... [20:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:41]Read from MH i2c: E2 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 [20:01:41]MH_I2C_Read... [20:01:41]Read from MH i2c: E2 0E 00 AC 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D3 [20:01:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:01:41]wFMCommunicate OK [20:01:41]SAM_PROTO_GetShiftState done [20:01:41]FM_GetShiftState done [20:01:41]opened in 1729902770 [20:01:41]opened+sec_in_day 1729989170 [20:01:41]quantity*price = 50041 [20:01:41]sum+1 = 50042 [20:01:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 290 26.10.2024 20:01 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191927 ФПД: 151310643456753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200158&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191927&fm=151310643456753&tin=02508201610067®Number=0000000000091776&sum=50000 [20:01:42]StoreToDocumentArchive [20:01:42]shift 541 fd 191927 [20:01:42]save to /storage/0541/doc_00191927 [20:01:42]save last doc name /storage/0541/doc_00191927 to /storage/kkm_last_doc_name [20:01:42]save OK [20:01:42]Clear old archive folders... [20:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:42]tlvbuf is 01960EC0 [20:01:42]SAM_PROTO_ClearQueue [20:01:42]wFMCommunicate request_size=4 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 09 00 00 [20:01:42]Write to MH i2c: E2 08 00 B9 31 80 09 00 00 00 00 00 00 5C [20:01:42]Write i2c OK [20:01:42]MH_I2C_Read... [20:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:42]Read from MH i2c: E2 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 [20:01:42]MH_I2C_Read... [20:01:42]Read from MH i2c: E2 03 00 B9 31 00 90 00 5E [20:01:42]RAPDU: 90 00 [20:01:42]wFMCommunicate OK [20:01:42]SAM_PROTO_ClearQueue done [20:01:42]KKMCreateOFDPacket [20:01:42]OFDProtocolAddRootSTLVToBuf [20:01:42]FM_MakeSignedData [20:01:42]FM_MakeSignedData [20:01:42]SAM_PROTO_SignData [20:01:42]wFMCommunicate request_size=4 [20:01:42]MH_SAM_APDU [20:01:42]CAPDU: 80 0D 01 02 [20:01:42]Write to MH i2c: E2 08 00 BA 31 80 0D 01 02 00 00 00 00 64 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 BA 31 00 90 00 5F [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=255 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 ED 02 00 35 04 06 00 89 [20:01:43]Write to MH i2c: E2 02 01 BB 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 ED 02 00 35 04 06 00 89 00 00 ED [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 BB 31 00 90 00 60 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=10 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 02 02 05 9D C1 27 6A F1 [20:01:43]Write to MH i2c: E2 0D 00 BC 31 80 0D 02 02 05 00 9D C1 27 6A F1 00 00 51 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 03 00 BC 31 00 90 00 61 [20:01:43]RAPDU: 90 00 [20:01:43]wFMCommunicate OK [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 0D 03 02 [20:01:43]Write to MH i2c: E2 08 00 BD 31 80 0D 03 02 00 00 00 00 69 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 0B 00 BD 31 00 59 47 C4 3B 8D 04 92 12 90 00 3E [20:01:43]RAPDU: 59 47 C4 3B 8D 04 92 12 90 00 [20:01:43]wFMCommunicate OK [20:01:43]SAM_PROTO_SignData done [20:01:43]FM_MakeSignedData done [20:01:43]CreateOFDProtocolMessage [20:01:43]wFMCommunicate request_size=4 [20:01:43]MH_SAM_APDU [20:01:43]CAPDU: 80 11 00 00 [20:01:43]Write to MH i2c: E2 08 00 BE 31 80 11 00 00 00 00 00 00 69 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:43]Read from MH i2c: E2 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: E2 17 00 BE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BC [20:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:01:43]wFMCommunicate OK [20:01:43]CreateOFDProtocolMessage done [20:01:43]OFDSenderStorePacket 191927 [20:01:43]StoreOFDPacket docnum=191927 [20:01:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 97 A5 07 01 1D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 ED 02 00 35 04 06 00 89 9D C1 27 6A F1 59 47 C4 3B 8D 04 92 12 [20:01:43]CheckFolder [20:01:43]dirname=/storage/ofd_packets [20:01:43]CheckFolder done [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00191927 [20:01:43]NVStorageSaveData ofd_packets/00191927 [20:01:43]File name is /storage/ofd_packets/00191927 [20:01:43]Write 301 bytes [20:01:43]NVStorageSaveData done [20:01:43]OFDSenderStorePacket done [20:01:43]KKMCreateOFDPacket done [20:01:43]NVStorageSaveData kkm_last_timestamp [20:01:43]File name is /storage/kkm_last_timestamp [20:01:43]Write 4 bytes [20:01:43]NVStorageSaveData done [20:01:43]ExternCall_PrintAddStr [20:01:43]wPrintStart [20:01:43]Write to MH i2c: 01 00 00 BF 31 F0 [20:01:43]Write i2c OK [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 [20:01:43]MH_I2C_Read... [20:01:43]Read from MH i2c: 01 07 00 BF 31 00 00 00 00 00 FF 0F 05 [20:01:43]RasterBufferAndPrint [20:01:43]line Счет N : (1)31235 [20:01:43]line ИНН: 02508201610067 [20:01:43]line Контрольно-Кассовый Чек [20:01:43]line ПРОДАЖА [20:01:43]line ТРК (МРК, ГНК) : 12 [20:01:43]line Товар: 2710124130 [20:01:43]line Аи-92-К-5 [20:01:43]line 7.480 * 66.90 [20:01:43]line = 500.41 [20:01:43]line НДС 12% НСП 1% [20:01:43]line > о реализуемом товаре [20:01:43]line ОКРУГЛЕНИЕ: -0.41 [20:01:43]line ИТОГО: 500.00 [20:01:43]line Внесено: 500.00 [20:01:43]line СДАЧА: 0.00 [20:01:43]line НСП 1% : 4.43 [20:01:43]line НДС 12% : 53.14 [20:01:43]line Наличными: 500.00 [20:01:43]line Безнал.: 0.00 [20:01:43]line Место: АЗС № 170 "Партнер Нефть" [20:01:43]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:01:43]line СНО: Общий режим [20:01:43]line Чек 290 26.10.2024 20:01 [20:01:43]line Смена: 541 ФФД: 1.0 [20:01:43]line ЗНМ: 0300000110 [20:01:43]line РНМ: 0000000000091776 [20:01:43]line Версия ККМ: 001 [20:01:43]line ФМ: 0000000000871754 [20:01:43]line ФД: 191927 [20:01:43]line ФПД: 151310643456753 [20:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200158&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191927&fm=151310643456753&tin=02508201610067®Number=0000000000091776&sum=50000 [20:01:43]OFD Sender: Processing packet 191927 [packets to send 75, broken 74] [20:01:43]ProducePacketName [20:01:43]name=ofd_packets/00191927 [20:01:43]OFD Sender: To server: pG, [20:01:43]CommunicateWithHost lk.salyk.kg:30040 [20:01:43]ConnectInit lk.salyk.kg [20:01:43]written 0, free lines is 4095 [20:01:43]Connected sock=8 [20:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 97 A5 07 01 1D F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 4A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 ED 02 00 35 04 06 00 89 9D C1 27 6A F1 59 47 C4 3B 8D 04 92 12 [20:01:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4C 33 47 00 58 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B7 ED 02 00 F4 03 04 00 80 EF 1C 67 B6 04 01 00 00 99 6A 4C 54 58 BD 11 5F [20:01:44]CommunicateWithHost err = 0 [20:01:44]CheckOFDResponse [20:01:44]1017 (14) - 77093643461234 [20:01:44]1041 (16) - 0000000000871754 [20:01:44]1040 (4) - 191927 [20:01:44]1012 (4) - 26.10.2024 13:32 [20:01:44]1206 (1) - 0 [20:01:44]OFD Sender: Remove packet 191927 [20:01:44]ProducePacketName [20:01:44]name=ofd_packets/00191927 [20:01:44]NVStorageDeleteData [20:01:44]Write to MH i2c: 01 00 00 EA 31 1B [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: 01 07 00 EA 31 00 00 00 00 00 A5 0C D3 [20:01:44]RasterBufferAndPrint [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]line [20:01:44]written 0, free lines is 3245 [20:01:44]MH_Cut [20:01:44]Write to MH i2c: D1 01 00 F1 31 01 F4 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 [20:01:44]MH_I2C_Read... [20:01:44]Read from MH i2c: D1 01 00 F1 31 00 F3 [20:01:44]Write to MH i2c: 01 00 00 F2 31 23 [20:01:44]Write i2c OK [20:01:44]MH_I2C_Read... [20:01:44]OFD Sender: No OFD packet to send [20:01:45]*** Cut start [20:01:45]*** Partial cut [20:01:45]*** CUTSNS_PIN = 1 [20:01:45]*** CUTSNS_PIN = 0 [20:01:45]*** Brake cut motor [20:01:45]Read from MH i2c: 01 [20:01:45]MH_I2C_Read... [20:01:45]*** Stop cut motor [20:01:45]*** Cut end [20:01:45]Read from MH i2c: 01 07 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: 01 07 00 F2 31 00 00 00 00 00 FF 0F 38 [20:01:45]process_action close_receipt done [20:01:45]requested_data is exist [20:01:45]produce_requested_data [20:01:45]requested_item fm.sn is exist - process it [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 11 00 00 [20:01:45]Write to MH i2c: E2 08 00 F3 31 80 11 00 00 00 00 00 00 9E [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 17 00 F3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [20:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:01:45]wFMCommunicate OK [20:01:45]requested_item fd.num is exist - process it [20:01:45]SAM_PROTO_GetFieldsCounters [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 00 00 [20:01:45]Write to MH i2c: E2 08 00 F4 31 80 13 00 00 00 00 00 00 A1 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:45]Read from MH i2c: E2 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 [20:01:45]MH_I2C_Read... [20:01:45]Read from MH i2c: E2 62 00 F4 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [20:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:45]wFMCommunicate OK [20:01:45]SAM_PROTO_GetFieldsCounters done [20:01:45]requested_item shift.num is exist - process it [20:01:45]requested_item shift.opened is exist - process it [20:01:45]req_shift_opened [20:01:45]FM_GetShiftState [20:01:45]SAM_PROTO_GetShiftState [20:01:45]wFMCommunicate request_size=4 [20:01:45]MH_SAM_APDU [20:01:45]CAPDU: 80 13 01 00 [20:01:45]Write to MH i2c: E2 08 00 F5 31 80 13 01 00 00 00 00 00 A3 [20:01:45]Write i2c OK [20:01:45]MH_I2C_Read... [20:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:46]Read from MH i2c: E2 [20:01:46]MH_I2C_Read... [20:01:46]Read from MH i2c: E2 0E 00 [20:01:46]MH_I2C_Read... [20:01:46]Read from MH i2c: E2 0E 00 F5 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1C [20:01:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:01:46]wFMCommunicate OK [20:01:46]SAM_PROTO_GetShiftState done [20:01:46]FM_GetShiftState done [20:01:46]req_shift_opened done [20:01:46]requested_item shift.open_date is exist - process it [20:01:46]req_shift_open_date [20:01:46]req_shift_open_date done [20:01:46]produce_requested_data done [20:01:46]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191927,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:01:46]process_action_free close_receipt [20:01:46]json_value_free [20:01:46]json_value_free done [20:01:46]process_json_proto returns [20:01:46]Send response to host [20:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191927,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:01:46]free response buf [20:01:46]execute_script done [20:01:46]execute_script returns [20:01:46]free content buf [20:01:46]Sock 6.Close socket [20:01:46]Sock 6.Thread stoped [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:56]accept exits with 5 [20:03:56]New connection [20:03:56]New thread 3066961252 created [20:03:56]Thread 3066817892 joined [20:03:56]Waiting for new connection... [20:03:56] Sock 5.Parse request [20:03:56]Sock 5.Check first char [20:03:56]Sock 5.First char is OK [20:03:56]request: POST /json_proto HTTP/1.0 [20:03:56]Method: POST [20:03:56]URL: /json_proto [20:03:56]Method is POST - this is cgi request [20:03:56]url: /json_proto [20:03:56]query_string will be loaded in cgi processing [20:03:56]execute_cgi json_proto POST (null) [20:03:56]execute_cgi path=json_proto method=POST [20:03:56]POST find Content-Length [20:03:56]Host: 172.17.63.131:8080 [20:03:56]Content-Length: 676 [20:03:56]Content-Type: application/json [20:03:56] [20:03:56]POST finish read [20:03:56]Found Content-Length = 676 [20:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:56]execute_script... [20:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:56]POST & json_proto [20:03:56]process_json_proto [20:03:56]json parsed OK: [20:03:56]protocol is kg_v1.0 [20:03:56]action value=close_receipt [20:03:56]process_action close_receipt [20:03:56]cmd_close_receipt [20:03:56]MH_GetDate [20:03:56]Write to MH i2c: F0 00 00 F6 31 16 [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: F0 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: F0 09 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: F0 09 00 F6 31 00 3C 4B 1D 67 22 05 6E 64 23 [20:03:56]GetLastDocTimeStamp 1729972918 [20:03:56]current date 1729973052 [20:03:56]FM_GetShiftState [20:03:56]SAM_PROTO_GetShiftState [20:03:56]wFMCommunicate request_size=4 [20:03:56]MH_SAM_APDU [20:03:56]CAPDU: 80 13 01 00 [20:03:56]Write to MH i2c: E2 08 00 F7 31 80 13 01 00 00 00 00 00 A5 [20:03:56]Write i2c OK [20:03:56]MH_I2C_Read... [20:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:56]Read from MH i2c: E2 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 0E 00 [20:03:56]MH_I2C_Read... [20:03:56]Read from MH i2c: E2 0E 00 F7 31 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1E [20:03:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:03:56]wFMCommunicate OK [20:03:56]SAM_PROTO_GetShiftState done [20:03:56]FM_GetShiftState done [20:03:56]opened in 1729902770 [20:03:56]opened+sec_in_day 1729989170 [20:03:56]quantity*price = 30038 [20:03:56]sum+1 = 30039 [20:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 291 26.10.2024 20:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191928 ФПД: 142056712612167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191928&fm=142056712612167&tin=02508201610067®Number=0000000000091776&sum=30000 [20:03:57]StoreToDocumentArchive [20:03:57]shift 541 fd 191928 [20:03:57]save to /storage/0541/doc_00191928 [20:03:57]save last doc name /storage/0541/doc_00191928 to /storage/kkm_last_doc_name [20:03:57]save OK [20:03:57]Clear old archive folders... [20:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:57]tlvbuf is 01749060 [20:03:57]SAM_PROTO_ClearQueue [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 09 00 00 [20:03:57]Write to MH i2c: E2 08 00 04 32 80 09 00 00 00 00 00 00 A8 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 04 32 00 90 00 AA [20:03:57]RAPDU: 90 00 [20:03:57]wFMCommunicate OK [20:03:57]SAM_PROTO_ClearQueue done [20:03:57]KKMCreateOFDPacket [20:03:57]OFDProtocolAddRootSTLVToBuf [20:03:57]FM_MakeSignedData [20:03:57]FM_MakeSignedData [20:03:57]SAM_PROTO_SignData [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 0D 01 02 [20:03:57]Write to MH i2c: E2 08 00 05 32 80 0D 01 02 00 00 00 00 B0 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [20:03:58]RAPDU: 90 00 [20:03:58]wFMCommunicate OK [20:03:58]wFMCommunicate request_size=255 [20:03:58]MH_SAM_APDU [20:03:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 3D 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 ED 02 00 35 04 06 00 81 [20:03:58]Write to MH i2c: E2 02 01 06 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 3D 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 ED 02 00 35 04 06 00 81 00 00 AF [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [20:03:58]RAPDU: 90 00 [20:03:58]wFMCommunicate OK [20:03:58]wFMCommunicate request_size=10 [20:03:58]MH_SAM_APDU [20:03:58]CAPDU: 80 0D 02 02 05 33 27 E4 A9 47 [20:03:58]Write to MH i2c: E2 0D 00 07 32 80 0D 02 02 05 00 33 27 E4 A9 47 00 00 EB [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 03 00 07 32 00 90 00 AD [20:03:58]RAPDU: 90 00 [20:03:58]wFMCommunicate OK [20:03:58]wFMCommunicate request_size=4 [20:03:58]MH_SAM_APDU [20:03:58]CAPDU: 80 0D 03 02 [20:03:58]Write to MH i2c: E2 08 00 08 32 80 0D 03 02 00 00 00 00 B5 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 0B 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 0B 00 08 32 00 BD 11 8D CB 64 C6 D6 D2 90 00 AE [20:03:58]RAPDU: BD 11 8D CB 64 C6 D6 D2 90 00 [20:03:58]wFMCommunicate OK [20:03:58]SAM_PROTO_SignData done [20:03:58]FM_MakeSignedData done [20:03:58]CreateOFDProtocolMessage [20:03:58]wFMCommunicate request_size=4 [20:03:58]MH_SAM_APDU [20:03:58]CAPDU: 80 11 00 00 [20:03:58]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:58]Read from MH i2c: E2 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 17 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 08 [20:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:03:58]wFMCommunicate OK [20:03:58]CreateOFDProtocolMessage done [20:03:58]OFDSenderStorePacket 191928 [20:03:58]StoreOFDPacket docnum=191928 [20:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 F5 07 01 E3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 3D 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 ED 02 00 35 04 06 00 81 33 27 E4 A9 47 BD 11 8D CB 64 C6 D6 D2 [20:03:58]CheckFolder [20:03:58]dirname=/storage/ofd_packets [20:03:58]CheckFolder done [20:03:58]ProducePacketName [20:03:58]name=ofd_packets/00191928 [20:03:58]NVStorageSaveData ofd_packets/00191928 [20:03:58]File name is /storage/ofd_packets/00191928 [20:03:58]Write 301 bytes [20:03:58]NVStorageSaveData done [20:03:58]OFDSenderStorePacket done [20:03:58]KKMCreateOFDPacket done [20:03:58]NVStorageSaveData kkm_last_timestamp [20:03:58]File name is /storage/kkm_last_timestamp [20:03:58]Write 4 bytes [20:03:58]NVStorageSaveData done [20:03:58]ExternCall_PrintAddStr [20:03:58]wPrintStart [20:03:58]Write to MH i2c: 01 00 00 0A 32 3C [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 0A 32 00 00 00 00 00 FF 0F 51 [20:03:58]RasterBufferAndPrint [20:03:58]line Счет N : (1)31236 [20:03:58]line ИНН: 02508201610067 [20:03:58]line Контрольно-Кассовый Чек [20:03:58]line ПРОДАЖА [20:03:58]line ТРК (МРК, ГНК) : 12 [20:03:58]line Товар: 2710124130 [20:03:58]line Аи-92-К-5 [20:03:58]line 4.490 * 66.90 [20:03:58]line = 300.38 [20:03:58]line НДС 12% НСП 1% [20:03:58]line > о реализуемом товаре [20:03:58]line ОКРУГЛЕНИЕ: -0.38 [20:03:58]line ИТОГО: 300.00 [20:03:58]line Внесено: 300.00 [20:03:58]line СДАЧА: 0.00 [20:03:58]line НСП 1% : 2.66 [20:03:58]line НДС 12% : 31.90 [20:03:58]line Наличными: 300.00 [20:03:58]line Безнал.: 0.00 [20:03:58]line Место: АЗС № 170 "Партнер Нефть" [20:03:58]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:03:58]line СНО: Общий режим [20:03:58]line Чек 291 26.10.2024 20:04 [20:03:58]line Смена: 541 ФФД: 1.0 [20:03:58]line ЗНМ: 0300000110 [20:03:58]line РНМ: 0000000000091776 [20:03:58]line Версия ККМ: 001 [20:03:58]line ФМ: 0000000000871754 [20:03:58]line ФД: 191928 [20:03:58]line ФПД: 142056712612167 [20:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200413&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191928&fm=142056712612167&tin=02508201610067®Number=0000000000091776&sum=30000 [20:03:58]written 0, free lines is 4095 [20:03:58]OFD Sender: Processing packet 191928 [packets to send 75, broken 74] [20:03:58]ProducePacketName [20:03:58]name=ofd_packets/00191928 [20:03:58]OFD Sender: To server: pG, [20:03:58]CommunicateWithHost lk.salyk.kg:30040 [20:03:58]ConnectInit lk.salyk.kg [20:03:58]Connected sock=9 [20:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A8 F5 07 01 E3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 3D 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 ED 02 00 35 04 06 00 81 33 27 E4 A9 47 BD 11 8D CB 64 C6 D6 D2 [20:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1D E3 47 00 29 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B8 ED 02 00 F4 03 04 00 06 F0 1C 67 B6 04 01 00 00 47 F1 04 32 0F 76 A2 6A [20:03:58]CommunicateWithHost err = 0 [20:03:58]CheckOFDResponse [20:03:58]1017 (14) - 77093643461234 [20:03:58]1041 (16) - 0000000000871754 [20:03:58]1040 (4) - 191928 [20:03:58]1012 (4) - 26.10.2024 13:35 [20:03:58]1206 (1) - 0 [20:03:58]OFD Sender: Remove packet 191928 [20:03:58]ProducePacketName [20:03:58]name=ofd_packets/00191928 [20:03:58]NVStorageDeleteData [20:03:58]Write to MH i2c: 01 00 00 35 32 67 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 35 32 00 00 00 00 00 B3 0C 2D [20:03:58]RasterBufferAndPrint [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]written 0, free lines is 3255 [20:03:58]MH_Cut [20:03:58]Write to MH i2c: D1 01 00 3C 32 01 40 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 01 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 01 00 3C 32 00 3F [20:03:58]Write to MH i2c: 01 00 00 3D 32 6F [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:59]OFD Sender: No OFD packet to send [20:03:59]*** Cut start [20:03:59]*** Partial cut [20:03:59]*** CUTSNS_PIN = 1 [20:03:59]*** CUTSNS_PIN = 0 [20:04:00]*** Brake cut motor [20:04:00]Read from MH i2c: 01 [20:04:00]MH_I2C_Read... [20:04:00]*** Stop cut motor [20:04:00]*** Cut end [20:04:00]Read from MH i2c: 01 07 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: 01 07 00 3D 32 00 00 00 00 00 FF 0F 84 [20:04:00]process_action close_receipt done [20:04:00]requested_data is exist [20:04:00]produce_requested_data [20:04:00]requested_item fm.sn is exist - process it [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 11 00 00 [20:04:00]Write to MH i2c: E2 08 00 3E 32 80 11 00 00 00 00 00 00 EA [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 17 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 17 00 3E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [20:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:04:00]wFMCommunicate OK [20:04:00]requested_item fd.num is exist - process it [20:04:00]SAM_PROTO_GetFieldsCounters [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 13 00 00 [20:04:00]Write to MH i2c: E2 08 00 3F 32 80 13 00 00 00 00 00 00 ED [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 62 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 62 00 3F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [20:04:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:00]wFMCommunicate OK [20:04:00]SAM_PROTO_GetFieldsCounters done [20:04:00]requested_item shift.num is exist - process it [20:04:00]requested_item shift.opened is exist - process it [20:04:00]req_shift_opened [20:04:00]FM_GetShiftState [20:04:00]SAM_PROTO_GetShiftState [20:04:00]wFMCommunicate request_size=4 [20:04:00]MH_SAM_APDU [20:04:00]CAPDU: 80 13 01 00 [20:04:00]Write to MH i2c: E2 08 00 40 32 80 13 01 00 00 00 00 00 EF [20:04:00]Write i2c OK [20:04:00]MH_I2C_Read... [20:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:00]Read from MH i2c: E2 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 0E 00 [20:04:00]MH_I2C_Read... [20:04:00]Read from MH i2c: E2 0E 00 40 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 68 [20:04:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:04:00]wFMCommunicate OK [20:04:00]SAM_PROTO_GetShiftState done [20:04:00]FM_GetShiftState done [20:04:00]req_shift_opened done [20:04:00]requested_item shift.open_date is exist - process it [20:04:00]req_shift_open_date [20:04:00]req_shift_open_date done [20:04:00]produce_requested_data done [20:04:00]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191928,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:04:00]process_action_free close_receipt [20:04:00]json_value_free [20:04:00]json_value_free done [20:04:00]process_json_proto returns [20:04:00]Send response to host [20:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191928,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:04:00]free response buf [20:04:00]execute_script done [20:04:00]execute_script returns [20:04:00]free content buf [20:04:00]Sock 5.Close socket [20:04:00]Sock 5.Thread stoped [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:03]accept exits with 6 [20:07:03]New connection [20:07:03]New thread 3066817892 created [20:07:03]Thread 3066961252 joined [20:07:03]Waiting for new connection... [20:07:03] Sock 6.Parse request [20:07:03]Sock 6.Check first char [20:07:03]Sock 6.First char is OK [20:07:03]request: POST /json_proto HTTP/1.0 [20:07:03]Method: POST [20:07:03]URL: /json_proto [20:07:03]Method is POST - this is cgi request [20:07:03]url: /json_proto [20:07:03]query_string will be loaded in cgi processing [20:07:03]execute_cgi json_proto POST (null) [20:07:03]execute_cgi path=json_proto method=POST [20:07:03]POST find Content-Length [20:07:03]Host: 172.17.63.131:8080 [20:07:03]Content-Length: 677 [20:07:03]Content-Type: application/json [20:07:03] [20:07:03]POST finish read [20:07:03]Found Content-Length = 677 [20:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:03]execute_script... [20:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:03]POST & json_proto [20:07:03]process_json_proto [20:07:03]json parsed OK: [20:07:03]protocol is kg_v1.0 [20:07:03]action value=close_receipt [20:07:03]process_action close_receipt [20:07:03]cmd_close_receipt [20:07:03]MH_GetDate [20:07:03]Write to MH i2c: F0 00 00 41 32 62 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 09 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: F0 09 00 41 32 00 F7 4B 1D 67 22 05 6E 64 2A [20:07:03]GetLastDocTimeStamp 1729973053 [20:07:03]current date 1729973239 [20:07:03]FM_GetShiftState [20:07:03]SAM_PROTO_GetShiftState [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 13 01 00 [20:07:03]Write to MH i2c: E2 08 00 42 32 80 13 01 00 00 00 00 00 F1 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 0E 00 42 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 6A [20:07:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_GetShiftState done [20:07:03]FM_GetShiftState done [20:07:03]opened in 1729902770 [20:07:03]opened+sec_in_day 1729989170 [20:07:03]quantity*price = 90047 [20:07:03]sum+1 = 90048 [20:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 292 26.10.2024 20:07 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191929 ФПД: 66017554332319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200719&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191929&fm=66017554332319&tin=02508201610067®Number=0000000000091776&sum=90000 [20:07:04]StoreToDocumentArchive [20:07:04]shift 541 fd 191929 [20:07:04]save to /storage/0541/doc_00191929 [20:07:04]save last doc name /storage/0541/doc_00191929 to /storage/kkm_last_doc_name [20:07:04]save OK [20:07:04]Clear old archive folders... [20:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:04]tlvbuf is 015CADC0 [20:07:04]SAM_PROTO_ClearQueue [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 09 00 00 [20:07:04]Write to MH i2c: E2 08 00 4F 32 80 09 00 00 00 00 00 00 F3 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 4F 32 00 90 00 F5 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_ClearQueue done [20:07:04]KKMCreateOFDPacket [20:07:04]OFDProtocolAddRootSTLVToBuf [20:07:04]FM_MakeSignedData [20:07:04]FM_MakeSignedData [20:07:04]SAM_PROTO_SignData [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 01 02 [20:07:04]Write to MH i2c: E2 08 00 50 32 80 0D 01 02 00 00 00 00 FB [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 50 32 00 90 00 F6 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=255 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 F7 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 ED 02 00 35 04 06 00 3C [20:07:04]Write to MH i2c: E2 02 01 51 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 F7 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 ED 02 00 35 04 06 00 3C 00 00 9A [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=10 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 02 02 05 0A E8 DF FA 9F [20:07:04]Write to MH i2c: E2 0D 00 52 32 80 0D 02 02 05 00 0A E8 DF FA 9F 00 00 72 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]OFD Sender: No OFD packet to send [20:07:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 03 00 52 32 00 90 00 F8 [20:07:04]RAPDU: 90 00 [20:07:04]wFMCommunicate OK [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 0D 03 02 [20:07:04]Write to MH i2c: E2 08 00 53 32 80 0D 03 02 00 00 00 00 00 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 53 32 00 3F EF FA E3 5A 06 3F BC 90 00 67 [20:07:04]RAPDU: 3F EF FA E3 5A 06 3F BC 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_SignData done [20:07:04]FM_MakeSignedData done [20:07:04]CreateOFDProtocolMessage [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 11 00 00 [20:07:04]Write to MH i2c: E2 08 00 54 32 80 11 00 00 00 00 00 00 00 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 54 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 53 [20:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:07:04]wFMCommunicate OK [20:07:04]CreateOFDProtocolMessage done [20:07:04]OFDSenderStorePacket 191929 [20:07:04]StoreOFDPacket docnum=191929 [20:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 0C 07 01 89 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 F7 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 ED 02 00 35 04 06 00 3C 0A E8 DF FA 9F 3F EF FA E3 5A 06 3F BC [20:07:04]CheckFolder [20:07:04]dirname=/storage/ofd_packets [20:07:04]CheckFolder done [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00191929 [20:07:04]NVStorageSaveData ofd_packets/00191929 [20:07:04]File name is /storage/ofd_packets/00191929 [20:07:04]Write 301 bytes [20:07:04]NVStorageSaveData done [20:07:04]OFDSenderStorePacket done [20:07:04]KKMCreateOFDPacket done [20:07:04]NVStorageSaveData kkm_last_timestamp [20:07:04]File name is /storage/kkm_last_timestamp [20:07:04]Write 4 bytes [20:07:04]NVStorageSaveData done [20:07:04]ExternCall_PrintAddStr [20:07:04]wPrintStart [20:07:04]Write to MH i2c: 01 00 00 55 32 87 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 55 32 00 00 00 00 00 FF 0F 9C [20:07:04]RasterBufferAndPrint [20:07:04]line Счет N : (1)31237 [20:07:04]line ИНН: 02508201610067 [20:07:04]line Контрольно-Кассовый Чек [20:07:04]line ПРОДАЖА [20:07:04]line ТРК (МРК, ГНК) : 12 [20:07:04]line Товар: 2710124130 [20:07:04]line Аи-92-К-5 [20:07:04]line 13.460 * 66.90 [20:07:04]line = 900.47 [20:07:04]line НДС 12% НСП 1% [20:07:04]line > о реализуемом товаре [20:07:04]line ОКРУГЛЕНИЕ: -0.47 [20:07:04]line ИТОГО: 900.00 [20:07:04]line Внесено: 900.00 [20:07:04]line СДАЧА: 0.00 [20:07:04]line НСП 1% : 7.97 [20:07:04]line НДС 12% : 95.62 [20:07:04]line Наличными: 900.00 [20:07:04]line Безнал.: 0.00 [20:07:04]line Место: АЗС № 170 "Партнер Нефть" [20:07:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:07:04]line СНО: Общий режим [20:07:04]line Чек 292 26.10.2024 20:07 [20:07:04]line Смена: 541 ФФД: 1.0 [20:07:04]line ЗНМ: 0300000110 [20:07:04]line РНМ: 0000000000091776 [20:07:05]line Версия ККМ: 001 [20:07:05]line ФМ: 0000000000871754 [20:07:05]line ФД: 191929 [20:07:05]line ФПД: 66017554332319 [20:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T200719&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191929&fm=66017554332319&tin=02508201610067®Number=0000000000091776&sum=90000 [20:07:05]OFD Sender: Processing packet 191929 [packets to send 75, broken 74] [20:07:05]ProducePacketName [20:07:05]name=ofd_packets/00191929 [20:07:05]OFD Sender: To server: pG, [20:07:05]CommunicateWithHost lk.salyk.kg:30040 [20:07:05]ConnectInit lk.salyk.kg [20:07:05]written 0, free lines is 4095 [20:07:05]Connected sock=8 [20:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 0C 07 01 89 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 F7 4B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 ED 02 00 35 04 06 00 3C 0A E8 DF FA 9F 3F EF FA E3 5A 06 3F BC [20:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 B3 B1 47 00 CF E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 B9 ED 02 00 F4 03 04 00 C1 F0 1C 67 B6 04 01 00 00 5A 1A B5 4E 66 8E 6D 3E [20:07:05]CommunicateWithHost err = 0 [20:07:05]CheckOFDResponse [20:07:05]1017 (14) - 77093643461234 [20:07:05]1041 (16) - 0000000000871754 [20:07:05]1040 (4) - 191929 [20:07:05]1012 (4) - 26.10.2024 13:38 [20:07:05]1206 (1) - 0 [20:07:05]OFD Sender: Remove packet 191929 [20:07:05]ProducePacketName [20:07:05]name=ofd_packets/00191929 [20:07:05]NVStorageDeleteData [20:07:05]Write to MH i2c: 01 00 00 80 32 B2 [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: 01 07 00 80 32 00 00 00 00 00 AD 0C 72 [20:07:05]RasterBufferAndPrint [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]line [20:07:05]written 0, free lines is 3251 [20:07:05]MH_Cut [20:07:05]Write to MH i2c: D1 01 00 87 32 01 8B [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 [20:07:05]MH_I2C_Read... [20:07:05]Read from MH i2c: D1 01 00 87 32 00 8A [20:07:05]Write to MH i2c: 01 00 00 88 32 BA [20:07:05]Write i2c OK [20:07:05]MH_I2C_Read... [20:07:05]OFD Sender: No OFD packet to send [20:07:06]*** Cut start [20:07:06]*** Partial cut [20:07:06]*** CUTSNS_PIN = 1 [20:07:06]*** CUTSNS_PIN = 0 [20:07:06]*** Brake cut motor [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]*** Stop cut motor [20:07:06]*** Cut end [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 88 32 00 00 00 00 00 FF 0F CF [20:07:06]process_action close_receipt done [20:07:06]requested_data is exist [20:07:06]produce_requested_data [20:07:06]requested_item fm.sn is exist - process it [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 11 00 00 [20:07:06]Write to MH i2c: E2 08 00 89 32 80 11 00 00 00 00 00 00 35 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 89 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 88 [20:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:07:06]wFMCommunicate OK [20:07:06]requested_item fd.num is exist - process it [20:07:06]SAM_PROTO_GetFieldsCounters [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 13 00 00 [20:07:06]Write to MH i2c: E2 08 00 8A 32 80 13 00 00 00 00 00 00 38 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:07]Read from MH i2c: E2 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 62 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 62 00 8A 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [20:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 B9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:07]wFMCommunicate OK [20:07:07]SAM_PROTO_GetFieldsCounters done [20:07:07]requested_item shift.num is exist - process it [20:07:07]requested_item shift.opened is exist - process it [20:07:07]req_shift_opened [20:07:07]FM_GetShiftState [20:07:07]SAM_PROTO_GetShiftState [20:07:07]wFMCommunicate request_size=4 [20:07:07]MH_SAM_APDU [20:07:07]CAPDU: 80 13 01 00 [20:07:07]Write to MH i2c: E2 08 00 8B 32 80 13 01 00 00 00 00 00 3A [20:07:07]Write i2c OK [20:07:07]MH_I2C_Read... [20:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:07]Read from MH i2c: E2 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 0E 00 [20:07:07]MH_I2C_Read... [20:07:07]Read from MH i2c: E2 0E 00 8B 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B3 [20:07:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:07:07]wFMCommunicate OK [20:07:07]SAM_PROTO_GetShiftState done [20:07:07]FM_GetShiftState done [20:07:07]req_shift_opened done [20:07:07]requested_item shift.open_date is exist - process it [20:07:07]req_shift_open_date [20:07:07]req_shift_open_date done [20:07:07]produce_requested_data done [20:07:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191929,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:07:07]process_action_free close_receipt [20:07:07]json_value_free [20:07:07]json_value_free done [20:07:07]process_json_proto returns [20:07:07]Send response to host [20:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191929,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:07:07]free response buf [20:07:07]execute_script done [20:07:07]execute_script returns [20:07:07]free content buf [20:07:07]Sock 6.Close socket [20:07:07]Sock 6.Thread stoped [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:06]accept exits with 5 [20:13:06]New connection [20:13:06]New thread 3066961252 created [20:13:06]Thread 3066817892 joined [20:13:06]Waiting for new connection... [20:13:06] Sock 5.Parse request [20:13:06]Sock 5.Check first char [20:13:06]Sock 5.First char is OK [20:13:06]request: POST /json_proto HTTP/1.0 [20:13:06]Method: POST [20:13:06]URL: /json_proto [20:13:06]Method is POST - this is cgi request [20:13:06]url: /json_proto [20:13:06]query_string will be loaded in cgi processing [20:13:06]execute_cgi json_proto POST (null) [20:13:06]execute_cgi path=json_proto method=POST [20:13:06]POST find Content-Length [20:13:06]Host: 172.17.63.131:8080 [20:13:06]Content-Length: 673 [20:13:06]Content-Type: application/json [20:13:06] [20:13:06]POST finish read [20:13:06]Found Content-Length = 673 [20:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:06]execute_script... [20:13: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)31238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:06]POST & json_proto [20:13:06]process_json_proto [20:13:06]json parsed OK: [20:13:06]protocol is kg_v1.0 [20:13:06]action value=close_receipt [20:13:06]process_action close_receipt [20:13:06]cmd_close_receipt [20:13:06]MH_GetDate [20:13:06]Write to MH i2c: F0 00 00 8C 32 AD [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: F0 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: F0 09 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: F0 09 00 8C 32 00 62 4D 1D 67 22 05 6E 64 E2 [20:13:06]GetLastDocTimeStamp 1729973239 [20:13:06]current date 1729973602 [20:13:06]FM_GetShiftState [20:13:06]SAM_PROTO_GetShiftState [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 13 01 00 [20:13:06]Write to MH i2c: E2 08 00 8D 32 80 13 01 00 00 00 00 00 3C [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 8D 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B5 [20:13:06]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_GetShiftState done [20:13:06]FM_GetShiftState done [20:13:06]opened in 1729902770 [20:13:06]opened+sec_in_day 1729989170 [20:13:06]quantity*price = 40005 [20:13:06]sum+1 = 40006 [20:13:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 293 26.10.2024 20:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191930 ФПД: 128761380465820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191930&fm=128761380465820&tin=02508201610067®Number=0000000000091776&sum=40000 [20:13:07]StoreToDocumentArchive [20:13:07]shift 541 fd 191930 [20:13:07]save to /storage/0541/doc_00191930 [20:13:07]save last doc name /storage/0541/doc_00191930 to /storage/kkm_last_doc_name [20:13:07]save OK [20:13:07]Clear old archive folders... [20:13:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:13:07]tlvbuf is 01A50820 [20:13:07]SAM_PROTO_ClearQueue [20:13:07]wFMCommunicate request_size=4 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 09 00 00 [20:13:07]Write to MH i2c: E2 08 00 9A 32 80 09 00 00 00 00 00 00 3E [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 9A 32 00 90 00 40 [20:13:07]RAPDU: 90 00 [20:13:07]wFMCommunicate OK [20:13:07]SAM_PROTO_ClearQueue done [20:13:07]KKMCreateOFDPacket [20:13:07]OFDProtocolAddRootSTLVToBuf [20:13:07]FM_MakeSignedData [20:13:07]FM_MakeSignedData [20:13:07]SAM_PROTO_SignData [20:13:07]wFMCommunicate request_size=4 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 0D 01 02 [20:13:07]Write to MH i2c: E2 08 00 9B 32 80 0D 01 02 00 00 00 00 46 [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 03 00 [20:13:07]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 9B 32 00 90 00 41 [20:13:08]RAPDU: 90 00 [20:13:08]wFMCommunicate OK [20:13:08]wFMCommunicate request_size=255 [20:13:08]MH_SAM_APDU [20:13: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 63 4D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA ED 02 00 35 04 06 00 75 1B 98 57 [20:13:08]Write to MH i2c: E2 02 01 9C 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 63 4D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA ED 02 00 35 04 06 00 75 1B 98 57 00 00 64 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 9C 32 00 90 00 42 [20:13:08]RAPDU: 90 00 [20:13:08]wFMCommunicate OK [20:13:08]wFMCommunicate request_size=7 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 0D 02 02 02 EC 9C [20:13:08]Write to MH i2c: E2 0A 00 9D 32 80 0D 02 02 02 00 EC 9C 00 00 D5 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 9D 32 00 90 00 43 [20:13:08]RAPDU: 90 00 [20:13:08]wFMCommunicate OK [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 0D 03 02 [20:13:08]Write to MH i2c: E2 08 00 9E 32 80 0D 03 02 00 00 00 00 4B [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 0B 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 0B 00 9E 32 00 0B 97 2C 28 6C E4 FD A3 90 00 32 [20:13:08]RAPDU: 0B 97 2C 28 6C E4 FD A3 90 00 [20:13:08]wFMCommunicate OK [20:13:08]SAM_PROTO_SignData done [20:13:08]FM_MakeSignedData done [20:13:08]CreateOFDProtocolMessage [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 11 00 00 [20:13:08]Write to MH i2c: E2 08 00 9F 32 80 11 00 00 00 00 00 00 4B [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 17 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 17 00 9F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9E [20:13:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:13:08]wFMCommunicate OK [20:13:08]CreateOFDProtocolMessage done [20:13:08]OFDSenderStorePacket 191930 [20:13:08]StoreOFDPacket docnum=191930 [20:13:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CF C1 04 01 65 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 63 4D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA ED 02 00 35 04 06 00 75 1B 98 57 EC 9C 0B 97 2C 28 6C E4 FD A3 [20:13:08]CheckFolder [20:13:08]dirname=/storage/ofd_packets [20:13:08]CheckFolder done [20:13:08]ProducePacketName [20:13:08]name=ofd_packets/00191930 [20:13:08]NVStorageSaveData ofd_packets/00191930 [20:13:08]File name is /storage/ofd_packets/00191930 [20:13:08]Write 298 bytes [20:13:08]NVStorageSaveData done [20:13:08]OFDSenderStorePacket done [20:13:08]KKMCreateOFDPacket done [20:13:08]NVStorageSaveData kkm_last_timestamp [20:13:08]File name is /storage/kkm_last_timestamp [20:13:08]Write 4 bytes [20:13:08]NVStorageSaveData done [20:13:08]ExternCall_PrintAddStr [20:13:08]wPrintStart [20:13:08]Write to MH i2c: 01 00 00 A0 32 D2 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 07 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: 01 07 00 A0 32 00 00 00 00 00 FF 0F E7 [20:13:08]RasterBufferAndPrint [20:13:08]line Счет N : (1)31238 [20:13:08]line ИНН: 02508201610067 [20:13:08]line Контрольно-Кассовый Чек [20:13:08]line ПРОДАЖА [20:13:08]line ТРК (МРК, ГНК) : 11 [20:13:08]line Товар: 2710194210 [20:13:08]line ДТ-К-5 [20:13:08]line 5.250 * 76.20 [20:13:08]line = 400.05 [20:13:08]line НДС 12% НСП 1% [20:13:08]line > о реализуемом товаре [20:13:08]line ОКРУГЛЕНИЕ: -0.05 [20:13:08]line ИТОГО: 400.00 [20:13:08]line Внесено: 400.00 [20:13:08]line СДАЧА: 0.00 [20:13:08]line НСП 1% : 3.54 [20:13:08]line НДС 12% : 42.48 [20:13:08]line Наличными: 400.00 [20:13:08]line Безнал.: 0.00 [20:13:08]line Место: АЗС № 170 "Партнер Нефть" [20:13:08]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:13:08]line СНО: Общий режим [20:13:08]line Чек 293 26.10.2024 20:13 [20:13:08]line Смена: 541 ФФД: 1.0 [20:13:08]line ЗНМ: 0300000110 [20:13:08]line РНМ: 0000000000091776 [20:13:08]line Версия ККМ: 001 [20:13:08]line ФМ: 0000000000871754 [20:13:08]line ФД: 191930 [20:13:08]line ФПД: 128761380465820 [20:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T201323&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191930&fm=128761380465820&tin=02508201610067®Number=0000000000091776&sum=40000 [20:13:08]OFD Sender: Processing packet 191930 [packets to send 75, broken 74] [20:13:08]ProducePacketName [20:13:08]name=ofd_packets/00191930 [20:13:08]OFD Sender: To server: pG, [20:13:08]CommunicateWithHost lk.salyk.kg:30040 [20:13:08]ConnectInit lk.salyk.kg [20:13:08]written 0, free lines is 4095 [20:13:08]Connected sock=8 [20:13:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 CF C1 04 01 65 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 63 4D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BA ED 02 00 35 04 06 00 75 1B 98 57 EC 9C 0B 97 2C 28 6C E4 FD A3 [20:13:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A C1 47 00 A1 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 31 37 35 34 10 04 04 00 BA ED 02 00 F4 03 04 00 2D F2 1C 67 B6 04 01 00 00 A5 A8 F2 DF A1 32 8C DB [20:13:09]CommunicateWithHost err = 0 [20:13:09]CheckOFDResponse [20:13:09]1017 (14) - 77093643461234 [20:13:09]1041 (16) - 0000000000871754 [20:13:09]1040 (4) - 191930 [20:13:09]1012 (4) - 26.10.2024 13:44 [20:13:09]1206 (1) - 0 [20:13:09]OFD Sender: Remove packet 191930 [20:13:09]ProducePacketName [20:13:09]name=ofd_packets/00191930 [20:13:09]NVStorageDeleteData [20:13:09]Write to MH i2c: 01 00 00 CB 32 FD [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 CB 32 00 00 00 00 00 A7 0C B7 [20:13:09]RasterBufferAndPrint [20:13:09]line [20:13:09]line [20:13:09]line [20:13:09]line [20:13:09]line [20:13:09]written 0, free lines is 3245 [20:13:09]MH_Cut [20:13:09]Write to MH i2c: D1 01 00 D2 32 01 D6 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: D1 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: D1 01 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: D1 01 00 D2 32 00 D5 [20:13:09]Write to MH i2c: 01 00 00 D3 32 05 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]OFD Sender: No OFD packet to send [20:13:10]*** Cut start [20:13:10]*** Partial cut [20:13:10]*** CUTSNS_PIN = 1 [20:13:10]*** CUTSNS_PIN = 0 [20:13:10]*** Brake cut motor [20:13:10]Read from MH i2c: 01 [20:13:10]MH_I2C_Read... [20:13:10]*** Stop cut motor [20:13:10]*** Cut end [20:13:10]Read from MH i2c: 01 07 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: 01 07 00 D3 32 00 00 00 00 00 FF 0F 1A [20:13:10]process_action close_receipt done [20:13:10]requested_data is exist [20:13:10]produce_requested_data [20:13:10]requested_item fm.sn is exist - process it [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 11 00 00 [20:13:10]Write to MH i2c: E2 08 00 D4 32 80 11 00 00 00 00 00 00 80 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 17 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 17 00 D4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D3 [20:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:13:10]wFMCommunicate OK [20:13:10]requested_item fd.num is exist - process it [20:13:10]SAM_PROTO_GetFieldsCounters [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 13 00 00 [20:13:10]Write to MH i2c: E2 08 00 D5 32 80 13 00 00 00 00 00 00 83 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 62 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 62 00 D5 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [20:13:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:13:10]wFMCommunicate OK [20:13:10]SAM_PROTO_GetFieldsCounters done [20:13:10]requested_item shift.num is exist - process it [20:13:10]requested_item shift.opened is exist - process it [20:13:10]req_shift_opened [20:13:10]FM_GetShiftState [20:13:10]SAM_PROTO_GetShiftState [20:13:10]wFMCommunicate request_size=4 [20:13:10]MH_SAM_APDU [20:13:10]CAPDU: 80 13 01 00 [20:13:10]Write to MH i2c: E2 08 00 D6 32 80 13 01 00 00 00 00 00 85 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:10]Read from MH i2c: E2 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 0E 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: E2 0E 00 D6 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FE [20:13:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:13:10]wFMCommunicate OK [20:13:10]SAM_PROTO_GetShiftState done [20:13:10]FM_GetShiftState done [20:13:10]req_shift_opened done [20:13:10]requested_item shift.open_date is exist - process it [20:13:10]req_shift_open_date [20:13:10]req_shift_open_date done [20:13:10]produce_requested_data done [20:13:10]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191930,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:13:10]process_action_free close_receipt [20:13:10]json_value_free [20:13:10]json_value_free done [20:13:10]process_json_proto returns [20:13:10]Send response to host [20:13:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191930,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:13:10]free response buf [20:13:10]execute_script done [20:13:10]execute_script returns [20:13:10]free content buf [20:13:10]Sock 5.Close socket [20:13:10]Sock 5.Thread stoped [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:10]OFD Sender: No OFD packet to send [20:23:15]OFD Sender: No OFD packet to send [20:23:20]OFD Sender: No OFD packet to send [20:23:25]OFD Sender: No OFD packet to send [20:23:30]OFD Sender: No OFD packet to send [20:23:35]OFD Sender: No OFD packet to send [20:23:40]OFD Sender: No OFD packet to send [20:23:45]OFD Sender: No OFD packet to send [20:23:50]OFD Sender: No OFD packet to send [20:23:55]OFD Sender: No OFD packet to send [20:23:58]accept exits with 6 [20:23:58]New connection [20:23:58]New thread 3066817892 created [20:23:58]Thread 3066961252 joined [20:23:58]Waiting for new connection... [20:23:58] Sock 6.Parse request [20:23:58]Sock 6.Check first char [20:23:58]Sock 6.First char is OK [20:23:58]request: POST /json_proto HTTP/1.0 [20:23:58]Method: POST [20:23:58]URL: /json_proto [20:23:58]Method is POST - this is cgi request [20:23:58]url: /json_proto [20:23:58]query_string will be loaded in cgi processing [20:23:58]execute_cgi json_proto POST (null) [20:23:58]execute_cgi path=json_proto method=POST [20:23:58]POST find Content-Length [20:23:58]Host: 172.17.63.131:8080 [20:23:58]Content-Length: 678 [20:23:58]Content-Type: application/json [20:23:58] [20:23:58]POST finish read [20:23:58]Found Content-Length = 678 [20:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:23:58]execute_script... [20:23: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)31239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [20:23:58]POST & json_proto [20:23:58]process_json_proto [20:23:58]json parsed OK: [20:23:58]protocol is kg_v1.0 [20:23:58]action value=close_receipt [20:23:58]process_action close_receipt [20:23:58]cmd_close_receipt [20:23:58]MH_GetDate [20:23:58]Write to MH i2c: F0 00 00 D7 32 F8 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: F0 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: F0 09 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: F0 09 00 D7 32 00 EF 4F 1D 67 22 05 6E 64 BC [20:23:58]GetLastDocTimeStamp 1729973603 [20:23:58]current date 1729974255 [20:23:58]FM_GetShiftState [20:23:58]SAM_PROTO_GetShiftState [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 13 01 00 [20:23:58]Write to MH i2c: E2 08 00 D8 32 80 13 01 00 00 00 00 00 87 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 D8 32 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 00 [20:23:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetShiftState done [20:23:58]FM_GetShiftState done [20:23:58]opened in 1729902770 [20:23:58]opened+sec_in_day 1729989170 [20:23:58]quantity*price = 300075 [20:23:58]sum+1 = 300077 [20:23:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 294 26.10.2024 20:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191931 ФПД: 77700750389349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191931&fm=77700750389349&tin=02508201610067®Number=0000000000091776&sum=300000 [20:23:59]StoreToDocumentArchive [20:23:59]shift 541 fd 191931 [20:23:59]save to /storage/0541/doc_00191931 [20:23:59]save last doc name /storage/0541/doc_00191931 to /storage/kkm_last_doc_name [20:23:59]save OK [20:23:59]Clear old archive folders... [20:23:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:23:59]tlvbuf is 0187D770 [20:23:59]SAM_PROTO_ClearQueue [20:23:59]wFMCommunicate request_size=4 [20:23:59]MH_SAM_APDU [20:23:59]CAPDU: 80 09 00 00 [20:23:59]Write to MH i2c: E2 08 00 E5 32 80 09 00 00 00 00 00 00 89 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:23:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:59]Read from MH i2c: E2 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 [20:23:59]MH_I2C_Read... [20:23:59]Read from MH i2c: E2 03 00 E5 32 00 90 00 8B [20:23:59]RAPDU: 90 00 [20:23:59]wFMCommunicate OK [20:23:59]SAM_PROTO_ClearQueue done [20:23:59]KKMCreateOFDPacket [20:23:59]OFDProtocolAddRootSTLVToBuf [20:23:59]FM_MakeSignedData [20:23:59]FM_MakeSignedData [20:23:59]SAM_PROTO_SignData [20:23:59]wFMCommunicate request_size=4 [20:23:59]MH_SAM_APDU [20:23:59]CAPDU: 80 0D 01 02 [20:23:59]Write to MH i2c: E2 08 00 E6 32 80 0D 01 02 00 00 00 00 91 [20:23:59]Write i2c OK [20:23:59]MH_I2C_Read... [20:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:00]Read from MH i2c: E2 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [20:24:00]RAPDU: 90 00 [20:24:00]wFMCommunicate OK [20:24:00]wFMCommunicate request_size=255 [20:24:00]MH_SAM_APDU [20:24:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 EF 4F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB ED 02 00 35 04 06 00 46 AB 1D A0 [20:24:00]Write to MH i2c: E2 02 01 E7 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 EF 4F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB ED 02 00 35 04 06 00 46 AB 1D A0 00 00 B2 [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]OFD Sender: No OFD packet to send [20:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:00]Read from MH i2c: E2 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 E7 32 00 90 00 8D [20:24:00]RAPDU: 90 00 [20:24:00]wFMCommunicate OK [20:24:00]wFMCommunicate request_size=7 [20:24:00]MH_SAM_APDU [20:24:00]CAPDU: 80 0D 02 02 02 30 65 [20:24:00]Write to MH i2c: E2 0A 00 E8 32 80 0D 02 02 02 00 30 65 00 00 2D [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:00]Read from MH i2c: E2 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 03 00 E8 32 00 90 00 8E [20:24:00]RAPDU: 90 00 [20:24:00]wFMCommunicate OK [20:24:00]wFMCommunicate request_size=4 [20:24:00]MH_SAM_APDU [20:24:00]CAPDU: 80 0D 03 02 [20:24:00]Write to MH i2c: E2 08 00 E9 32 80 0D 03 02 00 00 00 00 96 [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:00]Read from MH i2c: E2 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 0B 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 0B 00 E9 32 00 42 B1 D1 B8 E1 EA 0E 6E 90 00 5A [20:24:00]RAPDU: 42 B1 D1 B8 E1 EA 0E 6E 90 00 [20:24:00]wFMCommunicate OK [20:24:00]SAM_PROTO_SignData done [20:24:00]FM_MakeSignedData done [20:24:00]CreateOFDProtocolMessage [20:24:00]wFMCommunicate request_size=4 [20:24:00]MH_SAM_APDU [20:24:00]CAPDU: 80 11 00 00 [20:24:00]Write to MH i2c: E2 08 00 EA 32 80 11 00 00 00 00 00 00 96 [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:00]Read from MH i2c: E2 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 17 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: E2 17 00 EA 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E9 [20:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:24:00]wFMCommunicate OK [20:24:00]CreateOFDProtocolMessage done [20:24:00]OFDSenderStorePacket 191931 [20:24:00]StoreOFDPacket docnum=191931 [20:24:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 11 F4 04 01 8E D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 EF 4F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB ED 02 00 35 04 06 00 46 AB 1D A0 30 65 42 B1 D1 B8 E1 EA 0E 6E [20:24:00]CheckFolder [20:24:00]dirname=/storage/ofd_packets [20:24:00]CheckFolder done [20:24:00]ProducePacketName [20:24:00]name=ofd_packets/00191931 [20:24:00]NVStorageSaveData ofd_packets/00191931 [20:24:00]File name is /storage/ofd_packets/00191931 [20:24:00]Write 298 bytes [20:24:00]NVStorageSaveData done [20:24:00]OFDSenderStorePacket done [20:24:00]KKMCreateOFDPacket done [20:24:00]NVStorageSaveData kkm_last_timestamp [20:24:00]File name is /storage/kkm_last_timestamp [20:24:00]Write 4 bytes [20:24:00]NVStorageSaveData done [20:24:00]ExternCall_PrintAddStr [20:24:00]wPrintStart [20:24:00]Write to MH i2c: 01 00 00 EB 32 1D [20:24:00]Write i2c OK [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 [20:24:00]MH_I2C_Read... [20:24:00]Read from MH i2c: 01 07 00 EB 32 00 00 00 00 00 FF 0F 32 [20:24:00]RasterBufferAndPrint [20:24:00]line Счет N : (1)31239 [20:24:00]line ИНН: 02508201610067 [20:24:00]line Контрольно-Кассовый Чек [20:24:00]line ПРОДАЖА [20:24:00]line ТРК (МРК, ГНК) : 11 [20:24:00]line Товар: 2710194210 [20:24:00]line ДТ-К-5 [20:24:00]line 39.380 * 76.20 [20:24:00]line = 3000.76 [20:24:00]line НДС 12% НСП 1% [20:24:00]line > о реализуемом товаре [20:24:00]line ОКРУГЛЕНИЕ: -0.76 [20:24:00]line ИТОГО: 3000.00 [20:24:00]line Внесено: 3000.00 [20:24:00]line СДАЧА: 0.00 [20:24:00]line НСП 1% : 26.55 [20:24:00]line НДС 12% : 318.66 [20:24:00]line Наличными: 3000.00 [20:24:00]line Безнал.: 0.00 [20:24:00]line Место: АЗС № 170 "Партнер Нефть" [20:24:00]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:24:00]line СНО: Общий режим [20:24:00]line Чек 294 26.10.2024 20:24 [20:24:00]line Смена: 541 ФФД: 1.0 [20:24:00]line ЗНМ: 0300000110 [20:24:00]line РНМ: 0000000000091776 [20:24:00]line Версия ККМ: 001 [20:24:00]line ФМ: 0000000000871754 [20:24:00]line ФД: 191931 [20:24:00]line ФПД: 77700750389349 [20:24:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202415&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191931&fm=77700750389349&tin=02508201610067®Number=0000000000091776&sum=300000 [20:24:00]OFD Sender: Processing packet 191931 [packets to send 75, broken 74] [20:24:00]ProducePacketName [20:24:00]name=ofd_packets/00191931 [20:24:00]OFD Sender: To server: pG, [20:24:00]CommunicateWithHost lk.salyk.kg:30040 [20:24:00]ConnectInit lk.salyk.kg [20:24:00]written 0, free lines is 4095 [20:24:00]Connected sock=8 [20:24:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 11 F4 04 01 8E D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 EF 4F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB ED 02 00 35 04 06 00 46 AB 1D A0 30 65 42 B1 D1 B8 E1 EA 0E 6E [20:24:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A AE 47 00 0E 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BB ED 02 00 F4 03 04 00 B9 F4 1C 67 B6 04 01 00 00 6A BC 57 E9 B1 2D DD 22 [20:24:01]CommunicateWithHost err = 0 [20:24:01]CheckOFDResponse [20:24:01]1017 (14) - 77093643461234 [20:24:01]1041 (16) - 0000000000871754 [20:24:01]1040 (4) - 191931 [20:24:01]1012 (4) - 26.10.2024 13:55 [20:24:01]1206 (1) - 0 [20:24:01]OFD Sender: Remove packet 191931 [20:24:01]ProducePacketName [20:24:01]name=ofd_packets/00191931 [20:24:01]NVStorageDeleteData [20:24:01]Write to MH i2c: 01 00 00 16 33 49 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: 01 07 00 16 33 00 00 00 00 00 A3 0C FF [20:24:01]RasterBufferAndPrint [20:24:01]line [20:24:01]line [20:24:01]line [20:24:01]line [20:24:01]line [20:24:01]written 0, free lines is 3241 [20:24:01]MH_Cut [20:24:01]Write to MH i2c: D1 01 00 1D 33 01 22 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: D1 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: D1 01 00 [20:24:01]MH_I2C_Read... [20:24:01]Read from MH i2c: D1 01 00 1D 33 00 21 [20:24:01]Write to MH i2c: 01 00 00 1E 33 51 [20:24:01]Write i2c OK [20:24:01]MH_I2C_Read... [20:24:01]OFD Sender: No OFD packet to send [20:24:02]*** Cut start [20:24:02]*** Partial cut [20:24:02]*** CUTSNS_PIN = 1 [20:24:02]*** CUTSNS_PIN = 0 [20:24:02]*** Brake cut motor [20:24:02]Read from MH i2c: 01 [20:24:02]MH_I2C_Read... [20:24:02]*** Stop cut motor [20:24:02]*** Cut end [20:24:02]Read from MH i2c: 01 07 00 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: 01 07 00 1E 33 00 00 00 00 00 FF 0F 66 [20:24:02]process_action close_receipt done [20:24:02]requested_data is exist [20:24:02]produce_requested_data [20:24:02]requested_item fm.sn is exist - process it [20:24:02]wFMCommunicate request_size=4 [20:24:02]MH_SAM_APDU [20:24:02]CAPDU: 80 11 00 00 [20:24:02]Write to MH i2c: E2 08 00 1F 33 80 11 00 00 00 00 00 00 CC [20:24:02]Write i2c OK [20:24:02]MH_I2C_Read... [20:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:02]Read from MH i2c: E2 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 17 00 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 17 00 1F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1F [20:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:24:02]wFMCommunicate OK [20:24:02]requested_item fd.num is exist - process it [20:24:02]SAM_PROTO_GetFieldsCounters [20:24:02]wFMCommunicate request_size=4 [20:24:02]MH_SAM_APDU [20:24:02]CAPDU: 80 13 00 00 [20:24:02]Write to MH i2c: E2 08 00 20 33 80 13 00 00 00 00 00 00 CF [20:24:02]Write i2c OK [20:24:02]MH_I2C_Read... [20:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:02]Read from MH i2c: E2 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 62 00 [20:24:02]MH_I2C_Read... [20:24:02]Read from MH i2c: E2 62 00 20 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [20:24:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:02]wFMCommunicate OK [20:24:02]SAM_PROTO_GetFieldsCounters done [20:24:02]requested_item shift.num is exist - process it [20:24:02]requested_item shift.opened is exist - process it [20:24:02]req_shift_opened [20:24:02]FM_GetShiftState [20:24:02]SAM_PROTO_GetShiftState [20:24:02]wFMCommunicate request_size=4 [20:24:02]MH_SAM_APDU [20:24:02]CAPDU: 80 13 01 00 [20:24:02]Write to MH i2c: E2 08 00 21 33 80 13 01 00 00 00 00 00 D1 [20:24:02]Write i2c OK [20:24:02]MH_I2C_Read... [20:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:03]Read from MH i2c: E2 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 0E 00 [20:24:03]MH_I2C_Read... [20:24:03]Read from MH i2c: E2 0E 00 21 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4A [20:24:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:24:03]wFMCommunicate OK [20:24:03]SAM_PROTO_GetShiftState done [20:24:03]FM_GetShiftState done [20:24:03]req_shift_opened done [20:24:03]requested_item shift.open_date is exist - process it [20:24:03]req_shift_open_date [20:24:03]req_shift_open_date done [20:24:03]produce_requested_data done [20:24:03]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191931,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:24:03]process_action_free close_receipt [20:24:03]json_value_free [20:24:03]json_value_free done [20:24:03]process_json_proto returns [20:24:03]Send response to host [20:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191931,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:24:03]free response buf [20:24:03]execute_script done [20:24:03]execute_script returns [20:24:03]free content buf [20:24:03]Sock 6.Close socket [20:24:03]Sock 6.Thread stoped [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:24]accept exits with 5 [20:25:24]New connection [20:25:24]New thread 3066961252 created [20:25:24]Thread 3066817892 joined [20:25:24]Waiting for new connection... [20:25:24] Sock 5.Parse request [20:25:24]Sock 5.Check first char [20:25:24]Sock 5.First char is OK [20:25:24]request: POST /json_proto HTTP/1.0 [20:25:24]Method: POST [20:25:24]URL: /json_proto [20:25:24]Method is POST - this is cgi request [20:25:24]url: /json_proto [20:25:24]query_string will be loaded in cgi processing [20:25:24]execute_cgi json_proto POST (null) [20:25:24]execute_cgi path=json_proto method=POST [20:25:24]POST find Content-Length [20:25:24]Host: 172.17.63.131:8080 [20:25:24]Content-Length: 676 [20:25:24]Content-Type: application/json [20:25:24] [20:25:24]POST finish read [20:25:24]Found Content-Length = 676 [20:25:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:24]execute_script... [20:25: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)31240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:24]POST & json_proto [20:25:24]process_json_proto [20:25:24]json parsed OK: [20:25:24]protocol is kg_v1.0 [20:25:24]action value=close_receipt [20:25:24]process_action close_receipt [20:25:24]cmd_close_receipt [20:25:24]MH_GetDate [20:25:24]Write to MH i2c: F0 00 00 22 33 44 [20:25:24]Write i2c OK [20:25:24]MH_I2C_Read... [20:25:24]Read from MH i2c: F0 [20:25:24]MH_I2C_Read... [20:25:24]Read from MH i2c: F0 09 00 [20:25:24]MH_I2C_Read... [20:25:24]Read from MH i2c: F0 09 00 22 33 00 44 50 1D 67 22 05 6E 64 5E [20:25:24]GetLastDocTimeStamp 1729974255 [20:25:24]current date 1729974340 [20:25:24]FM_GetShiftState [20:25:24]SAM_PROTO_GetShiftState [20:25:24]wFMCommunicate request_size=4 [20:25:24]MH_SAM_APDU [20:25:24]CAPDU: 80 13 01 00 [20:25:24]Write to MH i2c: E2 08 00 23 33 80 13 01 00 00 00 00 00 D3 [20:25:24]Write i2c OK [20:25:24]MH_I2C_Read... [20:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:24]Read from MH i2c: E2 [20:25:24]MH_I2C_Read... [20:25:24]Read from MH i2c: E2 0E 00 [20:25:24]MH_I2C_Read... [20:25:24]Read from MH i2c: E2 0E 00 23 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4C [20:25:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:25:24]wFMCommunicate OK [20:25:24]SAM_PROTO_GetShiftState done [20:25:24]FM_GetShiftState done [20:25:24]opened in 1729902770 [20:25:24]opened+sec_in_day 1729989170 [20:25:24]quantity*price = 25020 [20:25:24]sum+1 = 25022 [20:25:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 295 26.10.2024 20:25 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191932 ФПД: 186301160054737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202540&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191932&fm=186301160054737&tin=02508201610067®Number=0000000000091776&sum=25000 [20:25:25]StoreToDocumentArchive [20:25:25]shift 541 fd 191932 [20:25:25]save to /storage/0541/doc_00191932 [20:25:25]save last doc name /storage/0541/doc_00191932 to /storage/kkm_last_doc_name [20:25:25]save OK [20:25:25]Clear old archive folders... [20:25:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:25]tlvbuf is 0187D9E0 [20:25:25]SAM_PROTO_ClearQueue [20:25:25]wFMCommunicate request_size=4 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 09 00 00 [20:25:25]Write to MH i2c: E2 08 00 30 33 80 09 00 00 00 00 00 00 D5 [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [20:25:25]RAPDU: 90 00 [20:25:25]wFMCommunicate OK [20:25:25]SAM_PROTO_ClearQueue done [20:25:25]KKMCreateOFDPacket [20:25:25]OFDProtocolAddRootSTLVToBuf [20:25:25]FM_MakeSignedData [20:25:25]FM_MakeSignedData [20:25:25]SAM_PROTO_SignData [20:25:25]wFMCommunicate request_size=4 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 0D 01 02 [20:25:25]Write to MH i2c: E2 08 00 31 33 80 0D 01 02 00 00 00 00 DD [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [20:25:25]RAPDU: 90 00 [20:25:25]wFMCommunicate OK [20:25:25]wFMCommunicate request_size=255 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 44 50 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC ED 02 00 35 04 06 00 A9 [20:25:25]Write to MH i2c: E2 02 01 32 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 44 50 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC ED 02 00 35 04 06 00 A9 00 00 FD [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 32 33 00 90 00 D9 [20:25:25]RAPDU: 90 00 [20:25:25]wFMCommunicate OK [20:25:25]wFMCommunicate request_size=10 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 0D 02 02 05 70 9E 77 5F D1 [20:25:25]Write to MH i2c: E2 0D 00 33 33 80 0D 02 02 05 00 70 9E 77 5F D1 00 00 9F [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 03 00 33 33 00 90 00 DA [20:25:25]RAPDU: 90 00 [20:25:25]wFMCommunicate OK [20:25:25]wFMCommunicate request_size=4 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 0D 03 02 [20:25:25]Write to MH i2c: E2 08 00 34 33 80 0D 03 02 00 00 00 00 E2 [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 0B 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 0B 00 34 33 00 C1 F6 87 F8 DB E2 90 39 90 00 9F [20:25:25]RAPDU: C1 F6 87 F8 DB E2 90 39 90 00 [20:25:25]wFMCommunicate OK [20:25:25]SAM_PROTO_SignData done [20:25:25]FM_MakeSignedData done [20:25:25]CreateOFDProtocolMessage [20:25:25]wFMCommunicate request_size=4 [20:25:25]MH_SAM_APDU [20:25:25]CAPDU: 80 11 00 00 [20:25:25]Write to MH i2c: E2 08 00 35 33 80 11 00 00 00 00 00 00 E2 [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:25]Read from MH i2c: E2 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 17 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: E2 17 00 35 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 35 [20:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:25:25]wFMCommunicate OK [20:25:25]CreateOFDProtocolMessage done [20:25:25]OFDSenderStorePacket 191932 [20:25:25]StoreOFDPacket docnum=191932 [20:25:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 36 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 44 50 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC ED 02 00 35 04 06 00 A9 70 9E 77 5F D1 C1 F6 87 F8 DB E2 90 39 [20:25:25]CheckFolder [20:25:25]dirname=/storage/ofd_packets [20:25:25]CheckFolder done [20:25:25]ProducePacketName [20:25:25]name=ofd_packets/00191932 [20:25:25]NVStorageSaveData ofd_packets/00191932 [20:25:25]File name is /storage/ofd_packets/00191932 [20:25:25]Write 301 bytes [20:25:25]NVStorageSaveData done [20:25:25]OFDSenderStorePacket done [20:25:25]KKMCreateOFDPacket done [20:25:25]NVStorageSaveData kkm_last_timestamp [20:25:25]File name is /storage/kkm_last_timestamp [20:25:25]Write 4 bytes [20:25:25]NVStorageSaveData done [20:25:25]ExternCall_PrintAddStr [20:25:25]wPrintStart [20:25:25]Write to MH i2c: 01 00 00 36 33 69 [20:25:25]Write i2c OK [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: 01 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: 01 07 00 [20:25:25]MH_I2C_Read... [20:25:25]Read from MH i2c: 01 07 00 36 33 00 00 00 00 00 FF 0F 7E [20:25:25]RasterBufferAndPrint [20:25:25]line Счет N : (1)31240 [20:25:25]line ИНН: 02508201610067 [20:25:25]line Контрольно-Кассовый Чек [20:25:25]line ПРОДАЖА [20:25:25]line ТРК (МРК, ГНК) : 21 [20:25:25]line Товар: 2710124130 [20:25:25]line Аи-92-К-5 [20:25:25]line 3.740 * 66.90 [20:25:25]line = 250.21 [20:25:25]line НДС 12% НСП 1% [20:25:25]line > о реализуемом товаре [20:25:25]line ОКРУГЛЕНИЕ: -0.21 [20:25:25]line ИТОГО: 250.00 [20:25:25]line Внесено: 250.00 [20:25:25]line СДАЧА: 0.00 [20:25:25]line НСП 1% : 2.21 [20:25:25]line НДС 12% : 26.57 [20:25:25]line Наличными: 250.00 [20:25:25]line Безнал.: 0.00 [20:25:25]line Место: АЗС № 170 "Партнер Нефть" [20:25:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:25:25]line СНО: Общий режим [20:25:25]line Чек 295 26.10.2024 20:25 [20:25:25]line Смена: 541 ФФД: 1.0 [20:25:25]line ЗНМ: 0300000110 [20:25:25]line РНМ: 0000000000091776 [20:25:25]line Версия ККМ: 001 [20:25:25]line ФМ: 0000000000871754 [20:25:25]line ФД: 191932 [20:25:25]line ФПД: 186301160054737 [20:25:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T202540&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191932&fm=186301160054737&tin=02508201610067®Number=0000000000091776&sum=25000 [20:25:26]OFD Sender: Processing packet 191932 [packets to send 75, broken 74] [20:25:26]ProducePacketName [20:25:26]name=ofd_packets/00191932 [20:25:26]OFD Sender: To server: pG, [20:25:26]CommunicateWithHost lk.salyk.kg:30040 [20:25:26]ConnectInit lk.salyk.kg [20:25:26]written 0, free lines is 4095 [20:25:26]Connected sock=8 [20:25:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 4F 36 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 44 50 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC ED 02 00 35 04 06 00 A9 70 9E 77 5F D1 C1 F6 87 F8 DB E2 90 39 [20:25:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6A 97 47 00 BD 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BC ED 02 00 F4 03 04 00 0E F5 1C 67 B6 04 01 00 00 11 84 9A 50 53 E4 F8 39 [20:25:26]CommunicateWithHost err = 0 [20:25:26]CheckOFDResponse [20:25:26]1017 (14) - 77093643461234 [20:25:26]1041 (16) - 0000000000871754 [20:25:26]1040 (4) - 191932 [20:25:26]1012 (4) - 26.10.2024 13:56 [20:25:26]1206 (1) - 0 [20:25:26]OFD Sender: Remove packet 191932 [20:25:26]ProducePacketName [20:25:26]name=ofd_packets/00191932 [20:25:26]NVStorageDeleteData [20:25:26]Write to MH i2c: 01 00 00 61 33 94 [20:25:26]Write i2c OK [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: 01 07 00 61 33 00 00 00 00 00 A3 0C 4A [20:25:26]RasterBufferAndPrint [20:25:26]line [20:25:26]line [20:25:26]line [20:25:26]line [20:25:26]line [20:25:26]written 0, free lines is 3242 [20:25:26]MH_Cut [20:25:26]Write to MH i2c: D1 01 00 68 33 01 6D [20:25:26]Write i2c OK [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: D1 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: D1 01 00 [20:25:26]MH_I2C_Read... [20:25:26]Read from MH i2c: D1 01 00 68 33 00 6C [20:25:26]Write to MH i2c: 01 00 00 69 33 9C [20:25:26]Write i2c OK [20:25:26]MH_I2C_Read... [20:25:27]OFD Sender: No OFD packet to send [20:25:27]*** Cut start [20:25:27]*** Partial cut [20:25:27]*** CUTSNS_PIN = 1 [20:25:27]*** CUTSNS_PIN = 0 [20:25:27]*** Brake cut motor [20:25:28]Read from MH i2c: 01 [20:25:28]MH_I2C_Read... [20:25:28]*** Stop cut motor [20:25:28]*** Cut end [20:25:28]Read from MH i2c: 01 07 00 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: 01 07 00 69 33 00 00 00 00 00 FF 0F B1 [20:25:28]process_action close_receipt done [20:25:28]requested_data is exist [20:25:28]produce_requested_data [20:25:28]requested_item fm.sn is exist - process it [20:25:28]wFMCommunicate request_size=4 [20:25:28]MH_SAM_APDU [20:25:28]CAPDU: 80 11 00 00 [20:25:28]Write to MH i2c: E2 08 00 6A 33 80 11 00 00 00 00 00 00 17 [20:25:28]Write i2c OK [20:25:28]MH_I2C_Read... [20:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:28]Read from MH i2c: E2 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 17 00 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 17 00 6A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6A [20:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:25:28]wFMCommunicate OK [20:25:28]requested_item fd.num is exist - process it [20:25:28]SAM_PROTO_GetFieldsCounters [20:25:28]wFMCommunicate request_size=4 [20:25:28]MH_SAM_APDU [20:25:28]CAPDU: 80 13 00 00 [20:25:28]Write to MH i2c: E2 08 00 6B 33 80 13 00 00 00 00 00 00 1A [20:25:28]Write i2c OK [20:25:28]MH_I2C_Read... [20:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:28]Read from MH i2c: E2 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 62 00 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 62 00 6B 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [20:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:28]wFMCommunicate OK [20:25:28]SAM_PROTO_GetFieldsCounters done [20:25:28]requested_item shift.num is exist - process it [20:25:28]requested_item shift.opened is exist - process it [20:25:28]req_shift_opened [20:25:28]FM_GetShiftState [20:25:28]SAM_PROTO_GetShiftState [20:25:28]wFMCommunicate request_size=4 [20:25:28]MH_SAM_APDU [20:25:28]CAPDU: 80 13 01 00 [20:25:28]Write to MH i2c: E2 08 00 6C 33 80 13 01 00 00 00 00 00 1C [20:25:28]Write i2c OK [20:25:28]MH_I2C_Read... [20:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:28]Read from MH i2c: E2 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 0E 00 [20:25:28]MH_I2C_Read... [20:25:28]Read from MH i2c: E2 0E 00 6C 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 95 [20:25:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:25:28]wFMCommunicate OK [20:25:28]SAM_PROTO_GetShiftState done [20:25:28]FM_GetShiftState done [20:25:28]req_shift_opened done [20:25:28]requested_item shift.open_date is exist - process it [20:25:28]req_shift_open_date [20:25:28]req_shift_open_date done [20:25:28]produce_requested_data done [20:25:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191932,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:25:28]process_action_free close_receipt [20:25:28]json_value_free [20:25:28]json_value_free done [20:25:28]process_json_proto returns [20:25:28]Send response to host [20:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191932,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:25:28]free response buf [20:25:28]execute_script done [20:25:28]execute_script returns [20:25:28]free content buf [20:25:28]Sock 5.Close socket [20:25:28]Sock 5.Thread stoped [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:54]accept exits with 6 [20:37:54]New connection [20:37:54]New thread 3066817892 created [20:37:54]Thread 3066961252 joined [20:37:54]Waiting for new connection... [20:37:54] Sock 6.Parse request [20:37:54]Sock 6.Check first char [20:37:54]Sock 6.First char is OK [20:37:54]request: POST /json_proto HTTP/1.0 [20:37:54]Method: POST [20:37:54]URL: /json_proto [20:37:54]Method is POST - this is cgi request [20:37:54]url: /json_proto [20:37:54]query_string will be loaded in cgi processing [20:37:54]execute_cgi json_proto POST (null) [20:37:54]execute_cgi path=json_proto method=POST [20:37:54]POST find Content-Length [20:37:54]Host: 172.17.63.131:8080 [20:37:54]Content-Length: 676 [20:37:54]Content-Type: application/json [20:37:54] [20:37:54]POST finish read [20:37:54]Found Content-Length = 676 [20:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:54]execute_script... [20:37: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)31241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:54]POST & json_proto [20:37:54]process_json_proto [20:37:54]json parsed OK: [20:37:54]protocol is kg_v1.0 [20:37:54]action value=close_receipt [20:37:54]process_action close_receipt [20:37:54]cmd_close_receipt [20:37:54]MH_GetDate [20:37:54]Write to MH i2c: F0 00 00 6D 33 8F [20:37:54]Write i2c OK [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 09 00 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: F0 09 00 6D 33 00 33 53 1D 67 22 05 6E 64 9B [20:37:54]GetLastDocTimeStamp 1729974340 [20:37:54]current date 1729975091 [20:37:54]FM_GetShiftState [20:37:54]SAM_PROTO_GetShiftState [20:37:54]wFMCommunicate request_size=4 [20:37:54]MH_SAM_APDU [20:37:54]CAPDU: 80 13 01 00 [20:37:54]Write to MH i2c: E2 08 00 6E 33 80 13 01 00 00 00 00 00 1E [20:37:54]Write i2c OK [20:37:54]MH_I2C_Read... [20:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:54]Read from MH i2c: E2 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: E2 0E 00 [20:37:54]MH_I2C_Read... [20:37:54]Read from MH i2c: E2 0E 00 6E 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 97 [20:37:54]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:37:54]wFMCommunicate OK [20:37:54]SAM_PROTO_GetShiftState done [20:37:54]FM_GetShiftState done [20:37:54]opened in 1729902770 [20:37:54]opened+sec_in_day 1729989170 [20:37:54]quantity*price = 50041 [20:37:54]sum+1 = 50042 [20:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 296 26.10.2024 20:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191933 ФПД: 200707384978824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191933&fm=200707384978824&tin=02508201610067®Number=0000000000091776&sum=50000 [20:37:55]StoreToDocumentArchive [20:37:55]shift 541 fd 191933 [20:37:55]save to /storage/0541/doc_00191933 [20:37:55]save last doc name /storage/0541/doc_00191933 to /storage/kkm_last_doc_name [20:37:55]save OK [20:37:55]Clear old archive folders... [20:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:55]tlvbuf is 01A50A00 [20:37:55]SAM_PROTO_ClearQueue [20:37:55]wFMCommunicate request_size=4 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 09 00 00 [20:37:55]Write to MH i2c: E2 08 00 7B 33 80 09 00 00 00 00 00 00 20 [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:55]Read from MH i2c: E2 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [20:37:55]RAPDU: 90 00 [20:37:55]wFMCommunicate OK [20:37:55]SAM_PROTO_ClearQueue done [20:37:55]KKMCreateOFDPacket [20:37:55]OFDProtocolAddRootSTLVToBuf [20:37:55]FM_MakeSignedData [20:37:55]FM_MakeSignedData [20:37:55]SAM_PROTO_SignData [20:37:55]wFMCommunicate request_size=4 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 0D 01 02 [20:37:55]Write to MH i2c: E2 08 00 7C 33 80 0D 01 02 00 00 00 00 28 [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:55]Read from MH i2c: E2 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 [20:37:55]MH_I2C_Read... [20:37:55]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [20:37:55]RAPDU: 90 00 [20:37:55]wFMCommunicate OK [20:37:55]wFMCommunicate request_size=255 [20:37:55]MH_SAM_APDU [20:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 33 53 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD ED 02 00 35 04 06 00 B6 [20:37:55]Write to MH i2c: E2 02 01 7D 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 33 53 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD ED 02 00 35 04 06 00 B6 00 00 70 [20:37:55]Write i2c OK [20:37:55]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 7D 33 00 90 00 24 [20:37:56]RAPDU: 90 00 [20:37:56]wFMCommunicate OK [20:37:56]wFMCommunicate request_size=10 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 0D 02 02 05 8A D4 62 AD 88 [20:37:56]Write to MH i2c: E2 0D 00 7E 33 80 0D 02 02 05 00 8A D4 62 AD 88 00 00 2A [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [20:37:56]RAPDU: 90 00 [20:37:56]wFMCommunicate OK [20:37:56]wFMCommunicate request_size=4 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 0D 03 02 [20:37:56]Write to MH i2c: E2 08 00 7F 33 80 0D 03 02 00 00 00 00 2D [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 0B 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 0B 00 7F 33 00 D9 94 F0 12 32 76 FD 3F 90 00 81 [20:37:56]RAPDU: D9 94 F0 12 32 76 FD 3F 90 00 [20:37:56]wFMCommunicate OK [20:37:56]SAM_PROTO_SignData done [20:37:56]FM_MakeSignedData done [20:37:56]CreateOFDProtocolMessage [20:37:56]wFMCommunicate request_size=4 [20:37:56]MH_SAM_APDU [20:37:56]CAPDU: 80 11 00 00 [20:37:56]Write to MH i2c: E2 08 00 80 33 80 11 00 00 00 00 00 00 2D [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:56]Read from MH i2c: E2 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 17 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: E2 17 00 80 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 80 [20:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:37:56]wFMCommunicate OK [20:37:56]CreateOFDProtocolMessage done [20:37:56]OFDSenderStorePacket 191933 [20:37:56]StoreOFDPacket docnum=191933 [20:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 9E 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 33 53 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD ED 02 00 35 04 06 00 B6 8A D4 62 AD 88 D9 94 F0 12 32 76 FD 3F [20:37:56]CheckFolder [20:37:56]dirname=/storage/ofd_packets [20:37:56]CheckFolder done [20:37:56]ProducePacketName [20:37:56]name=ofd_packets/00191933 [20:37:56]NVStorageSaveData ofd_packets/00191933 [20:37:56]File name is /storage/ofd_packets/00191933 [20:37:56]Write 301 bytes [20:37:56]NVStorageSaveData done [20:37:56]OFDSenderStorePacket done [20:37:56]KKMCreateOFDPacket done [20:37:56]NVStorageSaveData kkm_last_timestamp [20:37:56]File name is /storage/kkm_last_timestamp [20:37:56]Write 4 bytes [20:37:56]NVStorageSaveData done [20:37:56]ExternCall_PrintAddStr [20:37:56]wPrintStart [20:37:56]Write to MH i2c: 01 00 00 81 33 B4 [20:37:56]Write i2c OK [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 [20:37:56]MH_I2C_Read... [20:37:56]Read from MH i2c: 01 07 00 81 33 00 00 00 00 00 FF 0F C9 [20:37:56]RasterBufferAndPrint [20:37:56]line Счет N : (1)31241 [20:37:56]line ИНН: 02508201610067 [20:37:56]line Контрольно-Кассовый Чек [20:37:56]line ПРОДАЖА [20:37:56]line ТРК (МРК, ГНК) : 12 [20:37:56]line Товар: 2710124130 [20:37:56]line Аи-92-К-5 [20:37:56]line 7.480 * 66.90 [20:37:56]line = 500.41 [20:37:56]line НДС 12% НСП 1% [20:37:56]line > о реализуемом товаре [20:37:56]line ОКРУГЛЕНИЕ: -0.41 [20:37:56]line ИТОГО: 500.00 [20:37:56]line Внесено: 500.00 [20:37:56]line СДАЧА: 0.00 [20:37:56]line НСП 1% : 4.43 [20:37:56]line НДС 12% : 53.14 [20:37:56]line Наличными: 500.00 [20:37:56]line Безнал.: 0.00 [20:37:56]line Место: АЗС № 170 "Партнер Нефть" [20:37:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:37:56]line СНО: Общий режим [20:37:56]line Чек 296 26.10.2024 20:38 [20:37:56]line Смена: 541 ФФД: 1.0 [20:37:56]line ЗНМ: 0300000110 [20:37:56]line РНМ: 0000000000091776 [20:37:56]line Версия ККМ: 001 [20:37:56]line ФМ: 0000000000871754 [20:37:56]line ФД: 191933 [20:37:56]line ФПД: 200707384978824 [20:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T203811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191933&fm=200707384978824&tin=02508201610067®Number=0000000000091776&sum=50000 [20:37:56]OFD Sender: Processing packet 191933 [packets to send 75, broken 74] [20:37:56]ProducePacketName [20:37:56]name=ofd_packets/00191933 [20:37:56]OFD Sender: To server: pG, [20:37:56]CommunicateWithHost lk.salyk.kg:30040 [20:37:56]ConnectInit lk.salyk.kg [20:37:56]written 0, free lines is 4095 [20:37:56]Connected sock=8 [20:37:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 CF 9E 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 33 53 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD ED 02 00 35 04 06 00 B6 8A D4 62 AD 88 D9 94 F0 12 32 76 FD 3F [20:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 E1 AB 47 00 7A 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BD ED 02 00 F4 03 04 00 FD F7 1C 67 B6 04 01 00 00 5D 41 A5 93 92 28 62 3C [20:37:57]CommunicateWithHost err = 0 [20:37:57]CheckOFDResponse [20:37:57]1017 (14) - 77093643461234 [20:37:57]1041 (16) - 0000000000871754 [20:37:57]1040 (4) - 191933 [20:37:57]1012 (4) - 26.10.2024 14:09 [20:37:57]1206 (1) - 0 [20:37:57]OFD Sender: Remove packet 191933 [20:37:57]ProducePacketName [20:37:57]name=ofd_packets/00191933 [20:37:57]NVStorageDeleteData [20:37:57]Write to MH i2c: 01 00 00 AC 33 DF [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 07 00 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: 01 07 00 AC 33 00 00 00 00 00 B8 0C AA [20:37:57]RasterBufferAndPrint [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]line [20:37:57]written 0, free lines is 3263 [20:37:57]MH_Cut [20:37:57]Write to MH i2c: D1 01 00 B3 33 01 B8 [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 01 00 [20:37:57]MH_I2C_Read... [20:37:57]Read from MH i2c: D1 01 00 B3 33 00 B7 [20:37:57]Write to MH i2c: 01 00 00 B4 33 E7 [20:37:57]Write i2c OK [20:37:57]MH_I2C_Read... [20:37:57]OFD Sender: No OFD packet to send [20:37:58]*** Cut start [20:37:58]*** Partial cut [20:37:58]*** CUTSNS_PIN = 1 [20:37:58]*** CUTSNS_PIN = 0 [20:37:58]*** Brake cut motor [20:37:58]Read from MH i2c: 01 [20:37:58]MH_I2C_Read... [20:37:58]*** Stop cut motor [20:37:58]*** Cut end [20:37:58]Read from MH i2c: 01 07 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: 01 07 00 B4 33 00 00 00 00 00 FF 0F FC [20:37:58]process_action close_receipt done [20:37:58]requested_data is exist [20:37:58]produce_requested_data [20:37:58]requested_item fm.sn is exist - process it [20:37:58]wFMCommunicate request_size=4 [20:37:58]MH_SAM_APDU [20:37:58]CAPDU: 80 11 00 00 [20:37:58]Write to MH i2c: E2 08 00 B5 33 80 11 00 00 00 00 00 00 62 [20:37:58]Write i2c OK [20:37:58]MH_I2C_Read... [20:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:58]Read from MH i2c: E2 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 17 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 17 00 B5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B5 [20:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:37:58]wFMCommunicate OK [20:37:58]requested_item fd.num is exist - process it [20:37:58]SAM_PROTO_GetFieldsCounters [20:37:58]wFMCommunicate request_size=4 [20:37:58]MH_SAM_APDU [20:37:58]CAPDU: 80 13 00 00 [20:37:58]Write to MH i2c: E2 08 00 B6 33 80 13 00 00 00 00 00 00 65 [20:37:58]Write i2c OK [20:37:58]MH_I2C_Read... [20:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:58]Read from MH i2c: E2 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 62 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 62 00 B6 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [20:37:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:58]wFMCommunicate OK [20:37:58]SAM_PROTO_GetFieldsCounters done [20:37:58]requested_item shift.num is exist - process it [20:37:58]requested_item shift.opened is exist - process it [20:37:58]req_shift_opened [20:37:58]FM_GetShiftState [20:37:58]SAM_PROTO_GetShiftState [20:37:58]wFMCommunicate request_size=4 [20:37:58]MH_SAM_APDU [20:37:58]CAPDU: 80 13 01 00 [20:37:58]Write to MH i2c: E2 08 00 B7 33 80 13 01 00 00 00 00 00 67 [20:37:58]Write i2c OK [20:37:58]MH_I2C_Read... [20:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:58]Read from MH i2c: E2 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 0E 00 [20:37:58]MH_I2C_Read... [20:37:58]Read from MH i2c: E2 0E 00 B7 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E0 [20:37:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:37:58]wFMCommunicate OK [20:37:58]SAM_PROTO_GetShiftState done [20:37:58]FM_GetShiftState done [20:37:58]req_shift_opened done [20:37:58]requested_item shift.open_date is exist - process it [20:37:58]req_shift_open_date [20:37:58]req_shift_open_date done [20:37:58]produce_requested_data done [20:37:58]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191933,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:37:58]process_action_free close_receipt [20:37:58]json_value_free [20:37:58]json_value_free done [20:37:58]process_json_proto returns [20:37:58]Send response to host [20:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191933,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:37:58]free response buf [20:37:58]execute_script done [20:37:58]execute_script returns [20:37:58]free content buf [20:37:58]Sock 6.Close socket [20:37:58]Sock 6.Thread stoped [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:00]accept exits with 5 [20:42:00]New connection [20:42:00]New thread 3066961252 created [20:42:00]Thread 3066817892 joined [20:42:00]Waiting for new connection... [20:42:00] Sock 5.Parse request [20:42:00]Sock 5.Check first char [20:42:00]Sock 5.First char is OK [20:42:00]request: POST /json_proto HTTP/1.0 [20:42:00]Method: POST [20:42:00]URL: /json_proto [20:42:00]Method is POST - this is cgi request [20:42:00]url: /json_proto [20:42:00]query_string will be loaded in cgi processing [20:42:00]execute_cgi json_proto POST (null) [20:42:00]execute_cgi path=json_proto method=POST [20:42:00]POST find Content-Length [20:42:00]Host: 172.17.63.131:8080 [20:42:00]Content-Length: 676 [20:42:00]Content-Type: application/json [20:42:00] [20:42:00]POST finish read [20:42:00]Found Content-Length = 676 [20:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:00]execute_script... [20:42: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)31243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:00]POST & json_proto [20:42:00]process_json_proto [20:42:00]json parsed OK: [20:42:00]protocol is kg_v1.0 [20:42:00]action value=close_receipt [20:42:00]process_action close_receipt [20:42:00]cmd_close_receipt [20:42:00]MH_GetDate [20:42:00]Write to MH i2c: F0 00 00 B8 33 DA [20:42:00]Write i2c OK [20:42:00]MH_I2C_Read... [20:42:00]Read from MH i2c: F0 [20:42:00]MH_I2C_Read... [20:42:00]Read from MH i2c: F0 09 00 [20:42:00]MH_I2C_Read... [20:42:00]Read from MH i2c: F0 09 00 B8 33 00 28 54 1D 67 22 05 6E 64 DC [20:42:00]GetLastDocTimeStamp 1729975091 [20:42:00]current date 1729975336 [20:42:00]FM_GetShiftState [20:42:00]SAM_PROTO_GetShiftState [20:42:00]wFMCommunicate request_size=4 [20:42:00]MH_SAM_APDU [20:42:00]CAPDU: 80 13 01 00 [20:42:00]Write to MH i2c: E2 08 00 B9 33 80 13 01 00 00 00 00 00 69 [20:42:00]Write i2c OK [20:42:00]MH_I2C_Read... [20:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:00]Read from MH i2c: E2 [20:42:00]MH_I2C_Read... [20:42:00]Read from MH i2c: E2 0E 00 [20:42:00]MH_I2C_Read... [20:42:00]Read from MH i2c: E2 0E 00 B9 33 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E2 [20:42:00]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:42:00]wFMCommunicate OK [20:42:00]SAM_PROTO_GetShiftState done [20:42:00]FM_GetShiftState done [20:42:00]opened in 1729902770 [20:42:00]opened+sec_in_day 1729989170 [20:42:00]quantity*price = 50041 [20:42:00]sum+1 = 50042 [20:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 297 26.10.2024 20:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191934 ФПД: 46854630733335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191934&fm=46854630733335&tin=02508201610067®Number=0000000000091776&sum=50000 [20:42:01]StoreToDocumentArchive [20:42:01]shift 541 fd 191934 [20:42:01]save to /storage/0541/doc_00191934 [20:42:01]save last doc name /storage/0541/doc_00191934 to /storage/kkm_last_doc_name [20:42:01]save OK [20:42:01]Clear old archive folders... [20:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:01]tlvbuf is 01A93C90 [20:42:01]SAM_PROTO_ClearQueue [20:42:01]wFMCommunicate request_size=4 [20:42:01]MH_SAM_APDU [20:42:01]CAPDU: 80 09 00 00 [20:42:01]Write to MH i2c: E2 08 00 C6 33 80 09 00 00 00 00 00 00 6B [20:42:01]Write i2c OK [20:42:01]MH_I2C_Read... [20:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:01]Read from MH i2c: E2 [20:42:01]MH_I2C_Read... [20:42:01]Read from MH i2c: E2 03 00 [20:42:01]MH_I2C_Read... [20:42:01]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [20:42:01]RAPDU: 90 00 [20:42:01]wFMCommunicate OK [20:42:01]SAM_PROTO_ClearQueue done [20:42:01]KKMCreateOFDPacket [20:42:01]OFDProtocolAddRootSTLVToBuf [20:42:01]FM_MakeSignedData [20:42:01]FM_MakeSignedData [20:42:01]SAM_PROTO_SignData [20:42:01]wFMCommunicate request_size=4 [20:42:01]MH_SAM_APDU [20:42:01]CAPDU: 80 0D 01 02 [20:42:01]Write to MH i2c: E2 08 00 C7 33 80 0D 01 02 00 00 00 00 73 [20:42:01]Write i2c OK [20:42:01]MH_I2C_Read... [20:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:01]Read from MH i2c: E2 [20:42:01]MH_I2C_Read... [20:42:01]Read from MH i2c: E2 03 00 [20:42:01]MH_I2C_Read... [20:42:01]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [20:42:01]RAPDU: 90 00 [20:42:01]wFMCommunicate OK [20:42:01]wFMCommunicate request_size=255 [20:42:01]MH_SAM_APDU [20:42: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 29 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE ED 02 00 35 04 06 00 2A [20:42:01]Write to MH i2c: E2 02 01 C8 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 29 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE ED 02 00 35 04 06 00 2A 00 00 28 [20:42:01]Write i2c OK [20:42:01]MH_I2C_Read... [20:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:02]Read from MH i2c: E2 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 03 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 03 00 C8 33 00 90 00 6F [20:42:02]RAPDU: 90 00 [20:42:02]wFMCommunicate OK [20:42:02]wFMCommunicate request_size=10 [20:42:02]MH_SAM_APDU [20:42:02]CAPDU: 80 0D 02 02 05 9D 31 9E F6 17 [20:42:02]Write to MH i2c: E2 0D 00 C9 33 80 0D 02 02 05 00 9D 31 9E F6 17 00 00 F9 [20:42:02]Write i2c OK [20:42:02]MH_I2C_Read... [20:42:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:02]Read from MH i2c: E2 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 03 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 03 00 C9 33 00 90 00 70 [20:42:02]RAPDU: 90 00 [20:42:02]wFMCommunicate OK [20:42:02]wFMCommunicate request_size=4 [20:42:02]MH_SAM_APDU [20:42:02]CAPDU: 80 0D 03 02 [20:42:02]Write to MH i2c: E2 08 00 CA 33 80 0D 03 02 00 00 00 00 78 [20:42:02]Write i2c OK [20:42:02]MH_I2C_Read... [20:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:02]Read from MH i2c: E2 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 0B 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 0B 00 CA 33 00 7D 7A 02 2E 89 B3 47 0D 90 00 30 [20:42:02]RAPDU: 7D 7A 02 2E 89 B3 47 0D 90 00 [20:42:02]wFMCommunicate OK [20:42:02]SAM_PROTO_SignData done [20:42:02]FM_MakeSignedData done [20:42:02]CreateOFDProtocolMessage [20:42:02]wFMCommunicate request_size=4 [20:42:02]MH_SAM_APDU [20:42:02]CAPDU: 80 11 00 00 [20:42:02]Write to MH i2c: E2 08 00 CB 33 80 11 00 00 00 00 00 00 78 [20:42:02]Write i2c OK [20:42:02]MH_I2C_Read... [20:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:02]Read from MH i2c: E2 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 17 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: E2 17 00 CB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 CB [20:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:02]wFMCommunicate OK [20:42:02]CreateOFDProtocolMessage done [20:42:02]OFDSenderStorePacket 191934 [20:42:02]StoreOFDPacket docnum=191934 [20:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C 76 07 01 AF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 29 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE ED 02 00 35 04 06 00 2A 9D 31 9E F6 17 7D 7A 02 2E 89 B3 47 0D [20:42:02]CheckFolder [20:42:02]dirname=/storage/ofd_packets [20:42:02]CheckFolder done [20:42:02]ProducePacketName [20:42:02]name=ofd_packets/00191934 [20:42:02]NVStorageSaveData ofd_packets/00191934 [20:42:02]File name is /storage/ofd_packets/00191934 [20:42:02]Write 301 bytes [20:42:02]NVStorageSaveData done [20:42:02]OFDSenderStorePacket done [20:42:02]KKMCreateOFDPacket done [20:42:02]NVStorageSaveData kkm_last_timestamp [20:42:02]File name is /storage/kkm_last_timestamp [20:42:02]Write 4 bytes [20:42:02]NVStorageSaveData done [20:42:02]ExternCall_PrintAddStr [20:42:02]wPrintStart [20:42:02]Write to MH i2c: 01 00 00 CC 33 FF [20:42:02]Write i2c OK [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 07 00 [20:42:02]MH_I2C_Read... [20:42:02]Read from MH i2c: 01 07 00 CC 33 00 00 00 00 00 FF 0F 14 [20:42:02]RasterBufferAndPrint [20:42:02]line Счет N : (1)31243 [20:42:02]line ИНН: 02508201610067 [20:42:02]line Контрольно-Кассовый Чек [20:42:02]line ПРОДАЖА [20:42:02]line ТРК (МРК, ГНК) : 12 [20:42:02]line Товар: 2710124130 [20:42:02]line Аи-92-К-5 [20:42:02]line 7.480 * 66.90 [20:42:02]line = 500.41 [20:42:02]line НДС 12% НСП 1% [20:42:02]line > о реализуемом товаре [20:42:02]line ОКРУГЛЕНИЕ: -0.41 [20:42:02]line ИТОГО: 500.00 [20:42:02]line Внесено: 500.00 [20:42:02]line СДАЧА: 0.00 [20:42:02]line НСП 1% : 4.43 [20:42:02]line НДС 12% : 53.14 [20:42:02]line Наличными: 500.00 [20:42:02]line Безнал.: 0.00 [20:42:02]line Место: АЗС № 170 "Партнер Нефть" [20:42:02]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:42:02]line СНО: Общий режим [20:42:02]line Чек 297 26.10.2024 20:42 [20:42:02]line Смена: 541 ФФД: 1.0 [20:42:02]line ЗНМ: 0300000110 [20:42:02]line РНМ: 0000000000091776 [20:42:02]line Версия ККМ: 001 [20:42:02]line ФМ: 0000000000871754 [20:42:02]line ФД: 191934 [20:42:02]line ФПД: 46854630733335 [20:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204217&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191934&fm=46854630733335&tin=02508201610067®Number=0000000000091776&sum=50000 [20:42:02]OFD Sender: Processing packet 191934 [packets to send 75, broken 74] [20:42:02]ProducePacketName [20:42:02]name=ofd_packets/00191934 [20:42:02]OFD Sender: To server: pG, [20:42:02]CommunicateWithHost lk.salyk.kg:30040 [20:42:02]ConnectInit lk.salyk.kg [20:42:02]written 0, free lines is 4095 [20:42:02]Connected sock=8 [20:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3C 76 07 01 AF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 29 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE ED 02 00 35 04 06 00 2A 9D 31 9E F6 17 7D 7A 02 2E 89 B3 47 0D [20:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0A CE 47 00 F5 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BE ED 02 00 F4 03 04 00 F3 F8 1C 67 B6 04 01 00 00 B3 84 2D 2E 51 EB 3F 0A [20:42:02]CommunicateWithHost err = 0 [20:42:02]CheckOFDResponse [20:42:02]1017 (14) - 77093643461234 [20:42:02]1041 (16) - 0000000000871754 [20:42:02]1040 (4) - 191934 [20:42:02]1012 (4) - 26.10.2024 14:13 [20:42:02]1206 (1) - 0 [20:42:02]OFD Sender: Remove packet 191934 [20:42:02]ProducePacketName [20:42:02]name=ofd_packets/00191934 [20:42:02]NVStorageDeleteData [20:42:03]Write to MH i2c: 01 00 00 F7 33 2A [20:42:03]Write i2c OK [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: 01 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: 01 07 00 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: 01 07 00 F7 33 00 00 00 00 00 B7 0C F4 [20:42:03]RasterBufferAndPrint [20:42:03]line [20:42:03]line [20:42:03]line [20:42:03]line [20:42:03]line [20:42:03]written 0, free lines is 3262 [20:42:03]MH_Cut [20:42:03]Write to MH i2c: D1 01 00 FE 33 01 03 [20:42:03]Write i2c OK [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: D1 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: D1 01 00 [20:42:03]MH_I2C_Read... [20:42:03]Read from MH i2c: D1 01 00 FE 33 00 02 [20:42:03]Write to MH i2c: 01 00 00 FF 33 32 [20:42:03]Write i2c OK [20:42:03]MH_I2C_Read... [20:42:03]OFD Sender: No OFD packet to send [20:42:03]*** Cut start [20:42:03]*** Partial cut [20:42:03]*** CUTSNS_PIN = 1 [20:42:03]*** CUTSNS_PIN = 0 [20:42:04]*** Brake cut motor [20:42:04]Read from MH i2c: 01 [20:42:04]MH_I2C_Read... [20:42:04]*** Stop cut motor [20:42:04]*** Cut end [20:42:04]Read from MH i2c: 01 07 00 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: 01 07 00 FF 33 00 00 00 00 00 FF 0F 47 [20:42:04]process_action close_receipt done [20:42:04]requested_data is exist [20:42:04]produce_requested_data [20:42:04]requested_item fm.sn is exist - process it [20:42:04]wFMCommunicate request_size=4 [20:42:04]MH_SAM_APDU [20:42:04]CAPDU: 80 11 00 00 [20:42:04]Write to MH i2c: E2 08 00 00 34 80 11 00 00 00 00 00 00 AE [20:42:04]Write i2c OK [20:42:04]MH_I2C_Read... [20:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:04]Read from MH i2c: E2 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 17 00 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 17 00 00 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 01 [20:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:04]wFMCommunicate OK [20:42:04]requested_item fd.num is exist - process it [20:42:04]SAM_PROTO_GetFieldsCounters [20:42:04]wFMCommunicate request_size=4 [20:42:04]MH_SAM_APDU [20:42:04]CAPDU: 80 13 00 00 [20:42:04]Write to MH i2c: E2 08 00 01 34 80 13 00 00 00 00 00 00 B1 [20:42:04]Write i2c OK [20:42:04]MH_I2C_Read... [20:42:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:04]Read from MH i2c: E2 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 62 00 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 62 00 01 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [20:42:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:04]wFMCommunicate OK [20:42:04]SAM_PROTO_GetFieldsCounters done [20:42:04]requested_item shift.num is exist - process it [20:42:04]requested_item shift.opened is exist - process it [20:42:04]req_shift_opened [20:42:04]FM_GetShiftState [20:42:04]SAM_PROTO_GetShiftState [20:42:04]wFMCommunicate request_size=4 [20:42:04]MH_SAM_APDU [20:42:04]CAPDU: 80 13 01 00 [20:42:04]Write to MH i2c: E2 08 00 02 34 80 13 01 00 00 00 00 00 B3 [20:42:04]Write i2c OK [20:42:04]MH_I2C_Read... [20:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:04]Read from MH i2c: E2 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 0E 00 [20:42:04]MH_I2C_Read... [20:42:04]Read from MH i2c: E2 0E 00 02 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2C [20:42:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:42:04]wFMCommunicate OK [20:42:04]SAM_PROTO_GetShiftState done [20:42:04]FM_GetShiftState done [20:42:04]req_shift_opened done [20:42:04]requested_item shift.open_date is exist - process it [20:42:04]req_shift_open_date [20:42:04]req_shift_open_date done [20:42:04]produce_requested_data done [20:42:04]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191934,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:42:04]process_action_free close_receipt [20:42:04]json_value_free [20:42:04]json_value_free done [20:42:04]process_json_proto returns [20:42:04]Send response to host [20:42:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191934,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:42:04]free response buf [20:42:04]execute_script done [20:42:04]execute_script returns [20:42:04]free content buf [20:42:04]Sock 5.Close socket [20:42:04]Sock 5.Thread stoped [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:14]accept exits with 6 [20:42:14]New connection [20:42:14]New thread 3066817892 created [20:42:14]Thread 3066961252 joined [20:42:14]Waiting for new connection... [20:42:14] Sock 6.Parse request [20:42:14]Sock 6.Check first char [20:42:14]Sock 6.First char is OK [20:42:14]request: POST /json_proto HTTP/1.0 [20:42:14]Method: POST [20:42:14]URL: /json_proto [20:42:14]Method is POST - this is cgi request [20:42:14]url: /json_proto [20:42:14]query_string will be loaded in cgi processing [20:42:14]execute_cgi json_proto POST (null) [20:42:14]execute_cgi path=json_proto method=POST [20:42:14]POST find Content-Length [20:42:14]Host: 172.17.63.131:8080 [20:42:14]Content-Length: 678 [20:42:14]Content-Type: application/json [20:42:14] [20:42:14]POST finish read [20:42:14]Found Content-Length = 678 [20:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31242", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:14]execute_script... [20:42:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31242", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:14]POST & json_proto [20:42:14]process_json_proto [20:42:14]json parsed OK: [20:42:14]protocol is kg_v1.0 [20:42:14]action value=close_receipt [20:42:14]process_action close_receipt [20:42:14]cmd_close_receipt [20:42:14]MH_GetDate [20:42:14]Write to MH i2c: F0 00 00 03 34 26 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 09 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 09 00 03 34 00 37 54 1D 67 22 05 6E 64 37 [20:42:14]GetLastDocTimeStamp 1729975337 [20:42:14]current date 1729975351 [20:42:14]FM_GetShiftState [20:42:14]SAM_PROTO_GetShiftState [20:42:14]wFMCommunicate request_size=4 [20:42:14]MH_SAM_APDU [20:42:14]CAPDU: 80 13 01 00 [20:42:14]Write to MH i2c: E2 08 00 04 34 80 13 01 00 00 00 00 00 B5 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:14]Read from MH i2c: E2 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: E2 0E 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: E2 0E 00 04 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2E [20:42:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:42:14]wFMCommunicate OK [20:42:14]SAM_PROTO_GetShiftState done [20:42:14]FM_GetShiftState done [20:42:14]opened in 1729902770 [20:42:14]opened+sec_in_day 1729989170 [20:42:14]quantity*price = 100050 [20:42:14]sum+1 = 100052 [20:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 298 26.10.2024 20:42 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191935 ФПД: 234493685862192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191935&fm=234493685862192&tin=02508201610067®Number=0000000000091776&sum=100000 [20:42:15]StoreToDocumentArchive [20:42:15]shift 541 fd 191935 [20:42:15]save to /storage/0541/doc_00191935 [20:42:15]save last doc name /storage/0541/doc_00191935 to /storage/kkm_last_doc_name [20:42:15]save OK [20:42:15]Clear old archive folders... [20:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:42:15]tlvbuf is 01B3B010 [20:42:15]SAM_PROTO_ClearQueue [20:42:15]wFMCommunicate request_size=4 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 09 00 00 [20:42:15]Write to MH i2c: E2 08 00 11 34 80 09 00 00 00 00 00 00 B7 [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:15]Read from MH i2c: E2 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 03 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [20:42:15]RAPDU: 90 00 [20:42:15]wFMCommunicate OK [20:42:15]SAM_PROTO_ClearQueue done [20:42:15]KKMCreateOFDPacket [20:42:15]OFDProtocolAddRootSTLVToBuf [20:42:15]FM_MakeSignedData [20:42:15]FM_MakeSignedData [20:42:15]SAM_PROTO_SignData [20:42:15]wFMCommunicate request_size=4 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 0D 01 02 [20:42:15]Write to MH i2c: E2 08 00 12 34 80 0D 01 02 00 00 00 00 BF [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:15]Read from MH i2c: E2 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 03 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 03 00 12 34 00 90 00 BA [20:42:15]RAPDU: 90 00 [20:42:15]wFMCommunicate OK [20:42:15]wFMCommunicate request_size=255 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 37 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF ED 02 00 35 04 06 00 D5 45 50 D9 [20:42:15]Write to MH i2c: E2 02 01 13 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 37 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF ED 02 00 35 04 06 00 D5 45 50 D9 00 00 93 [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 13 34 00 90 00 BB [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]wFMCommunicate request_size=7 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 0D 02 02 02 0F 30 [20:42:16]Write to MH i2c: E2 0A 00 14 34 80 0D 02 02 02 00 0F 30 00 00 05 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 14 34 00 90 00 BC [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 0D 03 02 [20:42:16]Write to MH i2c: E2 08 00 15 34 80 0D 03 02 00 00 00 00 C4 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0B 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0B 00 15 34 00 A5 6F 9A 55 ED 80 BE 58 90 00 4B [20:42:16]RAPDU: A5 6F 9A 55 ED 80 BE 58 90 00 [20:42:16]wFMCommunicate OK [20:42:16]SAM_PROTO_SignData done [20:42:16]FM_MakeSignedData done [20:42:16]CreateOFDProtocolMessage [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 11 00 00 [20:42:16]Write to MH i2c: E2 08 00 16 34 80 11 00 00 00 00 00 00 C4 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 16 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 17 [20:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:16]wFMCommunicate OK [20:42:16]CreateOFDProtocolMessage done [20:42:16]OFDSenderStorePacket 191935 [20:42:16]StoreOFDPacket docnum=191935 [20:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6B 44 04 01 72 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 37 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF ED 02 00 35 04 06 00 D5 45 50 D9 0F 30 A5 6F 9A 55 ED 80 BE 58 [20:42:16]CheckFolder [20:42:16]dirname=/storage/ofd_packets [20:42:16]CheckFolder done [20:42:16]ProducePacketName [20:42:16]name=ofd_packets/00191935 [20:42:16]NVStorageSaveData ofd_packets/00191935 [20:42:16]File name is /storage/ofd_packets/00191935 [20:42:16]Write 298 bytes [20:42:16]NVStorageSaveData done [20:42:16]OFDSenderStorePacket done [20:42:16]KKMCreateOFDPacket done [20:42:16]NVStorageSaveData kkm_last_timestamp [20:42:16]File name is /storage/kkm_last_timestamp [20:42:16]Write 4 bytes [20:42:16]NVStorageSaveData done [20:42:16]ExternCall_PrintAddStr [20:42:16]wPrintStart [20:42:16]Write to MH i2c: 01 00 00 17 34 4B [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 17 34 00 00 00 00 00 FF 0F 60 [20:42:16]RasterBufferAndPrint [20:42:16]line Счет N : (1)31242 [20:42:16]line ИНН: 02508201610067 [20:42:16]line Контрольно-Кассовый Чек [20:42:16]line ПРОДАЖА [20:42:16]line ТРК (МРК, ГНК) : 22 [20:42:16]line Товар: 2710194210 [20:42:16]line ДТ-К-5 [20:42:16]line 13.130 * 76.20 [20:42:16]line = 1000.51 [20:42:16]line НДС 12% НСП 1% [20:42:16]line > о реализуемом товаре [20:42:16]line ОКРУГЛЕНИЕ: -0.51 [20:42:16]line ИТОГО: 1000.00 [20:42:16]line Внесено: 1000.00 [20:42:16]line СДАЧА: 0.00 [20:42:16]line НСП 1% : 8.85 [20:42:16]line НДС 12% : 106.25 [20:42:16]line Наличными: 1000.00 [20:42:16]line Безнал.: 0.00 [20:42:16]line Место: АЗС № 170 "Партнер Нефть" [20:42:16]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:42:16]line СНО: Общий режим [20:42:16]line Чек 298 26.10.2024 20:42 [20:42:16]line Смена: 541 ФФД: 1.0 [20:42:16]line ЗНМ: 0300000110 [20:42:16]line РНМ: 0000000000091776 [20:42:16]line Версия ККМ: 001 [20:42:16]line ФМ: 0000000000871754 [20:42:16]line ФД: 191935 [20:42:16]line ФПД: 234493685862192 [20:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204231&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191935&fm=234493685862192&tin=02508201610067®Number=0000000000091776&sum=100000 [20:42:16]written 0, free lines is 4095 [20:42:16]OFD Sender: Processing packet 191935 [packets to send 75, broken 74] [20:42:16]ProducePacketName [20:42:16]name=ofd_packets/00191935 [20:42:16]OFD Sender: To server: pG, [20:42:16]CommunicateWithHost lk.salyk.kg:30040 [20:42:16]ConnectInit lk.salyk.kg [20:42:16]Connected sock=8 [20:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 6B 44 04 01 72 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 37 54 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF ED 02 00 35 04 06 00 D5 45 50 D9 0F 30 A5 6F 9A 55 ED 80 BE 58 [20:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D2 D9 47 00 BE 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 BF ED 02 00 F4 03 04 00 01 F9 1C 67 B6 04 01 00 00 5B A8 CA A3 CE 44 C9 C0 [20:42:17]CommunicateWithHost err = 0 [20:42:17]CheckOFDResponse [20:42:17]1017 (14) - 77093643461234 [20:42:17]1041 (16) - 0000000000871754 [20:42:17]1040 (4) - 191935 [20:42:17]1012 (4) - 26.10.2024 14:13 [20:42:17]1206 (1) - 0 [20:42:17]OFD Sender: Remove packet 191935 [20:42:17]ProducePacketName [20:42:17]name=ofd_packets/00191935 [20:42:17]NVStorageDeleteData [20:42:17]Write to MH i2c: 01 00 00 42 34 76 [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 42 34 00 00 00 00 00 B1 0C 3A [20:42:17]RasterBufferAndPrint [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]written 0, free lines is 3257 [20:42:17]MH_Cut [20:42:17]Write to MH i2c: D1 01 00 49 34 01 4F [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 01 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 01 00 49 34 00 4E [20:42:17]Write to MH i2c: 01 00 00 4A 34 7E [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]OFD Sender: No OFD packet to send [20:42:18]*** Cut start [20:42:18]*** Partial cut [20:42:18]*** CUTSNS_PIN = 1 [20:42:18]*** CUTSNS_PIN = 0 [20:42:18]*** Brake cut motor [20:42:18]Read from MH i2c: 01 [20:42:18]MH_I2C_Read... [20:42:18]*** Stop cut motor [20:42:18]*** Cut end [20:42:18]Read from MH i2c: 01 07 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: 01 07 00 4A 34 00 00 00 00 00 FF 0F 93 [20:42:18]process_action close_receipt done [20:42:18]requested_data is exist [20:42:18]produce_requested_data [20:42:18]requested_item fm.sn is exist - process it [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 11 00 00 [20:42:18]Write to MH i2c: E2 08 00 4B 34 80 11 00 00 00 00 00 00 F9 [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 4B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4C [20:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:42:18]wFMCommunicate OK [20:42:18]requested_item fd.num is exist - process it [20:42:18]SAM_PROTO_GetFieldsCounters [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 00 00 [20:42:18]Write to MH i2c: E2 08 00 4C 34 80 13 00 00 00 00 00 00 FC [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 4C 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [20:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 BF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetFieldsCounters done [20:42:18]requested_item shift.num is exist - process it [20:42:18]requested_item shift.opened is exist - process it [20:42:18]req_shift_opened [20:42:18]FM_GetShiftState [20:42:18]SAM_PROTO_GetShiftState [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 01 00 [20:42:18]Write to MH i2c: E2 08 00 4D 34 80 13 01 00 00 00 00 00 FE [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 4D 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 77 [20:42:18]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetShiftState done [20:42:18]FM_GetShiftState done [20:42:18]req_shift_opened done [20:42:18]requested_item shift.open_date is exist - process it [20:42:18]req_shift_open_date [20:42:18]req_shift_open_date done [20:42:18]produce_requested_data done [20:42:18]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191935,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:42:18]process_action_free close_receipt [20:42:18]json_value_free [20:42:18]json_value_free done [20:42:18]process_json_proto returns [20:42:18]Send response to host [20:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191935,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:42:18]free response buf [20:42:18]execute_script done [20:42:18]execute_script returns [20:42:18]free content buf [20:42:18]Sock 6.Close socket [20:42:18]Sock 6.Thread stoped [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:28]accept exits with 5 [20:47:28]New connection [20:47:28]New thread 3066961252 created [20:47:28]Thread 3066817892 joined [20:47:28]Waiting for new connection... [20:47:28] Sock 5.Parse request [20:47:28]Sock 5.Check first char [20:47:28]Sock 5.First char is OK [20:47:28]request: POST /json_proto HTTP/1.0 [20:47:28]Method: POST [20:47:28]URL: /json_proto [20:47:28]Method is POST - this is cgi request [20:47:28]url: /json_proto [20:47:28]query_string will be loaded in cgi processing [20:47:28]execute_cgi json_proto POST (null) [20:47:28]execute_cgi path=json_proto method=POST [20:47:28]POST find Content-Length [20:47:28]Host: 172.17.63.131:8080 [20:47:28]Content-Length: 676 [20:47:28]Content-Type: application/json [20:47:28] [20:47:28]POST finish read [20:47:28]Found Content-Length = 676 [20:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:28]execute_script... [20:47: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)31244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:28]POST & json_proto [20:47:28]process_json_proto [20:47:28]json parsed OK: [20:47:28]protocol is kg_v1.0 [20:47:28]action value=close_receipt [20:47:28]process_action close_receipt [20:47:28]cmd_close_receipt [20:47:28]MH_GetDate [20:47:28]Write to MH i2c: F0 00 00 4E 34 71 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: F0 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: F0 09 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: F0 09 00 4E 34 00 70 55 1D 67 22 05 6E 64 BC [20:47:28]GetLastDocTimeStamp 1729975351 [20:47:28]current date 1729975664 [20:47:28]FM_GetShiftState [20:47:28]SAM_PROTO_GetShiftState [20:47:28]wFMCommunicate request_size=4 [20:47:28]MH_SAM_APDU [20:47:28]CAPDU: 80 13 01 00 [20:47:28]Write to MH i2c: E2 08 00 4F 34 80 13 01 00 00 00 00 00 00 [20:47:28]Write i2c OK [20:47:28]MH_I2C_Read... [20:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:28]Read from MH i2c: E2 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0E 00 [20:47:28]MH_I2C_Read... [20:47:28]Read from MH i2c: E2 0E 00 4F 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 79 [20:47:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:47:28]wFMCommunicate OK [20:47:28]SAM_PROTO_GetShiftState done [20:47:28]FM_GetShiftState done [20:47:28]opened in 1729902770 [20:47:28]opened+sec_in_day 1729989170 [20:47:28]quantity*price = 60009 [20:47:28]sum+1 = 60010 [20:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 299 26.10.2024 20:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191936 ФПД: 140625385218328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191936&fm=140625385218328&tin=02508201610067®Number=0000000000091776&sum=60000 [20:47:29]StoreToDocumentArchive [20:47:29]shift 541 fd 191936 [20:47:29]save to /storage/0541/doc_00191936 [20:47:29]save last doc name /storage/0541/doc_00191936 to /storage/kkm_last_doc_name [20:47:29]save OK [20:47:29]Clear old archive folders... [20:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:29]tlvbuf is 018CA9C0 [20:47:29]SAM_PROTO_ClearQueue [20:47:29]wFMCommunicate request_size=4 [20:47:29]MH_SAM_APDU [20:47:29]CAPDU: 80 09 00 00 [20:47:29]Write to MH i2c: E2 08 00 5C 34 80 09 00 00 00 00 00 00 02 [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 5C 34 00 90 00 04 [20:47:29]RAPDU: 90 00 [20:47:29]wFMCommunicate OK [20:47:29]SAM_PROTO_ClearQueue done [20:47:29]KKMCreateOFDPacket [20:47:29]OFDProtocolAddRootSTLVToBuf [20:47:29]FM_MakeSignedData [20:47:29]FM_MakeSignedData [20:47:29]SAM_PROTO_SignData [20:47:29]wFMCommunicate request_size=4 [20:47:29]MH_SAM_APDU [20:47:29]CAPDU: 80 0D 01 02 [20:47:29]Write to MH i2c: E2 08 00 5D 34 80 0D 01 02 00 00 00 00 0A [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 5D 34 00 90 00 05 [20:47:29]RAPDU: 90 00 [20:47:29]wFMCommunicate OK [20:47:29]wFMCommunicate request_size=255 [20:47:29]MH_SAM_APDU [20:47:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 ED 02 00 35 04 06 00 7F [20:47:29]Write to MH i2c: E2 02 01 5E 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 ED 02 00 35 04 06 00 7F 00 00 3D [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 5E 34 00 90 00 06 [20:47:29]RAPDU: 90 00 [20:47:29]wFMCommunicate OK [20:47:29]wFMCommunicate request_size=10 [20:47:29]MH_SAM_APDU [20:47:29]CAPDU: 80 0D 02 02 05 E5 E6 21 E1 18 [20:47:29]Write to MH i2c: E2 0D 00 5F 34 80 0D 02 02 05 00 E5 E6 21 E1 18 00 00 FC [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 03 00 5F 34 00 90 00 07 [20:47:29]RAPDU: 90 00 [20:47:29]wFMCommunicate OK [20:47:29]wFMCommunicate request_size=4 [20:47:29]MH_SAM_APDU [20:47:29]CAPDU: 80 0D 03 02 [20:47:29]Write to MH i2c: E2 08 00 60 34 80 0D 03 02 00 00 00 00 0F [20:47:29]Write i2c OK [20:47:29]MH_I2C_Read... [20:47:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:29]Read from MH i2c: E2 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 0B 00 [20:47:29]MH_I2C_Read... [20:47:29]Read from MH i2c: E2 0B 00 60 34 00 59 85 C9 EB 1D FE 7A D0 90 00 07 [20:47:29]RAPDU: 59 85 C9 EB 1D FE 7A D0 90 00 [20:47:29]wFMCommunicate OK [20:47:29]SAM_PROTO_SignData done [20:47:29]FM_MakeSignedData done [20:47:30]CreateOFDProtocolMessage [20:47:30]wFMCommunicate request_size=4 [20:47:30]MH_SAM_APDU [20:47:30]CAPDU: 80 11 00 00 [20:47:30]Write to MH i2c: E2 08 00 61 34 80 11 00 00 00 00 00 00 0F [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:30]Read from MH i2c: E2 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: E2 17 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: E2 17 00 61 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 62 [20:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:47:30]wFMCommunicate OK [20:47:30]CreateOFDProtocolMessage done [20:47:30]OFDSenderStorePacket 191936 [20:47:30]StoreOFDPacket docnum=191936 [20:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 81 07 01 52 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 ED 02 00 35 04 06 00 7F E5 E6 21 E1 18 59 85 C9 EB 1D FE 7A D0 [20:47:30]CheckFolder [20:47:30]dirname=/storage/ofd_packets [20:47:30]CheckFolder done [20:47:30]ProducePacketName [20:47:30]name=ofd_packets/00191936 [20:47:30]NVStorageSaveData ofd_packets/00191936 [20:47:30]File name is /storage/ofd_packets/00191936 [20:47:30]Write 301 bytes [20:47:30]NVStorageSaveData done [20:47:30]OFDSenderStorePacket done [20:47:30]KKMCreateOFDPacket done [20:47:30]NVStorageSaveData kkm_last_timestamp [20:47:30]File name is /storage/kkm_last_timestamp [20:47:30]Write 4 bytes [20:47:30]NVStorageSaveData done [20:47:30]ExternCall_PrintAddStr [20:47:30]wPrintStart [20:47:30]Write to MH i2c: 01 00 00 62 34 96 [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 07 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 07 00 62 34 00 00 00 00 00 FF 0F AB [20:47:30]RasterBufferAndPrint [20:47:30]line Счет N : (1)31244 [20:47:30]line ИНН: 02508201610067 [20:47:30]line Контрольно-Кассовый Чек [20:47:30]line ПРОДАЖА [20:47:30]line ТРК (МРК, ГНК) : 12 [20:47:30]line Товар: 2710124130 [20:47:30]line Аи-92-К-5 [20:47:30]line 8.970 * 66.90 [20:47:30]line = 600.09 [20:47:30]line НДС 12% НСП 1% [20:47:30]line > о реализуемом товаре [20:47:30]line ОКРУГЛЕНИЕ: -0.09 [20:47:30]line ИТОГО: 600.00 [20:47:30]line Внесено: 600.00 [20:47:30]line СДАЧА: 0.00 [20:47:30]line НСП 1% : 5.31 [20:47:30]line НДС 12% : 63.73 [20:47:30]line Наличными: 600.00 [20:47:30]line Безнал.: 0.00 [20:47:30]line Место: АЗС № 170 "Партнер Нефть" [20:47:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:47:30]line СНО: Общий режим [20:47:30]line Чек 299 26.10.2024 20:47 [20:47:30]line Смена: 541 ФФД: 1.0 [20:47:30]line ЗНМ: 0300000110 [20:47:30]line РНМ: 0000000000091776 [20:47:30]line Версия ККМ: 001 [20:47:30]line ФМ: 0000000000871754 [20:47:30]line ФД: 191936 [20:47:30]line ФПД: 140625385218328 [20:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T204744&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191936&fm=140625385218328&tin=02508201610067®Number=0000000000091776&sum=60000 [20:47:30]OFD Sender: Processing packet 191936 [packets to send 75, broken 74] [20:47:30]ProducePacketName [20:47:30]name=ofd_packets/00191936 [20:47:30]OFD Sender: To server: pG, [20:47:30]CommunicateWithHost lk.salyk.kg:30040 [20:47:30]ConnectInit lk.salyk.kg [20:47:30]written 0, free lines is 4095 [20:47:30]Connected sock=8 [20:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 04 81 07 01 52 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 70 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 ED 02 00 35 04 06 00 7F E5 E6 21 E1 18 59 85 C9 EB 1D FE 7A D0 [20:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1A B8 47 00 73 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C0 ED 02 00 F4 03 04 00 3A FA 1C 67 B6 04 01 00 00 2E 7F 88 15 70 3B 12 BD [20:47:30]CommunicateWithHost err = 0 [20:47:30]CheckOFDResponse [20:47:30]1017 (14) - 77093643461234 [20:47:30]1041 (16) - 0000000000871754 [20:47:30]1040 (4) - 191936 [20:47:30]1012 (4) - 26.10.2024 14:18 [20:47:30]1206 (1) - 0 [20:47:30]OFD Sender: Remove packet 191936 [20:47:30]ProducePacketName [20:47:30]name=ofd_packets/00191936 [20:47:30]NVStorageDeleteData [20:47:30]Write to MH i2c: 01 00 00 8D 34 C1 [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 07 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: 01 07 00 8D 34 00 00 00 00 00 AF 0C 83 [20:47:30]RasterBufferAndPrint [20:47:30]line [20:47:30]line [20:47:30]line [20:47:30]line [20:47:30]line [20:47:30]written 0, free lines is 3253 [20:47:30]MH_Cut [20:47:30]Write to MH i2c: D1 01 00 94 34 01 9A [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: D1 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: D1 01 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: D1 01 00 94 34 00 99 [20:47:30]Write to MH i2c: 01 00 00 95 34 C9 [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:31]OFD Sender: No OFD packet to send [20:47:31]*** Cut start [20:47:31]*** Partial cut [20:47:31]*** CUTSNS_PIN = 1 [20:47:31]*** CUTSNS_PIN = 0 [20:47:31]*** Brake cut motor [20:47:32]Read from MH i2c: 01 [20:47:32]MH_I2C_Read... [20:47:32]*** Stop cut motor [20:47:32]*** Cut end [20:47:32]Read from MH i2c: 01 07 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 07 00 95 34 00 00 00 00 00 FF 0F DE [20:47:32]process_action close_receipt done [20:47:32]requested_data is exist [20:47:32]produce_requested_data [20:47:32]requested_item fm.sn is exist - process it [20:47:32]wFMCommunicate request_size=4 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 11 00 00 [20:47:32]Write to MH i2c: E2 08 00 96 34 80 11 00 00 00 00 00 00 44 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 17 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 17 00 96 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 97 [20:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:47:32]wFMCommunicate OK [20:47:32]requested_item fd.num is exist - process it [20:47:32]SAM_PROTO_GetFieldsCounters [20:47:32]wFMCommunicate request_size=4 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 13 00 00 [20:47:32]Write to MH i2c: E2 08 00 97 34 80 13 00 00 00 00 00 00 47 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 62 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 62 00 97 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [20:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:32]wFMCommunicate OK [20:47:32]SAM_PROTO_GetFieldsCounters done [20:47:32]requested_item shift.num is exist - process it [20:47:32]requested_item shift.opened is exist - process it [20:47:32]req_shift_opened [20:47:32]FM_GetShiftState [20:47:32]SAM_PROTO_GetShiftState [20:47:32]wFMCommunicate request_size=4 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 13 01 00 [20:47:32]Write to MH i2c: E2 08 00 98 34 80 13 01 00 00 00 00 00 49 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 0E 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 0E 00 98 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C2 [20:47:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:47:32]wFMCommunicate OK [20:47:32]SAM_PROTO_GetShiftState done [20:47:32]FM_GetShiftState done [20:47:32]req_shift_opened done [20:47:32]requested_item shift.open_date is exist - process it [20:47:32]req_shift_open_date [20:47:32]req_shift_open_date done [20:47:32]produce_requested_data done [20:47:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191936,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:47:32]process_action_free close_receipt [20:47:32]json_value_free [20:47:32]json_value_free done [20:47:32]process_json_proto returns [20:47:32]Send response to host [20:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191936,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:47:32]free response buf [20:47:32]execute_script done [20:47:32]execute_script returns [20:47:32]free content buf [20:47:32]Sock 5.Close socket [20:47:32]Sock 5.Thread stoped [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:46]accept exits with 6 [20:49:46]New connection [20:49:46]New thread 3066817892 created [20:49:46]Thread 3066961252 joined [20:49:46]Waiting for new connection... [20:49:46] Sock 6.Parse request [20:49:46]Sock 6.Check first char [20:49:46]Sock 6.First char is OK [20:49:46]request: POST /json_proto HTTP/1.0 [20:49:46]Method: POST [20:49:46]URL: /json_proto [20:49:46]Method is POST - this is cgi request [20:49:46]url: /json_proto [20:49:46]query_string will be loaded in cgi processing [20:49:46]execute_cgi json_proto POST (null) [20:49:46]execute_cgi path=json_proto method=POST [20:49:46]POST find Content-Length [20:49:46]Host: 172.17.63.131:8080 [20:49:46]Content-Length: 677 [20:49:46]Content-Type: application/json [20:49:46] [20:49:46]POST finish read [20:49:46]Found Content-Length = 677 [20:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:46]execute_script... [20:49:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:46]POST & json_proto [20:49:46]process_json_proto [20:49:46]json parsed OK: [20:49:46]protocol is kg_v1.0 [20:49:46]action value=close_receipt [20:49:46]process_action close_receipt [20:49:46]cmd_close_receipt [20:49:46]MH_GetDate [20:49:46]Write to MH i2c: F0 00 00 99 34 BC [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: F0 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: F0 09 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: F0 09 00 99 34 00 FB 55 1D 67 22 05 6E 64 92 [20:49:46]GetLastDocTimeStamp 1729975664 [20:49:46]current date 1729975803 [20:49:46]FM_GetShiftState [20:49:46]SAM_PROTO_GetShiftState [20:49:46]wFMCommunicate request_size=4 [20:49:46]MH_SAM_APDU [20:49:46]CAPDU: 80 13 01 00 [20:49:46]Write to MH i2c: E2 08 00 9A 34 80 13 01 00 00 00 00 00 4B [20:49:46]Write i2c OK [20:49:46]MH_I2C_Read... [20:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:46]Read from MH i2c: E2 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 0E 00 [20:49:46]MH_I2C_Read... [20:49:46]Read from MH i2c: E2 0E 00 9A 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C4 [20:49:46]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:49:46]wFMCommunicate OK [20:49:46]SAM_PROTO_GetShiftState done [20:49:46]FM_GetShiftState done [20:49:46]opened in 1729902770 [20:49:46]opened+sec_in_day 1729989170 [20:49:46]quantity*price = 70044 [20:49:46]sum+1 = 70045 [20:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 300 26.10.2024 20:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191937 ФПД: 244641564776923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191937&fm=244641564776923&tin=02508201610067®Number=0000000000091776&sum=70000 [20:49:47]StoreToDocumentArchive [20:49:47]shift 541 fd 191937 [20:49:47]save to /storage/0541/doc_00191937 [20:49:47]save last doc name /storage/0541/doc_00191937 to /storage/kkm_last_doc_name [20:49:47]save OK [20:49:47]Clear old archive folders... [20:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:47]tlvbuf is 0172EBB0 [20:49:47]SAM_PROTO_ClearQueue [20:49:47]wFMCommunicate request_size=4 [20:49:47]MH_SAM_APDU [20:49:47]CAPDU: 80 09 00 00 [20:49:47]Write to MH i2c: E2 08 00 A7 34 80 09 00 00 00 00 00 00 4D [20:49:47]Write i2c OK [20:49:47]MH_I2C_Read... [20:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:47]Read from MH i2c: E2 [20:49:47]MH_I2C_Read... [20:49:47]Read from MH i2c: E2 03 00 [20:49:47]MH_I2C_Read... [20:49:47]Read from MH i2c: E2 03 00 A7 34 00 90 00 4F [20:49:47]RAPDU: 90 00 [20:49:47]wFMCommunicate OK [20:49:47]SAM_PROTO_ClearQueue done [20:49:47]KKMCreateOFDPacket [20:49:47]OFDProtocolAddRootSTLVToBuf [20:49:47]FM_MakeSignedData [20:49:47]FM_MakeSignedData [20:49:47]SAM_PROTO_SignData [20:49:47]wFMCommunicate request_size=4 [20:49:47]MH_SAM_APDU [20:49:47]CAPDU: 80 0D 01 02 [20:49:47]Write to MH i2c: E2 08 00 A8 34 80 0D 01 02 00 00 00 00 55 [20:49:47]Write i2c OK [20:49:47]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 A8 34 00 90 00 50 [20:49:48]RAPDU: 90 00 [20:49:48]wFMCommunicate OK [20:49:48]wFMCommunicate request_size=255 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 FB 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 ED 02 00 35 04 06 00 DE [20:49:48]Write to MH i2c: E2 02 01 A9 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 FB 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 ED 02 00 35 04 06 00 DE 00 00 A7 [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 A9 34 00 90 00 51 [20:49:48]RAPDU: 90 00 [20:49:48]wFMCommunicate OK [20:49:48]wFMCommunicate request_size=10 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 0D 02 02 05 80 0D 90 D9 DB [20:49:48]Write to MH i2c: E2 0D 00 AA 34 80 0D 02 02 05 00 80 0D 90 D9 DB 00 00 33 [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 03 00 AA 34 00 90 00 52 [20:49:48]RAPDU: 90 00 [20:49:48]wFMCommunicate OK [20:49:48]wFMCommunicate request_size=4 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 0D 03 02 [20:49:48]Write to MH i2c: E2 08 00 AB 34 80 0D 03 02 00 00 00 00 5A [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 0B 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 0B 00 AB 34 00 C1 AA 91 96 E5 7D 1E 5B 90 00 C8 [20:49:48]RAPDU: C1 AA 91 96 E5 7D 1E 5B 90 00 [20:49:48]wFMCommunicate OK [20:49:48]SAM_PROTO_SignData done [20:49:48]FM_MakeSignedData done [20:49:48]CreateOFDProtocolMessage [20:49:48]wFMCommunicate request_size=4 [20:49:48]MH_SAM_APDU [20:49:48]CAPDU: 80 11 00 00 [20:49:48]Write to MH i2c: E2 08 00 AC 34 80 11 00 00 00 00 00 00 5A [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:48]Read from MH i2c: E2 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 17 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: E2 17 00 AC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AD [20:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:49:48]wFMCommunicate OK [20:49:48]CreateOFDProtocolMessage done [20:49:48]OFDSenderStorePacket 191937 [20:49:48]StoreOFDPacket docnum=191937 [20:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A D6 07 01 EB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 FB 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 ED 02 00 35 04 06 00 DE 80 0D 90 D9 DB C1 AA 91 96 E5 7D 1E 5B [20:49:48]CheckFolder [20:49:48]dirname=/storage/ofd_packets [20:49:48]CheckFolder done [20:49:48]ProducePacketName [20:49:48]name=ofd_packets/00191937 [20:49:48]NVStorageSaveData ofd_packets/00191937 [20:49:48]File name is /storage/ofd_packets/00191937 [20:49:48]Write 301 bytes [20:49:48]NVStorageSaveData done [20:49:48]OFDSenderStorePacket done [20:49:48]KKMCreateOFDPacket done [20:49:48]NVStorageSaveData kkm_last_timestamp [20:49:48]File name is /storage/kkm_last_timestamp [20:49:48]Write 4 bytes [20:49:48]NVStorageSaveData done [20:49:48]ExternCall_PrintAddStr [20:49:48]wPrintStart [20:49:48]Write to MH i2c: 01 00 00 AD 34 E1 [20:49:48]Write i2c OK [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: 01 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: 01 07 00 [20:49:48]MH_I2C_Read... [20:49:48]Read from MH i2c: 01 07 00 AD 34 00 00 00 00 00 FF 0F F6 [20:49:48]RasterBufferAndPrint [20:49:48]line Счет N : (1)31245 [20:49:48]line ИНН: 02508201610067 [20:49:48]line Контрольно-Кассовый Чек [20:49:48]line ПРОДАЖА [20:49:48]line ТРК (МРК, ГНК) : 12 [20:49:48]line Товар: 2710124130 [20:49:48]line Аи-92-К-5 [20:49:48]line 10.470 * 66.90 [20:49:48]line = 700.44 [20:49:48]line НДС 12% НСП 1% [20:49:48]line > о реализуемом товаре [20:49:48]line ОКРУГЛЕНИЕ: -0.44 [20:49:48]line ИТОГО: 700.00 [20:49:48]line Внесено: 700.00 [20:49:48]line СДАЧА: 0.00 [20:49:48]line НСП 1% : 6.20 [20:49:48]line НДС 12% : 74.38 [20:49:48]line Наличными: 700.00 [20:49:48]line Безнал.: 0.00 [20:49:48]line Место: АЗС № 170 "Партнер Нефть" [20:49:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:49:48]line СНО: Общий режим [20:49:48]line Чек 300 26.10.2024 20:50 [20:49:48]line Смена: 541 ФФД: 1.0 [20:49:48]line ЗНМ: 0300000110 [20:49:48]line РНМ: 0000000000091776 [20:49:48]line Версия ККМ: 001 [20:49:48]line ФМ: 0000000000871754 [20:49:48]line ФД: 191937 [20:49:48]line ФПД: 244641564776923 [20:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191937&fm=244641564776923&tin=02508201610067®Number=0000000000091776&sum=70000 [20:49:48]OFD Sender: Processing packet 191937 [packets to send 75, broken 74] [20:49:48]ProducePacketName [20:49:48]name=ofd_packets/00191937 [20:49:48]OFD Sender: To server: pG, [20:49:48]CommunicateWithHost lk.salyk.kg:30040 [20:49:48]ConnectInit lk.salyk.kg [20:49:48]written 0, free lines is 4095 [20:49:48]Connected sock=8 [20:49:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A D6 07 01 EB 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 FB 55 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 ED 02 00 35 04 06 00 DE 80 0D 90 D9 DB C1 AA 91 96 E5 7D 1E 5B [20:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 42 D9 47 00 60 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C1 ED 02 00 F4 03 04 00 C5 FA 1C 67 B6 04 01 00 00 B8 8C D4 B9 E2 F2 4F 0E [20:49:49]CommunicateWithHost err = 0 [20:49:49]CheckOFDResponse [20:49:49]1017 (14) - 77093643461234 [20:49:49]1041 (16) - 0000000000871754 [20:49:49]1040 (4) - 191937 [20:49:49]1012 (4) - 26.10.2024 14:20 [20:49:49]1206 (1) - 0 [20:49:49]OFD Sender: Remove packet 191937 [20:49:49]ProducePacketName [20:49:49]name=ofd_packets/00191937 [20:49:49]NVStorageDeleteData [20:49:49]Write to MH i2c: 01 00 00 D8 34 0C [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: 01 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: 01 07 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 B8 0C D7 [20:49:49]RasterBufferAndPrint [20:49:49]line [20:49:49]line [20:49:49]line [20:49:49]line [20:49:49]line [20:49:49]written 0, free lines is 3263 [20:49:49]MH_Cut [20:49:49]Write to MH i2c: D1 01 00 DF 34 01 E5 [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: D1 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: D1 01 00 [20:49:49]MH_I2C_Read... [20:49:49]Read from MH i2c: D1 01 00 DF 34 00 E4 [20:49:49]Write to MH i2c: 01 00 00 E0 34 14 [20:49:49]Write i2c OK [20:49:49]MH_I2C_Read... [20:49:49]OFD Sender: No OFD packet to send [20:49:50]*** Cut start [20:49:50]*** Partial cut [20:49:50]*** CUTSNS_PIN = 1 [20:49:50]*** CUTSNS_PIN = 0 [20:49:50]*** Brake cut motor [20:49:50]Read from MH i2c: 01 [20:49:50]MH_I2C_Read... [20:49:50]*** Stop cut motor [20:49:50]*** Cut end [20:49:50]Read from MH i2c: 01 07 00 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: 01 07 00 E0 34 00 00 00 00 00 FF 0F 29 [20:49:50]process_action close_receipt done [20:49:50]requested_data is exist [20:49:50]produce_requested_data [20:49:50]requested_item fm.sn is exist - process it [20:49:50]wFMCommunicate request_size=4 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 11 00 00 [20:49:50]Write to MH i2c: E2 08 00 E1 34 80 11 00 00 00 00 00 00 8F [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:50]Read from MH i2c: E2 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 17 00 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 17 00 E1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E2 [20:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:49:50]wFMCommunicate OK [20:49:50]requested_item fd.num is exist - process it [20:49:50]SAM_PROTO_GetFieldsCounters [20:49:50]wFMCommunicate request_size=4 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 13 00 00 [20:49:50]Write to MH i2c: E2 08 00 E2 34 80 13 00 00 00 00 00 00 92 [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:50]Read from MH i2c: E2 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 62 00 [20:49:50]MH_I2C_Read... [20:49:50]Read from MH i2c: E2 62 00 E2 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [20:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:50]wFMCommunicate OK [20:49:50]SAM_PROTO_GetFieldsCounters done [20:49:50]requested_item shift.num is exist - process it [20:49:50]requested_item shift.opened is exist - process it [20:49:50]req_shift_opened [20:49:50]FM_GetShiftState [20:49:50]SAM_PROTO_GetShiftState [20:49:50]wFMCommunicate request_size=4 [20:49:50]MH_SAM_APDU [20:49:50]CAPDU: 80 13 01 00 [20:49:50]Write to MH i2c: E2 08 00 E3 34 80 13 01 00 00 00 00 00 94 [20:49:50]Write i2c OK [20:49:50]MH_I2C_Read... [20:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:51]Read from MH i2c: E2 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 0E 00 [20:49:51]MH_I2C_Read... [20:49:51]Read from MH i2c: E2 0E 00 E3 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0D [20:49:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:49:51]wFMCommunicate OK [20:49:51]SAM_PROTO_GetShiftState done [20:49:51]FM_GetShiftState done [20:49:51]req_shift_opened done [20:49:51]requested_item shift.open_date is exist - process it [20:49:51]req_shift_open_date [20:49:51]req_shift_open_date done [20:49:51]produce_requested_data done [20:49:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191937,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:49:51]process_action_free close_receipt [20:49:51]json_value_free [20:49:51]json_value_free done [20:49:51]process_json_proto returns [20:49:51]Send response to host [20:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191937,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:49:51]free response buf [20:49:51]execute_script done [20:49:51]execute_script returns [20:49:51]free content buf [20:49:51]Sock 6.Close socket [20:49:51]Sock 6.Thread stoped [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:26]accept exits with 5 [20:50:26]New connection [20:50:26]New thread 3066961252 created [20:50:26]Thread 3066817892 joined [20:50:26]Waiting for new connection... [20:50:26] Sock 5.Parse request [20:50:26]Sock 5.Check first char [20:50:26]Sock 5.First char is OK [20:50:26]request: POST /json_proto HTTP/1.0 [20:50:26]Method: POST [20:50:26]URL: /json_proto [20:50:26]Method is POST - this is cgi request [20:50:26]url: /json_proto [20:50:26]query_string will be loaded in cgi processing [20:50:26]execute_cgi json_proto POST (null) [20:50:26]execute_cgi path=json_proto method=POST [20:50:26]POST find Content-Length [20:50:26]Host: 172.17.63.131:8080 [20:50:26]Content-Length: 676 [20:50:26]Content-Type: application/json [20:50:26] [20:50:26]POST finish read [20:50:26]Found Content-Length = 676 [20:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:26]execute_script... [20:50: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)31246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:26]POST & json_proto [20:50:26]process_json_proto [20:50:26]json parsed OK: [20:50:26]protocol is kg_v1.0 [20:50:26]action value=close_receipt [20:50:26]process_action close_receipt [20:50:26]cmd_close_receipt [20:50:26]MH_GetDate [20:50:26]Write to MH i2c: F0 00 00 E4 34 07 [20:50:26]Write i2c OK [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 09 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 09 00 E4 34 00 23 56 1D 67 22 05 6E 64 06 [20:50:26]GetLastDocTimeStamp 1729975803 [20:50:26]current date 1729975843 [20:50:26]FM_GetShiftState [20:50:26]SAM_PROTO_GetShiftState [20:50:26]wFMCommunicate request_size=4 [20:50:26]MH_SAM_APDU [20:50:26]CAPDU: 80 13 01 00 [20:50:26]Write to MH i2c: E2 08 00 E5 34 80 13 01 00 00 00 00 00 96 [20:50:26]Write i2c OK [20:50:26]MH_I2C_Read... [20:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:26]Read from MH i2c: E2 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 E5 34 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0F [20:50:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:50:26]wFMCommunicate OK [20:50:26]SAM_PROTO_GetShiftState done [20:50:26]FM_GetShiftState done [20:50:26]opened in 1729902770 [20:50:26]opened+sec_in_day 1729989170 [20:50:26]quantity*price = 30038 [20:50:26]sum+1 = 30039 [20:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 301 26.10.2024 20:50 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191938 ФПД: 179301051447591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191938&fm=179301051447591&tin=02508201610067®Number=0000000000091776&sum=30000 [20:50:28]StoreToDocumentArchive [20:50:28]shift 541 fd 191938 [20:50:28]save to /storage/0541/doc_00191938 [20:50:28]save last doc name /storage/0541/doc_00191938 to /storage/kkm_last_doc_name [20:50:28]save OK [20:50:28]Clear old archive folders... [20:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:28]tlvbuf is 019926B0 [20:50:28]SAM_PROTO_ClearQueue [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 09 00 00 [20:50:28]Write to MH i2c: E2 08 00 F2 34 80 09 00 00 00 00 00 00 98 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 F2 34 00 90 00 9A [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]SAM_PROTO_ClearQueue done [20:50:28]KKMCreateOFDPacket [20:50:28]OFDProtocolAddRootSTLVToBuf [20:50:28]FM_MakeSignedData [20:50:28]FM_MakeSignedData [20:50:28]SAM_PROTO_SignData [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 01 02 [20:50:28]Write to MH i2c: E2 08 00 F3 34 80 0D 01 02 00 00 00 00 A0 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 F3 34 00 90 00 9B [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=255 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 23 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 ED 02 00 35 04 06 00 A3 [20:50:28]Write to MH i2c: E2 02 01 F4 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 23 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 ED 02 00 35 04 06 00 A3 00 00 C6 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 F4 34 00 90 00 9C [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=10 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 02 02 05 12 C7 7A B9 27 [20:50:28]Write to MH i2c: E2 0D 00 F5 34 80 0D 02 02 05 00 12 C7 7A B9 27 00 00 E0 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 F5 34 00 90 00 9D [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 03 02 [20:50:28]Write to MH i2c: E2 08 00 F6 34 80 0D 03 02 00 00 00 00 A5 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 0B 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 0B 00 F6 34 00 D1 D3 D2 33 6A 9D 2D 06 90 00 89 [20:50:28]RAPDU: D1 D3 D2 33 6A 9D 2D 06 90 00 [20:50:28]wFMCommunicate OK [20:50:28]SAM_PROTO_SignData done [20:50:28]FM_MakeSignedData done [20:50:28]CreateOFDProtocolMessage [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 11 00 00 [20:50:28]Write to MH i2c: E2 08 00 F7 34 80 11 00 00 00 00 00 00 A5 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 17 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 17 00 F7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F8 [20:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:50:28]wFMCommunicate OK [20:50:28]CreateOFDProtocolMessage done [20:50:28]OFDSenderStorePacket 191938 [20:50:28]StoreOFDPacket docnum=191938 [20:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B 5E 07 01 05 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 23 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 ED 02 00 35 04 06 00 A3 12 C7 7A B9 27 D1 D3 D2 33 6A 9D 2D 06 [20:50:28]CheckFolder [20:50:28]dirname=/storage/ofd_packets [20:50:28]CheckFolder done [20:50:28]ProducePacketName [20:50:28]name=ofd_packets/00191938 [20:50:28]NVStorageSaveData ofd_packets/00191938 [20:50:28]File name is /storage/ofd_packets/00191938 [20:50:28]Write 301 bytes [20:50:28]NVStorageSaveData done [20:50:28]OFDSenderStorePacket done [20:50:28]KKMCreateOFDPacket done [20:50:28]NVStorageSaveData kkm_last_timestamp [20:50:28]File name is /storage/kkm_last_timestamp [20:50:28]Write 4 bytes [20:50:28]NVStorageSaveData done [20:50:28]ExternCall_PrintAddStr [20:50:28]wPrintStart [20:50:28]Write to MH i2c: 01 00 00 F8 34 2C [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 07 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 07 00 F8 34 00 00 00 00 00 FF 0F 41 [20:50:28]RasterBufferAndPrint [20:50:28]line Счет N : (1)31246 [20:50:28]line ИНН: 02508201610067 [20:50:28]line Контрольно-Кассовый Чек [20:50:28]line ПРОДАЖА [20:50:28]line ТРК (МРК, ГНК) : 21 [20:50:28]line Товар: 2710124130 [20:50:28]line Аи-92-К-5 [20:50:28]line 4.490 * 66.90 [20:50:28]line = 300.38 [20:50:28]line НДС 12% НСП 1% [20:50:28]line > о реализуемом товаре [20:50:28]line ОКРУГЛЕНИЕ: -0.38 [20:50:28]line ИТОГО: 300.00 [20:50:28]line Внесено: 300.00 [20:50:28]line СДАЧА: 0.00 [20:50:28]line НСП 1% : 2.66 [20:50:28]line НДС 12% : 31.90 [20:50:28]line Наличными: 300.00 [20:50:28]line Безнал.: 0.00 [20:50:28]line Место: АЗС № 170 "Партнер Нефть" [20:50:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:50:28]line СНО: Общий режим [20:50:28]line Чек 301 26.10.2024 20:50 [20:50:28]line Смена: 541 ФФД: 1.0 [20:50:28]line ЗНМ: 0300000110 [20:50:28]line РНМ: 0000000000091776 [20:50:28]line Версия ККМ: 001 [20:50:28]line ФМ: 0000000000871754 [20:50:28]line ФД: 191938 [20:50:28]line ФПД: 179301051447591 [20:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205043&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191938&fm=179301051447591&tin=02508201610067®Number=0000000000091776&sum=30000 [20:50:28]OFD Sender: Processing packet 191938 [packets to send 75, broken 74] [20:50:28]ProducePacketName [20:50:28]name=ofd_packets/00191938 [20:50:28]OFD Sender: To server: pG, [20:50:28]CommunicateWithHost lk.salyk.kg:30040 [20:50:28]ConnectInit lk.salyk.kg [20:50:28]written 0, free lines is 4095 [20:50:29]Connected sock=8 [20:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 2B 5E 07 01 05 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 23 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 ED 02 00 35 04 06 00 A3 12 C7 7A B9 27 D1 D3 D2 33 6A 9D 2D 06 [20:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 61 C6 47 00 C3 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C2 ED 02 00 F4 03 04 00 ED FA 1C 67 B6 04 01 00 00 EB B8 3B C0 87 CD 11 E5 [20:50:29]CommunicateWithHost err = 0 [20:50:29]CheckOFDResponse [20:50:29]1017 (14) - 77093643461234 [20:50:29]1041 (16) - 0000000000871754 [20:50:29]1040 (4) - 191938 [20:50:29]1012 (4) - 26.10.2024 14:21 [20:50:29]1206 (1) - 0 [20:50:29]OFD Sender: Remove packet 191938 [20:50:29]ProducePacketName [20:50:29]name=ofd_packets/00191938 [20:50:29]NVStorageDeleteData [20:50:29]Write to MH i2c: 01 00 00 23 35 58 [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 07 00 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 07 00 23 35 00 00 00 00 00 BE 0C 29 [20:50:29]RasterBufferAndPrint [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]written 0, free lines is 3268 [20:50:29]MH_Cut [20:50:29]Write to MH i2c: D1 01 00 2A 35 01 31 [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 01 00 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 01 00 2A 35 00 30 [20:50:29]Write to MH i2c: 01 00 00 2B 35 60 [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]OFD Sender: No OFD packet to send [20:50:30]*** Cut start [20:50:30]*** Partial cut [20:50:30]*** CUTSNS_PIN = 1 [20:50:30]*** CUTSNS_PIN = 0 [20:50:30]*** Brake cut motor [20:50:30]Read from MH i2c: 01 [20:50:30]MH_I2C_Read... [20:50:30]*** Stop cut motor [20:50:30]*** Cut end [20:50:30]Read from MH i2c: 01 07 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: 01 07 00 2B 35 00 00 00 00 00 FF 0F 75 [20:50:30]process_action close_receipt done [20:50:30]requested_data is exist [20:50:30]produce_requested_data [20:50:30]requested_item fm.sn is exist - process it [20:50:30]wFMCommunicate request_size=4 [20:50:30]MH_SAM_APDU [20:50:30]CAPDU: 80 11 00 00 [20:50:30]Write to MH i2c: E2 08 00 2C 35 80 11 00 00 00 00 00 00 DB [20:50:30]Write i2c OK [20:50:30]MH_I2C_Read... [20:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:30]Read from MH i2c: E2 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 17 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 17 00 2C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2E [20:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:50:30]wFMCommunicate OK [20:50:30]requested_item fd.num is exist - process it [20:50:30]SAM_PROTO_GetFieldsCounters [20:50:30]wFMCommunicate request_size=4 [20:50:30]MH_SAM_APDU [20:50:30]CAPDU: 80 13 00 00 [20:50:30]Write to MH i2c: E2 08 00 2D 35 80 13 00 00 00 00 00 00 DE [20:50:30]Write i2c OK [20:50:30]MH_I2C_Read... [20:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:31]Read from MH i2c: E2 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 62 00 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 62 00 2D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [20:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:31]wFMCommunicate OK [20:50:31]SAM_PROTO_GetFieldsCounters done [20:50:31]requested_item shift.num is exist - process it [20:50:31]requested_item shift.opened is exist - process it [20:50:31]req_shift_opened [20:50:31]FM_GetShiftState [20:50:31]SAM_PROTO_GetShiftState [20:50:31]wFMCommunicate request_size=4 [20:50:31]MH_SAM_APDU [20:50:31]CAPDU: 80 13 01 00 [20:50:31]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [20:50:31]Write i2c OK [20:50:31]MH_I2C_Read... [20:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:31]Read from MH i2c: E2 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 0E 00 [20:50:31]MH_I2C_Read... [20:50:31]Read from MH i2c: E2 0E 00 2E 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 59 [20:50:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:50:31]wFMCommunicate OK [20:50:31]SAM_PROTO_GetShiftState done [20:50:31]FM_GetShiftState done [20:50:31]req_shift_opened done [20:50:31]requested_item shift.open_date is exist - process it [20:50:31]req_shift_open_date [20:50:31]req_shift_open_date done [20:50:31]produce_requested_data done [20:50:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191938,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:50:31]process_action_free close_receipt [20:50:31]json_value_free [20:50:31]json_value_free done [20:50:31]process_json_proto returns [20:50:31]Send response to host [20:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191938,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:50:31]free response buf [20:50:31]execute_script done [20:50:31]execute_script returns [20:50:31]free content buf [20:50:31]Sock 5.Close socket [20:50:31]Sock 5.Thread stoped [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:12]accept exits with 6 [20:52:12]New connection [20:52:12]New thread 3066817892 created [20:52:12]Thread 3066961252 joined [20:52:12]Waiting for new connection... [20:52:12] Sock 6.Parse request [20:52:12]Sock 6.Check first char [20:52:12]Sock 6.First char is OK [20:52:12]request: POST /json_proto HTTP/1.0 [20:52:12]Method: POST [20:52:12]URL: /json_proto [20:52:12]Method is POST - this is cgi request [20:52:12]url: /json_proto [20:52:12]query_string will be loaded in cgi processing [20:52:12]execute_cgi json_proto POST (null) [20:52:12]execute_cgi path=json_proto method=POST [20:52:12]POST find Content-Length [20:52:12]Host: 172.17.63.131:8080 [20:52:12]Content-Length: 678 [20:52:12]Content-Type: application/json [20:52:12] [20:52:12]POST finish read [20:52:12]Found Content-Length = 678 [20:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31247", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:12]execute_script... [20:52: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)31247", "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" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:12]POST & json_proto [20:52:12]process_json_proto [20:52:12]json parsed OK: [20:52:12]protocol is kg_v1.0 [20:52:12]action value=close_receipt [20:52:12]process_action close_receipt [20:52:12]cmd_close_receipt [20:52:12]MH_GetDate [20:52:12]Write to MH i2c: F0 00 00 2F 35 53 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: F0 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: F0 09 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: F0 09 00 2F 35 00 8D 56 1D 67 22 05 6E 64 BC [20:52:12]GetLastDocTimeStamp 1729975843 [20:52:12]current date 1729975949 [20:52:12]FM_GetShiftState [20:52:12]SAM_PROTO_GetShiftState [20:52:12]wFMCommunicate request_size=4 [20:52:12]MH_SAM_APDU [20:52:12]CAPDU: 80 13 01 00 [20:52:12]Write to MH i2c: E2 08 00 30 35 80 13 01 00 00 00 00 00 E2 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:12]Read from MH i2c: E2 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 0E 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: E2 0E 00 30 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 5B [20:52:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:52:12]wFMCommunicate OK [20:52:12]SAM_PROTO_GetShiftState done [20:52:12]FM_GetShiftState done [20:52:12]opened in 1729902770 [20:52:12]opened+sec_in_day 1729989170 [20:52:12]quantity*price = 100050 [20:52:12]sum+1 = 100052 [20:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 302 26.10.2024 20:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191939 ФПД: 241784973578043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191939&fm=241784973578043&tin=02508201610067®Number=0000000000091776&sum=100000 [20:52:13]StoreToDocumentArchive [20:52:13]shift 541 fd 191939 [20:52:13]save to /storage/0541/doc_00191939 [20:52:13]save last doc name /storage/0541/doc_00191939 to /storage/kkm_last_doc_name [20:52:13]save OK [20:52:13]Clear old archive folders... [20:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:52:13]tlvbuf is 0187D760 [20:52:13]SAM_PROTO_ClearQueue [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 09 00 00 [20:52:13]Write to MH i2c: E2 08 00 3D 35 80 09 00 00 00 00 00 00 E4 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 03 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 03 00 3D 35 00 90 00 E6 [20:52:13]RAPDU: 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_ClearQueue done [20:52:13]KKMCreateOFDPacket [20:52:13]OFDProtocolAddRootSTLVToBuf [20:52:13]FM_MakeSignedData [20:52:13]FM_MakeSignedData [20:52:13]SAM_PROTO_SignData [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 0D 01 02 [20:52:13]Write to MH i2c: E2 08 00 3E 35 80 0D 01 02 00 00 00 00 EC [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 03 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 03 00 3E 35 00 90 00 E7 [20:52:13]RAPDU: 90 00 [20:52:13]wFMCommunicate OK [20:52:13]wFMCommunicate request_size=255 [20:52:13]MH_SAM_APDU [20:52: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 8D 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 ED 02 00 35 04 06 00 DB E6 F3 76 [20:52:13]Write to MH i2c: E2 02 01 3F 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 8D 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 ED 02 00 35 04 06 00 DB E6 F3 76 00 00 07 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 3F 35 00 90 00 E8 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=7 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 02 02 02 4F 3B [20:52:14]Write to MH i2c: E2 0A 00 40 35 80 0D 02 02 02 00 4F 3B 00 00 7D [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 40 35 00 90 00 E9 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 03 02 [20:52:14]Write to MH i2c: E2 08 00 41 35 80 0D 03 02 00 00 00 00 F1 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 0B 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 0B 00 41 35 00 4B C1 9A 40 F5 30 E9 5C 90 00 42 [20:52:14]RAPDU: 4B C1 9A 40 F5 30 E9 5C 90 00 [20:52:14]wFMCommunicate OK [20:52:14]SAM_PROTO_SignData done [20:52:14]FM_MakeSignedData done [20:52:14]CreateOFDProtocolMessage [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 11 00 00 [20:52:14]Write to MH i2c: E2 08 00 42 35 80 11 00 00 00 00 00 00 F1 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 17 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 17 00 42 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 44 [20:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:14]wFMCommunicate OK [20:52:14]CreateOFDProtocolMessage done [20:52:14]OFDSenderStorePacket 191939 [20:52:14]StoreOFDPacket docnum=191939 [20:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 18 BF 04 01 8D 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 8D 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 ED 02 00 35 04 06 00 DB E6 F3 76 4F 3B 4B C1 9A 40 F5 30 E9 5C [20:52:14]CheckFolder [20:52:14]dirname=/storage/ofd_packets [20:52:14]CheckFolder done [20:52:14]ProducePacketName [20:52:14]name=ofd_packets/00191939 [20:52:14]NVStorageSaveData ofd_packets/00191939 [20:52:14]File name is /storage/ofd_packets/00191939 [20:52:14]Write 298 bytes [20:52:14]NVStorageSaveData done [20:52:14]OFDSenderStorePacket done [20:52:14]KKMCreateOFDPacket done [20:52:14]NVStorageSaveData kkm_last_timestamp [20:52:14]File name is /storage/kkm_last_timestamp [20:52:14]Write 4 bytes [20:52:14]NVStorageSaveData done [20:52:14]ExternCall_PrintAddStr [20:52:14]wPrintStart [20:52:14]Write to MH i2c: 01 00 00 43 35 78 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 07 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 07 00 43 35 00 00 00 00 00 FF 0F 8D [20:52:14]RasterBufferAndPrint [20:52:14]line Счет N : (1)31247 [20:52:14]line ИНН: 02508201610067 [20:52:14]line Контрольно-Кассовый Чек [20:52:14]line ПРОДАЖА [20:52:14]line ТРК (МРК, ГНК) : 22 [20:52:14]line Товар: 2710194210 [20:52:14]line ДТ-К-5 [20:52:14]line 13.130 * 76.20 [20:52:14]line = 1000.51 [20:52:14]line НДС 12% НСП 1% [20:52:14]line > о реализуемом товаре [20:52:14]line ОКРУГЛЕНИЕ: -0.51 [20:52:14]line ИТОГО: 1000.00 [20:52:14]line Внесено: 1000.00 [20:52:14]line СДАЧА: 0.00 [20:52:14]line НСП 1% : 8.85 [20:52:14]line НДС 12% : 106.25 [20:52:14]line Наличными: 1000.00 [20:52:14]line Безнал.: 0.00 [20:52:14]line Место: АЗС № 170 "Партнер Нефть" [20:52:14]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:52:14]line СНО: Общий режим [20:52:14]line Чек 302 26.10.2024 20:52 [20:52:14]line Смена: 541 ФФД: 1.0 [20:52:14]line ЗНМ: 0300000110 [20:52:14]line РНМ: 0000000000091776 [20:52:14]line Версия ККМ: 001 [20:52:14]line ФМ: 0000000000871754 [20:52:14]line ФД: 191939 [20:52:14]line ФПД: 241784973578043 [20:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205229&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191939&fm=241784973578043&tin=02508201610067®Number=0000000000091776&sum=100000 [20:52:14]written 0, free lines is 4095 [20:52:14]OFD Sender: Processing packet 191939 [packets to send 75, broken 74] [20:52:14]ProducePacketName [20:52:14]name=ofd_packets/00191939 [20:52:14]OFD Sender: To server: pG, [20:52:14]CommunicateWithHost lk.salyk.kg:30040 [20:52:14]ConnectInit lk.salyk.kg [20:52:14]Connected sock=8 [20:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 18 BF 04 01 8D 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 8D 56 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 ED 02 00 35 04 06 00 DB E6 F3 76 4F 3B 4B C1 9A 40 F5 30 E9 5C [20:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7F DB 47 00 2D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C3 ED 02 00 F4 03 04 00 56 FB 1C 67 B6 04 01 00 00 4A 57 D9 B7 93 77 E1 1A [20:52:14]CommunicateWithHost err = 0 [20:52:14]CheckOFDResponse [20:52:14]1017 (14) - 77093643461234 [20:52:14]1041 (16) - 0000000000871754 [20:52:14]1040 (4) - 191939 [20:52:14]1012 (4) - 26.10.2024 14:23 [20:52:14]1206 (1) - 0 [20:52:14]OFD Sender: Remove packet 191939 [20:52:14]ProducePacketName [20:52:14]name=ofd_packets/00191939 [20:52:14]NVStorageDeleteData [20:52:14]Write to MH i2c: 01 00 00 6E 35 A3 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 07 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: 01 07 00 6E 35 00 00 00 00 00 B6 0C 6C [20:52:14]RasterBufferAndPrint [20:52:14]line [20:52:14]line [20:52:14]line [20:52:14]line [20:52:14]line [20:52:14]written 0, free lines is 3262 [20:52:14]MH_Cut [20:52:14]Write to MH i2c: D1 01 00 75 35 01 7C [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: D1 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: D1 01 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: D1 01 00 75 35 00 7B [20:52:14]Write to MH i2c: 01 00 00 76 35 AB [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:15]OFD Sender: No OFD packet to send [20:52:15]*** Cut start [20:52:15]*** Partial cut [20:52:15]*** CUTSNS_PIN = 1 [20:52:15]*** CUTSNS_PIN = 0 [20:52:16]*** Brake cut motor [20:52:16]Read from MH i2c: 01 [20:52:16]MH_I2C_Read... [20:52:16]*** Stop cut motor [20:52:16]*** Cut end [20:52:16]Read from MH i2c: 01 07 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 76 35 00 00 00 00 00 FF 0F C0 [20:52:16]process_action close_receipt done [20:52:16]requested_data is exist [20:52:16]produce_requested_data [20:52:16]requested_item fm.sn is exist - process it [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 11 00 00 [20:52:16]Write to MH i2c: E2 08 00 77 35 80 11 00 00 00 00 00 00 26 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 77 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 79 [20:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:52:16]wFMCommunicate OK [20:52:16]requested_item fd.num is exist - process it [20:52:16]SAM_PROTO_GetFieldsCounters [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 13 00 00 [20:52:16]Write to MH i2c: E2 08 00 78 35 80 13 00 00 00 00 00 00 29 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 62 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 62 00 78 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [20:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_GetFieldsCounters done [20:52:16]requested_item shift.num is exist - process it [20:52:16]requested_item shift.opened is exist - process it [20:52:16]req_shift_opened [20:52:16]FM_GetShiftState [20:52:16]SAM_PROTO_GetShiftState [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 13 01 00 [20:52:16]Write to MH i2c: E2 08 00 79 35 80 13 01 00 00 00 00 00 2B [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0E 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 0E 00 79 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A4 [20:52:16]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_GetShiftState done [20:52:16]FM_GetShiftState done [20:52:16]req_shift_opened done [20:52:16]requested_item shift.open_date is exist - process it [20:52:16]req_shift_open_date [20:52:16]req_shift_open_date done [20:52:16]produce_requested_data done [20:52:16]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191939,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:52:16]process_action_free close_receipt [20:52:16]json_value_free [20:52:16]json_value_free done [20:52:16]process_json_proto returns [20:52:16]Send response to host [20:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191939,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:52:16]free response buf [20:52:16]execute_script done [20:52:16]execute_script returns [20:52:16]free content buf [20:52:16]Sock 6.Close socket [20:52:16]Sock 6.Thread stoped [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:41]accept exits with 5 [20:59:41]New connection [20:59:41]New thread 3066961252 created [20:59:41]Thread 3066817892 joined [20:59:41]Waiting for new connection... [20:59:41] Sock 5.Parse request [20:59:41]Sock 5.Check first char [20:59:41]Sock 5.First char is OK [20:59:41]request: POST /json_proto HTTP/1.0 [20:59:41]Method: POST [20:59:41]URL: /json_proto [20:59:41]Method is POST - this is cgi request [20:59:41]url: /json_proto [20:59:41]query_string will be loaded in cgi processing [20:59:41]execute_cgi json_proto POST (null) [20:59:41]execute_cgi path=json_proto method=POST [20:59:41]POST find Content-Length [20:59:41]Host: 172.17.63.131:8080 [20:59:41]Content-Length: 862 [20:59:41]Content-Type: application/json [20:59:41] [20:59:41]POST finish read [20:59:41]Found Content-Length = 862 [20:59:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:41]execute_script... [20:59: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)31248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:59:41]POST & json_proto [20:59:41]process_json_proto [20:59:41]json parsed OK: [20:59:41]protocol is kg_v1.0 [20:59:41]action value=close_receipt [20:59:41]process_action close_receipt [20:59:41]cmd_close_receipt [20:59:41]MH_GetDate [20:59:41]Write to MH i2c: F0 00 00 7A 35 9E [20:59:41]Write i2c OK [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: F0 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: F0 09 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: F0 09 00 7A 35 00 4D 58 1D 67 22 05 6E 64 C9 [20:59:41]GetLastDocTimeStamp 1729975949 [20:59:41]current date 1729976397 [20:59:41]FM_GetShiftState [20:59:41]SAM_PROTO_GetShiftState [20:59:41]wFMCommunicate request_size=4 [20:59:41]MH_SAM_APDU [20:59:41]CAPDU: 80 13 01 00 [20:59:41]Write to MH i2c: E2 08 00 7B 35 80 13 01 00 00 00 00 00 2D [20:59:41]Write i2c OK [20:59:41]MH_I2C_Read... [20:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:41]Read from MH i2c: E2 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 0E 00 [20:59:41]MH_I2C_Read... [20:59:41]Read from MH i2c: E2 0E 00 7B 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A6 [20:59:41]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:59:41]wFMCommunicate OK [20:59:41]SAM_PROTO_GetShiftState done [20:59:41]FM_GetShiftState done [20:59:41]opened in 1729902770 [20:59:41]opened+sec_in_day 1729989170 [20:59:41]quantity*price = 50041 [20:59:41]sum+1 = 50042 [20:59:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 303 26.10.2024 20:59 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191940 ФПД: 146087803899085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191940&fm=146087803899085&tin=02508201610067®Number=0000000000091776&sum=50041 [20:59:42]StoreToDocumentArchive [20:59:42]shift 541 fd 191940 [20:59:42]save to /storage/0541/doc_00191940 [20:59:42]save last doc name /storage/0541/doc_00191940 to /storage/kkm_last_doc_name [20:59:42]save OK [20:59:42]Clear old archive folders... [20:59:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:42]tlvbuf is 018DC2F0 [20:59:42]SAM_PROTO_ClearQueue [20:59:42]wFMCommunicate request_size=4 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 09 00 00 [20:59:42]Write to MH i2c: E2 08 00 88 35 80 09 00 00 00 00 00 00 2F [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [20:59:42]RAPDU: 90 00 [20:59:42]wFMCommunicate OK [20:59:42]SAM_PROTO_ClearQueue done [20:59:42]KKMCreateOFDPacket [20:59:42]OFDProtocolAddRootSTLVToBuf [20:59:42]FM_MakeSignedData [20:59:42]FM_MakeSignedData [20:59:42]SAM_PROTO_SignData [20:59:42]wFMCommunicate request_size=4 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 0D 01 02 [20:59:42]Write to MH i2c: E2 08 00 89 35 80 0D 01 02 00 00 00 00 37 [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 89 35 00 90 00 32 [20:59:42]RAPDU: 90 00 [20:59:42]wFMCommunicate OK [20:59:42]wFMCommunicate request_size=255 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4D 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 ED 02 00 35 04 06 00 84 [20:59:42]Write to MH i2c: E2 02 01 8A 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4D 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 ED 02 00 35 04 06 00 84 00 00 CC [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 8A 35 00 90 00 33 [20:59:42]RAPDU: 90 00 [20:59:42]wFMCommunicate OK [20:59:42]wFMCommunicate request_size=10 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 0D 02 02 05 DD B7 A8 4C CD [20:59:42]Write to MH i2c: E2 0D 00 8B 35 80 0D 02 02 05 00 DD B7 A8 4C CD 00 00 99 [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 03 00 8B 35 00 90 00 34 [20:59:42]RAPDU: 90 00 [20:59:42]wFMCommunicate OK [20:59:42]wFMCommunicate request_size=4 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 0D 03 02 [20:59:42]Write to MH i2c: E2 08 00 8C 35 80 0D 03 02 00 00 00 00 3C [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 0B 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 0B 00 8C 35 00 A3 11 22 43 C2 63 C8 96 90 00 D9 [20:59:42]RAPDU: A3 11 22 43 C2 63 C8 96 90 00 [20:59:42]wFMCommunicate OK [20:59:42]SAM_PROTO_SignData done [20:59:42]FM_MakeSignedData done [20:59:42]CreateOFDProtocolMessage [20:59:42]wFMCommunicate request_size=4 [20:59:42]MH_SAM_APDU [20:59:42]CAPDU: 80 11 00 00 [20:59:42]Write to MH i2c: E2 08 00 8D 35 80 11 00 00 00 00 00 00 3C [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:42]Read from MH i2c: E2 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 17 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: E2 17 00 8D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [20:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:59:42]wFMCommunicate OK [20:59:42]CreateOFDProtocolMessage done [20:59:42]OFDSenderStorePacket 191940 [20:59:42]StoreOFDPacket docnum=191940 [20:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 6C 07 01 BE BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4D 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 ED 02 00 35 04 06 00 84 DD B7 A8 4C CD A3 11 22 43 C2 63 C8 96 [20:59:42]CheckFolder [20:59:42]dirname=/storage/ofd_packets [20:59:42]CheckFolder done [20:59:42]ProducePacketName [20:59:42]name=ofd_packets/00191940 [20:59:42]NVStorageSaveData ofd_packets/00191940 [20:59:42]File name is /storage/ofd_packets/00191940 [20:59:42]Write 301 bytes [20:59:42]NVStorageSaveData done [20:59:42]OFDSenderStorePacket done [20:59:42]KKMCreateOFDPacket done [20:59:42]NVStorageSaveData kkm_last_timestamp [20:59:42]File name is /storage/kkm_last_timestamp [20:59:42]Write 4 bytes [20:59:42]NVStorageSaveData done [20:59:42]ExternCall_PrintAddStr [20:59:42]wPrintStart [20:59:42]Write to MH i2c: 01 00 00 8E 35 C3 [20:59:42]Write i2c OK [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: 01 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: 01 07 00 [20:59:42]MH_I2C_Read... [20:59:42]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 FF 0F D8 [20:59:42]RasterBufferAndPrint [20:59:42]line Счет N : (1)31248 [20:59:42]line ИНН: 02508201610067 [20:59:42]line Контрольно-Кассовый Чек [20:59:42]line ПРОДАЖА [20:59:42]line ТРК (МРК, ГНК) : 21 [20:59:42]line Товар: 2710124130 [20:59:42]line Аи-92-К-5 [20:59:42]line 7.480 * 66.90 [20:59:42]line = 500.41 [20:59:42]line НДС 12% НСП 1% [20:59:42]line > о реализуемом товаре [20:59:42]line ИТОГО: 500.41 [20:59:42]line НСП 1% : 4.43 [20:59:42]line НДС 12% : 53.14 [20:59:42]line Наличными: 0.00 [20:59:42]line Безнал.: 500.41 [20:59:42]line Место: АЗС № 170 "Партнер Нефть" [20:59:42]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [20:59:42]line СНО: Общий режим [20:59:42]line Чек 303 26.10.2024 20:59 [20:59:42]line Смена: 541 ФФД: 1.0 [20:59:42]line ЗНМ: 0300000110 [20:59:42]line РНМ: 0000000000091776 [20:59:42]line Версия ККМ: 001 [20:59:42]line Платежная система: Кыргызкоммерцбанк [20:59:42]line ФМ: 0000000000871754 [20:59:42]line ФД: 191940 [20:59:42]line ФПД: 146087803899085 [20:59:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T205957&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191940&fm=146087803899085&tin=02508201610067®Number=0000000000091776&sum=50041 [20:59:43]OFD Sender: Processing packet 191940 [packets to send 75, broken 74] [20:59:43]ProducePacketName [20:59:43]name=ofd_packets/00191940 [20:59:43]OFD Sender: To server: pG, [20:59:43]CommunicateWithHost lk.salyk.kg:30040 [20:59:43]ConnectInit lk.salyk.kg [20:59:43]written 0, free lines is 4095 [20:59:43]Connected sock=8 [20:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 D6 6C 07 01 BE BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4D 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 ED 02 00 35 04 06 00 84 DD B7 A8 4C CD A3 11 22 43 C2 63 C8 96 [20:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE DC 47 00 56 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C4 ED 02 00 F4 03 04 00 17 FD 1C 67 B6 04 01 00 00 48 49 C2 10 BB 8F F2 49 [20:59:43]CommunicateWithHost err = 0 [20:59:43]CheckOFDResponse [20:59:43]1017 (14) - 77093643461234 [20:59:43]1041 (16) - 0000000000871754 [20:59:43]1040 (4) - 191940 [20:59:43]1012 (4) - 26.10.2024 14:30 [20:59:43]1206 (1) - 0 [20:59:43]OFD Sender: Remove packet 191940 [20:59:43]ProducePacketName [20:59:43]name=ofd_packets/00191940 [20:59:43]NVStorageDeleteData [20:59:43]Write to MH i2c: 01 00 00 B8 35 ED [20:59:43]Write i2c OK [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 07 00 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: 01 07 00 B8 35 00 00 00 00 00 D2 0C D2 [20:59:43]RasterBufferAndPrint [20:59:43]line [20:59:43]line [20:59:43]line [20:59:43]line [20:59:43]line [20:59:43]written 0, free lines is 3292 [20:59:43]MH_Cut [20:59:43]Write to MH i2c: D1 01 00 BF 35 01 C6 [20:59:43]Write i2c OK [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: D1 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: D1 01 00 [20:59:43]MH_I2C_Read... [20:59:43]Read from MH i2c: D1 01 00 BF 35 00 C5 [20:59:43]Write to MH i2c: 01 00 00 C0 35 F5 [20:59:43]Write i2c OK [20:59:43]MH_I2C_Read... [20:59:43]OFD Sender: No OFD packet to send [20:59:44]*** Cut start [20:59:44]*** Partial cut [20:59:44]*** CUTSNS_PIN = 1 [20:59:44]*** CUTSNS_PIN = 0 [20:59:44]*** Brake cut motor [20:59:44]Read from MH i2c: 01 [20:59:44]MH_I2C_Read... [20:59:44]*** Stop cut motor [20:59:45]*** Cut end [20:59:45]Read from MH i2c: 01 07 00 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: 01 07 00 C0 35 00 00 00 00 00 FF 0F 0A [20:59:45]process_action close_receipt done [20:59:45]requested_data is exist [20:59:45]produce_requested_data [20:59:45]requested_item fm.sn is exist - process it [20:59:45]wFMCommunicate request_size=4 [20:59:45]MH_SAM_APDU [20:59:45]CAPDU: 80 11 00 00 [20:59:45]Write to MH i2c: E2 08 00 C1 35 80 11 00 00 00 00 00 00 70 [20:59:45]Write i2c OK [20:59:45]MH_I2C_Read... [20:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:45]Read from MH i2c: E2 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 17 00 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 17 00 C1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C3 [20:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [20:59:45]wFMCommunicate OK [20:59:45]requested_item fd.num is exist - process it [20:59:45]SAM_PROTO_GetFieldsCounters [20:59:45]wFMCommunicate request_size=4 [20:59:45]MH_SAM_APDU [20:59:45]CAPDU: 80 13 00 00 [20:59:45]Write to MH i2c: E2 08 00 C2 35 80 13 00 00 00 00 00 00 73 [20:59:45]Write i2c OK [20:59:45]MH_I2C_Read... [20:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:45]Read from MH i2c: E2 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 62 00 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 62 00 C2 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [20:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:45]wFMCommunicate OK [20:59:45]SAM_PROTO_GetFieldsCounters done [20:59:45]requested_item shift.num is exist - process it [20:59:45]requested_item shift.opened is exist - process it [20:59:45]req_shift_opened [20:59:45]FM_GetShiftState [20:59:45]SAM_PROTO_GetShiftState [20:59:45]wFMCommunicate request_size=4 [20:59:45]MH_SAM_APDU [20:59:45]CAPDU: 80 13 01 00 [20:59:45]Write to MH i2c: E2 08 00 C3 35 80 13 01 00 00 00 00 00 75 [20:59:45]Write i2c OK [20:59:45]MH_I2C_Read... [20:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:45]Read from MH i2c: E2 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 0E 00 [20:59:45]MH_I2C_Read... [20:59:45]Read from MH i2c: E2 0E 00 C3 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EE [20:59:45]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [20:59:45]wFMCommunicate OK [20:59:45]SAM_PROTO_GetShiftState done [20:59:45]FM_GetShiftState done [20:59:45]req_shift_opened done [20:59:45]requested_item shift.open_date is exist - process it [20:59:45]req_shift_open_date [20:59:45]req_shift_open_date done [20:59:45]produce_requested_data done [20:59:45]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191940,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [20:59:45]process_action_free close_receipt [20:59:45]json_value_free [20:59:45]json_value_free done [20:59:45]process_json_proto returns [20:59:45]Send response to host [20:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191940,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [20:59:45]free response buf [20:59:45]execute_script done [20:59:45]execute_script returns [20:59:45]free content buf [20:59:45]Sock 5.Close socket [20:59:45]Sock 5.Thread stoped [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:25]accept exits with 6 [21:02:25]New connection [21:02:25]New thread 3066817892 created [21:02:25]Thread 3066961252 joined [21:02:25]Waiting for new connection... [21:02:25] Sock 6.Parse request [21:02:25]Sock 6.Check first char [21:02:25]Sock 6.First char is OK [21:02:25]request: POST /json_proto HTTP/1.0 [21:02:25]Method: POST [21:02:25]URL: /json_proto [21:02:25]Method is POST - this is cgi request [21:02:25]url: /json_proto [21:02:25]query_string will be loaded in cgi processing [21:02:25]execute_cgi json_proto POST (null) [21:02:25]execute_cgi path=json_proto method=POST [21:02:25]POST find Content-Length [21:02:25]Host: 172.17.63.131:8080 [21:02:25]Content-Length: 676 [21:02:25]Content-Type: application/json [21:02:25] [21:02:25]POST finish read [21:02:25]Found Content-Length = 676 [21:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:25]execute_script... [21:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:25]POST & json_proto [21:02:25]process_json_proto [21:02:25]json parsed OK: [21:02:25]protocol is kg_v1.0 [21:02:25]action value=close_receipt [21:02:25]process_action close_receipt [21:02:25]cmd_close_receipt [21:02:25]MH_GetDate [21:02:25]Write to MH i2c: F0 00 00 C4 35 E8 [21:02:25]Write i2c OK [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: F0 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: F0 09 00 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: F0 09 00 C4 35 00 F1 58 1D 67 22 05 6E 64 B7 [21:02:25]GetLastDocTimeStamp 1729976397 [21:02:25]current date 1729976561 [21:02:25]FM_GetShiftState [21:02:25]SAM_PROTO_GetShiftState [21:02:25]wFMCommunicate request_size=4 [21:02:25]MH_SAM_APDU [21:02:25]CAPDU: 80 13 01 00 [21:02:25]Write to MH i2c: E2 08 00 C5 35 80 13 01 00 00 00 00 00 77 [21:02:25]Write i2c OK [21:02:25]MH_I2C_Read... [21:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:25]Read from MH i2c: E2 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: E2 0E 00 [21:02:25]MH_I2C_Read... [21:02:25]Read from MH i2c: E2 0E 00 C5 35 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 F0 [21:02:25]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:02:25]wFMCommunicate OK [21:02:25]SAM_PROTO_GetShiftState done [21:02:25]FM_GetShiftState done [21:02:25]opened in 1729902770 [21:02:25]opened+sec_in_day 1729989170 [21:02:25]quantity*price = 40006 [21:02:25]sum+1 = 40007 [21:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 304 26.10.2024 21:02 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191941 ФПД: 29594118374575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191941&fm=29594118374575&tin=02508201610067®Number=0000000000091776&sum=40000 [21:02:26]StoreToDocumentArchive [21:02:26]shift 541 fd 191941 [21:02:26]save to /storage/0541/doc_00191941 [21:02:26]save last doc name /storage/0541/doc_00191941 to /storage/kkm_last_doc_name [21:02:26]save OK [21:02:26]Clear old archive folders... [21:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:26]tlvbuf is 019608D0 [21:02:26]SAM_PROTO_ClearQueue [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 09 00 00 [21:02:26]Write to MH i2c: E2 08 00 D2 35 80 09 00 00 00 00 00 00 79 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 D2 35 00 90 00 7B [21:02:26]RAPDU: 90 00 [21:02:26]wFMCommunicate OK [21:02:26]SAM_PROTO_ClearQueue done [21:02:26]KKMCreateOFDPacket [21:02:26]OFDProtocolAddRootSTLVToBuf [21:02:26]FM_MakeSignedData [21:02:26]FM_MakeSignedData [21:02:26]SAM_PROTO_SignData [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 0D 01 02 [21:02:26]Write to MH i2c: E2 08 00 D3 35 80 0D 01 02 00 00 00 00 81 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 D3 35 00 90 00 7C [21:02:26]RAPDU: 90 00 [21:02:26]wFMCommunicate OK [21:02:26]wFMCommunicate request_size=255 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 F1 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 ED 02 00 35 04 06 00 1A [21:02:26]Write to MH i2c: E2 02 01 D4 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 F1 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 ED 02 00 35 04 06 00 1A 00 00 CF [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 D4 35 00 90 00 7D [21:02:26]RAPDU: 90 00 [21:02:26]wFMCommunicate OK [21:02:26]wFMCommunicate request_size=10 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 0D 02 02 05 EA 6A E9 C4 AF [21:02:26]Write to MH i2c: E2 0D 00 D5 35 80 0D 02 02 05 00 EA 6A E9 C4 AF 00 00 3E [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 03 00 D5 35 00 90 00 7E [21:02:26]RAPDU: 90 00 [21:02:26]wFMCommunicate OK [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 0D 03 02 [21:02:26]Write to MH i2c: E2 08 00 D6 35 80 0D 03 02 00 00 00 00 86 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 0B 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 0B 00 D6 35 00 13 04 B0 0A 70 08 97 E9 90 00 50 [21:02:26]RAPDU: 13 04 B0 0A 70 08 97 E9 90 00 [21:02:26]wFMCommunicate OK [21:02:26]SAM_PROTO_SignData done [21:02:26]FM_MakeSignedData done [21:02:26]CreateOFDProtocolMessage [21:02:26]wFMCommunicate request_size=4 [21:02:26]MH_SAM_APDU [21:02:26]CAPDU: 80 11 00 00 [21:02:26]Write to MH i2c: E2 08 00 D7 35 80 11 00 00 00 00 00 00 86 [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:26]Read from MH i2c: E2 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 17 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: E2 17 00 D7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D9 [21:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:02:26]wFMCommunicate OK [21:02:26]CreateOFDProtocolMessage done [21:02:26]OFDSenderStorePacket 191941 [21:02:26]StoreOFDPacket docnum=191941 [21:02:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 19 07 01 C8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 F1 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 ED 02 00 35 04 06 00 1A EA 6A E9 C4 AF 13 04 B0 0A 70 08 97 E9 [21:02:26]CheckFolder [21:02:26]dirname=/storage/ofd_packets [21:02:26]CheckFolder done [21:02:26]ProducePacketName [21:02:26]name=ofd_packets/00191941 [21:02:26]NVStorageSaveData ofd_packets/00191941 [21:02:26]File name is /storage/ofd_packets/00191941 [21:02:26]Write 301 bytes [21:02:26]NVStorageSaveData done [21:02:26]OFDSenderStorePacket done [21:02:26]KKMCreateOFDPacket done [21:02:26]NVStorageSaveData kkm_last_timestamp [21:02:26]File name is /storage/kkm_last_timestamp [21:02:26]Write 4 bytes [21:02:26]NVStorageSaveData done [21:02:26]ExternCall_PrintAddStr [21:02:26]wPrintStart [21:02:26]Write to MH i2c: 01 00 00 D8 35 0D [21:02:26]Write i2c OK [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: 01 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: 01 07 00 [21:02:26]MH_I2C_Read... [21:02:26]Read from MH i2c: 01 07 00 D8 35 00 00 00 00 00 FF 0F 22 [21:02:26]RasterBufferAndPrint [21:02:26]line Счет N : (1)31249 [21:02:26]line ИНН: 02508201610067 [21:02:26]line Контрольно-Кассовый Чек [21:02:26]line ПРОДАЖА [21:02:26]line ТРК (МРК, ГНК) : 12 [21:02:26]line Товар: 2710124130 [21:02:26]line Аи-92-К-5 [21:02:26]line 5.980 * 66.90 [21:02:26]line = 400.06 [21:02:26]line НДС 12% НСП 1% [21:02:26]line > о реализуемом товаре [21:02:26]line ОКРУГЛЕНИЕ: -0.06 [21:02:26]line ИТОГО: 400.00 [21:02:26]line Внесено: 400.00 [21:02:26]line СДАЧА: 0.00 [21:02:26]line НСП 1% : 3.54 [21:02:26]line НДС 12% : 42.48 [21:02:26]line Наличными: 400.00 [21:02:26]line Безнал.: 0.00 [21:02:26]line Место: АЗС № 170 "Партнер Нефть" [21:02:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:02:26]line СНО: Общий режим [21:02:26]line Чек 304 26.10.2024 21:02 [21:02:26]line Смена: 541 ФФД: 1.0 [21:02:26]line ЗНМ: 0300000110 [21:02:26]line РНМ: 0000000000091776 [21:02:26]line Версия ККМ: 001 [21:02:26]line ФМ: 0000000000871754 [21:02:26]line ФД: 191941 [21:02:26]line ФПД: 29594118374575 [21:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210241&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191941&fm=29594118374575&tin=02508201610067®Number=0000000000091776&sum=40000 [21:02:27]OFD Sender: Processing packet 191941 [packets to send 75, broken 74] [21:02:27]ProducePacketName [21:02:27]name=ofd_packets/00191941 [21:02:27]OFD Sender: To server: pG, [21:02:27]CommunicateWithHost lk.salyk.kg:30040 [21:02:27]ConnectInit lk.salyk.kg [21:02:27]written 0, free lines is 4095 [21:02:27]Connected sock=8 [21:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 72 19 07 01 C8 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 F1 58 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 ED 02 00 35 04 06 00 1A EA 6A E9 C4 AF 13 04 B0 0A 70 08 97 E9 [21:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 08 21 47 00 63 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C5 ED 02 00 F4 03 04 00 BB FD 1C 67 B6 04 01 00 00 05 16 70 9D 97 52 10 7C [21:02:27]CommunicateWithHost err = 0 [21:02:27]CheckOFDResponse [21:02:27]1017 (14) - 77093643461234 [21:02:27]1041 (16) - 0000000000871754 [21:02:27]1040 (4) - 191941 [21:02:27]1012 (4) - 26.10.2024 14:33 [21:02:27]1206 (1) - 0 [21:02:27]OFD Sender: Remove packet 191941 [21:02:27]ProducePacketName [21:02:27]name=ofd_packets/00191941 [21:02:27]NVStorageDeleteData [21:02:27]Write to MH i2c: 01 00 00 03 36 39 [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: 01 07 00 03 36 00 00 00 00 00 B2 0C FE [21:02:27]RasterBufferAndPrint [21:02:27]line [21:02:27]line [21:02:27]line [21:02:27]line [21:02:27]line [21:02:27]written 0, free lines is 3257 [21:02:27]MH_Cut [21:02:27]Write to MH i2c: D1 01 00 0A 36 01 12 [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D1 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D1 01 00 [21:02:27]MH_I2C_Read... [21:02:27]Read from MH i2c: D1 01 00 0A 36 00 11 [21:02:27]Write to MH i2c: 01 00 00 0B 36 41 [21:02:27]Write i2c OK [21:02:27]MH_I2C_Read... [21:02:28]OFD Sender: No OFD packet to send [21:02:28]*** Cut start [21:02:28]*** Partial cut [21:02:28]*** CUTSNS_PIN = 1 [21:02:28]*** CUTSNS_PIN = 0 [21:02:28]*** Brake cut motor [21:02:29]Read from MH i2c: 01 [21:02:29]MH_I2C_Read... [21:02:29]*** Stop cut motor [21:02:29]*** Cut end [21:02:29]Read from MH i2c: 01 07 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: 01 07 00 0B 36 00 00 00 00 00 FF 0F 56 [21:02:29]process_action close_receipt done [21:02:29]requested_data is exist [21:02:29]produce_requested_data [21:02:29]requested_item fm.sn is exist - process it [21:02:29]wFMCommunicate request_size=4 [21:02:29]MH_SAM_APDU [21:02:29]CAPDU: 80 11 00 00 [21:02:29]Write to MH i2c: E2 08 00 0C 36 80 11 00 00 00 00 00 00 BC [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:29]Read from MH i2c: E2 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 17 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 17 00 0C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0F [21:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:02:29]wFMCommunicate OK [21:02:29]requested_item fd.num is exist - process it [21:02:29]SAM_PROTO_GetFieldsCounters [21:02:29]wFMCommunicate request_size=4 [21:02:29]MH_SAM_APDU [21:02:29]CAPDU: 80 13 00 00 [21:02:29]Write to MH i2c: E2 08 00 0D 36 80 13 00 00 00 00 00 00 BF [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:29]Read from MH i2c: E2 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 62 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 62 00 0D 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [21:02:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:29]wFMCommunicate OK [21:02:29]SAM_PROTO_GetFieldsCounters done [21:02:29]requested_item shift.num is exist - process it [21:02:29]requested_item shift.opened is exist - process it [21:02:29]req_shift_opened [21:02:29]FM_GetShiftState [21:02:29]SAM_PROTO_GetShiftState [21:02:29]wFMCommunicate request_size=4 [21:02:29]MH_SAM_APDU [21:02:29]CAPDU: 80 13 01 00 [21:02:29]Write to MH i2c: E2 08 00 0E 36 80 13 01 00 00 00 00 00 C1 [21:02:29]Write i2c OK [21:02:29]MH_I2C_Read... [21:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:29]Read from MH i2c: E2 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 [21:02:29]MH_I2C_Read... [21:02:29]Read from MH i2c: E2 0E 00 0E 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3A [21:02:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:02:29]wFMCommunicate OK [21:02:29]SAM_PROTO_GetShiftState done [21:02:29]FM_GetShiftState done [21:02:29]req_shift_opened done [21:02:29]requested_item shift.open_date is exist - process it [21:02:29]req_shift_open_date [21:02:29]req_shift_open_date done [21:02:29]produce_requested_data done [21:02:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191941,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:02:29]process_action_free close_receipt [21:02:29]json_value_free [21:02:29]json_value_free done [21:02:29]process_json_proto returns [21:02:29]Send response to host [21:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191941,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:02:29]free response buf [21:02:29]execute_script done [21:02:29]execute_script returns [21:02:29]free content buf [21:02:29]Sock 6.Close socket [21:02:29]Sock 6.Thread stoped [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:52]accept exits with 5 [21:05:52]New connection [21:05:52]New thread 3066961252 created [21:05:52]Thread 3066817892 joined [21:05:52]Waiting for new connection... [21:05:52] Sock 5.Parse request [21:05:52]Sock 5.Check first char [21:05:52]Sock 5.First char is OK [21:05:52]request: POST /json_proto HTTP/1.0 [21:05:52]Method: POST [21:05:52]URL: /json_proto [21:05:52]Method is POST - this is cgi request [21:05:52]url: /json_proto [21:05:52]query_string will be loaded in cgi processing [21:05:52]execute_cgi json_proto POST (null) [21:05:52]execute_cgi path=json_proto method=POST [21:05:52]POST find Content-Length [21:05:52]Host: 172.17.63.131:8080 [21:05:52]Content-Length: 676 [21:05:52]Content-Type: application/json [21:05:52] [21:05:52]POST finish read [21:05:52]Found Content-Length = 676 [21:05:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:52]execute_script... [21:05: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)31250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:52]POST & json_proto [21:05:52]process_json_proto [21:05:52]json parsed OK: [21:05:52]protocol is kg_v1.0 [21:05:52]action value=close_receipt [21:05:52]process_action close_receipt [21:05:52]cmd_close_receipt [21:05:52]MH_GetDate [21:05:52]Write to MH i2c: F0 00 00 0F 36 34 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: F0 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: F0 09 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: F0 09 00 0F 36 00 C0 59 1D 67 22 05 6E 64 D3 [21:05:52]GetLastDocTimeStamp 1729976561 [21:05:52]current date 1729976768 [21:05:52]FM_GetShiftState [21:05:52]SAM_PROTO_GetShiftState [21:05:52]wFMCommunicate request_size=4 [21:05:52]MH_SAM_APDU [21:05:52]CAPDU: 80 13 01 00 [21:05:52]Write to MH i2c: E2 08 00 10 36 80 13 01 00 00 00 00 00 C3 [21:05:52]Write i2c OK [21:05:52]MH_I2C_Read... [21:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:52]Read from MH i2c: E2 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0E 00 [21:05:52]MH_I2C_Read... [21:05:52]Read from MH i2c: E2 0E 00 10 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3C [21:05:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:05:52]wFMCommunicate OK [21:05:52]SAM_PROTO_GetShiftState done [21:05:52]FM_GetShiftState done [21:05:52]opened in 1729902770 [21:05:52]opened+sec_in_day 1729989170 [21:05:52]quantity*price = 50041 [21:05:52]sum+1 = 50042 [21:05:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 305 26.10.2024 21:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191942 ФПД: 225494160642946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191942&fm=225494160642946&tin=02508201610067®Number=0000000000091776&sum=50000 [21:05:53]StoreToDocumentArchive [21:05:53]shift 541 fd 191942 [21:05:53]save to /storage/0541/doc_00191942 [21:05:53]save last doc name /storage/0541/doc_00191942 to /storage/kkm_last_doc_name [21:05:53]save OK [21:05:53]Clear old archive folders... [21:05:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:53]tlvbuf is 016BC260 [21:05:53]SAM_PROTO_ClearQueue [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 09 00 00 [21:05:53]Write to MH i2c: E2 08 00 1D 36 80 09 00 00 00 00 00 00 C5 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 1D 36 00 90 00 C7 [21:05:53]RAPDU: 90 00 [21:05:53]wFMCommunicate OK [21:05:53]SAM_PROTO_ClearQueue done [21:05:53]KKMCreateOFDPacket [21:05:53]OFDProtocolAddRootSTLVToBuf [21:05:53]FM_MakeSignedData [21:05:53]FM_MakeSignedData [21:05:53]SAM_PROTO_SignData [21:05:53]wFMCommunicate request_size=4 [21:05:53]MH_SAM_APDU [21:05:53]CAPDU: 80 0D 01 02 [21:05:53]Write to MH i2c: E2 08 00 1E 36 80 0D 01 02 00 00 00 00 CD [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:53]Read from MH i2c: E2 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 [21:05:53]MH_I2C_Read... [21:05:53]Read from MH i2c: E2 03 00 1E 36 00 90 00 C8 [21:05:53]RAPDU: 90 00 [21:05:53]wFMCommunicate OK [21:05:53]wFMCommunicate request_size=255 [21:05:53]MH_SAM_APDU [21:05: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C0 59 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 ED 02 00 35 04 06 00 CD [21:05:53]Write to MH i2c: E2 02 01 1F 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C0 59 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 ED 02 00 35 04 06 00 CD 00 00 D1 [21:05:53]Write i2c OK [21:05:53]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 03 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 03 00 1F 36 00 90 00 C9 [21:05:54]RAPDU: 90 00 [21:05:54]wFMCommunicate OK [21:05:54]wFMCommunicate request_size=10 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 0D 02 02 05 15 F3 58 13 82 [21:05:54]Write to MH i2c: E2 0D 00 20 36 80 0D 02 02 05 00 15 F3 58 13 82 00 00 CF [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 03 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 03 00 20 36 00 90 00 CA [21:05:54]RAPDU: 90 00 [21:05:54]wFMCommunicate OK [21:05:54]wFMCommunicate request_size=4 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 0D 03 02 [21:05:54]Write to MH i2c: E2 08 00 21 36 80 0D 03 02 00 00 00 00 D2 [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 0B 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 0B 00 21 36 00 86 8B 3F 42 C3 6F EE B8 90 00 3D [21:05:54]RAPDU: 86 8B 3F 42 C3 6F EE B8 90 00 [21:05:54]wFMCommunicate OK [21:05:54]SAM_PROTO_SignData done [21:05:54]FM_MakeSignedData done [21:05:54]CreateOFDProtocolMessage [21:05:54]wFMCommunicate request_size=4 [21:05:54]MH_SAM_APDU [21:05:54]CAPDU: 80 11 00 00 [21:05:54]Write to MH i2c: E2 08 00 22 36 80 11 00 00 00 00 00 00 D2 [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:54]Read from MH i2c: E2 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 17 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: E2 17 00 22 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 25 [21:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:05:54]wFMCommunicate OK [21:05:54]CreateOFDProtocolMessage done [21:05:54]OFDSenderStorePacket 191942 [21:05:54]StoreOFDPacket docnum=191942 [21:05:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 B5 07 01 DA 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C0 59 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 ED 02 00 35 04 06 00 CD 15 F3 58 13 82 86 8B 3F 42 C3 6F EE B8 [21:05:54]CheckFolder [21:05:54]dirname=/storage/ofd_packets [21:05:54]CheckFolder done [21:05:54]ProducePacketName [21:05:54]name=ofd_packets/00191942 [21:05:54]NVStorageSaveData ofd_packets/00191942 [21:05:54]File name is /storage/ofd_packets/00191942 [21:05:54]Write 301 bytes [21:05:54]NVStorageSaveData done [21:05:54]OFDSenderStorePacket done [21:05:54]KKMCreateOFDPacket done [21:05:54]NVStorageSaveData kkm_last_timestamp [21:05:54]File name is /storage/kkm_last_timestamp [21:05:54]Write 4 bytes [21:05:54]NVStorageSaveData done [21:05:54]ExternCall_PrintAddStr [21:05:54]wPrintStart [21:05:54]Write to MH i2c: 01 00 00 23 36 59 [21:05:54]Write i2c OK [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: 01 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: 01 07 00 [21:05:54]MH_I2C_Read... [21:05:54]Read from MH i2c: 01 07 00 23 36 00 00 00 00 00 FF 0F 6E [21:05:54]RasterBufferAndPrint [21:05:54]line Счет N : (1)31250 [21:05:54]line ИНН: 02508201610067 [21:05:54]line Контрольно-Кассовый Чек [21:05:54]line ПРОДАЖА [21:05:54]line ТРК (МРК, ГНК) : 12 [21:05:54]line Товар: 2710124130 [21:05:54]line Аи-92-К-5 [21:05:54]line 7.480 * 66.90 [21:05:54]line = 500.41 [21:05:54]line НДС 12% НСП 1% [21:05:54]line > о реализуемом товаре [21:05:54]line ОКРУГЛЕНИЕ: -0.41 [21:05:54]line ИТОГО: 500.00 [21:05:54]line Внесено: 500.00 [21:05:54]line СДАЧА: 0.00 [21:05:54]line НСП 1% : 4.43 [21:05:54]line НДС 12% : 53.14 [21:05:54]line Наличными: 500.00 [21:05:54]line Безнал.: 0.00 [21:05:54]line Место: АЗС № 170 "Партнер Нефть" [21:05:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:05:54]line СНО: Общий режим [21:05:54]line Чек 305 26.10.2024 21:06 [21:05:54]line Смена: 541 ФФД: 1.0 [21:05:54]line ЗНМ: 0300000110 [21:05:54]line РНМ: 0000000000091776 [21:05:54]line Версия ККМ: 001 [21:05:54]line ФМ: 0000000000871754 [21:05:54]line ФД: 191942 [21:05:54]line ФПД: 225494160642946 [21:05:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T210608&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191942&fm=225494160642946&tin=02508201610067®Number=0000000000091776&sum=50000 [21:05:54]OFD Sender: Processing packet 191942 [packets to send 75, broken 74] [21:05:54]ProducePacketName [21:05:54]name=ofd_packets/00191942 [21:05:54]OFD Sender: To server: pG, [21:05:54]CommunicateWithHost lk.salyk.kg:30040 [21:05:54]ConnectInit lk.salyk.kg [21:05:54]written 0, free lines is 4095 [21:05:54]Connected sock=8 [21:05:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E8 B5 07 01 DA 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 C0 59 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 ED 02 00 35 04 06 00 CD 15 F3 58 13 82 86 8B 3F 42 C3 6F EE B8 [21:05:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AE A0 47 00 FB 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C6 ED 02 00 F4 03 04 00 8A FE 1C 67 B6 04 01 00 00 6E 0D 94 0E 6E 35 9A 8B [21:05:54]CommunicateWithHost err = 0 [21:05:54]CheckOFDResponse [21:05:54]1017 (14) - 77093643461234 [21:05:54]1041 (16) - 0000000000871754 [21:05:54]1040 (4) - 191942 [21:05:54]1012 (4) - 26.10.2024 14:36 [21:05:54]1206 (1) - 0 [21:05:54]OFD Sender: Remove packet 191942 [21:05:54]ProducePacketName [21:05:54]name=ofd_packets/00191942 [21:05:54]NVStorageDeleteData [21:05:55]Write to MH i2c: 01 00 00 4E 36 84 [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: 01 07 00 4E 36 00 00 00 00 00 B7 0C 4E [21:05:55]RasterBufferAndPrint [21:05:55]line [21:05:55]line [21:05:55]line [21:05:55]line [21:05:55]line [21:05:55]written 0, free lines is 3262 [21:05:55]MH_Cut [21:05:55]Write to MH i2c: D1 01 00 55 36 01 5D [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: D1 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: D1 01 00 [21:05:55]MH_I2C_Read... [21:05:55]Read from MH i2c: D1 01 00 55 36 00 5C [21:05:55]Write to MH i2c: 01 00 00 56 36 8C [21:05:55]Write i2c OK [21:05:55]MH_I2C_Read... [21:05:55]OFD Sender: No OFD packet to send [21:05:55]*** Cut start [21:05:55]*** Partial cut [21:05:55]*** CUTSNS_PIN = 1 [21:05:55]*** CUTSNS_PIN = 0 [21:05:56]*** Brake cut motor [21:05:56]Read from MH i2c: 01 [21:05:56]MH_I2C_Read... [21:05:56]*** Stop cut motor [21:05:56]*** Cut end [21:05:56]Read from MH i2c: 01 07 00 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: 01 07 00 56 36 00 00 00 00 00 FF 0F A1 [21:05:56]process_action close_receipt done [21:05:56]requested_data is exist [21:05:56]produce_requested_data [21:05:56]requested_item fm.sn is exist - process it [21:05:56]wFMCommunicate request_size=4 [21:05:56]MH_SAM_APDU [21:05:56]CAPDU: 80 11 00 00 [21:05:56]Write to MH i2c: E2 08 00 57 36 80 11 00 00 00 00 00 00 07 [21:05:56]Write i2c OK [21:05:56]MH_I2C_Read... [21:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:56]Read from MH i2c: E2 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 17 00 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 17 00 57 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5A [21:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:05:56]wFMCommunicate OK [21:05:56]requested_item fd.num is exist - process it [21:05:56]SAM_PROTO_GetFieldsCounters [21:05:56]wFMCommunicate request_size=4 [21:05:56]MH_SAM_APDU [21:05:56]CAPDU: 80 13 00 00 [21:05:56]Write to MH i2c: E2 08 00 58 36 80 13 00 00 00 00 00 00 0A [21:05:56]Write i2c OK [21:05:56]MH_I2C_Read... [21:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:56]Read from MH i2c: E2 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 62 00 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 62 00 58 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [21:05:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:56]wFMCommunicate OK [21:05:56]SAM_PROTO_GetFieldsCounters done [21:05:56]requested_item shift.num is exist - process it [21:05:56]requested_item shift.opened is exist - process it [21:05:56]req_shift_opened [21:05:56]FM_GetShiftState [21:05:56]SAM_PROTO_GetShiftState [21:05:56]wFMCommunicate request_size=4 [21:05:56]MH_SAM_APDU [21:05:56]CAPDU: 80 13 01 00 [21:05:56]Write to MH i2c: E2 08 00 59 36 80 13 01 00 00 00 00 00 0C [21:05:56]Write i2c OK [21:05:56]MH_I2C_Read... [21:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:56]Read from MH i2c: E2 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 0E 00 [21:05:56]MH_I2C_Read... [21:05:56]Read from MH i2c: E2 0E 00 59 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 85 [21:05:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:05:56]wFMCommunicate OK [21:05:56]SAM_PROTO_GetShiftState done [21:05:56]FM_GetShiftState done [21:05:56]req_shift_opened done [21:05:56]requested_item shift.open_date is exist - process it [21:05:56]req_shift_open_date [21:05:56]req_shift_open_date done [21:05:56]produce_requested_data done [21:05:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191942,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:05:56]process_action_free close_receipt [21:05:56]json_value_free [21:05:56]json_value_free done [21:05:56]process_json_proto returns [21:05:56]Send response to host [21:05:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191942,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:05:56]free response buf [21:05:56]execute_script done [21:05:56]execute_script returns [21:05:56]free content buf [21:05:56]Sock 5.Close socket [21:05:56]Sock 5.Thread stoped [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:22]accept exits with 6 [21:14:22]New connection [21:14:22]New thread 3066817892 created [21:14:22]Thread 3066961252 joined [21:14:22]Waiting for new connection... [21:14:22] Sock 6.Parse request [21:14:22]Sock 6.Check first char [21:14:22]Sock 6.First char is OK [21:14:22]request: POST /json_proto HTTP/1.0 [21:14:22]Method: POST [21:14:22]URL: /json_proto [21:14:22]Method is POST - this is cgi request [21:14:22]url: /json_proto [21:14:22]query_string will be loaded in cgi processing [21:14:22]execute_cgi json_proto POST (null) [21:14:22]execute_cgi path=json_proto method=POST [21:14:22]POST find Content-Length [21:14:22]Host: 172.17.63.131:8080 [21:14:22]Content-Length: 676 [21:14:22]Content-Type: application/json [21:14:22] [21:14:22]POST finish read [21:14:22]Found Content-Length = 676 [21:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:22]execute_script... [21:14: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)31252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:22]POST & json_proto [21:14:22]process_json_proto [21:14:22]json parsed OK: [21:14:22]protocol is kg_v1.0 [21:14:22]action value=close_receipt [21:14:22]process_action close_receipt [21:14:22]cmd_close_receipt [21:14:22]MH_GetDate [21:14:22]Write to MH i2c: F0 00 00 5A 36 7F [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: F0 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: F0 09 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: F0 09 00 5A 36 00 BE 5B 1D 67 22 05 6E 64 1E [21:14:22]GetLastDocTimeStamp 1729976768 [21:14:22]current date 1729977278 [21:14:22]FM_GetShiftState [21:14:22]SAM_PROTO_GetShiftState [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 13 01 00 [21:14:22]Write to MH i2c: E2 08 00 5B 36 80 13 01 00 00 00 00 00 0E [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 0E 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 0E 00 5B 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 87 [21:14:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:14:22]wFMCommunicate OK [21:14:22]SAM_PROTO_GetShiftState done [21:14:22]FM_GetShiftState done [21:14:22]opened in 1729902770 [21:14:22]opened+sec_in_day 1729989170 [21:14:22]quantity*price = 30038 [21:14:22]sum+1 = 30039 [21:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 306 26.10.2024 21:14 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191943 ФПД: 175984187048029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191943&fm=175984187048029&tin=02508201610067®Number=0000000000091776&sum=30000 [21:14:23]StoreToDocumentArchive [21:14:23]shift 541 fd 191943 [21:14:23]save to /storage/0541/doc_00191943 [21:14:23]save last doc name /storage/0541/doc_00191943 to /storage/kkm_last_doc_name [21:14:23]save OK [21:14:23]Clear old archive folders... [21:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:23]tlvbuf is 016BC300 [21:14:23]SAM_PROTO_ClearQueue [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 09 00 00 [21:14:23]Write to MH i2c: E2 08 00 68 36 80 09 00 00 00 00 00 00 10 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 68 36 00 90 00 12 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_ClearQueue done [21:14:23]KKMCreateOFDPacket [21:14:23]OFDProtocolAddRootSTLVToBuf [21:14:23]FM_MakeSignedData [21:14:23]FM_MakeSignedData [21:14:23]SAM_PROTO_SignData [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 01 02 [21:14:23]Write to MH i2c: E2 08 00 69 36 80 0D 01 02 00 00 00 00 18 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 69 36 00 90 00 13 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=255 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BE 5B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 ED 02 00 35 04 06 00 A0 [21:14:23]Write to MH i2c: E2 02 01 6A 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BE 5B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 ED 02 00 35 04 06 00 A0 00 00 E5 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 6A 36 00 90 00 14 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=10 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 05 0E 82 F4 80 5D [21:14:23]Write to MH i2c: E2 0D 00 6B 36 80 0D 02 02 05 00 0E 82 F4 80 5D 00 00 86 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 6B 36 00 90 00 15 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 03 02 [21:14:23]Write to MH i2c: E2 08 00 6C 36 80 0D 03 02 00 00 00 00 1D [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 6C 36 00 59 24 62 75 F2 4B 51 FE 90 00 FE [21:14:23]RAPDU: 59 24 62 75 F2 4B 51 FE 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_SignData done [21:14:23]FM_MakeSignedData done [21:14:23]CreateOFDProtocolMessage [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 11 00 00 [21:14:23]Write to MH i2c: E2 08 00 6D 36 80 11 00 00 00 00 00 00 1D [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:24]Read from MH i2c: E2 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: E2 17 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: E2 17 00 6D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 70 [21:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:14:24]wFMCommunicate OK [21:14:24]CreateOFDProtocolMessage done [21:14:24]OFDSenderStorePacket 191943 [21:14:24]StoreOFDPacket docnum=191943 [21:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 DC 07 01 82 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BE 5B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 ED 02 00 35 04 06 00 A0 0E 82 F4 80 5D 59 24 62 75 F2 4B 51 FE [21:14:24]CheckFolder [21:14:24]dirname=/storage/ofd_packets [21:14:24]CheckFolder done [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00191943 [21:14:24]NVStorageSaveData ofd_packets/00191943 [21:14:24]File name is /storage/ofd_packets/00191943 [21:14:24]Write 301 bytes [21:14:24]NVStorageSaveData done [21:14:24]OFDSenderStorePacket done [21:14:24]KKMCreateOFDPacket done [21:14:24]NVStorageSaveData kkm_last_timestamp [21:14:24]File name is /storage/kkm_last_timestamp [21:14:24]Write 4 bytes [21:14:24]NVStorageSaveData done [21:14:24]ExternCall_PrintAddStr [21:14:24]wPrintStart [21:14:24]Write to MH i2c: 01 00 00 6E 36 A4 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 6E 36 00 00 00 00 00 FF 0F B9 [21:14:24]RasterBufferAndPrint [21:14:24]line Счет N : (1)31252 [21:14:24]line ИНН: 02508201610067 [21:14:24]line Контрольно-Кассовый Чек [21:14:24]line ПРОДАЖА [21:14:24]line ТРК (МРК, ГНК) : 21 [21:14:24]line Товар: 2710124130 [21:14:24]line Аи-92-К-5 [21:14:24]line 4.490 * 66.90 [21:14:24]line = 300.38 [21:14:24]line НДС 12% НСП 1% [21:14:24]line > о реализуемом товаре [21:14:24]line ОКРУГЛЕНИЕ: -0.38 [21:14:24]line ИТОГО: 300.00 [21:14:24]line Внесено: 300.00 [21:14:24]line СДАЧА: 0.00 [21:14:24]line НСП 1% : 2.66 [21:14:24]line НДС 12% : 31.90 [21:14:24]line Наличными: 300.00 [21:14:24]line Безнал.: 0.00 [21:14:24]line Место: АЗС № 170 "Партнер Нефть" [21:14:24]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:14:24]line СНО: Общий режим [21:14:24]line Чек 306 26.10.2024 21:14 [21:14:24]line Смена: 541 ФФД: 1.0 [21:14:24]line ЗНМ: 0300000110 [21:14:24]line РНМ: 0000000000091776 [21:14:24]line Версия ККМ: 001 [21:14:24]line ФМ: 0000000000871754 [21:14:24]line ФД: 191943 [21:14:24]line ФПД: 175984187048029 [21:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211438&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191943&fm=175984187048029&tin=02508201610067®Number=0000000000091776&sum=30000 [21:14:24]OFD Sender: Processing packet 191943 [packets to send 75, broken 74] [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00191943 [21:14:24]OFD Sender: To server: pG, [21:14:24]CommunicateWithHost lk.salyk.kg:30040 [21:14:24]ConnectInit lk.salyk.kg [21:14:24]written 0, free lines is 4095 [21:14:24]Connected sock=8 [21:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A3 DC 07 01 82 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 BE 5B 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 ED 02 00 35 04 06 00 A0 0E 82 F4 80 5D 59 24 62 75 F2 4B 51 FE [21:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 EC 88 47 00 17 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C7 ED 02 00 F4 03 04 00 88 00 1D 67 B6 04 01 00 00 61 64 40 1A F5 14 A7 19 [21:14:24]CommunicateWithHost err = 0 [21:14:24]CheckOFDResponse [21:14:24]1017 (14) - 77093643461234 [21:14:24]1041 (16) - 0000000000871754 [21:14:24]1040 (4) - 191943 [21:14:24]1012 (4) - 26.10.2024 14:45 [21:14:24]1206 (1) - 0 [21:14:24]OFD Sender: Remove packet 191943 [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00191943 [21:14:24]NVStorageDeleteData [21:14:24]Write to MH i2c: 01 00 00 99 36 CF [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 99 36 00 00 00 00 00 C5 0C A7 [21:14:24]RasterBufferAndPrint [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]written 0, free lines is 3278 [21:14:24]MH_Cut [21:14:24]Write to MH i2c: D1 01 00 A0 36 01 A8 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 A0 36 00 A7 [21:14:24]Write to MH i2c: 01 00 00 A1 36 D7 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:25]OFD Sender: No OFD packet to send [21:14:25]*** Cut start [21:14:25]*** Partial cut [21:14:25]*** CUTSNS_PIN = 1 [21:14:25]*** CUTSNS_PIN = 0 [21:14:25]*** Brake cut motor [21:14:26]Read from MH i2c: 01 [21:14:26]MH_I2C_Read... [21:14:26]*** Stop cut motor [21:14:26]*** Cut end [21:14:26]Read from MH i2c: 01 07 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: 01 07 00 A1 36 00 00 00 00 00 FF 0F EC [21:14:26]process_action close_receipt done [21:14:26]requested_data is exist [21:14:26]produce_requested_data [21:14:26]requested_item fm.sn is exist - process it [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 11 00 00 [21:14:26]Write to MH i2c: E2 08 00 A2 36 80 11 00 00 00 00 00 00 52 [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 A2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A5 [21:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:14:26]wFMCommunicate OK [21:14:26]requested_item fd.num is exist - process it [21:14:26]SAM_PROTO_GetFieldsCounters [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 00 00 [21:14:26]Write to MH i2c: E2 08 00 A3 36 80 13 00 00 00 00 00 00 55 [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 A3 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [21:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetFieldsCounters done [21:14:26]requested_item shift.num is exist - process it [21:14:26]requested_item shift.opened is exist - process it [21:14:26]req_shift_opened [21:14:26]FM_GetShiftState [21:14:26]SAM_PROTO_GetShiftState [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 01 00 [21:14:26]Write to MH i2c: E2 08 00 A4 36 80 13 01 00 00 00 00 00 57 [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 A4 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D0 [21:14:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetShiftState done [21:14:26]FM_GetShiftState done [21:14:26]req_shift_opened done [21:14:26]requested_item shift.open_date is exist - process it [21:14:26]req_shift_open_date [21:14:26]req_shift_open_date done [21:14:26]produce_requested_data done [21:14:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191943,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:14:26]process_action_free close_receipt [21:14:26]json_value_free [21:14:26]json_value_free done [21:14:26]process_json_proto returns [21:14:26]Send response to host [21:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191943,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:14:26]free response buf [21:14:26]execute_script done [21:14:26]execute_script returns [21:14:26]free content buf [21:14:26]Sock 6.Close socket [21:14:26]Sock 6.Thread stoped [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:11]accept exits with 5 [21:16:11]New connection [21:16:11]New thread 3066961252 created [21:16:11]Thread 3066817892 joined [21:16:11]Waiting for new connection... [21:16:11] Sock 5.Parse request [21:16:11]Sock 5.Check first char [21:16:11]Sock 5.First char is OK [21:16:11]request: POST /json_proto HTTP/1.0 [21:16:11]Method: POST [21:16:11]URL: /json_proto [21:16:11]Method is POST - this is cgi request [21:16:11]url: /json_proto [21:16:11]query_string will be loaded in cgi processing [21:16:11]execute_cgi json_proto POST (null) [21:16:11]execute_cgi path=json_proto method=POST [21:16:11]POST find Content-Length [21:16:11]Host: 172.17.63.131:8080 [21:16:11]Content-Length: 676 [21:16:11]Content-Type: application/json [21:16:11] [21:16:11]POST finish read [21:16:11]Found Content-Length = 676 [21:16:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:11]execute_script... [21:16: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)31253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:11]POST & json_proto [21:16:11]process_json_proto [21:16:11]json parsed OK: [21:16:11]protocol is kg_v1.0 [21:16:11]action value=close_receipt [21:16:11]process_action close_receipt [21:16:11]cmd_close_receipt [21:16:11]MH_GetDate [21:16:11]Write to MH i2c: F0 00 00 A5 36 CA [21:16:11]Write i2c OK [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: F0 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: F0 09 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: F0 09 00 A5 36 00 2B 5C 1D 67 22 05 6E 64 D7 [21:16:11]GetLastDocTimeStamp 1729977278 [21:16:11]current date 1729977387 [21:16:11]FM_GetShiftState [21:16:11]SAM_PROTO_GetShiftState [21:16:11]wFMCommunicate request_size=4 [21:16:11]MH_SAM_APDU [21:16:11]CAPDU: 80 13 01 00 [21:16:11]Write to MH i2c: E2 08 00 A6 36 80 13 01 00 00 00 00 00 59 [21:16:11]Write i2c OK [21:16:11]MH_I2C_Read... [21:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:11]Read from MH i2c: E2 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 0E 00 [21:16:11]MH_I2C_Read... [21:16:11]Read from MH i2c: E2 0E 00 A6 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D2 [21:16:11]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:16:11]wFMCommunicate OK [21:16:11]SAM_PROTO_GetShiftState done [21:16:11]FM_GetShiftState done [21:16:11]opened in 1729902770 [21:16:11]opened+sec_in_day 1729989170 [21:16:11]quantity*price = 15052 [21:16:11]sum+1 = 15054 [21:16:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 307 26.10.2024 21:16 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191944 ФПД: 225980159547973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191944&fm=225980159547973&tin=02508201610067®Number=0000000000091776&sum=15000 [21:16:12]StoreToDocumentArchive [21:16:12]shift 541 fd 191944 [21:16:12]save to /storage/0541/doc_00191944 [21:16:12]save last doc name /storage/0541/doc_00191944 to /storage/kkm_last_doc_name [21:16:12]save OK [21:16:12]Clear old archive folders... [21:16:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:12]tlvbuf is 016BC550 [21:16:12]SAM_PROTO_ClearQueue [21:16:12]wFMCommunicate request_size=4 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 09 00 00 [21:16:12]Write to MH i2c: E2 08 00 B3 36 80 09 00 00 00 00 00 00 5B [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 B3 36 00 90 00 5D [21:16:12]RAPDU: 90 00 [21:16:12]wFMCommunicate OK [21:16:12]SAM_PROTO_ClearQueue done [21:16:12]KKMCreateOFDPacket [21:16:12]OFDProtocolAddRootSTLVToBuf [21:16:12]FM_MakeSignedData [21:16:12]FM_MakeSignedData [21:16:12]SAM_PROTO_SignData [21:16:12]wFMCommunicate request_size=4 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 0D 01 02 [21:16:12]Write to MH i2c: E2 08 00 B4 36 80 0D 01 02 00 00 00 00 63 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 B4 36 00 90 00 5E [21:16:12]RAPDU: 90 00 [21:16:12]wFMCommunicate OK [21:16:12]wFMCommunicate request_size=255 [21:16:12]MH_SAM_APDU [21:16: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2B 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 ED 02 00 35 04 06 00 CD [21:16:12]Write to MH i2c: E2 02 01 B5 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2B 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 ED 02 00 35 04 06 00 CD 00 00 D6 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 B5 36 00 90 00 5F [21:16:12]RAPDU: 90 00 [21:16:12]wFMCommunicate OK [21:16:12]wFMCommunicate request_size=10 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 0D 02 02 05 87 1B 22 DA 45 [21:16:12]Write to MH i2c: E2 0D 00 B6 36 80 0D 02 02 05 00 87 1B 22 DA 45 00 00 53 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 03 00 B6 36 00 90 00 60 [21:16:12]RAPDU: 90 00 [21:16:12]wFMCommunicate OK [21:16:12]wFMCommunicate request_size=4 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 0D 03 02 [21:16:12]Write to MH i2c: E2 08 00 B7 36 80 0D 03 02 00 00 00 00 68 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 0B 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 0B 00 B7 36 00 53 C9 1D FD 3C 0C 95 9B 90 00 17 [21:16:12]RAPDU: 53 C9 1D FD 3C 0C 95 9B 90 00 [21:16:12]wFMCommunicate OK [21:16:12]SAM_PROTO_SignData done [21:16:12]FM_MakeSignedData done [21:16:12]CreateOFDProtocolMessage [21:16:12]wFMCommunicate request_size=4 [21:16:12]MH_SAM_APDU [21:16:12]CAPDU: 80 11 00 00 [21:16:12]Write to MH i2c: E2 08 00 B8 36 80 11 00 00 00 00 00 00 68 [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:12]Read from MH i2c: E2 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 17 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: E2 17 00 B8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [21:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:16:12]wFMCommunicate OK [21:16:12]CreateOFDProtocolMessage done [21:16:12]OFDSenderStorePacket 191944 [21:16:12]StoreOFDPacket docnum=191944 [21:16:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 95 07 01 0A D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2B 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 ED 02 00 35 04 06 00 CD 87 1B 22 DA 45 53 C9 1D FD 3C 0C 95 9B [21:16:12]CheckFolder [21:16:12]dirname=/storage/ofd_packets [21:16:12]CheckFolder done [21:16:12]ProducePacketName [21:16:12]name=ofd_packets/00191944 [21:16:12]NVStorageSaveData ofd_packets/00191944 [21:16:12]File name is /storage/ofd_packets/00191944 [21:16:12]Write 301 bytes [21:16:12]NVStorageSaveData done [21:16:12]OFDSenderStorePacket done [21:16:12]KKMCreateOFDPacket done [21:16:12]NVStorageSaveData kkm_last_timestamp [21:16:12]File name is /storage/kkm_last_timestamp [21:16:12]Write 4 bytes [21:16:12]NVStorageSaveData done [21:16:12]ExternCall_PrintAddStr [21:16:12]wPrintStart [21:16:12]Write to MH i2c: 01 00 00 B9 36 EF [21:16:12]Write i2c OK [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: 01 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: 01 07 00 [21:16:12]MH_I2C_Read... [21:16:12]Read from MH i2c: 01 07 00 B9 36 00 00 00 00 00 FF 0F 04 [21:16:12]RasterBufferAndPrint [21:16:12]line Счет N : (1)31253 [21:16:12]line ИНН: 02508201610067 [21:16:12]line Контрольно-Кассовый Чек [21:16:12]line ПРОДАЖА [21:16:12]line ТРК (МРК, ГНК) : 21 [21:16:12]line Товар: 2710124130 [21:16:12]line Аи-92-К-5 [21:16:12]line 2.250 * 66.90 [21:16:12]line = 150.53 [21:16:12]line НДС 12% НСП 1% [21:16:12]line > о реализуемом товаре [21:16:12]line ОКРУГЛЕНИЕ: -0.53 [21:16:12]line ИТОГО: 150.00 [21:16:12]line Внесено: 150.00 [21:16:12]line СДАЧА: 0.00 [21:16:12]line НСП 1% : 1.33 [21:16:12]line НДС 12% : 15.98 [21:16:12]line Наличными: 150.00 [21:16:12]line Безнал.: 0.00 [21:16:12]line Место: АЗС № 170 "Партнер Нефть" [21:16:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:16:12]line СНО: Общий режим [21:16:12]line Чек 307 26.10.2024 21:16 [21:16:12]line Смена: 541 ФФД: 1.0 [21:16:12]line ЗНМ: 0300000110 [21:16:12]line РНМ: 0000000000091776 [21:16:12]line Версия ККМ: 001 [21:16:12]line ФМ: 0000000000871754 [21:16:12]line ФД: 191944 [21:16:12]line ФПД: 225980159547973 [21:16:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211627&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191944&fm=225980159547973&tin=02508201610067®Number=0000000000091776&sum=15000 [21:16:13]OFD Sender: Processing packet 191944 [packets to send 75, broken 74] [21:16:13]ProducePacketName [21:16:13]name=ofd_packets/00191944 [21:16:13]OFD Sender: To server: pG, [21:16:13]CommunicateWithHost lk.salyk.kg:30040 [21:16:13]ConnectInit lk.salyk.kg [21:16:13]written 0, free lines is 4095 [21:16:13]Connected sock=9 [21:16:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 7A 95 07 01 0A D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2B 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 ED 02 00 35 04 06 00 CD 87 1B 22 DA 45 53 C9 1D FD 3C 0C 95 9B [21:16:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 35 47 00 48 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C8 ED 02 00 F4 03 04 00 F5 00 1D 67 B6 04 01 00 00 DC 32 09 28 A8 85 38 88 [21:16:13]CommunicateWithHost err = 0 [21:16:13]CheckOFDResponse [21:16:13]1017 (14) - 77093643461234 [21:16:13]1041 (16) - 0000000000871754 [21:16:13]1040 (4) - 191944 [21:16:13]1012 (4) - 26.10.2024 14:47 [21:16:13]1206 (1) - 0 [21:16:13]OFD Sender: Remove packet 191944 [21:16:13]ProducePacketName [21:16:13]name=ofd_packets/00191944 [21:16:13]NVStorageDeleteData [21:16:13]Write to MH i2c: 01 00 00 E4 36 1A [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: 01 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: 01 07 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: 01 07 00 E4 36 00 00 00 00 00 BB 0C E8 [21:16:13]RasterBufferAndPrint [21:16:13]line [21:16:13]line [21:16:13]line [21:16:13]line [21:16:13]line [21:16:13]written 0, free lines is 3266 [21:16:13]MH_Cut [21:16:13]Write to MH i2c: D1 01 00 EB 36 01 F3 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: D1 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: D1 01 00 [21:16:13]MH_I2C_Read... [21:16:13]Read from MH i2c: D1 01 00 EB 36 00 F2 [21:16:13]Write to MH i2c: 01 00 00 EC 36 22 [21:16:13]Write i2c OK [21:16:13]MH_I2C_Read... [21:16:13]OFD Sender: No OFD packet to send [21:16:14]*** Cut start [21:16:14]*** Partial cut [21:16:14]*** CUTSNS_PIN = 1 [21:16:14]*** CUTSNS_PIN = 0 [21:16:14]*** Brake cut motor [21:16:15]Read from MH i2c: 01 [21:16:15]MH_I2C_Read... [21:16:15]*** Stop cut motor [21:16:15]*** Cut end [21:16:15]Read from MH i2c: 01 07 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: 01 07 00 EC 36 00 00 00 00 00 FF 0F 37 [21:16:15]process_action close_receipt done [21:16:15]requested_data is exist [21:16:15]produce_requested_data [21:16:15]requested_item fm.sn is exist - process it [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 11 00 00 [21:16:15]Write to MH i2c: E2 08 00 ED 36 80 11 00 00 00 00 00 00 9D [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 17 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 17 00 ED 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F0 [21:16:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:16:15]wFMCommunicate OK [21:16:15]requested_item fd.num is exist - process it [21:16:15]SAM_PROTO_GetFieldsCounters [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 13 00 00 [21:16:15]Write to MH i2c: E2 08 00 EE 36 80 13 00 00 00 00 00 00 A0 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 62 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 62 00 EE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [21:16:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:15]wFMCommunicate OK [21:16:15]SAM_PROTO_GetFieldsCounters done [21:16:15]requested_item shift.num is exist - process it [21:16:15]requested_item shift.opened is exist - process it [21:16:15]req_shift_opened [21:16:15]FM_GetShiftState [21:16:15]SAM_PROTO_GetShiftState [21:16:15]wFMCommunicate request_size=4 [21:16:15]MH_SAM_APDU [21:16:15]CAPDU: 80 13 01 00 [21:16:15]Write to MH i2c: E2 08 00 EF 36 80 13 01 00 00 00 00 00 A2 [21:16:15]Write i2c OK [21:16:15]MH_I2C_Read... [21:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:15]Read from MH i2c: E2 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 0E 00 [21:16:15]MH_I2C_Read... [21:16:15]Read from MH i2c: E2 0E 00 EF 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1B [21:16:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:16:15]wFMCommunicate OK [21:16:15]SAM_PROTO_GetShiftState done [21:16:15]FM_GetShiftState done [21:16:15]req_shift_opened done [21:16:15]requested_item shift.open_date is exist - process it [21:16:15]req_shift_open_date [21:16:15]req_shift_open_date done [21:16:15]produce_requested_data done [21:16:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191944,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:16:15]process_action_free close_receipt [21:16:15]json_value_free [21:16:15]json_value_free done [21:16:15]process_json_proto returns [21:16:15]Send response to host [21:16:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191944,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:16:15]free response buf [21:16:15]execute_script done [21:16:15]execute_script returns [21:16:15]free content buf [21:16:15]Sock 5.Close socket [21:16:15]Sock 5.Thread stoped [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:22]accept exits with 6 [21:19:22]New connection [21:19:22]New thread 3066817892 created [21:19:22]Thread 3066961252 joined [21:19:22]Waiting for new connection... [21:19:22] Sock 6.Parse request [21:19:22]Sock 6.Check first char [21:19:22]Sock 6.First char is OK [21:19:22]request: POST /json_proto HTTP/1.0 [21:19:22]Method: POST [21:19:22]URL: /json_proto [21:19:22]Method is POST - this is cgi request [21:19:22]url: /json_proto [21:19:22]query_string will be loaded in cgi processing [21:19:22]execute_cgi json_proto POST (null) [21:19:22]execute_cgi path=json_proto method=POST [21:19:22]POST find Content-Length [21:19:22]Host: 172.17.63.131:8080 [21:19:22]Content-Length: 676 [21:19:22]Content-Type: application/json [21:19:22] [21:19:22]POST finish read [21:19:22]Found Content-Length = 676 [21:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:22]execute_script... [21:19: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)31254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:22]POST & json_proto [21:19:22]process_json_proto [21:19:22]json parsed OK: [21:19:22]protocol is kg_v1.0 [21:19:22]action value=close_receipt [21:19:22]process_action close_receipt [21:19:22]cmd_close_receipt [21:19:22]MH_GetDate [21:19:22]Write to MH i2c: F0 00 00 F0 36 15 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: F0 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: F0 09 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: F0 09 00 F0 36 00 EA 5C 1D 67 22 05 6E 64 E1 [21:19:22]GetLastDocTimeStamp 1729977387 [21:19:22]current date 1729977578 [21:19:22]FM_GetShiftState [21:19:22]SAM_PROTO_GetShiftState [21:19:22]wFMCommunicate request_size=4 [21:19:22]MH_SAM_APDU [21:19:22]CAPDU: 80 13 01 00 [21:19:22]Write to MH i2c: E2 08 00 F1 36 80 13 01 00 00 00 00 00 A4 [21:19:22]Write i2c OK [21:19:22]MH_I2C_Read... [21:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:22]Read from MH i2c: E2 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 0E 00 [21:19:22]MH_I2C_Read... [21:19:22]Read from MH i2c: E2 0E 00 F1 36 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 1D [21:19:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:19:22]wFMCommunicate OK [21:19:22]SAM_PROTO_GetShiftState done [21:19:22]FM_GetShiftState done [21:19:22]opened in 1729902770 [21:19:22]opened+sec_in_day 1729989170 [21:19:22]quantity*price = 10035 [21:19:22]sum+1 = 10036 [21:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 308 26.10.2024 21:19 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191945 ФПД: 23234110754843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191945&fm=23234110754843&tin=02508201610067®Number=0000000000091776&sum=10000 [21:19:23]StoreToDocumentArchive [21:19:23]shift 541 fd 191945 [21:19:23]save to /storage/0541/doc_00191945 [21:19:23]save last doc name /storage/0541/doc_00191945 to /storage/kkm_last_doc_name [21:19:23]save OK [21:19:23]Clear old archive folders... [21:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:23]tlvbuf is 015B0A50 [21:19:23]SAM_PROTO_ClearQueue [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 09 00 00 [21:19:23]Write to MH i2c: E2 08 00 FE 36 80 09 00 00 00 00 00 00 A6 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 FE 36 00 90 00 A8 [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]SAM_PROTO_ClearQueue done [21:19:23]KKMCreateOFDPacket [21:19:23]OFDProtocolAddRootSTLVToBuf [21:19:23]FM_MakeSignedData [21:19:23]FM_MakeSignedData [21:19:23]SAM_PROTO_SignData [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 01 02 [21:19:23]Write to MH i2c: E2 08 00 FF 36 80 0D 01 02 00 00 00 00 AE [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 FF 36 00 90 00 A9 [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=255 [21:19:23]MH_SAM_APDU [21:19: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 EA 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 ED 02 00 35 04 06 00 15 [21:19:23]Write to MH i2c: E2 02 01 00 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 EA 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 ED 02 00 35 04 06 00 15 00 00 15 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 00 37 00 90 00 AB [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=10 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 02 02 05 21 9C EB 10 1B [21:19:23]Write to MH i2c: E2 0D 00 01 37 80 0D 02 02 05 00 21 9C EB 10 1B 00 00 8F [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 03 00 01 37 00 90 00 AC [21:19:23]RAPDU: 90 00 [21:19:23]wFMCommunicate OK [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 0D 03 02 [21:19:23]Write to MH i2c: E2 08 00 02 37 80 0D 03 02 00 00 00 00 B4 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 0B 00 02 37 00 4C 82 13 D2 FE F2 5C B2 90 00 66 [21:19:23]RAPDU: 4C 82 13 D2 FE F2 5C B2 90 00 [21:19:23]wFMCommunicate OK [21:19:23]SAM_PROTO_SignData done [21:19:23]FM_MakeSignedData done [21:19:23]CreateOFDProtocolMessage [21:19:23]wFMCommunicate request_size=4 [21:19:23]MH_SAM_APDU [21:19:23]CAPDU: 80 11 00 00 [21:19:23]Write to MH i2c: E2 08 00 03 37 80 11 00 00 00 00 00 00 B4 [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:23]Read from MH i2c: E2 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 17 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: E2 17 00 03 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 07 [21:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:19:23]wFMCommunicate OK [21:19:23]CreateOFDProtocolMessage done [21:19:23]OFDSenderStorePacket 191945 [21:19:23]StoreOFDPacket docnum=191945 [21:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC 41 07 01 69 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 EA 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 ED 02 00 35 04 06 00 15 21 9C EB 10 1B 4C 82 13 D2 FE F2 5C B2 [21:19:23]CheckFolder [21:19:23]dirname=/storage/ofd_packets [21:19:23]CheckFolder done [21:19:23]ProducePacketName [21:19:23]name=ofd_packets/00191945 [21:19:23]NVStorageSaveData ofd_packets/00191945 [21:19:23]File name is /storage/ofd_packets/00191945 [21:19:23]Write 301 bytes [21:19:23]NVStorageSaveData done [21:19:23]OFDSenderStorePacket done [21:19:23]KKMCreateOFDPacket done [21:19:23]NVStorageSaveData kkm_last_timestamp [21:19:23]File name is /storage/kkm_last_timestamp [21:19:23]Write 4 bytes [21:19:23]NVStorageSaveData done [21:19:23]ExternCall_PrintAddStr [21:19:23]wPrintStart [21:19:23]Write to MH i2c: 01 00 00 04 37 3B [21:19:23]Write i2c OK [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 [21:19:23]MH_I2C_Read... [21:19:23]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [21:19:23]RasterBufferAndPrint [21:19:23]line Счет N : (1)31254 [21:19:23]line ИНН: 02508201610067 [21:19:23]line Контрольно-Кассовый Чек [21:19:23]line ПРОДАЖА [21:19:23]line ТРК (МРК, ГНК) : 21 [21:19:23]line Товар: 2710124130 [21:19:23]line Аи-92-К-5 [21:19:23]line 1.500 * 66.90 [21:19:23]line = 100.35 [21:19:23]line НДС 12% НСП 1% [21:19:23]line > о реализуемом товаре [21:19:23]line ОКРУГЛЕНИЕ: -0.35 [21:19:23]line ИТОГО: 100.00 [21:19:23]line Внесено: 100.00 [21:19:23]line СДАЧА: 0.00 [21:19:23]line НСП 1% : 0.89 [21:19:23]line НДС 12% : 10.66 [21:19:23]line Наличными: 100.00 [21:19:23]line Безнал.: 0.00 [21:19:23]line Место: АЗС № 170 "Партнер Нефть" [21:19:23]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:19:23]line СНО: Общий режим [21:19:23]line Чек 308 26.10.2024 21:19 [21:19:23]line Смена: 541 ФФД: 1.0 [21:19:23]line ЗНМ: 0300000110 [21:19:23]line РНМ: 0000000000091776 [21:19:23]line Версия ККМ: 001 [21:19:23]line ФМ: 0000000000871754 [21:19:23]line ФД: 191945 [21:19:23]line ФПД: 23234110754843 [21:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T211938&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191945&fm=23234110754843&tin=02508201610067®Number=0000000000091776&sum=10000 [21:19:24]OFD Sender: Processing packet 191945 [packets to send 75, broken 74] [21:19:24]ProducePacketName [21:19:24]name=ofd_packets/00191945 [21:19:24]OFD Sender: To server: pG, [21:19:24]CommunicateWithHost lk.salyk.kg:30040 [21:19:24]ConnectInit lk.salyk.kg [21:19:24]written 0, free lines is 4095 [21:19:24]Connected sock=8 [21:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 BC 41 07 01 69 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 EA 5C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 ED 02 00 35 04 06 00 15 21 9C EB 10 1B 4C 82 13 D2 FE F2 5C B2 [21:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 44 47 00 03 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 C9 ED 02 00 F4 03 04 00 B4 01 1D 67 B6 04 01 00 00 57 09 B2 90 32 BC F4 BE [21:19:24]CommunicateWithHost err = 0 [21:19:24]CheckOFDResponse [21:19:24]1017 (14) - 77093643461234 [21:19:24]1041 (16) - 0000000000871754 [21:19:24]1040 (4) - 191945 [21:19:24]1012 (4) - 26.10.2024 14:50 [21:19:24]1206 (1) - 0 [21:19:24]OFD Sender: Remove packet 191945 [21:19:24]ProducePacketName [21:19:24]name=ofd_packets/00191945 [21:19:24]NVStorageDeleteData [21:19:24]Write to MH i2c: 01 00 00 2F 37 66 [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: 01 07 00 2F 37 00 00 00 00 00 9A 0C 13 [21:19:24]RasterBufferAndPrint [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]line [21:19:24]written 0, free lines is 3232 [21:19:24]MH_Cut [21:19:24]Write to MH i2c: D1 01 00 36 37 01 3F [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 01 00 [21:19:24]MH_I2C_Read... [21:19:24]Read from MH i2c: D1 01 00 36 37 00 3E [21:19:24]Write to MH i2c: 01 00 00 37 37 6E [21:19:24]Write i2c OK [21:19:24]MH_I2C_Read... [21:19:25]OFD Sender: No OFD packet to send [21:19:25]*** Cut start [21:19:25]*** Partial cut [21:19:25]*** CUTSNS_PIN = 1 [21:19:25]*** CUTSNS_PIN = 0 [21:19:25]*** Brake cut motor [21:19:26]Read from MH i2c: 01 [21:19:26]*** Stop cut motor [21:19:26]*** Cut end [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: 01 07 00 37 37 00 00 00 00 00 FF 0F 83 [21:19:26]process_action close_receipt done [21:19:26]requested_data is exist [21:19:26]produce_requested_data [21:19:26]requested_item fm.sn is exist - process it [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 11 00 00 [21:19:26]Write to MH i2c: E2 08 00 38 37 80 11 00 00 00 00 00 00 E9 [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 17 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 17 00 38 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3C [21:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:19:26]wFMCommunicate OK [21:19:26]requested_item fd.num is exist - process it [21:19:26]SAM_PROTO_GetFieldsCounters [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 13 00 00 [21:19:26]Write to MH i2c: E2 08 00 39 37 80 13 00 00 00 00 00 00 EC [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 62 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 62 00 39 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [21:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 C9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:26]wFMCommunicate OK [21:19:26]SAM_PROTO_GetFieldsCounters done [21:19:26]requested_item shift.num is exist - process it [21:19:26]requested_item shift.opened is exist - process it [21:19:26]req_shift_opened [21:19:26]FM_GetShiftState [21:19:26]SAM_PROTO_GetShiftState [21:19:26]wFMCommunicate request_size=4 [21:19:26]MH_SAM_APDU [21:19:26]CAPDU: 80 13 01 00 [21:19:26]Write to MH i2c: E2 08 00 3A 37 80 13 01 00 00 00 00 00 EE [21:19:26]Write i2c OK [21:19:26]MH_I2C_Read... [21:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:26]Read from MH i2c: E2 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 0E 00 [21:19:26]MH_I2C_Read... [21:19:26]Read from MH i2c: E2 0E 00 3A 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 67 [21:19:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:19:26]wFMCommunicate OK [21:19:26]SAM_PROTO_GetShiftState done [21:19:26]FM_GetShiftState done [21:19:26]req_shift_opened done [21:19:26]requested_item shift.open_date is exist - process it [21:19:26]req_shift_open_date [21:19:26]req_shift_open_date done [21:19:26]produce_requested_data done [21:19:26]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191945,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:19:26]process_action_free close_receipt [21:19:26]json_value_free [21:19:26]json_value_free done [21:19:26]process_json_proto returns [21:19:26]Send response to host [21:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191945,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:19:26]free response buf [21:19:26]execute_script done [21:19:26]execute_script returns [21:19:26]free content buf [21:19:26]Sock 6.Close socket [21:19:26]Sock 6.Thread stoped [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:47]accept exits with 5 [21:19:47]New connection [21:19:47]New thread 3066961252 created [21:19:47]Thread 3066817892 joined [21:19:47]Waiting for new connection... [21:19:47] Sock 5.Parse request [21:19:47]Sock 5.Check first char [21:19:47]Sock 5.First char is OK [21:19:47]request: POST /json_proto HTTP/1.0 [21:19:47]Method: POST [21:19:47]URL: /json_proto [21:19:47]Method is POST - this is cgi request [21:19:47]url: /json_proto [21:19:47]query_string will be loaded in cgi processing [21:19:47]execute_cgi json_proto POST (null) [21:19:47]execute_cgi path=json_proto method=POST [21:19:47]POST find Content-Length [21:19:47]Host: 172.17.63.131:8080 [21:19:47]Content-Length: 676 [21:19:47]Content-Type: application/json [21:19:47] [21:19:47]POST finish read [21:19:47]Found Content-Length = 676 [21:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:47]execute_script... [21:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:47]POST & json_proto [21:19:47]process_json_proto [21:19:47]json parsed OK: [21:19:47]protocol is kg_v1.0 [21:19:47]action value=close_receipt [21:19:47]process_action close_receipt [21:19:47]cmd_close_receipt [21:19:47]MH_GetDate [21:19:47]Write to MH i2c: F0 00 00 3B 37 61 [21:19:47]Write i2c OK [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: F0 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: F0 09 00 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: F0 09 00 3B 37 00 03 5D 1D 67 22 05 6E 64 47 [21:19:47]GetLastDocTimeStamp 1729977578 [21:19:47]current date 1729977603 [21:19:47]FM_GetShiftState [21:19:47]SAM_PROTO_GetShiftState [21:19:47]wFMCommunicate request_size=4 [21:19:47]MH_SAM_APDU [21:19:47]CAPDU: 80 13 01 00 [21:19:47]Write to MH i2c: E2 08 00 3C 37 80 13 01 00 00 00 00 00 F0 [21:19:47]Write i2c OK [21:19:47]MH_I2C_Read... [21:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:47]Read from MH i2c: E2 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: E2 0E 00 [21:19:47]MH_I2C_Read... [21:19:47]Read from MH i2c: E2 0E 00 3C 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 69 [21:19:47]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:19:47]wFMCommunicate OK [21:19:47]SAM_PROTO_GetShiftState done [21:19:47]FM_GetShiftState done [21:19:47]opened in 1729902770 [21:19:47]opened+sec_in_day 1729989170 [21:19:47]quantity*price = 20003 [21:19:47]sum+1 = 20004 [21:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 309 26.10.2024 21:20 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191946 ФПД: 111961324454400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191946&fm=111961324454400&tin=02508201610067®Number=0000000000091776&sum=20000 [21:19:48]StoreToDocumentArchive [21:19:48]shift 541 fd 191946 [21:19:48]save to /storage/0541/doc_00191946 [21:19:48]save last doc name /storage/0541/doc_00191946 to /storage/kkm_last_doc_name [21:19:48]save OK [21:19:48]Clear old archive folders... [21:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:48]tlvbuf is 0172EB30 [21:19:48]SAM_PROTO_ClearQueue [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 09 00 00 [21:19:48]Write to MH i2c: E2 08 00 49 37 80 09 00 00 00 00 00 00 F2 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 49 37 00 90 00 F4 [21:19:48]RAPDU: 90 00 [21:19:48]wFMCommunicate OK [21:19:48]SAM_PROTO_ClearQueue done [21:19:48]KKMCreateOFDPacket [21:19:48]OFDProtocolAddRootSTLVToBuf [21:19:48]FM_MakeSignedData [21:19:48]FM_MakeSignedData [21:19:48]SAM_PROTO_SignData [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 0D 01 02 [21:19:48]Write to MH i2c: E2 08 00 4A 37 80 0D 01 02 00 00 00 00 FA [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 4A 37 00 90 00 F5 [21:19:48]RAPDU: 90 00 [21:19:48]wFMCommunicate OK [21:19:48]wFMCommunicate request_size=255 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 03 5D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA ED 02 00 35 04 06 00 65 [21:19:48]Write to MH i2c: E2 02 01 4B 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 03 5D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA ED 02 00 35 04 06 00 65 00 00 A7 [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 4B 37 00 90 00 F6 [21:19:48]RAPDU: 90 00 [21:19:48]wFMCommunicate OK [21:19:48]wFMCommunicate request_size=10 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 0D 02 02 05 D4 06 F9 02 00 [21:19:48]Write to MH i2c: E2 0D 00 4C 37 80 0D 02 02 05 00 D4 06 F9 02 00 00 00 DC [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:48]Read from MH i2c: E2 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 [21:19:48]MH_I2C_Read... [21:19:48]Read from MH i2c: E2 03 00 4C 37 00 90 00 F7 [21:19:48]RAPDU: 90 00 [21:19:48]wFMCommunicate OK [21:19:48]wFMCommunicate request_size=4 [21:19:48]MH_SAM_APDU [21:19:48]CAPDU: 80 0D 03 02 [21:19:48]Write to MH i2c: E2 08 00 4D 37 80 0D 03 02 00 00 00 00 FF [21:19:48]Write i2c OK [21:19:48]MH_I2C_Read... [21:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:49]Read from MH i2c: E2 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: E2 0B 00 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: E2 0B 00 4D 37 00 E0 29 E4 18 A3 71 7D 51 90 00 E7 [21:19:49]RAPDU: E0 29 E4 18 A3 71 7D 51 90 00 [21:19:49]wFMCommunicate OK [21:19:49]SAM_PROTO_SignData done [21:19:49]FM_MakeSignedData done [21:19:49]CreateOFDProtocolMessage [21:19:49]wFMCommunicate request_size=4 [21:19:49]MH_SAM_APDU [21:19:49]CAPDU: 80 11 00 00 [21:19:49]Write to MH i2c: E2 08 00 4E 37 80 11 00 00 00 00 00 00 FF [21:19:49]Write i2c OK [21:19:49]MH_I2C_Read... [21:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:49]Read from MH i2c: E2 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: E2 17 00 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: E2 17 00 4E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 52 [21:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:19:49]wFMCommunicate OK [21:19:49]CreateOFDProtocolMessage done [21:19:49]OFDSenderStorePacket 191946 [21:19:49]StoreOFDPacket docnum=191946 [21:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 68 07 01 79 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 03 5D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA ED 02 00 35 04 06 00 65 D4 06 F9 02 00 E0 29 E4 18 A3 71 7D 51 [21:19:49]CheckFolder [21:19:49]dirname=/storage/ofd_packets [21:19:49]CheckFolder done [21:19:49]ProducePacketName [21:19:49]name=ofd_packets/00191946 [21:19:49]NVStorageSaveData ofd_packets/00191946 [21:19:49]File name is /storage/ofd_packets/00191946 [21:19:49]Write 301 bytes [21:19:49]NVStorageSaveData done [21:19:49]OFDSenderStorePacket done [21:19:49]KKMCreateOFDPacket done [21:19:49]NVStorageSaveData kkm_last_timestamp [21:19:49]File name is /storage/kkm_last_timestamp [21:19:49]Write 4 bytes [21:19:49]NVStorageSaveData done [21:19:49]ExternCall_PrintAddStr [21:19:49]wPrintStart [21:19:49]Write to MH i2c: 01 00 00 4F 37 86 [21:19:49]Write i2c OK [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 07 00 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 07 00 4F 37 00 00 00 00 00 FF 0F 9B [21:19:49]RasterBufferAndPrint [21:19:49]line Счет N : (1)31255 [21:19:49]line ИНН: 02508201610067 [21:19:49]line Контрольно-Кассовый Чек [21:19:49]line ПРОДАЖА [21:19:49]line ТРК (МРК, ГНК) : 12 [21:19:49]line Товар: 2710124130 [21:19:49]line Аи-92-К-5 [21:19:49]line 2.990 * 66.90 [21:19:49]line = 200.03 [21:19:49]line НДС 12% НСП 1% [21:19:49]line > о реализуемом товаре [21:19:49]line ОКРУГЛЕНИЕ: -0.03 [21:19:49]line ИТОГО: 200.00 [21:19:49]line Внесено: 200.00 [21:19:49]line СДАЧА: 0.00 [21:19:49]line НСП 1% : 1.77 [21:19:49]line НДС 12% : 21.24 [21:19:49]line Наличными: 200.00 [21:19:49]line Безнал.: 0.00 [21:19:49]line Место: АЗС № 170 "Партнер Нефть" [21:19:49]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:19:49]line СНО: Общий режим [21:19:49]line Чек 309 26.10.2024 21:20 [21:19:49]line Смена: 541 ФФД: 1.0 [21:19:49]line ЗНМ: 0300000110 [21:19:49]line РНМ: 0000000000091776 [21:19:49]line Версия ККМ: 001 [21:19:49]line ФМ: 0000000000871754 [21:19:49]line ФД: 191946 [21:19:49]line ФПД: 111961324454400 [21:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212003&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191946&fm=111961324454400&tin=02508201610067®Number=0000000000091776&sum=20000 [21:19:49]OFD Sender: Processing packet 191946 [packets to send 75, broken 74] [21:19:49]ProducePacketName [21:19:49]name=ofd_packets/00191946 [21:19:49]OFD Sender: To server: pG, [21:19:49]CommunicateWithHost lk.salyk.kg:30040 [21:19:49]ConnectInit lk.salyk.kg [21:19:49]written 0, free lines is 4095 [21:19:49]Connected sock=8 [21:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 68 07 01 79 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 03 5D 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA ED 02 00 35 04 06 00 65 D4 06 F9 02 00 E0 29 E4 18 A3 71 7D 51 [21:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 77 47 00 22 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CA ED 02 00 F4 03 04 00 CD 01 1D 67 B6 04 01 00 00 36 CB 62 9E 49 F2 15 F6 [21:19:49]CommunicateWithHost err = 0 [21:19:49]CheckOFDResponse [21:19:49]1017 (14) - 77093643461234 [21:19:49]1041 (16) - 0000000000871754 [21:19:49]1040 (4) - 191946 [21:19:49]1012 (4) - 26.10.2024 14:50 [21:19:49]1206 (1) - 0 [21:19:49]OFD Sender: Remove packet 191946 [21:19:49]ProducePacketName [21:19:49]name=ofd_packets/00191946 [21:19:49]NVStorageDeleteData [21:19:49]Write to MH i2c: 01 00 00 7A 37 B1 [21:19:49]Write i2c OK [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 07 00 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: 01 07 00 7A 37 00 00 00 00 00 AE 0C 72 [21:19:49]RasterBufferAndPrint [21:19:49]line [21:19:49]line [21:19:49]line [21:19:49]line [21:19:49]line [21:19:49]written 0, free lines is 3252 [21:19:49]MH_Cut [21:19:49]Write to MH i2c: D1 01 00 81 37 01 8A [21:19:49]Write i2c OK [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: D1 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: D1 01 00 [21:19:49]MH_I2C_Read... [21:19:49]Read from MH i2c: D1 01 00 81 37 00 89 [21:19:49]Write to MH i2c: 01 00 00 82 37 B9 [21:19:49]Write i2c OK [21:19:49]MH_I2C_Read... [21:19:50]OFD Sender: No OFD packet to send [21:19:50]*** Cut start [21:19:50]*** Partial cut [21:19:50]*** CUTSNS_PIN = 1 [21:19:50]*** CUTSNS_PIN = 0 [21:19:51]*** Brake cut motor [21:19:51]Read from MH i2c: 01 [21:19:51]MH_I2C_Read... [21:19:51]*** Stop cut motor [21:19:51]*** Cut end [21:19:51]Read from MH i2c: 01 07 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: 01 07 00 82 37 00 00 00 00 00 FF 0F CE [21:19:51]process_action close_receipt done [21:19:51]requested_data is exist [21:19:51]produce_requested_data [21:19:51]requested_item fm.sn is exist - process it [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 11 00 00 [21:19:51]Write to MH i2c: E2 08 00 83 37 80 11 00 00 00 00 00 00 34 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 17 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 17 00 83 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 87 [21:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:19:51]wFMCommunicate OK [21:19:51]requested_item fd.num is exist - process it [21:19:51]SAM_PROTO_GetFieldsCounters [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 13 00 00 [21:19:51]Write to MH i2c: E2 08 00 84 37 80 13 00 00 00 00 00 00 37 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 62 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 62 00 84 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [21:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:51]wFMCommunicate OK [21:19:51]SAM_PROTO_GetFieldsCounters done [21:19:51]requested_item shift.num is exist - process it [21:19:51]requested_item shift.opened is exist - process it [21:19:51]req_shift_opened [21:19:51]FM_GetShiftState [21:19:51]SAM_PROTO_GetShiftState [21:19:51]wFMCommunicate request_size=4 [21:19:51]MH_SAM_APDU [21:19:51]CAPDU: 80 13 01 00 [21:19:51]Write to MH i2c: E2 08 00 85 37 80 13 01 00 00 00 00 00 39 [21:19:51]Write i2c OK [21:19:51]MH_I2C_Read... [21:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:51]Read from MH i2c: E2 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0E 00 [21:19:51]MH_I2C_Read... [21:19:51]Read from MH i2c: E2 0E 00 85 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B2 [21:19:51]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:19:51]wFMCommunicate OK [21:19:51]SAM_PROTO_GetShiftState done [21:19:51]FM_GetShiftState done [21:19:51]req_shift_opened done [21:19:51]requested_item shift.open_date is exist - process it [21:19:51]req_shift_open_date [21:19:51]req_shift_open_date done [21:19:51]produce_requested_data done [21:19:51]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191946,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:19:51]process_action_free close_receipt [21:19:51]json_value_free [21:19:51]json_value_free done [21:19:51]process_json_proto returns [21:19:51]Send response to host [21:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191946,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:19:51]free response buf [21:19:51]execute_script done [21:19:51]execute_script returns [21:19:51]free content buf [21:19:51]Sock 5.Close socket [21:19:51]Sock 5.Thread stoped [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:23]accept exits with 6 [21:24:23]New connection [21:24:23]New thread 3066817892 created [21:24:23]Thread 3066961252 joined [21:24:23]Waiting for new connection... [21:24:23] Sock 6.Parse request [21:24:23]Sock 6.Check first char [21:24:23]Sock 6.First char is OK [21:24:23]request: POST /json_proto HTTP/1.0 [21:24:23]Method: POST [21:24:23]URL: /json_proto [21:24:23]Method is POST - this is cgi request [21:24:23]url: /json_proto [21:24:23]query_string will be loaded in cgi processing [21:24:23]execute_cgi json_proto POST (null) [21:24:23]execute_cgi path=json_proto method=POST [21:24:23]POST find Content-Length [21:24:23]Host: 172.17.63.131:8080 [21:24:23]Content-Length: 678 [21:24:23]Content-Type: application/json [21:24:23] [21:24:23]POST finish read [21:24:23]Found Content-Length = 678 [21:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:23]execute_script... [21:24: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)31256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:23]POST & json_proto [21:24:23]process_json_proto [21:24:23]json parsed OK: [21:24:23]protocol is kg_v1.0 [21:24:23]action value=close_receipt [21:24:23]process_action close_receipt [21:24:23]cmd_close_receipt [21:24:23]MH_GetDate [21:24:23]Write to MH i2c: F0 00 00 86 37 AC [21:24:23]Write i2c OK [21:24:23]MH_I2C_Read... [21:24:23]Read from MH i2c: F0 [21:24:23]MH_I2C_Read... [21:24:23]Read from MH i2c: F0 09 00 [21:24:23]MH_I2C_Read... [21:24:23]Read from MH i2c: F0 09 00 86 37 00 18 5E 1D 67 22 05 6E 64 A8 [21:24:23]GetLastDocTimeStamp 1729977603 [21:24:23]current date 1729977880 [21:24:23]FM_GetShiftState [21:24:23]SAM_PROTO_GetShiftState [21:24:23]wFMCommunicate request_size=4 [21:24:23]MH_SAM_APDU [21:24:23]CAPDU: 80 13 01 00 [21:24:23]Write to MH i2c: E2 08 00 87 37 80 13 01 00 00 00 00 00 3B [21:24:23]Write i2c OK [21:24:23]MH_I2C_Read... [21:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:23]Read from MH i2c: E2 [21:24:23]MH_I2C_Read... [21:24:23]Read from MH i2c: E2 0E 00 [21:24:23]MH_I2C_Read... [21:24:23]Read from MH i2c: E2 0E 00 87 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 B4 [21:24:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:24:23]wFMCommunicate OK [21:24:23]SAM_PROTO_GetShiftState done [21:24:23]FM_GetShiftState done [21:24:23]opened in 1729902770 [21:24:23]opened+sec_in_day 1729989170 [21:24:23]quantity*price = 100050 [21:24:23]sum+1 = 100052 [21:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 310 26.10.2024 21:24 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191947 ФПД: 32974514447074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191947&fm=32974514447074&tin=02508201610067®Number=0000000000091776&sum=100000 [21:24:24]StoreToDocumentArchive [21:24:24]shift 541 fd 191947 [21:24:24]save to /storage/0541/doc_00191947 [21:24:24]save last doc name /storage/0541/doc_00191947 to /storage/kkm_last_doc_name [21:24:24]save OK [21:24:24]Clear old archive folders... [21:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:24:24]tlvbuf is 01C26E00 [21:24:24]SAM_PROTO_ClearQueue [21:24:24]wFMCommunicate request_size=4 [21:24:24]MH_SAM_APDU [21:24:24]CAPDU: 80 09 00 00 [21:24:24]Write to MH i2c: E2 08 00 94 37 80 09 00 00 00 00 00 00 3D [21:24:24]Write i2c OK [21:24:24]MH_I2C_Read... [21:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:24]Read from MH i2c: E2 [21:24:24]MH_I2C_Read... [21:24:24]Read from MH i2c: E2 03 00 [21:24:24]MH_I2C_Read... [21:24:24]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [21:24:24]RAPDU: 90 00 [21:24:24]wFMCommunicate OK [21:24:24]SAM_PROTO_ClearQueue done [21:24:24]KKMCreateOFDPacket [21:24:24]OFDProtocolAddRootSTLVToBuf [21:24:24]FM_MakeSignedData [21:24:24]FM_MakeSignedData [21:24:24]SAM_PROTO_SignData [21:24:24]wFMCommunicate request_size=4 [21:24:24]MH_SAM_APDU [21:24:24]CAPDU: 80 0D 01 02 [21:24:24]Write to MH i2c: E2 08 00 95 37 80 0D 01 02 00 00 00 00 45 [21:24:24]Write i2c OK [21:24:24]MH_I2C_Read... [21:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:25]Read from MH i2c: E2 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [21:24:25]RAPDU: 90 00 [21:24:25]wFMCommunicate OK [21:24:25]wFMCommunicate request_size=255 [21:24:25]MH_SAM_APDU [21:24:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 18 5E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB ED 02 00 35 04 06 00 1D FD 7A 38 [21:24:25]Write to MH i2c: E2 02 01 96 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 18 5E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB ED 02 00 35 04 06 00 1D FD 7A 38 00 00 A5 [21:24:25]Write i2c OK [21:24:25]MH_I2C_Read... [21:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:25]Read from MH i2c: E2 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 96 37 00 90 00 41 [21:24:25]RAPDU: 90 00 [21:24:25]wFMCommunicate OK [21:24:25]wFMCommunicate request_size=7 [21:24:25]MH_SAM_APDU [21:24:25]CAPDU: 80 0D 02 02 02 62 E2 [21:24:25]Write to MH i2c: E2 0A 00 97 37 80 0D 02 02 02 00 62 E2 00 00 90 [21:24:25]Write i2c OK [21:24:25]MH_I2C_Read... [21:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:25]Read from MH i2c: E2 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 03 00 97 37 00 90 00 42 [21:24:25]RAPDU: 90 00 [21:24:25]wFMCommunicate OK [21:24:25]wFMCommunicate request_size=4 [21:24:25]MH_SAM_APDU [21:24:25]CAPDU: 80 0D 03 02 [21:24:25]Write to MH i2c: E2 08 00 98 37 80 0D 03 02 00 00 00 00 4A [21:24:25]Write i2c OK [21:24:25]MH_I2C_Read... [21:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:25]Read from MH i2c: E2 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 0B 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 0B 00 98 37 00 94 86 89 CC B9 A8 1D 82 90 00 BA [21:24:25]RAPDU: 94 86 89 CC B9 A8 1D 82 90 00 [21:24:25]wFMCommunicate OK [21:24:25]SAM_PROTO_SignData done [21:24:25]FM_MakeSignedData done [21:24:25]CreateOFDProtocolMessage [21:24:25]wFMCommunicate request_size=4 [21:24:25]MH_SAM_APDU [21:24:25]CAPDU: 80 11 00 00 [21:24:25]Write to MH i2c: E2 08 00 99 37 80 11 00 00 00 00 00 00 4A [21:24:25]Write i2c OK [21:24:25]MH_I2C_Read... [21:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:25]Read from MH i2c: E2 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 17 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: E2 17 00 99 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [21:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:24:25]wFMCommunicate OK [21:24:25]CreateOFDProtocolMessage done [21:24:25]OFDSenderStorePacket 191947 [21:24:25]StoreOFDPacket docnum=191947 [21:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 96 62 04 01 82 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 18 5E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB ED 02 00 35 04 06 00 1D FD 7A 38 62 E2 94 86 89 CC B9 A8 1D 82 [21:24:25]CheckFolder [21:24:25]dirname=/storage/ofd_packets [21:24:25]CheckFolder done [21:24:25]ProducePacketName [21:24:25]name=ofd_packets/00191947 [21:24:25]NVStorageSaveData ofd_packets/00191947 [21:24:25]File name is /storage/ofd_packets/00191947 [21:24:25]Write 298 bytes [21:24:25]NVStorageSaveData done [21:24:25]OFDSenderStorePacket done [21:24:25]KKMCreateOFDPacket done [21:24:25]NVStorageSaveData kkm_last_timestamp [21:24:25]File name is /storage/kkm_last_timestamp [21:24:25]Write 4 bytes [21:24:25]NVStorageSaveData done [21:24:25]ExternCall_PrintAddStr [21:24:25]wPrintStart [21:24:25]Write to MH i2c: 01 00 00 9A 37 D1 [21:24:25]Write i2c OK [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: 01 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: 01 07 00 [21:24:25]MH_I2C_Read... [21:24:25]Read from MH i2c: 01 07 00 9A 37 00 00 00 00 00 FF 0F E6 [21:24:25]RasterBufferAndPrint [21:24:25]line Счет N : (1)31256 [21:24:25]line ИНН: 02508201610067 [21:24:25]line Контрольно-Кассовый Чек [21:24:25]line ПРОДАЖА [21:24:25]line ТРК (МРК, ГНК) : 11 [21:24:25]line Товар: 2710194210 [21:24:25]line ДТ-К-5 [21:24:25]line 13.130 * 76.20 [21:24:25]line = 1000.51 [21:24:25]line НДС 12% НСП 1% [21:24:25]line > о реализуемом товаре [21:24:25]line ОКРУГЛЕНИЕ: -0.51 [21:24:25]line ИТОГО: 1000.00 [21:24:25]line Внесено: 1000.00 [21:24:25]line СДАЧА: 0.00 [21:24:25]line НСП 1% : 8.85 [21:24:25]line НДС 12% : 106.25 [21:24:25]line Наличными: 1000.00 [21:24:25]line Безнал.: 0.00 [21:24:25]line Место: АЗС № 170 "Партнер Нефть" [21:24:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:24:25]line СНО: Общий режим [21:24:25]line Чек 310 26.10.2024 21:24 [21:24:25]line Смена: 541 ФФД: 1.0 [21:24:25]line ЗНМ: 0300000110 [21:24:25]line РНМ: 0000000000091776 [21:24:25]line Версия ККМ: 001 [21:24:25]line ФМ: 0000000000871754 [21:24:25]line ФД: 191947 [21:24:25]line ФПД: 32974514447074 [21:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T212440&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191947&fm=32974514447074&tin=02508201610067®Number=0000000000091776&sum=100000 [21:24:25]OFD Sender: Processing packet 191947 [packets to send 75, broken 74] [21:24:25]ProducePacketName [21:24:25]name=ofd_packets/00191947 [21:24:25]OFD Sender: To server: pG, [21:24:25]CommunicateWithHost lk.salyk.kg:30040 [21:24:25]ConnectInit lk.salyk.kg [21:24:25]written 0, free lines is 4095 [21:24:25]Connected sock=8 [21:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 96 62 04 01 82 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 18 5E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB ED 02 00 35 04 06 00 1D FD 7A 38 62 E2 94 86 89 CC B9 A8 1D 82 [21:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 6C 07 47 00 D2 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CB ED 02 00 F4 03 04 00 E2 02 1D 67 B6 04 01 00 00 73 F4 A9 64 F1 A0 77 F7 [21:24:26]CommunicateWithHost err = 0 [21:24:26]CheckOFDResponse [21:24:26]1017 (14) - 77093643461234 [21:24:26]1041 (16) - 0000000000871754 [21:24:26]1040 (4) - 191947 [21:24:26]1012 (4) - 26.10.2024 14:55 [21:24:26]1206 (1) - 0 [21:24:26]OFD Sender: Remove packet 191947 [21:24:26]ProducePacketName [21:24:26]name=ofd_packets/00191947 [21:24:26]NVStorageDeleteData [21:24:26]Write to MH i2c: 01 00 00 C5 37 FC [21:24:26]Write i2c OK [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: 01 [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: 01 07 00 [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: 01 07 00 C5 37 00 00 00 00 00 A5 0C B4 [21:24:26]RasterBufferAndPrint [21:24:26]line [21:24:26]line [21:24:26]line [21:24:26]line [21:24:26]line [21:24:26]written 0, free lines is 3245 [21:24:26]MH_Cut [21:24:26]Write to MH i2c: D1 01 00 CC 37 01 D5 [21:24:26]Write i2c OK [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: D1 [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: D1 01 00 [21:24:26]MH_I2C_Read... [21:24:26]Read from MH i2c: D1 01 00 CC 37 00 D4 [21:24:26]Write to MH i2c: 01 00 00 CD 37 04 [21:24:26]Write i2c OK [21:24:26]MH_I2C_Read... [21:24:26]OFD Sender: No OFD packet to send [21:24:27]*** Cut start [21:24:27]*** Partial cut [21:24:27]*** CUTSNS_PIN = 1 [21:24:27]*** CUTSNS_PIN = 0 [21:24:27]*** Brake cut motor [21:24:27]Read from MH i2c: 01 [21:24:27]MH_I2C_Read... [21:24:27]*** Stop cut motor [21:24:27]*** Cut end [21:24:27]Read from MH i2c: 01 07 00 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: 01 07 00 CD 37 00 00 00 00 00 FF 0F 19 [21:24:27]process_action close_receipt done [21:24:27]requested_data is exist [21:24:27]produce_requested_data [21:24:27]requested_item fm.sn is exist - process it [21:24:27]wFMCommunicate request_size=4 [21:24:27]MH_SAM_APDU [21:24:27]CAPDU: 80 11 00 00 [21:24:27]Write to MH i2c: E2 08 00 CE 37 80 11 00 00 00 00 00 00 7F [21:24:27]Write i2c OK [21:24:27]MH_I2C_Read... [21:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:27]Read from MH i2c: E2 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 17 00 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 17 00 CE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D2 [21:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:24:27]wFMCommunicate OK [21:24:27]requested_item fd.num is exist - process it [21:24:27]SAM_PROTO_GetFieldsCounters [21:24:27]wFMCommunicate request_size=4 [21:24:27]MH_SAM_APDU [21:24:27]CAPDU: 80 13 00 00 [21:24:27]Write to MH i2c: E2 08 00 CF 37 80 13 00 00 00 00 00 00 82 [21:24:27]Write i2c OK [21:24:27]MH_I2C_Read... [21:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:27]Read from MH i2c: E2 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 62 00 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 62 00 CF 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [21:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:27]wFMCommunicate OK [21:24:27]SAM_PROTO_GetFieldsCounters done [21:24:27]requested_item shift.num is exist - process it [21:24:27]requested_item shift.opened is exist - process it [21:24:27]req_shift_opened [21:24:27]FM_GetShiftState [21:24:27]SAM_PROTO_GetShiftState [21:24:27]wFMCommunicate request_size=4 [21:24:27]MH_SAM_APDU [21:24:27]CAPDU: 80 13 01 00 [21:24:27]Write to MH i2c: E2 08 00 D0 37 80 13 01 00 00 00 00 00 84 [21:24:27]Write i2c OK [21:24:27]MH_I2C_Read... [21:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:27]Read from MH i2c: E2 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 0E 00 [21:24:27]MH_I2C_Read... [21:24:27]Read from MH i2c: E2 0E 00 D0 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FD [21:24:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:24:27]wFMCommunicate OK [21:24:27]SAM_PROTO_GetShiftState done [21:24:27]FM_GetShiftState done [21:24:27]req_shift_opened done [21:24:27]requested_item shift.open_date is exist - process it [21:24:27]req_shift_open_date [21:24:27]req_shift_open_date done [21:24:27]produce_requested_data done [21:24:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191947,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:24:27]process_action_free close_receipt [21:24:27]json_value_free [21:24:27]json_value_free done [21:24:27]process_json_proto returns [21:24:27]Send response to host [21:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191947,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:24:27]free response buf [21:24:27]execute_script done [21:24:27]execute_script returns [21:24:27]free content buf [21:24:27]Sock 6.Close socket [21:24:27]Sock 6.Thread stoped [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:51]OFD Sender: No OFD packet to send [21:24:56]OFD Sender: No OFD packet to send [21:25:01]OFD Sender: No OFD packet to send [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:19]accept exits with 5 [21:36:19]New connection [21:36:19]New thread 3066961252 created [21:36:19]Thread 3066817892 joined [21:36:19]Waiting for new connection... [21:36:19] Sock 5.Parse request [21:36:19]Sock 5.Check first char [21:36:19]Sock 5.First char is OK [21:36:19]request: POST /json_proto HTTP/1.0 [21:36:19]Method: POST [21:36:19]URL: /json_proto [21:36:19]Method is POST - this is cgi request [21:36:19]url: /json_proto [21:36:19]query_string will be loaded in cgi processing [21:36:19]execute_cgi json_proto POST (null) [21:36:19]execute_cgi path=json_proto method=POST [21:36:19]POST find Content-Length [21:36:19]Host: 172.17.63.131:8080 [21:36:19]Content-Length: 681 [21:36:19]Content-Type: application/json [21:36:19] [21:36:19]POST finish read [21:36:19]Found Content-Length = 681 [21:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:19]execute_script... [21:36:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:19]POST & json_proto [21:36:19]process_json_proto [21:36:19]json parsed OK: [21:36:19]protocol is kg_v1.0 [21:36:19]action value=close_receipt [21:36:19]process_action close_receipt [21:36:19]cmd_close_receipt [21:36:19]MH_GetDate [21:36:19]Write to MH i2c: F0 00 00 D1 37 F7 [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 D1 37 00 E4 60 1D 67 22 05 6E 64 C1 [21:36:19]GetLastDocTimeStamp 1729977880 [21:36:19]current date 1729978596 [21:36:19]FM_GetShiftState [21:36:19]SAM_PROTO_GetShiftState [21:36:19]wFMCommunicate request_size=4 [21:36:19]MH_SAM_APDU [21:36:19]CAPDU: 80 13 01 00 [21:36:19]Write to MH i2c: E2 08 00 D2 37 80 13 01 00 00 00 00 00 86 [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:19]Read from MH i2c: E2 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 D2 37 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 FF [21:36:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:36:19]wFMCommunicate OK [21:36:19]SAM_PROTO_GetShiftState done [21:36:19]FM_GetShiftState done [21:36:19]opened in 1729902770 [21:36:19]opened+sec_in_day 1729989170 [21:36:19]quantity*price = 100015 [21:36:19]sum+1 = 100017 [21:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 311 26.10.2024 21:36 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191948 ФПД: 150663255597341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191948&fm=150663255597341&tin=02508201610067®Number=0000000000091776&sum=100000 [21:36:20]StoreToDocumentArchive [21:36:20]shift 541 fd 191948 [21:36:20]save to /storage/0541/doc_00191948 [21:36:20]save last doc name /storage/0541/doc_00191948 to /storage/kkm_last_doc_name [21:36:20]save OK [21:36:20]Clear old archive folders... [21:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:20]tlvbuf is 01609230 [21:36:20]SAM_PROTO_ClearQueue [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 09 00 00 [21:36:20]Write to MH i2c: E2 08 00 DF 37 80 09 00 00 00 00 00 00 88 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 DF 37 00 90 00 8A [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]SAM_PROTO_ClearQueue done [21:36:20]KKMCreateOFDPacket [21:36:20]OFDProtocolAddRootSTLVToBuf [21:36:20]FM_MakeSignedData [21:36:20]FM_MakeSignedData [21:36:20]SAM_PROTO_SignData [21:36:20]wFMCommunicate request_size=4 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 01 02 [21:36:20]Write to MH i2c: E2 08 00 E0 37 80 0D 01 02 00 00 00 00 90 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:20]Read from MH i2c: E2 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 [21:36:20]MH_I2C_Read... [21:36:20]Read from MH i2c: E2 03 00 E0 37 00 90 00 8B [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]wFMCommunicate request_size=255 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E4 60 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC ED 02 00 35 04 06 00 89 [21:36:20]Write to MH i2c: E2 02 01 E1 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E4 60 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC ED 02 00 35 04 06 00 89 00 00 81 [21:36:20]Write i2c OK [21:36:20]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 E1 37 00 90 00 8C [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]wFMCommunicate request_size=10 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 02 02 05 07 05 D4 A1 1D [21:36:21]Write to MH i2c: E2 0D 00 E2 37 80 0D 02 02 05 00 07 05 D4 A1 1D 00 00 3B [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 03 00 E2 37 00 90 00 8D [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]wFMCommunicate request_size=4 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 03 02 [21:36:21]Write to MH i2c: E2 08 00 E3 37 80 0D 03 02 00 00 00 00 95 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 0B 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 0B 00 E3 37 00 65 9E 0E AF 99 B0 A6 24 90 00 69 [21:36:21]RAPDU: 65 9E 0E AF 99 B0 A6 24 90 00 [21:36:21]wFMCommunicate OK [21:36:21]SAM_PROTO_SignData done [21:36:21]FM_MakeSignedData done [21:36:21]CreateOFDProtocolMessage [21:36:21]wFMCommunicate request_size=4 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 11 00 00 [21:36:21]Write to MH i2c: E2 08 00 E4 37 80 11 00 00 00 00 00 00 95 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 17 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 17 00 E4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E8 [21:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:36:21]wFMCommunicate OK [21:36:21]CreateOFDProtocolMessage done [21:36:21]OFDSenderStorePacket 191948 [21:36:21]StoreOFDPacket docnum=191948 [21:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 A5 07 01 16 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E4 60 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC ED 02 00 35 04 06 00 89 07 05 D4 A1 1D 65 9E 0E AF 99 B0 A6 24 [21:36:21]CheckFolder [21:36:21]dirname=/storage/ofd_packets [21:36:21]CheckFolder done [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00191948 [21:36:21]NVStorageSaveData ofd_packets/00191948 [21:36:21]File name is /storage/ofd_packets/00191948 [21:36:21]Write 301 bytes [21:36:21]NVStorageSaveData done [21:36:21]OFDSenderStorePacket done [21:36:21]KKMCreateOFDPacket done [21:36:21]NVStorageSaveData kkm_last_timestamp [21:36:21]File name is /storage/kkm_last_timestamp [21:36:21]Write 4 bytes [21:36:21]NVStorageSaveData done [21:36:21]ExternCall_PrintAddStr [21:36:21]wPrintStart [21:36:21]Write to MH i2c: 01 00 00 E5 37 1C [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 07 00 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: 01 07 00 E5 37 00 00 00 00 00 FF 0F 31 [21:36:21]RasterBufferAndPrint [21:36:21]line Счет N : (1)31257 [21:36:21]line ИНН: 02508201610067 [21:36:21]line Контрольно-Кассовый Чек [21:36:21]line ПРОДАЖА [21:36:21]line ТРК (МРК, ГНК) : 21 [21:36:21]line Товар: 2710124130 [21:36:21]line Аи-92-К-5 [21:36:21]line 14.950 * 66.90 [21:36:21]line = 1000.16 [21:36:21]line НДС 12% НСП 1% [21:36:21]line > о реализуемом товаре [21:36:21]line ОКРУГЛЕНИЕ: -0.16 [21:36:21]line ИТОГО: 1000.00 [21:36:21]line Внесено: 1000.00 [21:36:21]line СДАЧА: 0.00 [21:36:21]line НСП 1% : 8.85 [21:36:21]line НДС 12% : 106.21 [21:36:21]line Наличными: 1000.00 [21:36:21]line Безнал.: 0.00 [21:36:21]line Место: АЗС № 170 "Партнер Нефть" [21:36:21]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:36:21]line СНО: Общий режим [21:36:21]line Чек 311 26.10.2024 21:36 [21:36:21]line Смена: 541 ФФД: 1.0 [21:36:21]line ЗНМ: 0300000110 [21:36:21]line РНМ: 0000000000091776 [21:36:21]line Версия ККМ: 001 [21:36:21]line ФМ: 0000000000871754 [21:36:21]line ФД: 191948 [21:36:21]line ФПД: 150663255597341 [21:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213636&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191948&fm=150663255597341&tin=02508201610067®Number=0000000000091776&sum=100000 [21:36:21]OFD Sender: Processing packet 191948 [packets to send 75, broken 74] [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00191948 [21:36:21]OFD Sender: To server: pG, [21:36:21]CommunicateWithHost lk.salyk.kg:30040 [21:36:21]ConnectInit lk.salyk.kg [21:36:21]written 0, free lines is 4095 [21:36:21]Connected sock=8 [21:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 20 A5 07 01 16 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 E4 60 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC ED 02 00 35 04 06 00 89 07 05 D4 A1 1D 65 9E 0E AF 99 B0 A6 24 [21:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 63 29 47 00 76 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CC ED 02 00 F4 03 04 00 AE 05 1D 67 B6 04 01 00 00 FD 4B 22 04 D3 7E 6A 1C [21:36:21]CommunicateWithHost err = 0 [21:36:21]CheckOFDResponse [21:36:21]1017 (14) - 77093643461234 [21:36:21]1041 (16) - 0000000000871754 [21:36:21]1040 (4) - 191948 [21:36:21]1012 (4) - 26.10.2024 15:07 [21:36:21]1206 (1) - 0 [21:36:21]OFD Sender: Remove packet 191948 [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00191948 [21:36:21]NVStorageDeleteData [21:36:22]Write to MH i2c: 01 00 00 10 38 48 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 10 38 00 00 00 00 00 AA 0C 05 [21:36:22]RasterBufferAndPrint [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]line [21:36:22]written 0, free lines is 3251 [21:36:22]MH_Cut [21:36:22]Write to MH i2c: D1 01 00 17 38 01 21 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 01 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 01 00 17 38 00 20 [21:36:22]Write to MH i2c: 01 00 00 18 38 50 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]OFD Sender: No OFD packet to send [21:36:22]*** Cut start [21:36:22]*** Partial cut [21:36:22]*** CUTSNS_PIN = 1 [21:36:22]*** CUTSNS_PIN = 0 [21:36:23]*** Brake cut motor [21:36:23]Read from MH i2c: 01 [21:36:23]MH_I2C_Read... [21:36:23]*** Stop cut motor [21:36:23]*** Cut end [21:36:23]Read from MH i2c: 01 07 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: 01 07 00 18 38 00 00 00 00 00 FF 0F 65 [21:36:23]process_action close_receipt done [21:36:23]requested_data is exist [21:36:23]produce_requested_data [21:36:23]requested_item fm.sn is exist - process it [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 11 00 00 [21:36:23]Write to MH i2c: E2 08 00 19 38 80 11 00 00 00 00 00 00 CB [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 17 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 17 00 19 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 1E [21:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:36:23]wFMCommunicate OK [21:36:23]requested_item fd.num is exist - process it [21:36:23]SAM_PROTO_GetFieldsCounters [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 13 00 00 [21:36:23]Write to MH i2c: E2 08 00 1A 38 80 13 00 00 00 00 00 00 CE [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 62 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 62 00 1A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 76 [21:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:23]wFMCommunicate OK [21:36:23]SAM_PROTO_GetFieldsCounters done [21:36:23]requested_item shift.num is exist - process it [21:36:23]requested_item shift.opened is exist - process it [21:36:23]req_shift_opened [21:36:23]FM_GetShiftState [21:36:23]SAM_PROTO_GetShiftState [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 13 01 00 [21:36:23]Write to MH i2c: E2 08 00 1B 38 80 13 01 00 00 00 00 00 D0 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 1B 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 49 [21:36:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:36:23]wFMCommunicate OK [21:36:23]SAM_PROTO_GetShiftState done [21:36:23]FM_GetShiftState done [21:36:23]req_shift_opened done [21:36:23]requested_item shift.open_date is exist - process it [21:36:23]req_shift_open_date [21:36:23]req_shift_open_date done [21:36:23]produce_requested_data done [21:36:23]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191948,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:36:23]process_action_free close_receipt [21:36:23]json_value_free [21:36:23]json_value_free done [21:36:23]process_json_proto returns [21:36:23]Send response to host [21:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191948,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:36:23]free response buf [21:36:23]execute_script done [21:36:23]execute_script returns [21:36:23]free content buf [21:36:23]Sock 5.Close socket [21:36:23]Sock 5.Thread stoped [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:55]accept exits with 6 [21:37:55]New connection [21:37:55]New thread 3066817892 created [21:37:55]Thread 3066961252 joined [21:37:55]Waiting for new connection... [21:37:55] Sock 6.Parse request [21:37:55]Sock 6.Check first char [21:37:55]Sock 6.First char is OK [21:37:55]request: POST /json_proto HTTP/1.0 [21:37:55]Method: POST [21:37:55]URL: /json_proto [21:37:55]Method is POST - this is cgi request [21:37:55]url: /json_proto [21:37:55]query_string will be loaded in cgi processing [21:37:55]execute_cgi json_proto POST (null) [21:37:55]execute_cgi path=json_proto method=POST [21:37:55]POST find Content-Length [21:37:55]Host: 172.17.63.131:8080 [21:37:55]Content-Length: 676 [21:37:55]Content-Type: application/json [21:37:55] [21:37:55]POST finish read [21:37:55]Found Content-Length = 676 [21:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:55]execute_script... [21:37: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)31258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:55]POST & json_proto [21:37:55]process_json_proto [21:37:55]json parsed OK: [21:37:55]protocol is kg_v1.0 [21:37:55]action value=close_receipt [21:37:55]process_action close_receipt [21:37:55]cmd_close_receipt [21:37:55]MH_GetDate [21:37:55]Write to MH i2c: F0 00 00 1C 38 43 [21:37:55]Write i2c OK [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: F0 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: F0 09 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: F0 09 00 1C 38 00 43 61 1D 67 22 05 6E 64 6D [21:37:55]GetLastDocTimeStamp 1729978596 [21:37:55]current date 1729978691 [21:37:55]FM_GetShiftState [21:37:55]SAM_PROTO_GetShiftState [21:37:55]wFMCommunicate request_size=4 [21:37:55]MH_SAM_APDU [21:37:55]CAPDU: 80 13 01 00 [21:37:55]Write to MH i2c: E2 08 00 1D 38 80 13 01 00 00 00 00 00 D2 [21:37:55]Write i2c OK [21:37:55]MH_I2C_Read... [21:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:55]Read from MH i2c: E2 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 0E 00 [21:37:55]MH_I2C_Read... [21:37:55]Read from MH i2c: E2 0E 00 1D 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4B [21:37:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:37:55]wFMCommunicate OK [21:37:55]SAM_PROTO_GetShiftState done [21:37:55]FM_GetShiftState done [21:37:55]opened in 1729902770 [21:37:55]opened+sec_in_day 1729989170 [21:37:55]quantity*price = 50041 [21:37:55]sum+1 = 50042 [21:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 312 26.10.2024 21:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191949 ФПД: 145741753778290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191949&fm=145741753778290&tin=02508201610067®Number=0000000000091776&sum=50000 [21:37:56]StoreToDocumentArchive [21:37:56]shift 541 fd 191949 [21:37:56]save to /storage/0541/doc_00191949 [21:37:56]save last doc name /storage/0541/doc_00191949 to /storage/kkm_last_doc_name [21:37:56]save OK [21:37:56]Clear old archive folders... [21:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:56]tlvbuf is 01A50D00 [21:37:56]SAM_PROTO_ClearQueue [21:37:56]wFMCommunicate request_size=4 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 09 00 00 [21:37:56]Write to MH i2c: E2 08 00 2A 38 80 09 00 00 00 00 00 00 D4 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 2A 38 00 90 00 D6 [21:37:56]RAPDU: 90 00 [21:37:56]wFMCommunicate OK [21:37:56]SAM_PROTO_ClearQueue done [21:37:56]KKMCreateOFDPacket [21:37:56]OFDProtocolAddRootSTLVToBuf [21:37:56]FM_MakeSignedData [21:37:56]FM_MakeSignedData [21:37:56]SAM_PROTO_SignData [21:37:56]wFMCommunicate request_size=4 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 0D 01 02 [21:37:56]Write to MH i2c: E2 08 00 2B 38 80 0D 01 02 00 00 00 00 DC [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 2B 38 00 90 00 D7 [21:37:56]RAPDU: 90 00 [21:37:56]wFMCommunicate OK [21:37:56]wFMCommunicate request_size=255 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 43 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD ED 02 00 35 04 06 00 84 [21:37:56]Write to MH i2c: E2 02 01 2C 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 43 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD ED 02 00 35 04 06 00 84 00 00 30 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 2C 38 00 90 00 D8 [21:37:56]RAPDU: 90 00 [21:37:56]wFMCommunicate OK [21:37:56]wFMCommunicate request_size=10 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 0D 02 02 05 8D 25 76 80 72 [21:37:56]Write to MH i2c: E2 0D 00 2D 38 80 0D 02 02 05 00 8D 25 76 80 72 00 00 03 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 03 00 2D 38 00 90 00 D9 [21:37:56]RAPDU: 90 00 [21:37:56]wFMCommunicate OK [21:37:56]wFMCommunicate request_size=4 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 0D 03 02 [21:37:56]Write to MH i2c: E2 08 00 2E 38 80 0D 03 02 00 00 00 00 E1 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 0B 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 0B 00 2E 38 00 17 16 0B 45 59 6D DF 91 90 00 95 [21:37:56]RAPDU: 17 16 0B 45 59 6D DF 91 90 00 [21:37:56]wFMCommunicate OK [21:37:56]SAM_PROTO_SignData done [21:37:56]FM_MakeSignedData done [21:37:56]CreateOFDProtocolMessage [21:37:56]wFMCommunicate request_size=4 [21:37:56]MH_SAM_APDU [21:37:56]CAPDU: 80 11 00 00 [21:37:56]Write to MH i2c: E2 08 00 2F 38 80 11 00 00 00 00 00 00 E1 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:56]Read from MH i2c: E2 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 17 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: E2 17 00 2F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 34 [21:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:37:56]wFMCommunicate OK [21:37:56]CreateOFDProtocolMessage done [21:37:56]OFDSenderStorePacket 191949 [21:37:56]StoreOFDPacket docnum=191949 [21:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 3E 07 01 04 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 43 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD ED 02 00 35 04 06 00 84 8D 25 76 80 72 17 16 0B 45 59 6D DF 91 [21:37:56]CheckFolder [21:37:56]dirname=/storage/ofd_packets [21:37:56]CheckFolder done [21:37:56]ProducePacketName [21:37:56]name=ofd_packets/00191949 [21:37:56]NVStorageSaveData ofd_packets/00191949 [21:37:56]File name is /storage/ofd_packets/00191949 [21:37:56]Write 301 bytes [21:37:56]NVStorageSaveData done [21:37:56]OFDSenderStorePacket done [21:37:56]KKMCreateOFDPacket done [21:37:56]NVStorageSaveData kkm_last_timestamp [21:37:56]File name is /storage/kkm_last_timestamp [21:37:56]Write 4 bytes [21:37:56]NVStorageSaveData done [21:37:56]ExternCall_PrintAddStr [21:37:56]wPrintStart [21:37:56]Write to MH i2c: 01 00 00 30 38 68 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 07 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 07 00 30 38 00 00 00 00 00 FF 0F 7D [21:37:56]RasterBufferAndPrint [21:37:56]line Счет N : (1)31258 [21:37:56]line ИНН: 02508201610067 [21:37:56]line Контрольно-Кассовый Чек [21:37:56]line ПРОДАЖА [21:37:56]line ТРК (МРК, ГНК) : 21 [21:37:56]line Товар: 2710124130 [21:37:56]line Аи-92-К-5 [21:37:56]line 7.480 * 66.90 [21:37:56]line = 500.41 [21:37:56]line НДС 12% НСП 1% [21:37:56]line > о реализуемом товаре [21:37:56]line ОКРУГЛЕНИЕ: -0.41 [21:37:56]line ИТОГО: 500.00 [21:37:56]line Внесено: 500.00 [21:37:56]line СДАЧА: 0.00 [21:37:56]line НСП 1% : 4.43 [21:37:56]line НДС 12% : 53.14 [21:37:56]line Наличными: 500.00 [21:37:56]line Безнал.: 0.00 [21:37:56]line Место: АЗС № 170 "Партнер Нефть" [21:37:56]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:37:56]line СНО: Общий режим [21:37:56]line Чек 312 26.10.2024 21:38 [21:37:56]line Смена: 541 ФФД: 1.0 [21:37:56]line ЗНМ: 0300000110 [21:37:56]line РНМ: 0000000000091776 [21:37:56]line Версия ККМ: 001 [21:37:56]line ФМ: 0000000000871754 [21:37:56]line ФД: 191949 [21:37:56]line ФПД: 145741753778290 [21:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T213811&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191949&fm=145741753778290&tin=02508201610067®Number=0000000000091776&sum=50000 [21:37:57]OFD Sender: Processing packet 191949 [packets to send 75, broken 74] [21:37:57]ProducePacketName [21:37:57]name=ofd_packets/00191949 [21:37:57]OFD Sender: To server: pG, [21:37:57]CommunicateWithHost lk.salyk.kg:30040 [21:37:57]ConnectInit lk.salyk.kg [21:37:57]written 0, free lines is 4095 [21:37:57]Connected sock=8 [21:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 0A 3E 07 01 04 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 43 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD ED 02 00 35 04 06 00 84 8D 25 76 80 72 17 16 0B 45 59 6D DF 91 [21:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 F5 CE 47 00 C6 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CD ED 02 00 F4 03 04 00 0D 06 1D 67 B6 04 01 00 00 D4 C1 B5 4B 79 0F 3F 72 [21:37:57]CommunicateWithHost err = 0 [21:37:57]CheckOFDResponse [21:37:57]1017 (14) - 77093643461234 [21:37:57]1041 (16) - 0000000000871754 [21:37:57]1040 (4) - 191949 [21:37:57]1012 (4) - 26.10.2024 15:09 [21:37:57]1206 (1) - 0 [21:37:57]OFD Sender: Remove packet 191949 [21:37:57]ProducePacketName [21:37:57]name=ofd_packets/00191949 [21:37:57]NVStorageDeleteData [21:37:57]Write to MH i2c: 01 00 00 5B 38 93 [21:37:57]Write i2c OK [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: 01 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: 01 07 00 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: 01 07 00 5B 38 00 00 00 00 00 A4 0C 4A [21:37:57]RasterBufferAndPrint [21:37:57]line [21:37:57]line [21:37:57]line [21:37:57]line [21:37:57]line [21:37:57]written 0, free lines is 3242 [21:37:57]MH_Cut [21:37:57]Write to MH i2c: D1 01 00 62 38 01 6C [21:37:57]Write i2c OK [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: D1 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: D1 01 00 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: D1 01 00 62 38 00 6B [21:37:57]Write to MH i2c: 01 00 00 63 38 9B [21:37:57]Write i2c OK [21:37:57]MH_I2C_Read... [21:37:57]OFD Sender: No OFD packet to send [21:37:58]*** Cut start [21:37:58]*** Partial cut [21:37:58]*** CUTSNS_PIN = 1 [21:37:58]*** CUTSNS_PIN = 0 [21:37:58]*** Brake cut motor [21:37:59]Read from MH i2c: 01 [21:37:59]MH_I2C_Read... [21:37:59]*** Stop cut motor [21:37:59]*** Cut end [21:37:59]Read from MH i2c: 01 07 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 07 00 63 38 00 00 00 00 00 FF 0F B0 [21:37:59]process_action close_receipt done [21:37:59]requested_data is exist [21:37:59]produce_requested_data [21:37:59]requested_item fm.sn is exist - process it [21:37:59]wFMCommunicate request_size=4 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 11 00 00 [21:37:59]Write to MH i2c: E2 08 00 64 38 80 11 00 00 00 00 00 00 16 [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 17 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 17 00 64 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 69 [21:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:37:59]wFMCommunicate OK [21:37:59]requested_item fd.num is exist - process it [21:37:59]SAM_PROTO_GetFieldsCounters [21:37:59]wFMCommunicate request_size=4 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 13 00 00 [21:37:59]Write to MH i2c: E2 08 00 65 38 80 13 00 00 00 00 00 00 19 [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 62 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 62 00 65 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [21:37:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:37:59]wFMCommunicate OK [21:37:59]SAM_PROTO_GetFieldsCounters done [21:37:59]requested_item shift.num is exist - process it [21:37:59]requested_item shift.opened is exist - process it [21:37:59]req_shift_opened [21:37:59]FM_GetShiftState [21:37:59]SAM_PROTO_GetShiftState [21:37:59]wFMCommunicate request_size=4 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 13 01 00 [21:37:59]Write to MH i2c: E2 08 00 66 38 80 13 01 00 00 00 00 00 1B [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 0E 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 0E 00 66 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 94 [21:37:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:37:59]wFMCommunicate OK [21:37:59]SAM_PROTO_GetShiftState done [21:37:59]FM_GetShiftState done [21:37:59]req_shift_opened done [21:37:59]requested_item shift.open_date is exist - process it [21:37:59]req_shift_open_date [21:37:59]req_shift_open_date done [21:37:59]produce_requested_data done [21:37:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191949,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:37:59]process_action_free close_receipt [21:37:59]json_value_free [21:37:59]json_value_free done [21:37:59]process_json_proto returns [21:37:59]Send response to host [21:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191949,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:37:59]free response buf [21:37:59]execute_script done [21:37:59]execute_script returns [21:37:59]free content buf [21:37:59]Sock 6.Close socket [21:37:59]Sock 6.Thread stoped [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:28]accept exits with 5 [21:40:28]New connection [21:40:28]New thread 3066961252 created [21:40:28]Thread 3066817892 joined [21:40:28]Waiting for new connection... [21:40:28] Sock 5.Parse request [21:40:28]Sock 5.Check first char [21:40:28]Sock 5.First char is OK [21:40:28]request: POST /json_proto HTTP/1.0 [21:40:28]Method: POST [21:40:28]URL: /json_proto [21:40:28]Method is POST - this is cgi request [21:40:28]url: /json_proto [21:40:28]query_string will be loaded in cgi processing [21:40:28]execute_cgi json_proto POST (null) [21:40:28]execute_cgi path=json_proto method=POST [21:40:28]POST find Content-Length [21:40:28]Host: 172.17.63.131:8080 [21:40:28]Content-Length: 862 [21:40:28]Content-Type: application/json [21:40:28] [21:40:28]POST finish read [21:40:28]Found Content-Length = 862 [21:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:28]execute_script... [21:40: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)31259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:28]POST & json_proto [21:40:28]process_json_proto [21:40:28]json parsed OK: [21:40:28]protocol is kg_v1.0 [21:40:28]action value=close_receipt [21:40:28]process_action close_receipt [21:40:28]cmd_close_receipt [21:40:28]MH_GetDate [21:40:28]Write to MH i2c: F0 00 00 67 38 8E [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: F0 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: F0 09 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: F0 09 00 67 38 00 DD 61 1D 67 22 05 6E 64 52 [21:40:28]GetLastDocTimeStamp 1729978691 [21:40:28]current date 1729978845 [21:40:28]FM_GetShiftState [21:40:28]SAM_PROTO_GetShiftState [21:40:28]wFMCommunicate request_size=4 [21:40:28]MH_SAM_APDU [21:40:28]CAPDU: 80 13 01 00 [21:40:28]Write to MH i2c: E2 08 00 68 38 80 13 01 00 00 00 00 00 1D [21:40:28]Write i2c OK [21:40:28]MH_I2C_Read... [21:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:28]Read from MH i2c: E2 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 [21:40:28]MH_I2C_Read... [21:40:28]Read from MH i2c: E2 0E 00 68 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 96 [21:40:28]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:40:28]wFMCommunicate OK [21:40:28]SAM_PROTO_GetShiftState done [21:40:28]FM_GetShiftState done [21:40:28]opened in 1729902770 [21:40:28]opened+sec_in_day 1729989170 [21:40:28]quantity*price = 50041 [21:40:28]sum+1 = 50042 [21:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 313 26.10.2024 21:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191950 ФПД: 63231410129262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191950&fm=63231410129262&tin=02508201610067®Number=0000000000091776&sum=50041 [21:40:29]StoreToDocumentArchive [21:40:29]shift 541 fd 191950 [21:40:29]save to /storage/0541/doc_00191950 [21:40:29]save last doc name /storage/0541/doc_00191950 to /storage/kkm_last_doc_name [21:40:29]save OK [21:40:29]Clear old archive folders... [21:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:40:29]tlvbuf is 017F1140 [21:40:29]SAM_PROTO_ClearQueue [21:40:29]wFMCommunicate request_size=4 [21:40:29]MH_SAM_APDU [21:40:29]CAPDU: 80 09 00 00 [21:40:29]Write to MH i2c: E2 08 00 75 38 80 09 00 00 00 00 00 00 1F [21:40:29]Write i2c OK [21:40:29]MH_I2C_Read... [21:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:29]Read from MH i2c: E2 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 75 38 00 90 00 21 [21:40:29]RAPDU: 90 00 [21:40:29]wFMCommunicate OK [21:40:29]SAM_PROTO_ClearQueue done [21:40:29]KKMCreateOFDPacket [21:40:29]OFDProtocolAddRootSTLVToBuf [21:40:29]FM_MakeSignedData [21:40:29]FM_MakeSignedData [21:40:29]SAM_PROTO_SignData [21:40:29]wFMCommunicate request_size=4 [21:40:29]MH_SAM_APDU [21:40:29]CAPDU: 80 0D 01 02 [21:40:29]Write to MH i2c: E2 08 00 76 38 80 0D 01 02 00 00 00 00 27 [21:40:29]Write i2c OK [21:40:29]MH_I2C_Read... [21:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:29]Read from MH i2c: E2 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 76 38 00 90 00 22 [21:40:29]RAPDU: 90 00 [21:40:29]wFMCommunicate OK [21:40:29]wFMCommunicate request_size=255 [21:40:29]MH_SAM_APDU [21:40:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DD 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE ED 02 00 35 04 06 00 39 [21:40:29]Write to MH i2c: E2 02 01 77 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DD 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE ED 02 00 35 04 06 00 39 00 00 1E [21:40:29]Write i2c OK [21:40:29]MH_I2C_Read... [21:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:29]Read from MH i2c: E2 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 [21:40:29]MH_I2C_Read... [21:40:29]Read from MH i2c: E2 03 00 77 38 00 90 00 23 [21:40:29]RAPDU: 90 00 [21:40:29]wFMCommunicate OK [21:40:29]wFMCommunicate request_size=10 [21:40:29]MH_SAM_APDU [21:40:29]CAPDU: 80 0D 02 02 05 82 35 BD 49 6E [21:40:29]Write to MH i2c: E2 0D 00 78 38 80 0D 02 02 05 00 82 35 BD 49 6E 00 00 5F [21:40:29]Write i2c OK [21:40:29]MH_I2C_Read... [21:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:30]Read from MH i2c: E2 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 03 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 03 00 78 38 00 90 00 24 [21:40:30]RAPDU: 90 00 [21:40:30]wFMCommunicate OK [21:40:30]wFMCommunicate request_size=4 [21:40:30]MH_SAM_APDU [21:40:30]CAPDU: 80 0D 03 02 [21:40:30]Write to MH i2c: E2 08 00 79 38 80 0D 03 02 00 00 00 00 2C [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:30]Read from MH i2c: E2 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 0B 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 0B 00 79 38 00 BC F6 34 12 91 9A D7 A0 90 00 C7 [21:40:30]RAPDU: BC F6 34 12 91 9A D7 A0 90 00 [21:40:30]wFMCommunicate OK [21:40:30]SAM_PROTO_SignData done [21:40:30]FM_MakeSignedData done [21:40:30]CreateOFDProtocolMessage [21:40:30]wFMCommunicate request_size=4 [21:40:30]MH_SAM_APDU [21:40:30]CAPDU: 80 11 00 00 [21:40:30]Write to MH i2c: E2 08 00 7A 38 80 11 00 00 00 00 00 00 2C [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:30]Read from MH i2c: E2 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 17 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: E2 17 00 7A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7F [21:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:40:30]wFMCommunicate OK [21:40:30]CreateOFDProtocolMessage done [21:40:30]OFDSenderStorePacket 191950 [21:40:30]StoreOFDPacket docnum=191950 [21:40:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 A8 07 01 2A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DD 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE ED 02 00 35 04 06 00 39 82 35 BD 49 6E BC F6 34 12 91 9A D7 A0 [21:40:30]CheckFolder [21:40:30]dirname=/storage/ofd_packets [21:40:30]CheckFolder done [21:40:30]ProducePacketName [21:40:30]name=ofd_packets/00191950 [21:40:30]NVStorageSaveData ofd_packets/00191950 [21:40:30]File name is /storage/ofd_packets/00191950 [21:40:30]Write 301 bytes [21:40:30]NVStorageSaveData done [21:40:30]OFDSenderStorePacket done [21:40:30]KKMCreateOFDPacket done [21:40:30]NVStorageSaveData kkm_last_timestamp [21:40:30]File name is /storage/kkm_last_timestamp [21:40:30]Write 4 bytes [21:40:30]NVStorageSaveData done [21:40:30]ExternCall_PrintAddStr [21:40:30]wPrintStart [21:40:30]Write to MH i2c: 01 00 00 7B 38 B3 [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 07 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 07 00 7B 38 00 00 00 00 00 FF 0F C8 [21:40:30]RasterBufferAndPrint [21:40:30]line Счет N : (1)31259 [21:40:30]line ИНН: 02508201610067 [21:40:30]line Контрольно-Кассовый Чек [21:40:30]line ПРОДАЖА [21:40:30]line ТРК (МРК, ГНК) : 21 [21:40:30]line Товар: 2710124130 [21:40:30]line Аи-92-К-5 [21:40:30]line 7.480 * 66.90 [21:40:30]line = 500.41 [21:40:30]line НДС 12% НСП 1% [21:40:30]line > о реализуемом товаре [21:40:30]line ИТОГО: 500.41 [21:40:30]line НСП 1% : 4.43 [21:40:30]line НДС 12% : 53.14 [21:40:30]line Наличными: 0.00 [21:40:30]line Безнал.: 500.41 [21:40:30]line Место: АЗС № 170 "Партнер Нефть" [21:40:30]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:40:30]line СНО: Общий режим [21:40:30]line Чек 313 26.10.2024 21:40 [21:40:30]line Смена: 541 ФФД: 1.0 [21:40:30]line ЗНМ: 0300000110 [21:40:30]line РНМ: 0000000000091776 [21:40:30]line Версия ККМ: 001 [21:40:30]line Платежная система: Кыргызкоммерцбанк [21:40:30]line ФМ: 0000000000871754 [21:40:30]line ФД: 191950 [21:40:30]line ФПД: 63231410129262 [21:40:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T214045&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191950&fm=63231410129262&tin=02508201610067®Number=0000000000091776&sum=50041 [21:40:30]written 0, free lines is 4095 [21:40:30]OFD Sender: Processing packet 191950 [packets to send 75, broken 74] [21:40:30]ProducePacketName [21:40:30]name=ofd_packets/00191950 [21:40:30]OFD Sender: To server: pG, [21:40:30]CommunicateWithHost lk.salyk.kg:30040 [21:40:30]ConnectInit lk.salyk.kg [21:40:30]Connected sock=8 [21:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 A8 07 01 2A 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DD 61 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE ED 02 00 35 04 06 00 39 82 35 BD 49 6E BC F6 34 12 91 9A D7 A0 [21:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 04 14 47 00 82 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CE ED 02 00 F4 03 04 00 A6 06 1D 67 B6 04 01 00 00 70 AA 3A 91 18 8C 9D 3C [21:40:30]CommunicateWithHost err = 0 [21:40:30]CheckOFDResponse [21:40:30]1017 (14) - 77093643461234 [21:40:30]1041 (16) - 0000000000871754 [21:40:30]1040 (4) - 191950 [21:40:30]1012 (4) - 26.10.2024 15:11 [21:40:30]1206 (1) - 0 [21:40:30]OFD Sender: Remove packet 191950 [21:40:30]ProducePacketName [21:40:30]name=ofd_packets/00191950 [21:40:30]NVStorageDeleteData [21:40:30]Write to MH i2c: 01 00 00 A5 38 DD [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 07 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: 01 07 00 A5 38 00 00 00 00 00 BF 0C AF [21:40:30]RasterBufferAndPrint [21:40:30]line [21:40:30]line [21:40:30]line [21:40:30]line [21:40:30]line [21:40:30]written 0, free lines is 3272 [21:40:30]MH_Cut [21:40:30]Write to MH i2c: D1 01 00 AC 38 01 B6 [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: D1 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: D1 01 00 [21:40:30]MH_I2C_Read... [21:40:30]Read from MH i2c: D1 01 00 AC 38 00 B5 [21:40:30]Write to MH i2c: 01 00 00 AD 38 E5 [21:40:30]Write i2c OK [21:40:30]MH_I2C_Read... [21:40:31]OFD Sender: No OFD packet to send [21:40:31]*** Cut start [21:40:31]*** Partial cut [21:40:31]*** CUTSNS_PIN = 1 [21:40:31]*** CUTSNS_PIN = 0 [21:40:32]*** Brake cut motor [21:40:32]Read from MH i2c: 01 [21:40:32]MH_I2C_Read... [21:40:32]*** Stop cut motor [21:40:32]*** Cut end [21:40:32]Read from MH i2c: 01 07 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: 01 07 00 AD 38 00 00 00 00 00 FF 0F FA [21:40:32]process_action close_receipt done [21:40:32]requested_data is exist [21:40:32]produce_requested_data [21:40:32]requested_item fm.sn is exist - process it [21:40:32]wFMCommunicate request_size=4 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 11 00 00 [21:40:32]Write to MH i2c: E2 08 00 AE 38 80 11 00 00 00 00 00 00 60 [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 17 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 17 00 AE 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B3 [21:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:40:32]wFMCommunicate OK [21:40:32]requested_item fd.num is exist - process it [21:40:32]SAM_PROTO_GetFieldsCounters [21:40:32]wFMCommunicate request_size=4 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 13 00 00 [21:40:32]Write to MH i2c: E2 08 00 AF 38 80 13 00 00 00 00 00 00 63 [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 62 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 62 00 AF 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [21:40:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:32]wFMCommunicate OK [21:40:32]SAM_PROTO_GetFieldsCounters done [21:40:32]requested_item shift.num is exist - process it [21:40:32]requested_item shift.opened is exist - process it [21:40:32]req_shift_opened [21:40:32]FM_GetShiftState [21:40:32]SAM_PROTO_GetShiftState [21:40:32]wFMCommunicate request_size=4 [21:40:32]MH_SAM_APDU [21:40:32]CAPDU: 80 13 01 00 [21:40:32]Write to MH i2c: E2 08 00 B0 38 80 13 01 00 00 00 00 00 65 [21:40:32]Write i2c OK [21:40:32]MH_I2C_Read... [21:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:32]Read from MH i2c: E2 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 0E 00 [21:40:32]MH_I2C_Read... [21:40:32]Read from MH i2c: E2 0E 00 B0 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 DE [21:40:32]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:40:32]wFMCommunicate OK [21:40:32]SAM_PROTO_GetShiftState done [21:40:32]FM_GetShiftState done [21:40:32]req_shift_opened done [21:40:32]requested_item shift.open_date is exist - process it [21:40:32]req_shift_open_date [21:40:32]req_shift_open_date done [21:40:32]produce_requested_data done [21:40:32]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191950,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:40:32]process_action_free close_receipt [21:40:32]json_value_free [21:40:32]json_value_free done [21:40:32]process_json_proto returns [21:40:32]Send response to host [21:40:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191950,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:40:32]free response buf [21:40:32]execute_script done [21:40:32]execute_script returns [21:40:32]free content buf [21:40:32]Sock 5.Close socket [21:40:32]Sock 5.Thread stoped [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:55]accept exits with 6 [21:51:55]New connection [21:51:55]New thread 3066817892 created [21:51:55]Thread 3066961252 joined [21:51:55]Waiting for new connection... [21:51:55] Sock 6.Parse request [21:51:55]Sock 6.Check first char [21:51:55]Sock 6.First char is OK [21:51:55]request: POST /json_proto HTTP/1.0 [21:51:55]Method: POST [21:51:55]URL: /json_proto [21:51:55]Method is POST - this is cgi request [21:51:55]url: /json_proto [21:51:55]query_string will be loaded in cgi processing [21:51:55]execute_cgi json_proto POST (null) [21:51:55]execute_cgi path=json_proto method=POST [21:51:55]POST find Content-Length [21:51:55]Host: 172.17.63.131:8080 [21:51:55]Content-Length: 678 [21:51:55]Content-Type: application/json [21:51:55] [21:51:55]POST finish read [21:51:55]Found Content-Length = 678 [21:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:55]execute_script... [21:51:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:55]POST & json_proto [21:51:55]process_json_proto [21:51:55]json parsed OK: [21:51:55]protocol is kg_v1.0 [21:51:55]action value=close_receipt [21:51:55]process_action close_receipt [21:51:55]cmd_close_receipt [21:51:55]MH_GetDate [21:51:55]Write to MH i2c: F0 00 00 B1 38 D8 [21:51:55]Write i2c OK [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: F0 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: F0 09 00 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: F0 09 00 B1 38 00 8C 64 1D 67 22 05 6E 64 4E [21:51:55]GetLastDocTimeStamp 1729978845 [21:51:55]current date 1729979532 [21:51:55]FM_GetShiftState [21:51:55]SAM_PROTO_GetShiftState [21:51:55]wFMCommunicate request_size=4 [21:51:55]MH_SAM_APDU [21:51:55]CAPDU: 80 13 01 00 [21:51:55]Write to MH i2c: E2 08 00 B2 38 80 13 01 00 00 00 00 00 67 [21:51:55]Write i2c OK [21:51:55]MH_I2C_Read... [21:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:55]Read from MH i2c: E2 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: E2 0E 00 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: E2 0E 00 B2 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 E0 [21:51:55]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:51:55]wFMCommunicate OK [21:51:55]SAM_PROTO_GetShiftState done [21:51:55]FM_GetShiftState done [21:51:55]opened in 1729902770 [21:51:55]opened+sec_in_day 1729989170 [21:51:55]quantity*price = 200025 [21:51:55]sum+1 = 200026 [21:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 314 26.10.2024 21:52 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191951 ФПД: 19685223601238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191951&fm=19685223601238&tin=02508201610067®Number=0000000000091776&sum=200000 [21:51:56]StoreToDocumentArchive [21:51:56]shift 541 fd 191951 [21:51:56]save to /storage/0541/doc_00191951 [21:51:56]save last doc name /storage/0541/doc_00191951 to /storage/kkm_last_doc_name [21:51:56]save OK [21:51:56]Clear old archive folders... [21:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:51:56]tlvbuf is 01748F10 [21:51:56]SAM_PROTO_ClearQueue [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 09 00 00 [21:51:56]Write to MH i2c: E2 08 00 BF 38 80 09 00 00 00 00 00 00 69 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:56]Read from MH i2c: E2 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 03 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 03 00 BF 38 00 90 00 6B [21:51:56]RAPDU: 90 00 [21:51:56]wFMCommunicate OK [21:51:56]SAM_PROTO_ClearQueue done [21:51:56]KKMCreateOFDPacket [21:51:56]OFDProtocolAddRootSTLVToBuf [21:51:56]FM_MakeSignedData [21:51:56]FM_MakeSignedData [21:51:56]SAM_PROTO_SignData [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 0D 01 02 [21:51:56]Write to MH i2c: E2 08 00 C0 38 80 0D 01 02 00 00 00 00 71 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:56]Read from MH i2c: E2 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 03 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 03 00 C0 38 00 90 00 6C [21:51:56]RAPDU: 90 00 [21:51:56]wFMCommunicate OK [21:51:56]wFMCommunicate request_size=255 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 8C 64 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF ED 02 00 35 04 06 00 11 E7 52 C2 [21:51:56]Write to MH i2c: E2 02 01 C1 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 8C 64 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF ED 02 00 35 04 06 00 11 E7 52 C2 00 00 81 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:57]OFD Sender: No OFD packet to send [21:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 C1 38 00 90 00 6D [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]wFMCommunicate request_size=7 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 02 02 02 94 56 [21:51:57]Write to MH i2c: E2 0A 00 C2 38 80 0D 02 02 02 00 94 56 00 00 62 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 C2 38 00 90 00 6E [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 03 02 [21:51:57]Write to MH i2c: E2 08 00 C3 38 80 0D 03 02 00 00 00 00 76 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 0B 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 0B 00 C3 38 00 EF CD A5 4B D7 D5 9B 29 90 00 93 [21:51:57]RAPDU: EF CD A5 4B D7 D5 9B 29 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_SignData done [21:51:57]FM_MakeSignedData done [21:51:57]CreateOFDProtocolMessage [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 11 00 00 [21:51:57]Write to MH i2c: E2 08 00 C4 38 80 11 00 00 00 00 00 00 76 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 17 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 17 00 C4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C9 [21:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:51:57]wFMCommunicate OK [21:51:57]CreateOFDProtocolMessage done [21:51:57]OFDSenderStorePacket 191951 [21:51:57]StoreOFDPacket docnum=191951 [21:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 50 04 01 66 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 8C 64 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF ED 02 00 35 04 06 00 11 E7 52 C2 94 56 EF CD A5 4B D7 D5 9B 29 [21:51:57]CheckFolder [21:51:57]dirname=/storage/ofd_packets [21:51:57]CheckFolder done [21:51:57]ProducePacketName [21:51:57]name=ofd_packets/00191951 [21:51:57]NVStorageSaveData ofd_packets/00191951 [21:51:57]File name is /storage/ofd_packets/00191951 [21:51:57]Write 298 bytes [21:51:57]NVStorageSaveData done [21:51:57]OFDSenderStorePacket done [21:51:57]KKMCreateOFDPacket done [21:51:57]NVStorageSaveData kkm_last_timestamp [21:51:57]File name is /storage/kkm_last_timestamp [21:51:57]Write 4 bytes [21:51:57]NVStorageSaveData done [21:51:57]ExternCall_PrintAddStr [21:51:57]wPrintStart [21:51:57]Write to MH i2c: 01 00 00 C5 38 FD [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: 01 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: 01 07 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: 01 07 00 C5 38 00 00 00 00 00 FF 0F 12 [21:51:57]RasterBufferAndPrint [21:51:57]line Счет N : (1)31260 [21:51:57]line ИНН: 02508201610067 [21:51:57]line Контрольно-Кассовый Чек [21:51:57]line ПРОДАЖА [21:51:57]line ТРК (МРК, ГНК) : 11 [21:51:57]line Товар: 2710194210 [21:51:57]line ДТ-К-5 [21:51:57]line 26.250 * 76.20 [21:51:57]line = 2000.25 [21:51:57]line НДС 12% НСП 1% [21:51:57]line > о реализуемом товаре [21:51:57]line ОКРУГЛЕНИЕ: -0.25 [21:51:57]line ИТОГО: 2000.00 [21:51:57]line Внесено: 2000.00 [21:51:57]line СДАЧА: 0.00 [21:51:57]line НСП 1% : 17.70 [21:51:57]line НДС 12% : 212.42 [21:51:57]line Наличными: 2000.00 [21:51:57]line Безнал.: 0.00 [21:51:57]line Место: АЗС № 170 "Партнер Нефть" [21:51:57]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:51:57]line СНО: Общий режим [21:51:57]line Чек 314 26.10.2024 21:52 [21:51:57]line Смена: 541 ФФД: 1.0 [21:51:57]line ЗНМ: 0300000110 [21:51:57]line РНМ: 0000000000091776 [21:51:57]line Версия ККМ: 001 [21:51:57]line ФМ: 0000000000871754 [21:51:57]line ФД: 191951 [21:51:57]line ФПД: 19685223601238 [21:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215212&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191951&fm=19685223601238&tin=02508201610067®Number=0000000000091776&sum=200000 [21:51:57]OFD Sender: Processing packet 191951 [packets to send 75, broken 74] [21:51:57]ProducePacketName [21:51:57]name=ofd_packets/00191951 [21:51:57]OFD Sender: To server: pG, [21:51:57]CommunicateWithHost lk.salyk.kg:30040 [21:51:57]ConnectInit lk.salyk.kg [21:51:57]written 0, free lines is 4095 [21:51:57]Connected sock=8 [21:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 20 50 04 01 66 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 8C 64 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF ED 02 00 35 04 06 00 11 E7 52 C2 94 56 EF CD A5 4B D7 D5 9B 29 [21:51:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 17 52 47 00 8A 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 CF ED 02 00 F4 03 04 00 56 09 1D 67 B6 04 01 00 00 A5 F2 49 DE 91 15 A6 31 [21:51:58]CommunicateWithHost err = 0 [21:51:58]CheckOFDResponse [21:51:58]1017 (14) - 77093643461234 [21:51:58]1041 (16) - 0000000000871754 [21:51:58]1040 (4) - 191951 [21:51:58]1012 (4) - 26.10.2024 15:23 [21:51:58]1206 (1) - 0 [21:51:58]OFD Sender: Remove packet 191951 [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00191951 [21:51:58]NVStorageDeleteData [21:51:58]Write to MH i2c: 01 00 00 F0 38 28 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 F0 38 00 00 00 00 00 AD 0C E8 [21:51:58]RasterBufferAndPrint [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]line [21:51:58]written 0, free lines is 3251 [21:51:58]MH_Cut [21:51:58]Write to MH i2c: D1 01 00 F7 38 01 01 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 01 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: D1 01 00 F7 38 00 00 [21:51:58]Write to MH i2c: 01 00 00 F8 38 30 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]OFD Sender: No OFD packet to send [21:51:59]*** Cut start [21:51:59]*** Partial cut [21:51:59]*** CUTSNS_PIN = 1 [21:51:59]*** CUTSNS_PIN = 0 [21:51:59]*** Brake cut motor [21:51:59]Read from MH i2c: 01 [21:51:59]MH_I2C_Read... [21:51:59]*** Stop cut motor [21:51:59]*** Cut end [21:51:59]Read from MH i2c: 01 07 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 07 00 F8 38 00 00 00 00 00 FF 0F 45 [21:51:59]process_action close_receipt done [21:51:59]requested_data is exist [21:51:59]produce_requested_data [21:51:59]requested_item fm.sn is exist - process it [21:51:59]wFMCommunicate request_size=4 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 11 00 00 [21:51:59]Write to MH i2c: E2 08 00 F9 38 80 11 00 00 00 00 00 00 AB [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 17 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 17 00 F9 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FE [21:51:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:51:59]wFMCommunicate OK [21:51:59]requested_item fd.num is exist - process it [21:51:59]SAM_PROTO_GetFieldsCounters [21:51:59]wFMCommunicate request_size=4 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 13 00 00 [21:51:59]Write to MH i2c: E2 08 00 FA 38 80 13 00 00 00 00 00 00 AE [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 62 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 62 00 FA 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:51:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 CF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:59]wFMCommunicate OK [21:51:59]SAM_PROTO_GetFieldsCounters done [21:51:59]requested_item shift.num is exist - process it [21:51:59]requested_item shift.opened is exist - process it [21:51:59]req_shift_opened [21:51:59]FM_GetShiftState [21:51:59]SAM_PROTO_GetShiftState [21:51:59]wFMCommunicate request_size=4 [21:51:59]MH_SAM_APDU [21:51:59]CAPDU: 80 13 01 00 [21:51:59]Write to MH i2c: E2 08 00 FB 38 80 13 01 00 00 00 00 00 B0 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:59]Read from MH i2c: E2 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 0E 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: E2 0E 00 FB 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 29 [21:51:59]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:51:59]wFMCommunicate OK [21:51:59]SAM_PROTO_GetShiftState done [21:51:59]FM_GetShiftState done [21:51:59]req_shift_opened done [21:51:59]requested_item shift.open_date is exist - process it [21:51:59]req_shift_open_date [21:51:59]req_shift_open_date done [21:51:59]produce_requested_data done [21:51:59]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191951,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:51:59]process_action_free close_receipt [21:51:59]json_value_free [21:51:59]json_value_free done [21:51:59]process_json_proto returns [21:51:59]Send response to host [21:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191951,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:51:59]free response buf [21:51:59]execute_script done [21:51:59]execute_script returns [21:51:59]free content buf [21:51:59]Sock 6.Close socket [21:51:59]Sock 6.Thread stoped [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:09]accept exits with 5 [21:58:09]New connection [21:58:09]New thread 3066961252 created [21:58:09]Thread 3066817892 joined [21:58:09]Waiting for new connection... [21:58:09] Sock 5.Parse request [21:58:09]Sock 5.Check first char [21:58:09]Sock 5.First char is OK [21:58:09]request: POST /json_proto HTTP/1.0 [21:58:09]Method: POST [21:58:09]URL: /json_proto [21:58:09]Method is POST - this is cgi request [21:58:09]url: /json_proto [21:58:09]query_string will be loaded in cgi processing [21:58:09]execute_cgi json_proto POST (null) [21:58:09]execute_cgi path=json_proto method=POST [21:58:09]POST find Content-Length [21:58:09]Host: 172.17.63.131:8080 [21:58:09]Content-Length: 678 [21:58:09]Content-Type: application/json [21:58:09] [21:58:09]POST finish read [21:58:09]Found Content-Length = 678 [21:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:09]execute_script... [21:58: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)31261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:09]POST & json_proto [21:58:09]process_json_proto [21:58:09]json parsed OK: [21:58:09]protocol is kg_v1.0 [21:58:09]action value=close_receipt [21:58:09]process_action close_receipt [21:58:09]cmd_close_receipt [21:58:09]MH_GetDate [21:58:09]Write to MH i2c: F0 00 00 FC 38 23 [21:58:09]Write i2c OK [21:58:09]MH_I2C_Read... [21:58:09]Read from MH i2c: F0 [21:58:09]MH_I2C_Read... [21:58:09]Read from MH i2c: F0 09 00 [21:58:09]MH_I2C_Read... [21:58:09]Read from MH i2c: F0 09 00 FC 38 00 02 66 1D 67 22 05 6E 64 11 [21:58:09]GetLastDocTimeStamp 1729979532 [21:58:09]current date 1729979906 [21:58:09]FM_GetShiftState [21:58:09]SAM_PROTO_GetShiftState [21:58:09]wFMCommunicate request_size=4 [21:58:09]MH_SAM_APDU [21:58:09]CAPDU: 80 13 01 00 [21:58:09]Write to MH i2c: E2 08 00 FD 38 80 13 01 00 00 00 00 00 B2 [21:58:09]Write i2c OK [21:58:09]MH_I2C_Read... [21:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:09]Read from MH i2c: E2 [21:58:09]MH_I2C_Read... [21:58:09]Read from MH i2c: E2 0E 00 [21:58:09]MH_I2C_Read... [21:58:09]Read from MH i2c: E2 0E 00 FD 38 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 2B [21:58:09]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:58:09]wFMCommunicate OK [21:58:09]SAM_PROTO_GetShiftState done [21:58:09]FM_GetShiftState done [21:58:09]opened in 1729902770 [21:58:09]opened+sec_in_day 1729989170 [21:58:09]quantity*price = 200025 [21:58:09]sum+1 = 200026 [21:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 315 26.10.2024 21:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191952 ФПД: 260847255520054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191952&fm=260847255520054&tin=02508201610067®Number=0000000000091776&sum=200000 [21:58:11]StoreToDocumentArchive [21:58:11]shift 541 fd 191952 [21:58:11]save to /storage/0541/doc_00191952 [21:58:11]save last doc name /storage/0541/doc_00191952 to /storage/kkm_last_doc_name [21:58:11]save OK [21:58:11]Clear old archive folders... [21:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:58:11]tlvbuf is 01B0CA60 [21:58:11]SAM_PROTO_ClearQueue [21:58:11]wFMCommunicate request_size=4 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 09 00 00 [21:58:11]Write to MH i2c: E2 08 00 0A 39 80 09 00 00 00 00 00 00 B5 [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 0A 39 00 90 00 B7 [21:58:11]RAPDU: 90 00 [21:58:11]wFMCommunicate OK [21:58:11]SAM_PROTO_ClearQueue done [21:58:11]KKMCreateOFDPacket [21:58:11]OFDProtocolAddRootSTLVToBuf [21:58:11]FM_MakeSignedData [21:58:11]FM_MakeSignedData [21:58:11]SAM_PROTO_SignData [21:58:11]wFMCommunicate request_size=4 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 0D 01 02 [21:58:11]Write to MH i2c: E2 08 00 0B 39 80 0D 01 02 00 00 00 00 BD [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 0B 39 00 90 00 B8 [21:58:11]RAPDU: 90 00 [21:58:11]wFMCommunicate OK [21:58:11]wFMCommunicate request_size=255 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 02 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 ED 02 00 35 04 06 00 ED 3D 3C 01 [21:58:11]Write to MH i2c: E2 02 01 0C 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 02 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 ED 02 00 35 04 06 00 ED 3D 3C 01 00 00 A2 [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 0C 39 00 90 00 B9 [21:58:11]RAPDU: 90 00 [21:58:11]wFMCommunicate OK [21:58:11]wFMCommunicate request_size=7 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 0D 02 02 02 83 36 [21:58:11]Write to MH i2c: E2 0A 00 0D 39 80 0D 02 02 02 00 83 36 00 00 7D [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 03 00 0D 39 00 90 00 BA [21:58:11]RAPDU: 90 00 [21:58:11]wFMCommunicate OK [21:58:11]wFMCommunicate request_size=4 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 0D 03 02 [21:58:11]Write to MH i2c: E2 08 00 0E 39 80 0D 03 02 00 00 00 00 C2 [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 0B 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 0B 00 0E 39 00 B8 0B C2 93 7D B8 67 E6 90 00 5D [21:58:11]RAPDU: B8 0B C2 93 7D B8 67 E6 90 00 [21:58:11]wFMCommunicate OK [21:58:11]SAM_PROTO_SignData done [21:58:11]FM_MakeSignedData done [21:58:11]CreateOFDProtocolMessage [21:58:11]wFMCommunicate request_size=4 [21:58:11]MH_SAM_APDU [21:58:11]CAPDU: 80 11 00 00 [21:58:11]Write to MH i2c: E2 08 00 0F 39 80 11 00 00 00 00 00 00 C2 [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:11]Read from MH i2c: E2 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 17 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: E2 17 00 0F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 15 [21:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:11]wFMCommunicate OK [21:58:11]CreateOFDProtocolMessage done [21:58:11]OFDSenderStorePacket 191952 [21:58:11]StoreOFDPacket docnum=191952 [21:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 52 12 04 01 2E 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 02 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 ED 02 00 35 04 06 00 ED 3D 3C 01 83 36 B8 0B C2 93 7D B8 67 E6 [21:58:11]CheckFolder [21:58:11]dirname=/storage/ofd_packets [21:58:11]CheckFolder done [21:58:11]ProducePacketName [21:58:11]name=ofd_packets/00191952 [21:58:11]NVStorageSaveData ofd_packets/00191952 [21:58:11]File name is /storage/ofd_packets/00191952 [21:58:11]Write 298 bytes [21:58:11]NVStorageSaveData done [21:58:11]OFDSenderStorePacket done [21:58:11]KKMCreateOFDPacket done [21:58:11]NVStorageSaveData kkm_last_timestamp [21:58:11]File name is /storage/kkm_last_timestamp [21:58:11]Write 4 bytes [21:58:11]NVStorageSaveData done [21:58:11]ExternCall_PrintAddStr [21:58:11]wPrintStart [21:58:11]Write to MH i2c: 01 00 00 10 39 49 [21:58:11]Write i2c OK [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: 01 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: 01 07 00 [21:58:11]MH_I2C_Read... [21:58:11]Read from MH i2c: 01 07 00 10 39 00 00 00 00 00 FF 0F 5E [21:58:11]RasterBufferAndPrint [21:58:11]line Счет N : (1)31261 [21:58:11]line ИНН: 02508201610067 [21:58:11]line Контрольно-Кассовый Чек [21:58:11]line ПРОДАЖА [21:58:11]line ТРК (МРК, ГНК) : 11 [21:58:11]line Товар: 2710194210 [21:58:11]line ДТ-К-5 [21:58:11]line 26.250 * 76.20 [21:58:11]line = 2000.25 [21:58:11]line НДС 12% НСП 1% [21:58:11]line > о реализуемом товаре [21:58:11]line ОКРУГЛЕНИЕ: -0.25 [21:58:11]line ИТОГО: 2000.00 [21:58:11]line Внесено: 2000.00 [21:58:11]line СДАЧА: 0.00 [21:58:11]line НСП 1% : 17.70 [21:58:11]line НДС 12% : 212.42 [21:58:11]line Наличными: 2000.00 [21:58:11]line Безнал.: 0.00 [21:58:11]line Место: АЗС № 170 "Партнер Нефть" [21:58:11]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:58:11]line СНО: Общий режим [21:58:11]line Чек 315 26.10.2024 21:58 [21:58:11]line Смена: 541 ФФД: 1.0 [21:58:11]line ЗНМ: 0300000110 [21:58:11]line РНМ: 0000000000091776 [21:58:11]line Версия ККМ: 001 [21:58:11]line ФМ: 0000000000871754 [21:58:11]line ФД: 191952 [21:58:11]line ФПД: 260847255520054 [21:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215826&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191952&fm=260847255520054&tin=02508201610067®Number=0000000000091776&sum=200000 [21:58:11]OFD Sender: Processing packet 191952 [packets to send 75, broken 74] [21:58:11]ProducePacketName [21:58:11]name=ofd_packets/00191952 [21:58:11]OFD Sender: To server: pG, [21:58:11]CommunicateWithHost lk.salyk.kg:30040 [21:58:11]ConnectInit lk.salyk.kg [21:58:11]written 0, free lines is 4095 [21:58:12]Connected sock=8 [21:58:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 52 12 04 01 2E 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 02 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 ED 02 00 35 04 06 00 ED 3D 3C 01 83 36 B8 0B C2 93 7D B8 67 E6 [21:58:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 25 B8 47 00 5E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D0 ED 02 00 F4 03 04 00 CC 0A 1D 67 B6 04 01 00 00 7B F9 3B B4 8D CA B1 1D [21:58:12]CommunicateWithHost err = 0 [21:58:12]CheckOFDResponse [21:58:12]1017 (14) - 77093643461234 [21:58:12]1041 (16) - 0000000000871754 [21:58:12]1040 (4) - 191952 [21:58:12]1012 (4) - 26.10.2024 15:29 [21:58:12]1206 (1) - 0 [21:58:12]OFD Sender: Remove packet 191952 [21:58:12]ProducePacketName [21:58:12]name=ofd_packets/00191952 [21:58:12]NVStorageDeleteData [21:58:12]Write to MH i2c: 01 00 00 3B 39 74 [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 07 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: 01 07 00 3B 39 00 00 00 00 00 B5 0C 3C [21:58:12]RasterBufferAndPrint [21:58:12]line [21:58:12]line [21:58:12]line [21:58:12]line [21:58:12]line [21:58:12]written 0, free lines is 3259 [21:58:12]MH_Cut [21:58:12]Write to MH i2c: D1 01 00 42 39 01 4D [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: D1 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: D1 01 00 [21:58:12]MH_I2C_Read... [21:58:12]Read from MH i2c: D1 01 00 42 39 00 4C [21:58:12]Write to MH i2c: 01 00 00 43 39 7C [21:58:12]Write i2c OK [21:58:12]MH_I2C_Read... [21:58:12]OFD Sender: No OFD packet to send [21:58:13]*** Cut start [21:58:13]*** Partial cut [21:58:13]*** CUTSNS_PIN = 1 [21:58:13]*** CUTSNS_PIN = 0 [21:58:13]*** Brake cut motor [21:58:13]Read from MH i2c: 01 [21:58:13]MH_I2C_Read... [21:58:13]*** Stop cut motor [21:58:13]*** Cut end [21:58:13]Read from MH i2c: 01 07 00 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: 01 07 00 43 39 00 00 00 00 00 FF 0F 91 [21:58:13]process_action close_receipt done [21:58:13]requested_data is exist [21:58:13]produce_requested_data [21:58:13]requested_item fm.sn is exist - process it [21:58:13]wFMCommunicate request_size=4 [21:58:13]MH_SAM_APDU [21:58:13]CAPDU: 80 11 00 00 [21:58:13]Write to MH i2c: E2 08 00 44 39 80 11 00 00 00 00 00 00 F7 [21:58:13]Write i2c OK [21:58:13]MH_I2C_Read... [21:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:13]Read from MH i2c: E2 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: E2 17 00 [21:58:13]MH_I2C_Read... [21:58:13]Read from MH i2c: E2 17 00 44 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 4A [21:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:13]wFMCommunicate OK [21:58:13]requested_item fd.num is exist - process it [21:58:13]SAM_PROTO_GetFieldsCounters [21:58:13]wFMCommunicate request_size=4 [21:58:13]MH_SAM_APDU [21:58:13]CAPDU: 80 13 00 00 [21:58:13]Write to MH i2c: E2 08 00 45 39 80 13 00 00 00 00 00 00 FA [21:58:13]Write i2c OK [21:58:13]MH_I2C_Read... [21:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:14]Read from MH i2c: E2 [21:58:14]MH_I2C_Read... [21:58:14]Read from MH i2c: E2 62 00 [21:58:14]MH_I2C_Read... [21:58:14]Read from MH i2c: E2 62 00 45 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:58:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D0 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:14]wFMCommunicate OK [21:58:14]SAM_PROTO_GetFieldsCounters done [21:58:14]requested_item shift.num is exist - process it [21:58:14]requested_item shift.opened is exist - process it [21:58:14]req_shift_opened [21:58:14]FM_GetShiftState [21:58:14]SAM_PROTO_GetShiftState [21:58:14]wFMCommunicate request_size=4 [21:58:14]MH_SAM_APDU [21:58:14]CAPDU: 80 13 01 00 [21:58:14]Write to MH i2c: E2 08 00 46 39 80 13 01 00 00 00 00 00 FC [21:58:14]Write i2c OK [21:58:14]MH_I2C_Read... [21:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:14]Read from MH i2c: E2 [21:58:14]MH_I2C_Read... [21:58:14]Read from MH i2c: E2 0E 00 [21:58:14]MH_I2C_Read... [21:58:14]Read from MH i2c: E2 0E 00 46 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 75 [21:58:14]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:58:14]wFMCommunicate OK [21:58:14]SAM_PROTO_GetShiftState done [21:58:14]FM_GetShiftState done [21:58:14]req_shift_opened done [21:58:14]requested_item shift.open_date is exist - process it [21:58:14]req_shift_open_date [21:58:14]req_shift_open_date done [21:58:14]produce_requested_data done [21:58:14]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191952,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:58:14]process_action_free close_receipt [21:58:14]json_value_free [21:58:14]json_value_free done [21:58:14]process_json_proto returns [21:58:14]Send response to host [21:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191952,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:58:14]free response buf [21:58:14]execute_script done [21:58:14]execute_script returns [21:58:14]free content buf [21:58:14]Sock 5.Close socket [21:58:14]Sock 5.Thread stoped [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:24]accept exits with 6 [21:58:24]New connection [21:58:24]New thread 3066817892 created [21:58:24]Thread 3066961252 joined [21:58:24]Waiting for new connection... [21:58:24] Sock 6.Parse request [21:58:24]Sock 6.Check first char [21:58:24]Sock 6.First char is OK [21:58:24]request: POST /json_proto HTTP/1.0 [21:58:24]Method: POST [21:58:24]URL: /json_proto [21:58:24]Method is POST - this is cgi request [21:58:24]url: /json_proto [21:58:24]query_string will be loaded in cgi processing [21:58:24]execute_cgi json_proto POST (null) [21:58:24]execute_cgi path=json_proto method=POST [21:58:24]POST find Content-Length [21:58:24]Host: 172.17.63.131:8080 [21:58:24]Content-Length: 681 [21:58:24]Content-Type: application/json [21:58:24] [21:58:24]POST finish read [21:58:24]Found Content-Length = 681 [21:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:24]execute_script... [21:58: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)31262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:24]POST & json_proto [21:58:24]process_json_proto [21:58:24]json parsed OK: [21:58:24]protocol is kg_v1.0 [21:58:24]action value=close_receipt [21:58:24]process_action close_receipt [21:58:24]cmd_close_receipt [21:58:24]MH_GetDate [21:58:24]Write to MH i2c: F0 00 00 47 39 6F [21:58:24]Write i2c OK [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: F0 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: F0 09 00 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: F0 09 00 47 39 00 11 66 1D 67 22 05 6E 64 6C [21:58:24]GetLastDocTimeStamp 1729979906 [21:58:24]current date 1729979921 [21:58:24]FM_GetShiftState [21:58:24]SAM_PROTO_GetShiftState [21:58:24]wFMCommunicate request_size=4 [21:58:24]MH_SAM_APDU [21:58:24]CAPDU: 80 13 01 00 [21:58:24]Write to MH i2c: E2 08 00 48 39 80 13 01 00 00 00 00 00 FE [21:58:24]Write i2c OK [21:58:24]MH_I2C_Read... [21:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:24]Read from MH i2c: E2 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: E2 0E 00 [21:58:24]MH_I2C_Read... [21:58:24]Read from MH i2c: E2 0E 00 48 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 77 [21:58:24]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:58:24]wFMCommunicate OK [21:58:24]SAM_PROTO_GetShiftState done [21:58:24]FM_GetShiftState done [21:58:24]opened in 1729902770 [21:58:24]opened+sec_in_day 1729989170 [21:58:24]quantity*price = 100015 [21:58:24]sum+1 = 100017 [21:58:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 316 26.10.2024 21:58 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191953 ФПД: 266054678508827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191953&fm=266054678508827&tin=02508201610067®Number=0000000000091776&sum=100000 [21:58:25]StoreToDocumentArchive [21:58:25]shift 541 fd 191953 [21:58:25]save to /storage/0541/doc_00191953 [21:58:25]save last doc name /storage/0541/doc_00191953 to /storage/kkm_last_doc_name [21:58:25]save OK [21:58:25]Clear old archive folders... [21:58:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:58:25]tlvbuf is 01B0CA70 [21:58:25]SAM_PROTO_ClearQueue [21:58:25]wFMCommunicate request_size=4 [21:58:25]MH_SAM_APDU [21:58:25]CAPDU: 80 09 00 00 [21:58:25]Write to MH i2c: E2 08 00 55 39 80 09 00 00 00 00 00 00 00 [21:58:25]Write i2c OK [21:58:25]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 55 39 00 90 00 02 [21:58:26]RAPDU: 90 00 [21:58:26]wFMCommunicate OK [21:58:26]SAM_PROTO_ClearQueue done [21:58:26]KKMCreateOFDPacket [21:58:26]OFDProtocolAddRootSTLVToBuf [21:58:26]FM_MakeSignedData [21:58:26]FM_MakeSignedData [21:58:26]SAM_PROTO_SignData [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 0D 01 02 [21:58:26]Write to MH i2c: E2 08 00 56 39 80 0D 01 02 00 00 00 00 08 [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 56 39 00 90 00 03 [21:58:26]RAPDU: 90 00 [21:58:26]wFMCommunicate OK [21:58:26]wFMCommunicate request_size=255 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 11 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 ED 02 00 35 04 06 00 F1 [21:58:26]Write to MH i2c: E2 02 01 57 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 11 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 ED 02 00 35 04 06 00 F1 00 00 9E [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 57 39 00 90 00 04 [21:58:26]RAPDU: 90 00 [21:58:26]wFMCommunicate OK [21:58:26]wFMCommunicate request_size=10 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 0D 02 02 05 F9 AE 9A 75 1B [21:58:26]Write to MH i2c: E2 0D 00 58 39 80 0D 02 02 05 00 F9 AE 9A 75 1B 00 00 E6 [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 03 00 58 39 00 90 00 05 [21:58:26]RAPDU: 90 00 [21:58:26]wFMCommunicate OK [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 0D 03 02 [21:58:26]Write to MH i2c: E2 08 00 59 39 80 0D 03 02 00 00 00 00 0D [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 0B 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 0B 00 59 39 00 D4 DF B9 AC C0 10 9A 86 90 00 16 [21:58:26]RAPDU: D4 DF B9 AC C0 10 9A 86 90 00 [21:58:26]wFMCommunicate OK [21:58:26]SAM_PROTO_SignData done [21:58:26]FM_MakeSignedData done [21:58:26]CreateOFDProtocolMessage [21:58:26]wFMCommunicate request_size=4 [21:58:26]MH_SAM_APDU [21:58:26]CAPDU: 80 11 00 00 [21:58:26]Write to MH i2c: E2 08 00 5A 39 80 11 00 00 00 00 00 00 0D [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:26]Read from MH i2c: E2 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 17 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: E2 17 00 5A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 60 [21:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:26]wFMCommunicate OK [21:58:26]CreateOFDProtocolMessage done [21:58:26]OFDSenderStorePacket 191953 [21:58:26]StoreOFDPacket docnum=191953 [21:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 7A 07 01 5B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 11 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 ED 02 00 35 04 06 00 F1 F9 AE 9A 75 1B D4 DF B9 AC C0 10 9A 86 [21:58:26]CheckFolder [21:58:26]dirname=/storage/ofd_packets [21:58:26]CheckFolder done [21:58:26]ProducePacketName [21:58:26]name=ofd_packets/00191953 [21:58:26]NVStorageSaveData ofd_packets/00191953 [21:58:26]File name is /storage/ofd_packets/00191953 [21:58:26]Write 301 bytes [21:58:26]NVStorageSaveData done [21:58:26]OFDSenderStorePacket done [21:58:26]KKMCreateOFDPacket done [21:58:26]NVStorageSaveData kkm_last_timestamp [21:58:26]File name is /storage/kkm_last_timestamp [21:58:26]Write 4 bytes [21:58:26]NVStorageSaveData done [21:58:26]ExternCall_PrintAddStr [21:58:26]wPrintStart [21:58:26]Write to MH i2c: 01 00 00 5B 39 94 [21:58:26]Write i2c OK [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: 01 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: 01 07 00 [21:58:26]MH_I2C_Read... [21:58:26]Read from MH i2c: 01 07 00 5B 39 00 00 00 00 00 FF 0F A9 [21:58:26]RasterBufferAndPrint [21:58:26]line Счет N : (1)31262 [21:58:26]line ИНН: 02508201610067 [21:58:26]line Контрольно-Кассовый Чек [21:58:26]line ПРОДАЖА [21:58:26]line ТРК (МРК, ГНК) : 21 [21:58:26]line Товар: 2710124130 [21:58:26]line Аи-92-К-5 [21:58:26]line 14.950 * 66.90 [21:58:26]line = 1000.16 [21:58:26]line НДС 12% НСП 1% [21:58:26]line > о реализуемом товаре [21:58:26]line ОКРУГЛЕНИЕ: -0.16 [21:58:26]line ИТОГО: 1000.00 [21:58:26]line Внесено: 1000.00 [21:58:26]line СДАЧА: 0.00 [21:58:26]line НСП 1% : 8.85 [21:58:26]line НДС 12% : 106.21 [21:58:26]line Наличными: 1000.00 [21:58:26]line Безнал.: 0.00 [21:58:26]line Место: АЗС № 170 "Партнер Нефть" [21:58:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [21:58:26]line СНО: Общий режим [21:58:26]line Чек 316 26.10.2024 21:58 [21:58:26]line Смена: 541 ФФД: 1.0 [21:58:26]line ЗНМ: 0300000110 [21:58:26]line РНМ: 0000000000091776 [21:58:26]line Версия ККМ: 001 [21:58:26]line ФМ: 0000000000871754 [21:58:26]line ФД: 191953 [21:58:26]line ФПД: 266054678508827 [21:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T215841&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191953&fm=266054678508827&tin=02508201610067®Number=0000000000091776&sum=100000 [21:58:26]OFD Sender: Processing packet 191953 [packets to send 75, broken 74] [21:58:26]ProducePacketName [21:58:26]name=ofd_packets/00191953 [21:58:26]OFD Sender: To server: pG, [21:58:26]CommunicateWithHost lk.salyk.kg:30040 [21:58:26]ConnectInit lk.salyk.kg [21:58:26]written 0, free lines is 4095 [21:58:26]Connected sock=8 [21:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E4 7A 07 01 5B 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 11 66 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 ED 02 00 35 04 06 00 F1 F9 AE 9A 75 1B D4 DF B9 AC C0 10 9A 86 [21:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 76 90 47 00 05 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D1 ED 02 00 F4 03 04 00 DB 0A 1D 67 B6 04 01 00 00 21 6D 6E D1 71 18 19 8A [21:58:27]CommunicateWithHost err = 0 [21:58:27]CheckOFDResponse [21:58:27]1017 (14) - 77093643461234 [21:58:27]1041 (16) - 0000000000871754 [21:58:27]1040 (4) - 191953 [21:58:27]1012 (4) - 26.10.2024 15:29 [21:58:27]1206 (1) - 0 [21:58:27]OFD Sender: Remove packet 191953 [21:58:27]ProducePacketName [21:58:27]name=ofd_packets/00191953 [21:58:27]NVStorageDeleteData [21:58:27]Write to MH i2c: 01 00 00 86 39 BF [21:58:27]Write i2c OK [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: 01 [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: 01 07 00 [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: 01 07 00 86 39 00 00 00 00 00 AF 0C 81 [21:58:27]RasterBufferAndPrint [21:58:27]line [21:58:27]line [21:58:27]line [21:58:27]line [21:58:27]line [21:58:27]written 0, free lines is 3253 [21:58:27]MH_Cut [21:58:27]Write to MH i2c: D1 01 00 8D 39 01 98 [21:58:27]Write i2c OK [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: D1 [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: D1 01 00 [21:58:27]MH_I2C_Read... [21:58:27]Read from MH i2c: D1 01 00 8D 39 00 97 [21:58:27]Write to MH i2c: 01 00 00 8E 39 C7 [21:58:27]Write i2c OK [21:58:27]MH_I2C_Read... [21:58:27]OFD Sender: No OFD packet to send [21:58:28]*** Cut start [21:58:28]*** Partial cut [21:58:28]*** CUTSNS_PIN = 1 [21:58:28]*** CUTSNS_PIN = 0 [21:58:28]*** Brake cut motor [21:58:28]Read from MH i2c: 01 [21:58:28]MH_I2C_Read... [21:58:28]*** Stop cut motor [21:58:28]*** Cut end [21:58:28]Read from MH i2c: 01 07 00 [21:58:28]MH_I2C_Read... [21:58:28]Read from MH i2c: 01 07 00 8E 39 00 00 00 00 00 FF 0F DC [21:58:28]process_action close_receipt done [21:58:28]requested_data is exist [21:58:28]produce_requested_data [21:58:28]requested_item fm.sn is exist - process it [21:58:28]wFMCommunicate request_size=4 [21:58:28]MH_SAM_APDU [21:58:28]CAPDU: 80 11 00 00 [21:58:28]Write to MH i2c: E2 08 00 8F 39 80 11 00 00 00 00 00 00 42 [21:58:28]Write i2c OK [21:58:28]MH_I2C_Read... [21:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:28]Read from MH i2c: E2 [21:58:28]MH_I2C_Read... [21:58:28]Read from MH i2c: E2 17 00 [21:58:28]MH_I2C_Read... [21:58:28]Read from MH i2c: E2 17 00 8F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 95 [21:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [21:58:28]wFMCommunicate OK [21:58:28]requested_item fd.num is exist - process it [21:58:28]SAM_PROTO_GetFieldsCounters [21:58:28]wFMCommunicate request_size=4 [21:58:28]MH_SAM_APDU [21:58:28]CAPDU: 80 13 00 00 [21:58:28]Write to MH i2c: E2 08 00 90 39 80 13 00 00 00 00 00 00 45 [21:58:28]Write i2c OK [21:58:28]MH_I2C_Read... [21:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:28]Read from MH i2c: E2 [21:58:28]MH_I2C_Read... [21:58:28]Read from MH i2c: E2 62 00 [21:58:28]MH_I2C_Read... [21:58:28]Read from MH i2c: E2 62 00 90 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [21:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D1 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:28]wFMCommunicate OK [21:58:28]SAM_PROTO_GetFieldsCounters done [21:58:28]requested_item shift.num is exist - process it [21:58:28]requested_item shift.opened is exist - process it [21:58:28]req_shift_opened [21:58:28]FM_GetShiftState [21:58:28]SAM_PROTO_GetShiftState [21:58:28]wFMCommunicate request_size=4 [21:58:29]MH_SAM_APDU [21:58:29]CAPDU: 80 13 01 00 [21:58:29]Write to MH i2c: E2 08 00 91 39 80 13 01 00 00 00 00 00 47 [21:58:29]Write i2c OK [21:58:29]MH_I2C_Read... [21:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:29]Read from MH i2c: E2 [21:58:29]MH_I2C_Read... [21:58:29]Read from MH i2c: E2 0E 00 [21:58:29]MH_I2C_Read... [21:58:29]Read from MH i2c: E2 0E 00 91 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C0 [21:58:29]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [21:58:29]wFMCommunicate OK [21:58:29]SAM_PROTO_GetShiftState done [21:58:29]FM_GetShiftState done [21:58:29]req_shift_opened done [21:58:29]requested_item shift.open_date is exist - process it [21:58:29]req_shift_open_date [21:58:29]req_shift_open_date done [21:58:29]produce_requested_data done [21:58:29]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191953,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [21:58:29]process_action_free close_receipt [21:58:29]json_value_free [21:58:29]json_value_free done [21:58:29]process_json_proto returns [21:58:29]Send response to host [21:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191953,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [21:58:29]free response buf [21:58:29]execute_script done [21:58:29]execute_script returns [21:58:29]free content buf [21:58:29]Sock 6.Close socket [21:58:29]Sock 6.Thread stoped [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:23]accept exits with 5 [22:06:23]New connection [22:06:23]New thread 3066961252 created [22:06:23]Thread 3066817892 joined [22:06:23]Waiting for new connection... [22:06:23] Sock 5.Parse request [22:06:23]Sock 5.Check first char [22:06:23]Sock 5.First char is OK [22:06:23]request: POST /json_proto HTTP/1.0 [22:06:23]Method: POST [22:06:23]URL: /json_proto [22:06:23]Method is POST - this is cgi request [22:06:23]url: /json_proto [22:06:23]query_string will be loaded in cgi processing [22:06:23]execute_cgi json_proto POST (null) [22:06:23]execute_cgi path=json_proto method=POST [22:06:23]POST find Content-Length [22:06:23]Host: 172.17.63.131:8080 [22:06:23]Content-Length: 673 [22:06:23]Content-Type: application/json [22:06:23] [22:06:23]POST finish read [22:06:23]Found Content-Length = 673 [22:06:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31263", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:23]execute_script... [22:06: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)31263", "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" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:23]POST & json_proto [22:06:23]process_json_proto [22:06:23]json parsed OK: [22:06:23]protocol is kg_v1.0 [22:06:23]action value=close_receipt [22:06:23]process_action close_receipt [22:06:23]cmd_close_receipt [22:06:23]MH_GetDate [22:06:23]Write to MH i2c: F0 00 00 92 39 BA [22:06:23]Write i2c OK [22:06:23]MH_I2C_Read... [22:06:23]Read from MH i2c: F0 [22:06:23]MH_I2C_Read... [22:06:23]Read from MH i2c: F0 09 00 [22:06:23]MH_I2C_Read... [22:06:23]Read from MH i2c: F0 09 00 92 39 00 F0 67 1D 67 22 05 6E 64 97 [22:06:23]GetLastDocTimeStamp 1729979921 [22:06:23]current date 1729980400 [22:06:23]FM_GetShiftState [22:06:23]SAM_PROTO_GetShiftState [22:06:23]wFMCommunicate request_size=4 [22:06:23]MH_SAM_APDU [22:06:23]CAPDU: 80 13 01 00 [22:06:23]Write to MH i2c: E2 08 00 93 39 80 13 01 00 00 00 00 00 49 [22:06:23]Write i2c OK [22:06:23]MH_I2C_Read... [22:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:23]Read from MH i2c: E2 [22:06:23]MH_I2C_Read... [22:06:23]Read from MH i2c: E2 0E 00 [22:06:23]MH_I2C_Read... [22:06:23]Read from MH i2c: E2 0E 00 93 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 C2 [22:06:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:06:23]wFMCommunicate OK [22:06:23]SAM_PROTO_GetShiftState done [22:06:23]FM_GetShiftState done [22:06:23]opened in 1729902770 [22:06:23]opened+sec_in_day 1729989170 [22:06:23]quantity*price = 50063 [22:06:23]sum+1 = 50064 [22:06:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 317 26.10.2024 22:06 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191954 ФПД: 214655905536068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191954&fm=214655905536068&tin=02508201610067®Number=0000000000091776&sum=50000 [22:06:24]StoreToDocumentArchive [22:06:24]shift 541 fd 191954 [22:06:24]save to /storage/0541/doc_00191954 [22:06:24]save last doc name /storage/0541/doc_00191954 to /storage/kkm_last_doc_name [22:06:24]save OK [22:06:24]Clear old archive folders... [22:06:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:06:24]tlvbuf is 01992940 [22:06:24]SAM_PROTO_ClearQueue [22:06:24]wFMCommunicate request_size=4 [22:06:24]MH_SAM_APDU [22:06:24]CAPDU: 80 09 00 00 [22:06:24]Write to MH i2c: E2 08 00 A0 39 80 09 00 00 00 00 00 00 4B [22:06:24]Write i2c OK [22:06:24]MH_I2C_Read... [22:06:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:24]Read from MH i2c: E2 [22:06:24]MH_I2C_Read... [22:06:24]Read from MH i2c: E2 03 00 [22:06:24]MH_I2C_Read... [22:06:24]Read from MH i2c: E2 03 00 A0 39 00 90 00 4D [22:06:24]RAPDU: 90 00 [22:06:24]wFMCommunicate OK [22:06:24]SAM_PROTO_ClearQueue done [22:06:24]KKMCreateOFDPacket [22:06:24]OFDProtocolAddRootSTLVToBuf [22:06:24]FM_MakeSignedData [22:06:24]FM_MakeSignedData [22:06:24]SAM_PROTO_SignData [22:06:24]wFMCommunicate request_size=4 [22:06:24]MH_SAM_APDU [22:06:24]CAPDU: 80 0D 01 02 [22:06:24]Write to MH i2c: E2 08 00 A1 39 80 0D 01 02 00 00 00 00 53 [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:25]Read from MH i2c: E2 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 A1 39 00 90 00 4E [22:06:25]RAPDU: 90 00 [22:06:25]wFMCommunicate OK [22:06:25]wFMCommunicate request_size=255 [22:06:25]MH_SAM_APDU [22:06:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 F0 67 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 ED 02 00 35 04 06 00 C3 3A 78 FF [22:06:25]Write to MH i2c: E2 02 01 A2 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 F0 67 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 ED 02 00 35 04 06 00 C3 3A 78 FF 00 00 D2 [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:25]Read from MH i2c: E2 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 A2 39 00 90 00 4F [22:06:25]RAPDU: 90 00 [22:06:25]wFMCommunicate OK [22:06:25]wFMCommunicate request_size=7 [22:06:25]MH_SAM_APDU [22:06:25]CAPDU: 80 0D 02 02 02 98 44 [22:06:25]Write to MH i2c: E2 0A 00 A3 39 80 0D 02 02 02 00 98 44 00 00 36 [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:25]Read from MH i2c: E2 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 03 00 A3 39 00 90 00 50 [22:06:25]RAPDU: 90 00 [22:06:25]wFMCommunicate OK [22:06:25]wFMCommunicate request_size=4 [22:06:25]MH_SAM_APDU [22:06:25]CAPDU: 80 0D 03 02 [22:06:25]Write to MH i2c: E2 08 00 A4 39 80 0D 03 02 00 00 00 00 58 [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:25]Read from MH i2c: E2 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 0B 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 0B 00 A4 39 00 C2 3F 42 48 E8 C6 26 0D 90 00 C5 [22:06:25]RAPDU: C2 3F 42 48 E8 C6 26 0D 90 00 [22:06:25]wFMCommunicate OK [22:06:25]SAM_PROTO_SignData done [22:06:25]FM_MakeSignedData done [22:06:25]CreateOFDProtocolMessage [22:06:25]wFMCommunicate request_size=4 [22:06:25]MH_SAM_APDU [22:06:25]CAPDU: 80 11 00 00 [22:06:25]Write to MH i2c: E2 08 00 A5 39 80 11 00 00 00 00 00 00 58 [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:25]Read from MH i2c: E2 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 17 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: E2 17 00 A5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 AB [22:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:25]wFMCommunicate OK [22:06:25]CreateOFDProtocolMessage done [22:06:25]OFDSenderStorePacket 191954 [22:06:25]StoreOFDPacket docnum=191954 [22:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 4E 04 01 28 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 F0 67 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 ED 02 00 35 04 06 00 C3 3A 78 FF 98 44 C2 3F 42 48 E8 C6 26 0D [22:06:25]CheckFolder [22:06:25]dirname=/storage/ofd_packets [22:06:25]CheckFolder done [22:06:25]ProducePacketName [22:06:25]name=ofd_packets/00191954 [22:06:25]NVStorageSaveData ofd_packets/00191954 [22:06:25]File name is /storage/ofd_packets/00191954 [22:06:25]Write 298 bytes [22:06:25]NVStorageSaveData done [22:06:25]OFDSenderStorePacket done [22:06:25]KKMCreateOFDPacket done [22:06:25]NVStorageSaveData kkm_last_timestamp [22:06:25]File name is /storage/kkm_last_timestamp [22:06:25]Write 4 bytes [22:06:25]NVStorageSaveData done [22:06:25]ExternCall_PrintAddStr [22:06:25]wPrintStart [22:06:25]Write to MH i2c: 01 00 00 A6 39 DF [22:06:25]Write i2c OK [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: 01 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: 01 07 00 [22:06:25]MH_I2C_Read... [22:06:25]Read from MH i2c: 01 07 00 A6 39 00 00 00 00 00 FF 0F F4 [22:06:25]RasterBufferAndPrint [22:06:25]line Счет N : (1)31263 [22:06:25]line ИНН: 02508201610067 [22:06:25]line Контрольно-Кассовый Чек [22:06:25]line ПРОДАЖА [22:06:25]line ТРК (МРК, ГНК) : 22 [22:06:25]line Товар: 2710194210 [22:06:25]line ДТ-К-5 [22:06:25]line 6.570 * 76.20 [22:06:25]line = 500.63 [22:06:25]line НДС 12% НСП 1% [22:06:25]line > о реализуемом товаре [22:06:25]line ОКРУГЛЕНИЕ: -0.63 [22:06:25]line ИТОГО: 500.00 [22:06:25]line Внесено: 500.00 [22:06:25]line СДАЧА: 0.00 [22:06:25]line НСП 1% : 4.43 [22:06:25]line НДС 12% : 53.16 [22:06:25]line Наличными: 500.00 [22:06:25]line Безнал.: 0.00 [22:06:25]line Место: АЗС № 170 "Партнер Нефть" [22:06:25]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:06:25]line СНО: Общий режим [22:06:25]line Чек 317 26.10.2024 22:06 [22:06:25]line Смена: 541 ФФД: 1.0 [22:06:25]line ЗНМ: 0300000110 [22:06:25]line РНМ: 0000000000091776 [22:06:25]line Версия ККМ: 001 [22:06:25]line ФМ: 0000000000871754 [22:06:25]line ФД: 191954 [22:06:25]line ФПД: 214655905536068 [22:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220640&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191954&fm=214655905536068&tin=02508201610067®Number=0000000000091776&sum=50000 [22:06:25]OFD Sender: Processing packet 191954 [packets to send 75, broken 74] [22:06:25]ProducePacketName [22:06:25]name=ofd_packets/00191954 [22:06:25]OFD Sender: To server: pG, [22:06:25]CommunicateWithHost lk.salyk.kg:30040 [22:06:25]ConnectInit lk.salyk.kg [22:06:25]written 0, free lines is 4095 [22:06:25]Connected sock=8 [22:06:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 4A 4E 04 01 28 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 F0 67 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 ED 02 00 35 04 06 00 C3 3A 78 FF 98 44 C2 3F 42 48 E8 C6 26 0D [22:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 4D 1A 47 00 57 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D2 ED 02 00 F4 03 04 00 BA 0C 1D 67 B6 04 01 00 00 8E 2C 2B E7 B7 ED 5F 7D [22:06:26]CommunicateWithHost err = 0 [22:06:26]CheckOFDResponse [22:06:26]1017 (14) - 77093643461234 [22:06:26]1041 (16) - 0000000000871754 [22:06:26]1040 (4) - 191954 [22:06:26]1012 (4) - 26.10.2024 15:37 [22:06:26]1206 (1) - 0 [22:06:26]OFD Sender: Remove packet 191954 [22:06:26]ProducePacketName [22:06:26]name=ofd_packets/00191954 [22:06:26]NVStorageDeleteData [22:06:26]Write to MH i2c: 01 00 00 D1 39 0A [22:06:26]Write i2c OK [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: 01 [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: 01 07 00 [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: 01 07 00 D1 39 00 00 00 00 00 A7 0C C4 [22:06:26]RasterBufferAndPrint [22:06:26]line [22:06:26]line [22:06:26]line [22:06:26]line [22:06:26]line [22:06:26]written 0, free lines is 3245 [22:06:26]MH_Cut [22:06:26]Write to MH i2c: D1 01 00 D8 39 01 E3 [22:06:26]Write i2c OK [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: D1 [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: D1 01 00 [22:06:26]MH_I2C_Read... [22:06:26]Read from MH i2c: D1 01 00 D8 39 00 E2 [22:06:26]Write to MH i2c: 01 00 00 D9 39 12 [22:06:26]Write i2c OK [22:06:26]MH_I2C_Read... [22:06:26]OFD Sender: No OFD packet to send [22:06:27]*** Cut start [22:06:27]*** Partial cut [22:06:27]*** CUTSNS_PIN = 1 [22:06:27]*** CUTSNS_PIN = 0 [22:06:27]*** Brake cut motor [22:06:27]Read from MH i2c: 01 [22:06:27]MH_I2C_Read... [22:06:27]*** Stop cut motor [22:06:27]*** Cut end [22:06:27]Read from MH i2c: 01 07 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: 01 07 00 D9 39 00 00 00 00 00 FF 0F 27 [22:06:27]process_action close_receipt done [22:06:27]requested_data is exist [22:06:27]produce_requested_data [22:06:27]requested_item fm.sn is exist - process it [22:06:27]wFMCommunicate request_size=4 [22:06:27]MH_SAM_APDU [22:06:27]CAPDU: 80 11 00 00 [22:06:27]Write to MH i2c: E2 08 00 DA 39 80 11 00 00 00 00 00 00 8D [22:06:27]Write i2c OK [22:06:27]MH_I2C_Read... [22:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:27]Read from MH i2c: E2 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 17 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 17 00 DA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 E0 [22:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:06:27]wFMCommunicate OK [22:06:27]requested_item fd.num is exist - process it [22:06:27]SAM_PROTO_GetFieldsCounters [22:06:27]wFMCommunicate request_size=4 [22:06:27]MH_SAM_APDU [22:06:27]CAPDU: 80 13 00 00 [22:06:27]Write to MH i2c: E2 08 00 DB 39 80 13 00 00 00 00 00 00 90 [22:06:27]Write i2c OK [22:06:27]MH_I2C_Read... [22:06:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:27]Read from MH i2c: E2 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 62 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 62 00 DB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [22:06:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D2 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:27]wFMCommunicate OK [22:06:27]SAM_PROTO_GetFieldsCounters done [22:06:27]requested_item shift.num is exist - process it [22:06:27]requested_item shift.opened is exist - process it [22:06:27]req_shift_opened [22:06:27]FM_GetShiftState [22:06:27]SAM_PROTO_GetShiftState [22:06:27]wFMCommunicate request_size=4 [22:06:27]MH_SAM_APDU [22:06:27]CAPDU: 80 13 01 00 [22:06:27]Write to MH i2c: E2 08 00 DC 39 80 13 01 00 00 00 00 00 92 [22:06:27]Write i2c OK [22:06:27]MH_I2C_Read... [22:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:27]Read from MH i2c: E2 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 0E 00 [22:06:27]MH_I2C_Read... [22:06:27]Read from MH i2c: E2 0E 00 DC 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0B [22:06:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:06:27]wFMCommunicate OK [22:06:27]SAM_PROTO_GetShiftState done [22:06:27]FM_GetShiftState done [22:06:27]req_shift_opened done [22:06:27]requested_item shift.open_date is exist - process it [22:06:27]req_shift_open_date [22:06:27]req_shift_open_date done [22:06:27]produce_requested_data done [22:06:27]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191954,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [22:06:27]process_action_free close_receipt [22:06:27]json_value_free [22:06:27]json_value_free done [22:06:27]process_json_proto returns [22:06:27]Send response to host [22:06:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191954,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [22:06:27]free response buf [22:06:27]execute_script done [22:06:27]execute_script returns [22:06:27]free content buf [22:06:27]Sock 5.Close socket [22:06:27]Sock 5.Thread stoped [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:33]accept exits with 6 [22:09:33]New connection [22:09:33]New thread 3066817892 created [22:09:33]Thread 3066961252 joined [22:09:33]Waiting for new connection... [22:09:33] Sock 6.Parse request [22:09:33]Sock 6.Check first char [22:09:33]Sock 6.First char is OK [22:09:33]request: POST /json_proto HTTP/1.0 [22:09:33]Method: POST [22:09:33]URL: /json_proto [22:09:33]Method is POST - this is cgi request [22:09:33]url: /json_proto [22:09:33]query_string will be loaded in cgi processing [22:09:33]execute_cgi json_proto POST (null) [22:09:33]execute_cgi path=json_proto method=POST [22:09:33]POST find Content-Length [22:09:33]Host: 172.17.63.131:8080 [22:09:33]Content-Length: 676 [22:09:33]Content-Type: application/json [22:09:33] [22:09:33]POST finish read [22:09:33]Found Content-Length = 676 [22:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:33]execute_script... [22:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:33]POST & json_proto [22:09:33]process_json_proto [22:09:33]json parsed OK: [22:09:33]protocol is kg_v1.0 [22:09:33]action value=close_receipt [22:09:33]process_action close_receipt [22:09:33]cmd_close_receipt [22:09:33]MH_GetDate [22:09:33]Write to MH i2c: F0 00 00 DD 39 05 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: F0 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: F0 09 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: F0 09 00 DD 39 00 AE 68 1D 67 22 05 6E 64 A1 [22:09:33]GetLastDocTimeStamp 1729980400 [22:09:33]current date 1729980590 [22:09:33]FM_GetShiftState [22:09:33]SAM_PROTO_GetShiftState [22:09:33]wFMCommunicate request_size=4 [22:09:33]MH_SAM_APDU [22:09:33]CAPDU: 80 13 01 00 [22:09:33]Write to MH i2c: E2 08 00 DE 39 80 13 01 00 00 00 00 00 94 [22:09:33]Write i2c OK [22:09:33]MH_I2C_Read... [22:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:33]Read from MH i2c: E2 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0E 00 [22:09:33]MH_I2C_Read... [22:09:33]Read from MH i2c: E2 0E 00 DE 39 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 0D [22:09:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:09:33]wFMCommunicate OK [22:09:33]SAM_PROTO_GetShiftState done [22:09:33]FM_GetShiftState done [22:09:33]opened in 1729902770 [22:09:33]opened+sec_in_day 1729989170 [22:09:33]quantity*price = 50041 [22:09:33]sum+1 = 50042 [22:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 318 26.10.2024 22:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191955 ФПД: 55545629175708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191955&fm=55545629175708&tin=02508201610067®Number=0000000000091776&sum=50000 [22:09:34]StoreToDocumentArchive [22:09:34]shift 541 fd 191955 [22:09:34]save to /storage/0541/doc_00191955 [22:09:34]save last doc name /storage/0541/doc_00191955 to /storage/kkm_last_doc_name [22:09:34]save OK [22:09:34]Clear old archive folders... [22:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:34]tlvbuf is 015C8C30 [22:09:34]SAM_PROTO_ClearQueue [22:09:34]wFMCommunicate request_size=4 [22:09:34]MH_SAM_APDU [22:09:34]CAPDU: 80 09 00 00 [22:09:34]Write to MH i2c: E2 08 00 EB 39 80 09 00 00 00 00 00 00 96 [22:09:34]Write i2c OK [22:09:34]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 EB 39 00 90 00 98 [22:09:35]RAPDU: 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_ClearQueue done [22:09:35]KKMCreateOFDPacket [22:09:35]OFDProtocolAddRootSTLVToBuf [22:09:35]FM_MakeSignedData [22:09:35]FM_MakeSignedData [22:09:35]SAM_PROTO_SignData [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 0D 01 02 [22:09:35]Write to MH i2c: E2 08 00 EC 39 80 0D 01 02 00 00 00 00 9E [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 EC 39 00 90 00 99 [22:09:35]RAPDU: 90 00 [22:09:35]wFMCommunicate OK [22:09:35]wFMCommunicate request_size=255 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 AE 68 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 ED 02 00 35 04 06 00 32 [22:09:35]Write to MH i2c: E2 02 01 ED 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 AE 68 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 ED 02 00 35 04 06 00 32 00 00 1E [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 ED 39 00 90 00 9A [22:09:35]RAPDU: 90 00 [22:09:35]wFMCommunicate OK [22:09:35]wFMCommunicate request_size=10 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 0D 02 02 05 84 B9 7E EF 9C [22:09:35]Write to MH i2c: E2 0D 00 EE 39 80 0D 02 02 05 00 84 B9 7E EF 9C 00 00 F1 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 03 00 EE 39 00 90 00 9B [22:09:35]RAPDU: 90 00 [22:09:35]wFMCommunicate OK [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 0D 03 02 [22:09:35]Write to MH i2c: E2 08 00 EF 39 80 0D 03 02 00 00 00 00 A3 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0B 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 0B 00 EF 39 00 51 E0 5A 68 FE 5B 9A 4B 90 00 D5 [22:09:35]RAPDU: 51 E0 5A 68 FE 5B 9A 4B 90 00 [22:09:35]wFMCommunicate OK [22:09:35]SAM_PROTO_SignData done [22:09:35]FM_MakeSignedData done [22:09:35]CreateOFDProtocolMessage [22:09:35]wFMCommunicate request_size=4 [22:09:35]MH_SAM_APDU [22:09:35]CAPDU: 80 11 00 00 [22:09:35]Write to MH i2c: E2 08 00 F0 39 80 11 00 00 00 00 00 00 A3 [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:35]Read from MH i2c: E2 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: E2 17 00 F0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [22:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:09:35]wFMCommunicate OK [22:09:35]CreateOFDProtocolMessage done [22:09:35]OFDSenderStorePacket 191955 [22:09:35]StoreOFDPacket docnum=191955 [22:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 C8 07 01 D3 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 AE 68 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 ED 02 00 35 04 06 00 32 84 B9 7E EF 9C 51 E0 5A 68 FE 5B 9A 4B [22:09:35]CheckFolder [22:09:35]dirname=/storage/ofd_packets [22:09:35]CheckFolder done [22:09:35]ProducePacketName [22:09:35]name=ofd_packets/00191955 [22:09:35]NVStorageSaveData ofd_packets/00191955 [22:09:35]File name is /storage/ofd_packets/00191955 [22:09:35]Write 301 bytes [22:09:35]NVStorageSaveData done [22:09:35]OFDSenderStorePacket done [22:09:35]KKMCreateOFDPacket done [22:09:35]NVStorageSaveData kkm_last_timestamp [22:09:35]File name is /storage/kkm_last_timestamp [22:09:35]Write 4 bytes [22:09:35]NVStorageSaveData done [22:09:35]ExternCall_PrintAddStr [22:09:35]wPrintStart [22:09:35]Write to MH i2c: 01 00 00 F1 39 2A [22:09:35]Write i2c OK [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: 01 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: 01 07 00 [22:09:35]MH_I2C_Read... [22:09:35]Read from MH i2c: 01 07 00 F1 39 00 00 00 00 00 FF 0F 3F [22:09:35]RasterBufferAndPrint [22:09:35]line Счет N : (1)31264 [22:09:35]line ИНН: 02508201610067 [22:09:35]line Контрольно-Кассовый Чек [22:09:35]line ПРОДАЖА [22:09:35]line ТРК (МРК, ГНК) : 12 [22:09:35]line Товар: 2710124130 [22:09:35]line Аи-92-К-5 [22:09:35]line 7.480 * 66.90 [22:09:35]line = 500.41 [22:09:35]line НДС 12% НСП 1% [22:09:35]line > о реализуемом товаре [22:09:35]line ОКРУГЛЕНИЕ: -0.41 [22:09:35]line ИТОГО: 500.00 [22:09:35]line Внесено: 500.00 [22:09:35]line СДАЧА: 0.00 [22:09:35]line НСП 1% : 4.43 [22:09:35]line НДС 12% : 53.14 [22:09:35]line Наличными: 500.00 [22:09:35]line Безнал.: 0.00 [22:09:35]line Место: АЗС № 170 "Партнер Нефть" [22:09:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:09:35]line СНО: Общий режим [22:09:35]line Чек 318 26.10.2024 22:09 [22:09:35]line Смена: 541 ФФД: 1.0 [22:09:35]line ЗНМ: 0300000110 [22:09:35]line РНМ: 0000000000091776 [22:09:35]line Версия ККМ: 001 [22:09:35]line ФМ: 0000000000871754 [22:09:35]line ФД: 191955 [22:09:35]line ФПД: 55545629175708 [22:09:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T220950&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191955&fm=55545629175708&tin=02508201610067®Number=0000000000091776&sum=50000 [22:09:35]OFD Sender: Processing packet 191955 [packets to send 75, broken 74] [22:09:35]ProducePacketName [22:09:35]name=ofd_packets/00191955 [22:09:35]OFD Sender: To server: pG, [22:09:35]CommunicateWithHost lk.salyk.kg:30040 [22:09:35]ConnectInit lk.salyk.kg [22:09:35]written 0, free lines is 4095 [22:09:35]Connected sock=8 [22:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C6 C8 07 01 D3 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 AE 68 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 ED 02 00 35 04 06 00 32 84 B9 7E EF 9C 51 E0 5A 68 FE 5B 9A 4B [22:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 5B 2E 47 00 CB 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D3 ED 02 00 F4 03 04 00 78 0D 1D 67 B6 04 01 00 00 95 AE 27 C3 08 A1 6B 84 [22:09:36]CommunicateWithHost err = 0 [22:09:36]CheckOFDResponse [22:09:36]1017 (14) - 77093643461234 [22:09:36]1041 (16) - 0000000000871754 [22:09:36]1040 (4) - 191955 [22:09:36]1012 (4) - 26.10.2024 15:40 [22:09:36]1206 (1) - 0 [22:09:36]OFD Sender: Remove packet 191955 [22:09:36]ProducePacketName [22:09:36]name=ofd_packets/00191955 [22:09:36]NVStorageDeleteData [22:09:36]Write to MH i2c: 01 00 00 1C 3A 56 [22:09:36]Write i2c OK [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: 01 [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: 01 07 00 [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: 01 07 00 1C 3A 00 00 00 00 00 A5 0C 0E [22:09:36]RasterBufferAndPrint [22:09:36]line [22:09:36]line [22:09:36]line [22:09:36]line [22:09:36]line [22:09:36]written 0, free lines is 3246 [22:09:36]MH_Cut [22:09:36]Write to MH i2c: D1 01 00 23 3A 01 2F [22:09:36]Write i2c OK [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: D1 [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: D1 01 00 [22:09:36]MH_I2C_Read... [22:09:36]Read from MH i2c: D1 01 00 23 3A 00 2E [22:09:36]Write to MH i2c: 01 00 00 24 3A 5E [22:09:36]Write i2c OK [22:09:36]MH_I2C_Read... [22:09:36]OFD Sender: No OFD packet to send [22:09:37]*** Cut start [22:09:37]*** Partial cut [22:09:37]*** CUTSNS_PIN = 1 [22:09:37]*** CUTSNS_PIN = 0 [22:09:37]*** Brake cut motor [22:09:37]Read from MH i2c: 01 [22:09:37]MH_I2C_Read... [22:09:37]*** Stop cut motor [22:09:37]*** Cut end [22:09:37]Read from MH i2c: 01 07 00 [22:09:37]MH_I2C_Read... [22:09:37]Read from MH i2c: 01 07 00 24 3A 00 00 00 00 00 FF 0F 73 [22:09:37]process_action close_receipt done [22:09:37]requested_data is exist [22:09:37]produce_requested_data [22:09:37]requested_item fm.sn is exist - process it [22:09:37]wFMCommunicate request_size=4 [22:09:37]MH_SAM_APDU [22:09:37]CAPDU: 80 11 00 00 [22:09:37]Write to MH i2c: E2 08 00 25 3A 80 11 00 00 00 00 00 00 D9 [22:09:37]Write i2c OK [22:09:37]MH_I2C_Read... [22:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:37]Read from MH i2c: E2 [22:09:37]MH_I2C_Read... [22:09:37]Read from MH i2c: E2 17 00 [22:09:37]MH_I2C_Read... [22:09:37]Read from MH i2c: E2 17 00 25 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [22:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:09:37]wFMCommunicate OK [22:09:37]requested_item fd.num is exist - process it [22:09:37]SAM_PROTO_GetFieldsCounters [22:09:37]wFMCommunicate request_size=4 [22:09:37]MH_SAM_APDU [22:09:37]CAPDU: 80 13 00 00 [22:09:37]Write to MH i2c: E2 08 00 26 3A 80 13 00 00 00 00 00 00 DC [22:09:37]Write i2c OK [22:09:37]MH_I2C_Read... [22:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:37]Read from MH i2c: E2 [22:09:37]MH_I2C_Read... [22:09:37]Read from MH i2c: E2 62 00 [22:09:37]MH_I2C_Read... [22:09:37]Read from MH i2c: E2 62 00 26 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [22:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D3 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:37]wFMCommunicate OK [22:09:37]SAM_PROTO_GetFieldsCounters done [22:09:37]requested_item shift.num is exist - process it [22:09:37]requested_item shift.opened is exist - process it [22:09:37]req_shift_opened [22:09:37]FM_GetShiftState [22:09:37]SAM_PROTO_GetShiftState [22:09:37]wFMCommunicate request_size=4 [22:09:37]MH_SAM_APDU [22:09:37]CAPDU: 80 13 01 00 [22:09:37]Write to MH i2c: E2 08 00 27 3A 80 13 01 00 00 00 00 00 DE [22:09:37]Write i2c OK [22:09:37]MH_I2C_Read... [22:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:38]Read from MH i2c: E2 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 [22:09:38]MH_I2C_Read... [22:09:38]Read from MH i2c: E2 0E 00 27 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 57 [22:09:38]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:09:38]wFMCommunicate OK [22:09:38]SAM_PROTO_GetShiftState done [22:09:38]FM_GetShiftState done [22:09:38]req_shift_opened done [22:09:38]requested_item shift.open_date is exist - process it [22:09:38]req_shift_open_date [22:09:38]req_shift_open_date done [22:09:38]produce_requested_data done [22:09:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191955,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [22:09:38]process_action_free close_receipt [22:09:38]json_value_free [22:09:38]json_value_free done [22:09:38]process_json_proto returns [22:09:38]Send response to host [22:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191955,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [22:09:38]free response buf [22:09:38]execute_script done [22:09:38]execute_script returns [22:09:38]free content buf [22:09:38]Sock 6.Close socket [22:09:38]Sock 6.Thread stoped [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]ConnectInit Can't connect to host [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:26]accept exits with 5 [22:26:26]New connection [22:26:26]New thread 3066961252 created [22:26:26]Thread 3066817892 joined [22:26:26]Waiting for new connection... [22:26:26] Sock 5.Parse request [22:26:26]Sock 5.Check first char [22:26:26]Sock 5.First char is OK [22:26:26]request: POST /json_proto HTTP/1.0 [22:26:26]Method: POST [22:26:26]URL: /json_proto [22:26:26]Method is POST - this is cgi request [22:26:26]url: /json_proto [22:26:26]query_string will be loaded in cgi processing [22:26:26]execute_cgi json_proto POST (null) [22:26:26]execute_cgi path=json_proto method=POST [22:26:26]POST find Content-Length [22:26:26]Host: 172.17.63.131:8080 [22:26:26]Content-Length: 681 [22:26:26]Content-Type: application/json [22:26:26] [22:26:26]POST finish read [22:26:26]Found Content-Length = 681 [22:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:26]execute_script... [22: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)31265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:26]POST & json_proto [22:26:26]process_json_proto [22:26:26]json parsed OK: [22:26:26]protocol is kg_v1.0 [22:26:26]action value=close_receipt [22:26:26]process_action close_receipt [22:26:26]cmd_close_receipt [22:26:26]MH_GetDate [22:26:26]Write to MH i2c: F0 00 00 28 3A 51 [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: F0 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: F0 09 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: F0 09 00 28 3A 00 A3 6C 1D 67 22 05 6E 64 E6 [22:26:26]GetLastDocTimeStamp 1729980590 [22:26:26]current date 1729981603 [22:26:26]FM_GetShiftState [22:26:26]SAM_PROTO_GetShiftState [22:26:26]wFMCommunicate request_size=4 [22:26:26]MH_SAM_APDU [22:26:26]CAPDU: 80 13 01 00 [22:26:26]Write to MH i2c: E2 08 00 29 3A 80 13 01 00 00 00 00 00 E0 [22:26:26]Write i2c OK [22:26:26]MH_I2C_Read... [22:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:26]Read from MH i2c: E2 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 0E 00 [22:26:26]MH_I2C_Read... [22:26:26]Read from MH i2c: E2 0E 00 29 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 59 [22:26:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:26:26]wFMCommunicate OK [22:26:26]SAM_PROTO_GetShiftState done [22:26:26]FM_GetShiftState done [22:26:26]opened in 1729902770 [22:26:26]opened+sec_in_day 1729989170 [22:26:26]quantity*price = 100015 [22:26:26]sum+1 = 100017 [22:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 319 26.10.2024 22:26 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191956 ФПД: 265729333248564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191956&fm=265729333248564&tin=02508201610067®Number=0000000000091776&sum=100000 [22:26:27]StoreToDocumentArchive [22:26:27]shift 541 fd 191956 [22:26:27]save to /storage/0541/doc_00191956 [22:26:27]save last doc name /storage/0541/doc_00191956 to /storage/kkm_last_doc_name [22:26:27]save OK [22:26:27]Clear old archive folders... [22:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:26:27]tlvbuf is 015C8A30 [22:26:27]SAM_PROTO_ClearQueue [22:26:27]wFMCommunicate request_size=4 [22:26:27]MH_SAM_APDU [22:26:27]CAPDU: 80 09 00 00 [22:26:27]Write to MH i2c: E2 08 00 36 3A 80 09 00 00 00 00 00 00 E2 [22:26:27]Write i2c OK [22:26:27]MH_I2C_Read... [22:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 36 3A 00 90 00 E4 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_ClearQueue done [22:26:28]KKMCreateOFDPacket [22:26:28]OFDProtocolAddRootSTLVToBuf [22:26:28]FM_MakeSignedData [22:26:28]FM_MakeSignedData [22:26:28]SAM_PROTO_SignData [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 01 02 [22:26:28]Write to MH i2c: E2 08 00 37 3A 80 0D 01 02 00 00 00 00 EA [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 37 3A 00 90 00 E5 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=255 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 A3 6C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 ED 02 00 35 04 06 00 F1 [22:26:28]Write to MH i2c: E2 02 01 38 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 A3 6C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 ED 02 00 35 04 06 00 F1 00 00 1E [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 38 3A 00 90 00 E6 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=10 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 02 02 05 AD EE 83 C2 34 [22:26:28]Write to MH i2c: E2 0D 00 39 3A 80 0D 02 02 05 00 AD EE 83 C2 34 00 00 0B [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 03 00 39 3A 00 90 00 E7 [22:26:28]RAPDU: 90 00 [22:26:28]wFMCommunicate OK [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 0D 03 02 [22:26:28]Write to MH i2c: E2 08 00 3A 3A 80 0D 03 02 00 00 00 00 EF [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 0B 00 3A 3A 00 42 E7 D4 5E 87 D8 72 A4 90 00 C0 [22:26:28]RAPDU: 42 E7 D4 5E 87 D8 72 A4 90 00 [22:26:28]wFMCommunicate OK [22:26:28]SAM_PROTO_SignData done [22:26:28]FM_MakeSignedData done [22:26:28]CreateOFDProtocolMessage [22:26:28]wFMCommunicate request_size=4 [22:26:28]MH_SAM_APDU [22:26:28]CAPDU: 80 11 00 00 [22:26:28]Write to MH i2c: E2 08 00 3B 3A 80 11 00 00 00 00 00 00 EF [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:28]Read from MH i2c: E2 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 17 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: E2 17 00 3B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [22:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:26:28]wFMCommunicate OK [22:26:28]CreateOFDProtocolMessage done [22:26:28]OFDSenderStorePacket 191956 [22:26:28]StoreOFDPacket docnum=191956 [22:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 F8 BE 07 01 87 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 A3 6C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 ED 02 00 35 04 06 00 F1 AD EE 83 C2 34 42 E7 D4 5E 87 D8 72 A4 [22:26:28]CheckFolder [22:26:28]dirname=/storage/ofd_packets [22:26:28]CheckFolder done [22:26:28]ProducePacketName [22:26:28]name=ofd_packets/00191956 [22:26:28]NVStorageSaveData ofd_packets/00191956 [22:26:28]File name is /storage/ofd_packets/00191956 [22:26:28]Write 301 bytes [22:26:28]NVStorageSaveData done [22:26:28]OFDSenderStorePacket done [22:26:28]KKMCreateOFDPacket done [22:26:28]NVStorageSaveData kkm_last_timestamp [22:26:28]File name is /storage/kkm_last_timestamp [22:26:28]Write 4 bytes [22:26:28]NVStorageSaveData done [22:26:28]ExternCall_PrintAddStr [22:26:28]wPrintStart [22:26:28]Write to MH i2c: 01 00 00 3C 3A 76 [22:26:28]Write i2c OK [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: 01 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: 01 07 00 [22:26:28]MH_I2C_Read... [22:26:28]Read from MH i2c: 01 07 00 3C 3A 00 00 00 00 00 FF 0F 8B [22:26:28]RasterBufferAndPrint [22:26:28]line Счет N : (1)31265 [22:26:28]line ИНН: 02508201610067 [22:26:28]line Контрольно-Кассовый Чек [22:26:28]line ПРОДАЖА [22:26:28]line ТРК (МРК, ГНК) : 12 [22:26:28]line Товар: 2710124130 [22:26:28]line Аи-92-К-5 [22:26:28]line 14.950 * 66.90 [22:26:28]line = 1000.16 [22:26:28]line НДС 12% НСП 1% [22:26:28]line > о реализуемом товаре [22:26:28]line ОКРУГЛЕНИЕ: -0.16 [22:26:28]line ИТОГО: 1000.00 [22:26:28]line Внесено: 1000.00 [22:26:28]line СДАЧА: 0.00 [22:26:28]line НСП 1% : 8.85 [22:26:28]line НДС 12% : 106.21 [22:26:28]line Наличными: 1000.00 [22:26:28]line Безнал.: 0.00 [22:26:28]line Место: АЗС № 170 "Партнер Нефть" [22:26:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:26:28]line СНО: Общий режим [22:26:28]line Чек 319 26.10.2024 22:26 [22:26:28]line Смена: 541 ФФД: 1.0 [22:26:28]line ЗНМ: 0300000110 [22:26:28]line РНМ: 0000000000091776 [22:26:28]line Версия ККМ: 001 [22:26:28]line ФМ: 0000000000871754 [22:26:28]line ФД: 191956 [22:26:28]line ФПД: 265729333248564 [22:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T222643&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191956&fm=265729333248564&tin=02508201610067®Number=0000000000091776&sum=100000 [22:26:28]OFD Sender: Processing packet 191956 [packets to send 75, broken 74] [22:26:28]ProducePacketName [22:26:28]name=ofd_packets/00191956 [22:26:28]OFD Sender: To server: pG, [22:26:28]CommunicateWithHost lk.salyk.kg:30040 [22:26:28]ConnectInit lk.salyk.kg [22:26:28]written 0, free lines is 4095 [22:26:28]Connected sock=8 [22: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 31 37 35 34 0F 01 00 00 F8 BE 07 01 87 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 A3 6C 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 ED 02 00 35 04 06 00 F1 AD EE 83 C2 34 42 E7 D4 5E 87 D8 72 A4 [22:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DF E1 47 00 57 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D4 ED 02 00 F4 03 04 00 6D 11 1D 67 B6 04 01 00 00 69 B6 A6 B8 BD A5 33 59 [22:26:29]CommunicateWithHost err = 0 [22:26:29]CheckOFDResponse [22:26:29]1017 (14) - 77093643461234 [22:26:29]1041 (16) - 0000000000871754 [22:26:29]1040 (4) - 191956 [22:26:29]1012 (4) - 26.10.2024 15:57 [22:26:29]1206 (1) - 0 [22:26:29]OFD Sender: Remove packet 191956 [22:26:29]ProducePacketName [22:26:29]name=ofd_packets/00191956 [22:26:29]NVStorageDeleteData [22:26:29]Write to MH i2c: 01 00 00 67 3A A1 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: 01 07 00 67 3A 00 00 00 00 00 AB 0C 5F [22:26:29]RasterBufferAndPrint [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]line [22:26:29]written 0, free lines is 3250 [22:26:29]MH_Cut [22:26:29]Write to MH i2c: D1 01 00 6E 3A 01 7A [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 [22:26:29]MH_I2C_Read... [22:26:29]Read from MH i2c: D1 01 00 6E 3A 00 79 [22:26:29]Write to MH i2c: 01 00 00 6F 3A A9 [22:26:29]Write i2c OK [22:26:29]MH_I2C_Read... [22:26:29]OFD Sender: No OFD packet to send [22:26:30]*** Cut start [22:26:30]*** Partial cut [22:26:30]*** CUTSNS_PIN = 1 [22:26:30]*** CUTSNS_PIN = 0 [22:26:30]*** Brake cut motor [22:26:30]Read from MH i2c: 01 [22:26:30]MH_I2C_Read... [22:26:30]*** Stop cut motor [22:26:30]*** Cut end [22:26:30]Read from MH i2c: 01 07 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: 01 07 00 6F 3A 00 00 00 00 00 FF 0F BE [22:26:30]process_action close_receipt done [22:26:30]requested_data is exist [22:26:30]produce_requested_data [22:26:30]requested_item fm.sn is exist - process it [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 11 00 00 [22:26:30]Write to MH i2c: E2 08 00 70 3A 80 11 00 00 00 00 00 00 24 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 17 00 70 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [22:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:26:30]wFMCommunicate OK [22:26:30]requested_item fd.num is exist - process it [22:26:30]SAM_PROTO_GetFieldsCounters [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 13 00 00 [22:26:30]Write to MH i2c: E2 08 00 71 3A 80 13 00 00 00 00 00 00 27 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:30]Read from MH i2c: E2 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 62 00 [22:26:30]MH_I2C_Read... [22:26:30]Read from MH i2c: E2 62 00 71 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [22: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D4 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:30]wFMCommunicate OK [22:26:30]SAM_PROTO_GetFieldsCounters done [22:26:30]requested_item shift.num is exist - process it [22:26:30]requested_item shift.opened is exist - process it [22:26:30]req_shift_opened [22:26:30]FM_GetShiftState [22:26:30]SAM_PROTO_GetShiftState [22:26:30]wFMCommunicate request_size=4 [22:26:30]MH_SAM_APDU [22:26:30]CAPDU: 80 13 01 00 [22:26:30]Write to MH i2c: E2 08 00 72 3A 80 13 01 00 00 00 00 00 29 [22:26:30]Write i2c OK [22:26:30]MH_I2C_Read... [22:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:31]Read from MH i2c: E2 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 [22:26:31]MH_I2C_Read... [22:26:31]Read from MH i2c: E2 0E 00 72 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A2 [22:26:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:26:31]wFMCommunicate OK [22:26:31]SAM_PROTO_GetShiftState done [22:26:31]FM_GetShiftState done [22:26:31]req_shift_opened done [22:26:31]requested_item shift.open_date is exist - process it [22:26:31]req_shift_open_date [22:26:31]req_shift_open_date done [22:26:31]produce_requested_data done [22:26:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191956,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [22:26:31]process_action_free close_receipt [22:26:31]json_value_free [22:26:31]json_value_free done [22:26:31]process_json_proto returns [22:26:31]Send response to host [22:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191956,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [22:26:31]free response buf [22:26:31]execute_script done [22:26:31]execute_script returns [22:26:31]free content buf [22:26:31]Sock 5.Close socket [22:26:31]Sock 5.Thread stoped [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:45]OFD Sender: No OFD packet to send [22:37:50]OFD Sender: No OFD packet to send [22:37:52]accept exits with 6 [22:37:52]New connection [22:37:52]New thread 3066817892 created [22:37:52]Thread 3066961252 joined [22:37:52]Waiting for new connection... [22:37:52] Sock 6.Parse request [22:37:52]Sock 6.Check first char [22:37:52]Sock 6.First char is OK [22:37:52]request: POST /json_proto HTTP/1.0 [22:37:52]Method: POST [22:37:52]URL: /json_proto [22:37:52]Method is POST - this is cgi request [22:37:52]url: /json_proto [22:37:52]query_string will be loaded in cgi processing [22:37:52]execute_cgi json_proto POST (null) [22:37:52]execute_cgi path=json_proto method=POST [22:37:52]POST find Content-Length [22:37:52]Host: 172.17.63.131:8080 [22:37:52]Content-Length: 676 [22:37:52]Content-Type: application/json [22:37:52] [22:37:52]POST finish read [22:37:52]Found Content-Length = 676 [22:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:52]execute_script... [22:37: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)31266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:37:52]POST & json_proto [22:37:52]process_json_proto [22:37:52]json parsed OK: [22:37:52]protocol is kg_v1.0 [22:37:52]action value=close_receipt [22:37:52]process_action close_receipt [22:37:52]cmd_close_receipt [22:37:52]MH_GetDate [22:37:52]Write to MH i2c: F0 00 00 73 3A 9C [22:37:52]Write i2c OK [22:37:52]MH_I2C_Read... [22:37:52]Read from MH i2c: F0 [22:37:52]MH_I2C_Read... [22:37:52]Read from MH i2c: F0 09 00 [22:37:52]MH_I2C_Read... [22:37:52]Read from MH i2c: F0 09 00 73 3A 00 51 6F 1D 67 22 05 6E 64 E2 [22:37:52]GetLastDocTimeStamp 1729981603 [22:37:52]current date 1729982289 [22:37:52]FM_GetShiftState [22:37:52]SAM_PROTO_GetShiftState [22:37:52]wFMCommunicate request_size=4 [22:37:52]MH_SAM_APDU [22:37:52]CAPDU: 80 13 01 00 [22:37:52]Write to MH i2c: E2 08 00 74 3A 80 13 01 00 00 00 00 00 2B [22:37:52]Write i2c OK [22:37:52]MH_I2C_Read... [22:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:52]Read from MH i2c: E2 [22:37:52]MH_I2C_Read... [22:37:52]Read from MH i2c: E2 0E 00 [22:37:52]MH_I2C_Read... [22:37:52]Read from MH i2c: E2 0E 00 74 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A4 [22:37:52]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:37:52]wFMCommunicate OK [22:37:52]SAM_PROTO_GetShiftState done [22:37:52]FM_GetShiftState done [22:37:52]opened in 1729902770 [22:37:52]opened+sec_in_day 1729989170 [22:37:52]quantity*price = 20003 [22:37:52]sum+1 = 20004 [22:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 320 26.10.2024 22:38 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191957 ФПД: 114172496123953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223809&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191957&fm=114172496123953&tin=02508201610067®Number=0000000000091776&sum=20000 [22:37:53]StoreToDocumentArchive [22:37:53]shift 541 fd 191957 [22:37:53]save to /storage/0541/doc_00191957 [22:37:53]save last doc name /storage/0541/doc_00191957 to /storage/kkm_last_doc_name [22:37:53]save OK [22:37:53]Clear old archive folders... [22:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:53]tlvbuf is 017490A0 [22:37:53]SAM_PROTO_ClearQueue [22:37:53]wFMCommunicate request_size=4 [22:37:53]MH_SAM_APDU [22:37:53]CAPDU: 80 09 00 00 [22:37:53]Write to MH i2c: E2 08 00 81 3A 80 09 00 00 00 00 00 00 2D [22:37:53]Write i2c OK [22:37:53]MH_I2C_Read... [22:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:53]Read from MH i2c: E2 [22:37:53]MH_I2C_Read... [22:37:53]Read from MH i2c: E2 03 00 [22:37:53]MH_I2C_Read... [22:37:53]Read from MH i2c: E2 03 00 81 3A 00 90 00 2F [22:37:53]RAPDU: 90 00 [22:37:53]wFMCommunicate OK [22:37:53]SAM_PROTO_ClearQueue done [22:37:53]KKMCreateOFDPacket [22:37:53]OFDProtocolAddRootSTLVToBuf [22:37:53]FM_MakeSignedData [22:37:53]FM_MakeSignedData [22:37:53]SAM_PROTO_SignData [22:37:53]wFMCommunicate request_size=4 [22:37:53]MH_SAM_APDU [22:37:53]CAPDU: 80 0D 01 02 [22:37:53]Write to MH i2c: E2 08 00 82 3A 80 0D 01 02 00 00 00 00 35 [22:37:53]Write i2c OK [22:37:53]MH_I2C_Read... [22:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:53]Read from MH i2c: E2 [22:37:53]MH_I2C_Read... [22:37:53]Read from MH i2c: E2 03 00 [22:37:53]MH_I2C_Read... [22:37:53]Read from MH i2c: E2 03 00 82 3A 00 90 00 30 [22:37:53]RAPDU: 90 00 [22:37:53]wFMCommunicate OK [22:37:53]wFMCommunicate request_size=255 [22:37:53]MH_SAM_APDU [22:37:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 51 6F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 ED 02 00 35 04 06 00 67 [22:37:53]Write to MH i2c: E2 02 01 83 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 51 6F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 ED 02 00 35 04 06 00 67 00 00 5A [22:37:53]Write i2c OK [22:37:53]MH_I2C_Read... [22:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:54]Read from MH i2c: E2 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 03 00 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 03 00 83 3A 00 90 00 31 [22:37:54]RAPDU: 90 00 [22:37:54]wFMCommunicate OK [22:37:54]wFMCommunicate request_size=10 [22:37:54]MH_SAM_APDU [22:37:54]CAPDU: 80 0D 02 02 05 D6 DB 13 18 31 [22:37:54]Write to MH i2c: E2 0D 00 84 3A 80 0D 02 02 05 00 D6 DB 13 18 31 00 00 4F [22:37:54]Write i2c OK [22:37:54]MH_I2C_Read... [22:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:54]Read from MH i2c: E2 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 03 00 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 03 00 84 3A 00 90 00 32 [22:37:54]RAPDU: 90 00 [22:37:54]wFMCommunicate OK [22:37:54]wFMCommunicate request_size=4 [22:37:54]MH_SAM_APDU [22:37:54]CAPDU: 80 0D 03 02 [22:37:54]Write to MH i2c: E2 08 00 85 3A 80 0D 03 02 00 00 00 00 3A [22:37:54]Write i2c OK [22:37:54]MH_I2C_Read... [22:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:54]Read from MH i2c: E2 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 0B 00 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 0B 00 85 3A 00 5C D7 DF AD 10 46 93 D4 90 00 B7 [22:37:54]RAPDU: 5C D7 DF AD 10 46 93 D4 90 00 [22:37:54]wFMCommunicate OK [22:37:54]SAM_PROTO_SignData done [22:37:54]FM_MakeSignedData done [22:37:54]CreateOFDProtocolMessage [22:37:54]wFMCommunicate request_size=4 [22:37:54]MH_SAM_APDU [22:37:54]CAPDU: 80 11 00 00 [22:37:54]Write to MH i2c: E2 08 00 86 3A 80 11 00 00 00 00 00 00 3A [22:37:54]Write i2c OK [22:37:54]MH_I2C_Read... [22:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:54]Read from MH i2c: E2 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 17 00 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: E2 17 00 86 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [22:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:37:54]wFMCommunicate OK [22:37:54]CreateOFDProtocolMessage done [22:37:54]OFDSenderStorePacket 191957 [22:37:54]StoreOFDPacket docnum=191957 [22:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 0F 07 01 24 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 51 6F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 ED 02 00 35 04 06 00 67 D6 DB 13 18 31 5C D7 DF AD 10 46 93 D4 [22:37:54]CheckFolder [22:37:54]dirname=/storage/ofd_packets [22:37:54]CheckFolder done [22:37:54]ProducePacketName [22:37:54]name=ofd_packets/00191957 [22:37:54]NVStorageSaveData ofd_packets/00191957 [22:37:54]File name is /storage/ofd_packets/00191957 [22:37:54]Write 301 bytes [22:37:54]NVStorageSaveData done [22:37:54]OFDSenderStorePacket done [22:37:54]KKMCreateOFDPacket done [22:37:54]NVStorageSaveData kkm_last_timestamp [22:37:54]File name is /storage/kkm_last_timestamp [22:37:54]Write 4 bytes [22:37:54]NVStorageSaveData done [22:37:54]ExternCall_PrintAddStr [22:37:54]wPrintStart [22:37:54]Write to MH i2c: 01 00 00 87 3A C1 [22:37:54]Write i2c OK [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: 01 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: 01 07 00 [22:37:54]MH_I2C_Read... [22:37:54]Read from MH i2c: 01 07 00 87 3A 00 00 00 00 00 FF 0F D6 [22:37:54]RasterBufferAndPrint [22:37:54]line Счет N : (1)31266 [22:37:54]line ИНН: 02508201610067 [22:37:54]line Контрольно-Кассовый Чек [22:37:54]line ПРОДАЖА [22:37:54]line ТРК (МРК, ГНК) : 21 [22:37:54]line Товар: 2710124130 [22:37:54]line Аи-92-К-5 [22:37:54]line 2.990 * 66.90 [22:37:54]line = 200.03 [22:37:54]line НДС 12% НСП 1% [22:37:54]line > о реализуемом товаре [22:37:54]line ОКРУГЛЕНИЕ: -0.03 [22:37:54]line ИТОГО: 200.00 [22:37:54]line Внесено: 200.00 [22:37:54]line СДАЧА: 0.00 [22:37:54]line НСП 1% : 1.77 [22:37:54]line НДС 12% : 21.24 [22:37:54]line Наличными: 200.00 [22:37:54]line Безнал.: 0.00 [22:37:54]line Место: АЗС № 170 "Партнер Нефть" [22:37:54]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:37:54]line СНО: Общий режим [22:37:54]line Чек 320 26.10.2024 22:38 [22:37:54]line Смена: 541 ФФД: 1.0 [22:37:54]line ЗНМ: 0300000110 [22:37:54]line РНМ: 0000000000091776 [22:37:54]line Версия ККМ: 001 [22:37:54]line ФМ: 0000000000871754 [22:37:54]line ФД: 191957 [22:37:54]line ФПД: 114172496123953 [22:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T223809&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191957&fm=114172496123953&tin=02508201610067®Number=0000000000091776&sum=20000 [22:37:54]OFD Sender: Processing packet 191957 [packets to send 75, broken 74] [22:37:54]ProducePacketName [22:37:54]name=ofd_packets/00191957 [22:37:54]OFD Sender: To server: pG, [22:37:54]CommunicateWithHost lk.salyk.kg:30040 [22:37:54]ConnectInit lk.salyk.kg [22:37:54]written 0, free lines is 4095 [22:37:54]Connected sock=8 [22:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 5B 0F 07 01 24 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 51 6F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 ED 02 00 35 04 06 00 67 D6 DB 13 18 31 5C D7 DF AD 10 46 93 D4 [22:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 65 EA 47 00 1F 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D5 ED 02 00 F4 03 04 00 1B 14 1D 67 B6 04 01 00 00 39 5D 48 E7 2C A3 4C A3 [22:37:54]CommunicateWithHost err = 0 [22:37:54]CheckOFDResponse [22:37:54]1017 (14) - 77093643461234 [22:37:54]1041 (16) - 0000000000871754 [22:37:54]1040 (4) - 191957 [22:37:54]1012 (4) - 26.10.2024 16:08 [22:37:54]1206 (1) - 0 [22:37:54]OFD Sender: Remove packet 191957 [22:37:54]ProducePacketName [22:37:54]name=ofd_packets/00191957 [22:37:54]NVStorageDeleteData [22:37:55]Write to MH i2c: 01 00 00 B2 3A EC [22:37:55]Write i2c OK [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: 01 [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: 01 07 00 [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: 01 07 00 B2 3A 00 00 00 00 00 AE 0C AD [22:37:55]RasterBufferAndPrint [22:37:55]line [22:37:55]line [22:37:55]line [22:37:55]line [22:37:55]line [22:37:55]written 0, free lines is 3253 [22:37:55]MH_Cut [22:37:55]Write to MH i2c: D1 01 00 B9 3A 01 C5 [22:37:55]Write i2c OK [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: D1 [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: D1 01 00 [22:37:55]MH_I2C_Read... [22:37:55]Read from MH i2c: D1 01 00 B9 3A 00 C4 [22:37:55]Write to MH i2c: 01 00 00 BA 3A F4 [22:37:55]Write i2c OK [22:37:55]MH_I2C_Read... [22:37:55]OFD Sender: No OFD packet to send [22:37:55]*** Cut start [22:37:55]*** Partial cut [22:37:55]*** CUTSNS_PIN = 1 [22:37:55]*** CUTSNS_PIN = 0 [22:37:56]*** Brake cut motor [22:37:56]Read from MH i2c: 01 [22:37:56]*** Stop cut motor [22:37:56]*** Cut end [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: 01 07 00 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: 01 07 00 BA 3A 00 00 00 00 00 FF 0F 09 [22:37:56]process_action close_receipt done [22:37:56]requested_data is exist [22:37:56]produce_requested_data [22:37:56]requested_item fm.sn is exist - process it [22:37:56]wFMCommunicate request_size=4 [22:37:56]MH_SAM_APDU [22:37:56]CAPDU: 80 11 00 00 [22:37:56]Write to MH i2c: E2 08 00 BB 3A 80 11 00 00 00 00 00 00 6F [22:37:56]Write i2c OK [22:37:56]MH_I2C_Read... [22:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:56]Read from MH i2c: E2 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 17 00 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 17 00 BB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [22:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:37:56]wFMCommunicate OK [22:37:56]requested_item fd.num is exist - process it [22:37:56]SAM_PROTO_GetFieldsCounters [22:37:56]wFMCommunicate request_size=4 [22:37:56]MH_SAM_APDU [22:37:56]CAPDU: 80 13 00 00 [22:37:56]Write to MH i2c: E2 08 00 BC 3A 80 13 00 00 00 00 00 00 72 [22:37:56]Write i2c OK [22:37:56]MH_I2C_Read... [22:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:56]Read from MH i2c: E2 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 62 00 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 62 00 BC 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [22:37:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D5 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:56]wFMCommunicate OK [22:37:56]SAM_PROTO_GetFieldsCounters done [22:37:56]requested_item shift.num is exist - process it [22:37:56]requested_item shift.opened is exist - process it [22:37:56]req_shift_opened [22:37:56]FM_GetShiftState [22:37:56]SAM_PROTO_GetShiftState [22:37:56]wFMCommunicate request_size=4 [22:37:56]MH_SAM_APDU [22:37:56]CAPDU: 80 13 01 00 [22:37:56]Write to MH i2c: E2 08 00 BD 3A 80 13 01 00 00 00 00 00 74 [22:37:56]Write i2c OK [22:37:56]MH_I2C_Read... [22:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:56]Read from MH i2c: E2 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 0E 00 [22:37:56]MH_I2C_Read... [22:37:56]Read from MH i2c: E2 0E 00 BD 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 ED [22:37:56]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:37:56]wFMCommunicate OK [22:37:56]SAM_PROTO_GetShiftState done [22:37:56]FM_GetShiftState done [22:37:56]req_shift_opened done [22:37:56]requested_item shift.open_date is exist - process it [22:37:56]req_shift_open_date [22:37:56]req_shift_open_date done [22:37:56]produce_requested_data done [22:37:56]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191957,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [22:37:56]process_action_free close_receipt [22:37:56]json_value_free [22:37:56]json_value_free done [22:37:56]process_json_proto returns [22:37:56]Send response to host [22:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191957,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [22:37:56]free response buf [22:37:56]execute_script done [22:37:56]execute_script returns [22:37:56]free content buf [22:37:56]Sock 6.Close socket [22:37:56]Sock 6.Thread stoped [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:35]accept exits with 5 [22:48:35]New connection [22:48:35]New thread 3066961252 created [22:48:35]Thread 3066817892 joined [22:48:35]Waiting for new connection... [22:48:35] Sock 5.Parse request [22:48:35]Sock 5.Check first char [22:48:35]Sock 5.First char is OK [22:48:35]request: POST /json_proto HTTP/1.0 [22:48:35]Method: POST [22:48:35]URL: /json_proto [22:48:35]Method is POST - this is cgi request [22:48:35]url: /json_proto [22:48:35]query_string will be loaded in cgi processing [22:48:35]execute_cgi json_proto POST (null) [22:48:35]execute_cgi path=json_proto method=POST [22:48:35]POST find Content-Length [22:48:35]Host: 172.17.63.131:8080 [22:48:35]Content-Length: 676 [22:48:35]Content-Type: application/json [22:48:35] [22:48:35]POST finish read [22:48:35]Found Content-Length = 676 [22:48:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:35]execute_script... [22:48: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)31267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:35]POST & json_proto [22:48:35]process_json_proto [22:48:35]json parsed OK: [22:48:35]protocol is kg_v1.0 [22:48:35]action value=close_receipt [22:48:35]process_action close_receipt [22:48:35]cmd_close_receipt [22:48:35]MH_GetDate [22:48:35]Write to MH i2c: F0 00 00 BE 3A E7 [22:48:35]Write i2c OK [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: F0 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: F0 09 00 [22:48:35]MH_I2C_Read... [22:48:35]Read from MH i2c: F0 09 00 BE 3A 00 D4 71 1D 67 22 05 6E 64 B2 [22:48:35]GetLastDocTimeStamp 1729982289 [22:48:35]current date 1729982932 [22:48:35]FM_GetShiftState [22:48:35]SAM_PROTO_GetShiftState [22:48:35]wFMCommunicate request_size=4 [22:48:35]MH_SAM_APDU [22:48:35]CAPDU: 80 13 01 00 [22:48:35]Write to MH i2c: E2 08 00 BF 3A 80 13 01 00 00 00 00 00 76 [22:48:35]Write i2c OK [22:48:35]MH_I2C_Read... [22:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:36]Read from MH i2c: E2 [22:48:36]MH_I2C_Read... [22:48:36]Read from MH i2c: E2 0E 00 [22:48:36]MH_I2C_Read... [22:48:36]Read from MH i2c: E2 0E 00 BF 3A 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 EF [22:48:36]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:48:36]wFMCommunicate OK [22:48:36]SAM_PROTO_GetShiftState done [22:48:36]FM_GetShiftState done [22:48:36]opened in 1729902770 [22:48:36]opened+sec_in_day 1729989170 [22:48:36]quantity*price = 50041 [22:48:36]sum+1 = 50042 [22:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 321 26.10.2024 22:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191958 ФПД: 125166349046188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224852&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191958&fm=125166349046188&tin=02508201610067®Number=0000000000091776&sum=50000 [22:48:37]StoreToDocumentArchive [22:48:37]shift 541 fd 191958 [22:48:37]save to /storage/0541/doc_00191958 [22:48:37]save last doc name /storage/0541/doc_00191958 to /storage/kkm_last_doc_name [22:48:37]save OK [22:48:37]Clear old archive folders... [22:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:37]tlvbuf is 01960870 [22:48:37]SAM_PROTO_ClearQueue [22:48:37]wFMCommunicate request_size=4 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 09 00 00 [22:48:37]Write to MH i2c: E2 08 00 CC 3A 80 09 00 00 00 00 00 00 78 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 CC 3A 00 90 00 7A [22:48:37]RAPDU: 90 00 [22:48:37]wFMCommunicate OK [22:48:37]SAM_PROTO_ClearQueue done [22:48:37]KKMCreateOFDPacket [22:48:37]OFDProtocolAddRootSTLVToBuf [22:48:37]FM_MakeSignedData [22:48:37]FM_MakeSignedData [22:48:37]SAM_PROTO_SignData [22:48:37]wFMCommunicate request_size=4 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 0D 01 02 [22:48:37]Write to MH i2c: E2 08 00 CD 3A 80 0D 01 02 00 00 00 00 80 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 CD 3A 00 90 00 7B [22:48:37]RAPDU: 90 00 [22:48:37]wFMCommunicate OK [22:48:37]wFMCommunicate request_size=255 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 71 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 ED 02 00 35 04 06 00 71 [22:48:37]Write to MH i2c: E2 02 01 CE 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 71 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 ED 02 00 35 04 06 00 71 00 00 74 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 CE 3A 00 90 00 7C [22:48:37]RAPDU: 90 00 [22:48:37]wFMCommunicate OK [22:48:37]wFMCommunicate request_size=10 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 0D 02 02 05 D6 8F C5 D1 AC [22:48:37]Write to MH i2c: E2 0D 00 CF 3A 80 0D 02 02 05 00 D6 8F C5 D1 AC 00 00 34 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 03 00 CF 3A 00 90 00 7D [22:48:37]RAPDU: 90 00 [22:48:37]wFMCommunicate OK [22:48:37]wFMCommunicate request_size=4 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 0D 03 02 [22:48:37]Write to MH i2c: E2 08 00 D0 3A 80 0D 03 02 00 00 00 00 85 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 0B 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 0B 00 D0 3A 00 FA 03 CE AA 73 FA 2E 4F 90 00 E5 [22:48:37]RAPDU: FA 03 CE AA 73 FA 2E 4F 90 00 [22:48:37]wFMCommunicate OK [22:48:37]SAM_PROTO_SignData done [22:48:37]FM_MakeSignedData done [22:48:37]CreateOFDProtocolMessage [22:48:37]wFMCommunicate request_size=4 [22:48:37]MH_SAM_APDU [22:48:37]CAPDU: 80 11 00 00 [22:48:37]Write to MH i2c: E2 08 00 D1 3A 80 11 00 00 00 00 00 00 85 [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:37]Read from MH i2c: E2 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 17 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: E2 17 00 D1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [22:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:48:37]wFMCommunicate OK [22:48:37]CreateOFDProtocolMessage done [22:48:37]OFDSenderStorePacket 191958 [22:48:37]StoreOFDPacket docnum=191958 [22:48:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 D1 07 01 36 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 71 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 ED 02 00 35 04 06 00 71 D6 8F C5 D1 AC FA 03 CE AA 73 FA 2E 4F [22:48:37]CheckFolder [22:48:37]dirname=/storage/ofd_packets [22:48:37]CheckFolder done [22:48:37]ProducePacketName [22:48:37]name=ofd_packets/00191958 [22:48:37]NVStorageSaveData ofd_packets/00191958 [22:48:37]File name is /storage/ofd_packets/00191958 [22:48:37]Write 301 bytes [22:48:37]NVStorageSaveData done [22:48:37]OFDSenderStorePacket done [22:48:37]KKMCreateOFDPacket done [22:48:37]NVStorageSaveData kkm_last_timestamp [22:48:37]File name is /storage/kkm_last_timestamp [22:48:37]Write 4 bytes [22:48:37]NVStorageSaveData done [22:48:37]ExternCall_PrintAddStr [22:48:37]wPrintStart [22:48:37]Write to MH i2c: 01 00 00 D2 3A 0C [22:48:37]Write i2c OK [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: 01 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: 01 07 00 [22:48:37]MH_I2C_Read... [22:48:37]Read from MH i2c: 01 07 00 D2 3A 00 00 00 00 00 FF 0F 21 [22:48:37]RasterBufferAndPrint [22:48:37]line Счет N : (1)31267 [22:48:37]line ИНН: 02508201610067 [22:48:37]line Контрольно-Кассовый Чек [22:48:37]line ПРОДАЖА [22:48:37]line ТРК (МРК, ГНК) : 12 [22:48:37]line Товар: 2710124130 [22:48:37]line Аи-92-К-5 [22:48:37]line 7.480 * 66.90 [22:48:37]line = 500.41 [22:48:37]line НДС 12% НСП 1% [22:48:37]line > о реализуемом товаре [22:48:37]line ОКРУГЛЕНИЕ: -0.41 [22:48:37]line ИТОГО: 500.00 [22:48:37]line Внесено: 500.00 [22:48:37]line СДАЧА: 0.00 [22:48:37]line НСП 1% : 4.43 [22:48:37]line НДС 12% : 53.14 [22:48:37]line Наличными: 500.00 [22:48:37]line Безнал.: 0.00 [22:48:37]line Место: АЗС № 170 "Партнер Нефть" [22:48:37]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [22:48:37]line СНО: Общий режим [22:48:37]line Чек 321 26.10.2024 22:48 [22:48:37]line Смена: 541 ФФД: 1.0 [22:48:37]line ЗНМ: 0300000110 [22:48:37]line РНМ: 0000000000091776 [22:48:37]line Версия ККМ: 001 [22:48:37]line ФМ: 0000000000871754 [22:48:37]line ФД: 191958 [22:48:37]line ФПД: 125166349046188 [22:48:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T224852&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191958&fm=125166349046188&tin=02508201610067®Number=0000000000091776&sum=50000 [22:48:38]OFD Sender: Processing packet 191958 [packets to send 75, broken 74] [22:48:38]ProducePacketName [22:48:38]name=ofd_packets/00191958 [22:48:38]OFD Sender: To server: pG, [22:48:38]CommunicateWithHost lk.salyk.kg:30040 [22:48:38]ConnectInit lk.salyk.kg [22:48:38]written 0, free lines is 4095 [22:48:38]Connected sock=8 [22:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 73 D1 07 01 36 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 D4 71 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 ED 02 00 35 04 06 00 71 D6 8F C5 D1 AC FA 03 CE AA 73 FA 2E 4F [22:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C1 1D 47 00 12 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D6 ED 02 00 F4 03 04 00 9E 16 1D 67 B6 04 01 00 00 67 49 4A 17 89 61 14 D2 [22:48:38]CommunicateWithHost err = 0 [22:48:38]CheckOFDResponse [22:48:38]1017 (14) - 77093643461234 [22:48:38]1041 (16) - 0000000000871754 [22:48:38]1040 (4) - 191958 [22:48:38]1012 (4) - 26.10.2024 16:19 [22:48:38]1206 (1) - 0 [22:48:38]OFD Sender: Remove packet 191958 [22:48:38]ProducePacketName [22:48:38]name=ofd_packets/00191958 [22:48:38]NVStorageDeleteData [22:48:38]Write to MH i2c: 01 00 00 FD 3A 37 [22:48:38]Write i2c OK [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: 01 [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: 01 07 00 [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: 01 07 00 FD 3A 00 00 00 00 00 AA 0C F4 [22:48:38]RasterBufferAndPrint [22:48:38]line [22:48:38]line [22:48:38]line [22:48:38]line [22:48:38]line [22:48:38]written 0, free lines is 3248 [22:48:38]MH_Cut [22:48:38]Write to MH i2c: D1 01 00 04 3B 01 11 [22:48:38]Write i2c OK [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: D1 [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: D1 01 00 [22:48:38]MH_I2C_Read... [22:48:38]Read from MH i2c: D1 01 00 04 3B 00 10 [22:48:38]Write to MH i2c: 01 00 00 05 3B 40 [22:48:38]Write i2c OK [22:48:38]MH_I2C_Read... [22:48:38]OFD Sender: No OFD packet to send [22:48:39]*** Cut start [22:48:39]*** Partial cut [22:48:39]*** CUTSNS_PIN = 1 [22:48:39]*** CUTSNS_PIN = 0 [22:48:39]*** Brake cut motor [22:48:39]Read from MH i2c: 01 [22:48:39]MH_I2C_Read... [22:48:39]*** Stop cut motor [22:48:39]*** Cut end [22:48:39]Read from MH i2c: 01 07 00 [22:48:39]MH_I2C_Read... [22:48:39]Read from MH i2c: 01 07 00 05 3B 00 00 00 00 00 FF 0F 55 [22:48:39]process_action close_receipt done [22:48:39]requested_data is exist [22:48:39]produce_requested_data [22:48:39]requested_item fm.sn is exist - process it [22:48:39]wFMCommunicate request_size=4 [22:48:39]MH_SAM_APDU [22:48:39]CAPDU: 80 11 00 00 [22:48:39]Write to MH i2c: E2 08 00 06 3B 80 11 00 00 00 00 00 00 BB [22:48:39]Write i2c OK [22:48:39]MH_I2C_Read... [22:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:40]Read from MH i2c: E2 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 17 00 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 17 00 06 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0E [22:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [22:48:40]wFMCommunicate OK [22:48:40]requested_item fd.num is exist - process it [22:48:40]SAM_PROTO_GetFieldsCounters [22:48:40]wFMCommunicate request_size=4 [22:48:40]MH_SAM_APDU [22:48:40]CAPDU: 80 13 00 00 [22:48:40]Write to MH i2c: E2 08 00 07 3B 80 13 00 00 00 00 00 00 BE [22:48:40]Write i2c OK [22:48:40]MH_I2C_Read... [22:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:40]Read from MH i2c: E2 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 62 00 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 62 00 07 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D6 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:40]wFMCommunicate OK [22:48:40]SAM_PROTO_GetFieldsCounters done [22:48:40]requested_item shift.num is exist - process it [22:48:40]requested_item shift.opened is exist - process it [22:48:40]req_shift_opened [22:48:40]FM_GetShiftState [22:48:40]SAM_PROTO_GetShiftState [22:48:40]wFMCommunicate request_size=4 [22:48:40]MH_SAM_APDU [22:48:40]CAPDU: 80 13 01 00 [22:48:40]Write to MH i2c: E2 08 00 08 3B 80 13 01 00 00 00 00 00 C0 [22:48:40]Write i2c OK [22:48:40]MH_I2C_Read... [22:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:40]Read from MH i2c: E2 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 0E 00 [22:48:40]MH_I2C_Read... [22:48:40]Read from MH i2c: E2 0E 00 08 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 39 [22:48:40]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [22:48:40]wFMCommunicate OK [22:48:40]SAM_PROTO_GetShiftState done [22:48:40]FM_GetShiftState done [22:48:40]req_shift_opened done [22:48:40]requested_item shift.open_date is exist - process it [22:48:40]req_shift_open_date [22:48:40]req_shift_open_date done [22:48:40]produce_requested_data done [22:48:40]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191958,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [22:48:40]process_action_free close_receipt [22:48:40]json_value_free [22:48:40]json_value_free done [22:48:40]process_json_proto returns [22:48:40]Send response to host [22:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191958,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [22:48:40]free response buf [22:48:40]execute_script done [22:48:40]execute_script returns [22:48:40]free content buf [22:48:40]Sock 5.Close socket [22:48:40]Sock 5.Thread stoped [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:17]accept exits with 6 [23:04:17]New connection [23:04:17]New thread 3066817892 created [23:04:17]Thread 3066961252 joined [23:04:17]Waiting for new connection... [23:04:17] Sock 6.Parse request [23:04:17]Sock 6.Check first char [23:04:17]Sock 6.First char is OK [23:04:17]request: POST /json_proto HTTP/1.0 [23:04:17]Method: POST [23:04:17]URL: /json_proto [23:04:17]Method is POST - this is cgi request [23:04:17]url: /json_proto [23:04:17]query_string will be loaded in cgi processing [23:04:17]execute_cgi json_proto POST (null) [23:04:17]execute_cgi path=json_proto method=POST [23:04:17]POST find Content-Length [23:04:17]Host: 172.17.63.131:8080 [23:04:17]Content-Length: 681 [23:04:17]Content-Type: application/json [23:04:17] [23:04:17]POST finish read [23:04:17]Found Content-Length = 681 [23:04:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:17]execute_script... [23:04: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)31268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:17]POST & json_proto [23:04:17]process_json_proto [23:04:17]json parsed OK: [23:04:17]protocol is kg_v1.0 [23:04:17]action value=close_receipt [23:04:17]process_action close_receipt [23:04:17]cmd_close_receipt [23:04:17]MH_GetDate [23:04:17]Write to MH i2c: F0 00 00 09 3B 33 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: F0 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: F0 09 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: F0 09 00 09 3B 00 82 75 1D 67 22 05 6E 64 B0 [23:04:17]GetLastDocTimeStamp 1729982932 [23:04:17]current date 1729983874 [23:04:17]FM_GetShiftState [23:04:17]SAM_PROTO_GetShiftState [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 13 01 00 [23:04:17]Write to MH i2c: E2 08 00 0A 3B 80 13 01 00 00 00 00 00 C2 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 0E 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 0E 00 0A 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 3B [23:04:17]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:04:17]wFMCommunicate OK [23:04:17]SAM_PROTO_GetShiftState done [23:04:17]FM_GetShiftState done [23:04:17]opened in 1729902770 [23:04:17]opened+sec_in_day 1729989170 [23:04:17]quantity*price = 100015 [23:04:17]sum+1 = 100017 [23:04:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 322 26.10.2024 23:04 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191959 ФПД: 67570984913785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191959&fm=67570984913785&tin=02508201610067®Number=0000000000091776&sum=100000 [23:04:18]StoreToDocumentArchive [23:04:18]shift 541 fd 191959 [23:04:18]save to /storage/0541/doc_00191959 [23:04:18]save last doc name /storage/0541/doc_00191959 to /storage/kkm_last_doc_name [23:04:18]save OK [23:04:18]Clear old archive folders... [23:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:18]tlvbuf is 01A242E0 [23:04:18]SAM_PROTO_ClearQueue [23:04:18]wFMCommunicate request_size=4 [23:04:18]MH_SAM_APDU [23:04:18]CAPDU: 80 09 00 00 [23:04:18]Write to MH i2c: E2 08 00 17 3B 80 09 00 00 00 00 00 00 C4 [23:04:18]Write i2c OK [23:04:18]MH_I2C_Read... [23:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 17 3B 00 90 00 C6 [23:04:19]RAPDU: 90 00 [23:04:19]wFMCommunicate OK [23:04:19]SAM_PROTO_ClearQueue done [23:04:19]KKMCreateOFDPacket [23:04:19]OFDProtocolAddRootSTLVToBuf [23:04:19]FM_MakeSignedData [23:04:19]FM_MakeSignedData [23:04:19]SAM_PROTO_SignData [23:04:19]wFMCommunicate request_size=4 [23:04:19]MH_SAM_APDU [23:04:19]CAPDU: 80 0D 01 02 [23:04:19]Write to MH i2c: E2 08 00 18 3B 80 0D 01 02 00 00 00 00 CC [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 18 3B 00 90 00 C7 [23:04:19]RAPDU: 90 00 [23:04:19]wFMCommunicate OK [23:04:19]wFMCommunicate request_size=255 [23:04:19]MH_SAM_APDU [23:04: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 82 75 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 ED 02 00 35 04 06 00 3D [23:04:19]Write to MH i2c: E2 02 01 19 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 82 75 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 ED 02 00 35 04 06 00 3D 00 00 3A [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 19 3B 00 90 00 C8 [23:04:19]RAPDU: 90 00 [23:04:19]wFMCommunicate OK [23:04:19]wFMCommunicate request_size=10 [23:04:19]MH_SAM_APDU [23:04:19]CAPDU: 80 0D 02 02 05 74 98 8D 8B 79 [23:04:19]Write to MH i2c: E2 0D 00 1A 3B 80 0D 02 02 05 00 74 98 8D 8B 79 00 00 76 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 03 00 1A 3B 00 90 00 C9 [23:04:19]RAPDU: 90 00 [23:04:19]wFMCommunicate OK [23:04:19]wFMCommunicate request_size=4 [23:04:19]MH_SAM_APDU [23:04:19]CAPDU: 80 0D 03 02 [23:04:19]Write to MH i2c: E2 08 00 1B 3B 80 0D 03 02 00 00 00 00 D1 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 0B 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 0B 00 1B 3B 00 10 6F F4 0B 17 C8 B9 41 90 00 29 [23:04:19]RAPDU: 10 6F F4 0B 17 C8 B9 41 90 00 [23:04:19]wFMCommunicate OK [23:04:19]SAM_PROTO_SignData done [23:04:19]FM_MakeSignedData done [23:04:19]CreateOFDProtocolMessage [23:04:19]wFMCommunicate request_size=4 [23:04:19]MH_SAM_APDU [23:04:19]CAPDU: 80 11 00 00 [23:04:19]Write to MH i2c: E2 08 00 1C 3B 80 11 00 00 00 00 00 00 D1 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:19]Read from MH i2c: E2 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 17 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: E2 17 00 1C 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 24 [23:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:04:19]wFMCommunicate OK [23:04:19]CreateOFDProtocolMessage done [23:04:19]OFDSenderStorePacket 191959 [23:04:19]StoreOFDPacket docnum=191959 [23:04:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 BC 07 01 B0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 82 75 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 ED 02 00 35 04 06 00 3D 74 98 8D 8B 79 10 6F F4 0B 17 C8 B9 41 [23:04:19]CheckFolder [23:04:19]dirname=/storage/ofd_packets [23:04:19]CheckFolder done [23:04:19]ProducePacketName [23:04:19]name=ofd_packets/00191959 [23:04:19]NVStorageSaveData ofd_packets/00191959 [23:04:19]File name is /storage/ofd_packets/00191959 [23:04:19]Write 301 bytes [23:04:19]NVStorageSaveData done [23:04:19]OFDSenderStorePacket done [23:04:19]KKMCreateOFDPacket done [23:04:19]NVStorageSaveData kkm_last_timestamp [23:04:19]File name is /storage/kkm_last_timestamp [23:04:19]Write 4 bytes [23:04:19]NVStorageSaveData done [23:04:19]ExternCall_PrintAddStr [23:04:19]wPrintStart [23:04:19]Write to MH i2c: 01 00 00 1D 3B 58 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 07 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 07 00 1D 3B 00 00 00 00 00 FF 0F 6D [23:04:19]RasterBufferAndPrint [23:04:19]line Счет N : (1)31268 [23:04:19]line ИНН: 02508201610067 [23:04:19]line Контрольно-Кассовый Чек [23:04:19]line ПРОДАЖА [23:04:19]line ТРК (МРК, ГНК) : 21 [23:04:19]line Товар: 2710124130 [23:04:19]line Аи-92-К-5 [23:04:19]line 14.950 * 66.90 [23:04:19]line = 1000.16 [23:04:19]line НДС 12% НСП 1% [23:04:19]line > о реализуемом товаре [23:04:19]line ОКРУГЛЕНИЕ: -0.16 [23:04:19]line ИТОГО: 1000.00 [23:04:19]line Внесено: 1000.00 [23:04:19]line СДАЧА: 0.00 [23:04:19]line НСП 1% : 8.85 [23:04:19]line НДС 12% : 106.21 [23:04:19]line Наличными: 1000.00 [23:04:19]line Безнал.: 0.00 [23:04:19]line Место: АЗС № 170 "Партнер Нефть" [23:04:19]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:04:19]line СНО: Общий режим [23:04:19]line Чек 322 26.10.2024 23:04 [23:04:19]line Смена: 541 ФФД: 1.0 [23:04:19]line ЗНМ: 0300000110 [23:04:19]line РНМ: 0000000000091776 [23:04:19]line Версия ККМ: 001 [23:04:19]line ФМ: 0000000000871754 [23:04:19]line ФД: 191959 [23:04:19]line ФПД: 67570984913785 [23:04:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230434&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191959&fm=67570984913785&tin=02508201610067®Number=0000000000091776&sum=100000 [23:04:19]OFD Sender: Processing packet 191959 [packets to send 75, broken 74] [23:04:19]ProducePacketName [23:04:19]name=ofd_packets/00191959 [23:04:19]OFD Sender: To server: pG, [23:04:19]CommunicateWithHost lk.salyk.kg:30040 [23:04:19]ConnectInit lk.salyk.kg [23:04:19]written 0, free lines is 4095 [23:04:19]Connected sock=8 [23:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 09 BC 07 01 B0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 82 75 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D7 ED 02 00 35 04 06 00 3D 74 98 8D 8B 79 10 6F F4 0B 17 C8 B9 41 [23:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1C 7B 47 00 39 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 31 37 35 34 10 04 04 00 D7 ED 02 00 F4 03 04 00 4C 1A 1D 67 B6 04 01 00 00 A3 AC 71 6C 09 66 FD FC [23:04:20]CommunicateWithHost err = 0 [23:04:20]CheckOFDResponse [23:04:20]1017 (14) - 77093643461234 [23:04:20]1041 (16) - 0000000000871754 [23:04:20]1040 (4) - 191959 [23:04:20]1012 (4) - 26.10.2024 16:35 [23:04:20]1206 (1) - 0 [23:04:20]OFD Sender: Remove packet 191959 [23:04:20]ProducePacketName [23:04:20]name=ofd_packets/00191959 [23:04:20]NVStorageDeleteData [23:04:20]Write to MH i2c: 01 00 00 48 3B 83 [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: 01 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: 01 07 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: 01 07 00 48 3B 00 00 00 00 00 A3 0C 39 [23:04:20]RasterBufferAndPrint [23:04:20]line [23:04:20]line [23:04:20]line [23:04:20]line [23:04:20]line [23:04:20]written 0, free lines is 3241 [23:04:20]MH_Cut [23:04:20]Write to MH i2c: D1 01 00 4F 3B 01 5C [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: D1 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: D1 01 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: D1 01 00 4F 3B 00 5B [23:04:20]Write to MH i2c: 01 00 00 50 3B 8B [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]OFD Sender: No OFD packet to send [23:04:21]*** Cut start [23:04:21]*** Partial cut [23:04:21]*** CUTSNS_PIN = 1 [23:04:21]*** CUTSNS_PIN = 0 [23:04:21]*** Brake cut motor [23:04:21]Read from MH i2c: 01 [23:04:21]MH_I2C_Read... [23:04:21]*** Stop cut motor [23:04:21]*** Cut end [23:04:21]Read from MH i2c: 01 07 00 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: 01 07 00 50 3B 00 00 00 00 00 FF 0F A0 [23:04:21]process_action close_receipt done [23:04:21]requested_data is exist [23:04:21]produce_requested_data [23:04:21]requested_item fm.sn is exist - process it [23:04:21]wFMCommunicate request_size=4 [23:04:21]MH_SAM_APDU [23:04:21]CAPDU: 80 11 00 00 [23:04:21]Write to MH i2c: E2 08 00 51 3B 80 11 00 00 00 00 00 00 06 [23:04:21]Write i2c OK [23:04:21]MH_I2C_Read... [23:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:21]Read from MH i2c: E2 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 17 00 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 17 00 51 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 59 [23:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:04:21]wFMCommunicate OK [23:04:21]requested_item fd.num is exist - process it [23:04:21]SAM_PROTO_GetFieldsCounters [23:04:21]wFMCommunicate request_size=4 [23:04:21]MH_SAM_APDU [23:04:21]CAPDU: 80 13 00 00 [23:04:21]Write to MH i2c: E2 08 00 52 3B 80 13 00 00 00 00 00 00 09 [23:04:21]Write i2c OK [23:04:21]MH_I2C_Read... [23:04:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:21]Read from MH i2c: E2 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 62 00 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 62 00 52 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:04:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D7 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:21]wFMCommunicate OK [23:04:21]SAM_PROTO_GetFieldsCounters done [23:04:21]requested_item shift.num is exist - process it [23:04:21]requested_item shift.opened is exist - process it [23:04:21]req_shift_opened [23:04:21]FM_GetShiftState [23:04:21]SAM_PROTO_GetShiftState [23:04:21]wFMCommunicate request_size=4 [23:04:21]MH_SAM_APDU [23:04:21]CAPDU: 80 13 01 00 [23:04:21]Write to MH i2c: E2 08 00 53 3B 80 13 01 00 00 00 00 00 0B [23:04:21]Write i2c OK [23:04:21]MH_I2C_Read... [23:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:21]Read from MH i2c: E2 [23:04:21]MH_I2C_Read... [23:04:21]Read from MH i2c: E2 0E 00 [23:04:22]MH_I2C_Read... [23:04:22]Read from MH i2c: E2 0E 00 53 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 84 [23:04:22]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:04:22]wFMCommunicate OK [23:04:22]SAM_PROTO_GetShiftState done [23:04:22]FM_GetShiftState done [23:04:22]req_shift_opened done [23:04:22]requested_item shift.open_date is exist - process it [23:04:22]req_shift_open_date [23:04:22]req_shift_open_date done [23:04:22]produce_requested_data done [23:04:22]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191959,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:04:22]process_action_free close_receipt [23:04:22]json_value_free [23:04:22]json_value_free done [23:04:22]process_json_proto returns [23:04:22]Send response to host [23:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191959,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:04:22]free response buf [23:04:22]execute_script done [23:04:22]execute_script returns [23:04:22]free content buf [23:04:22]Sock 6.Close socket [23:04:22]Sock 6.Thread stoped [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:26]accept exits with 5 [23:09:26]New connection [23:09:26]New thread 3066961252 created [23:09:26]Thread 3066817892 joined [23:09:26]Waiting for new connection... [23:09:26] Sock 5.Parse request [23:09:26]Sock 5.Check first char [23:09:26]Sock 5.First char is OK [23:09:26]request: POST /json_proto HTTP/1.0 [23:09:26]Method: POST [23:09:26]URL: /json_proto [23:09:26]Method is POST - this is cgi request [23:09:26]url: /json_proto [23:09:26]query_string will be loaded in cgi processing [23:09:26]execute_cgi json_proto POST (null) [23:09:26]execute_cgi path=json_proto method=POST [23:09:26]POST find Content-Length [23:09:26]Host: 172.17.63.131:8080 [23:09:26]Content-Length: 977 [23:09:26]Content-Type: application/json [23:09:26] [23:09:26]POST finish read [23:09:26]Found Content-Length = 977 [23:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 40.210, "sum" : 3023.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.21 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 3023.00, "payments": [ { "type": 0, "sum" : 3023.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:26]execute_script... [23:09: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)31269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 40.210, "sum" : 3023.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 40.21 \u0441\u043E\u043C", "deposit" : 5000.00, "total" : 3023.00, "payments": [ { "type": 0, "sum" : 3023.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:26]POST & json_proto [23:09:26]process_json_proto [23:09:26]json parsed OK: [23:09:26]protocol is kg_v1.0 [23:09:26]action value=close_receipt [23:09:26]process_action close_receipt [23:09:26]cmd_close_receipt [23:09:26]MH_GetDate [23:09:26]Write to MH i2c: F0 00 00 54 3B 7E [23:09:26]Write i2c OK [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: F0 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: F0 09 00 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: F0 09 00 54 3B 00 B7 76 1D 67 22 05 6E 64 31 [23:09:26]GetLastDocTimeStamp 1729983874 [23:09:26]current date 1729984183 [23:09:26]FM_GetShiftState [23:09:26]SAM_PROTO_GetShiftState [23:09:26]wFMCommunicate request_size=4 [23:09:26]MH_SAM_APDU [23:09:26]CAPDU: 80 13 01 00 [23:09:26]Write to MH i2c: E2 08 00 55 3B 80 13 01 00 00 00 00 00 0D [23:09:26]Write i2c OK [23:09:26]MH_I2C_Read... [23:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:26]Read from MH i2c: E2 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: E2 0E 00 [23:09:26]MH_I2C_Read... [23:09:26]Read from MH i2c: E2 0E 00 55 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 86 [23:09:26]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:09:26]wFMCommunicate OK [23:09:26]SAM_PROTO_GetShiftState done [23:09:26]FM_GetShiftState done [23:09:26]opened in 1729902770 [23:09:26]opened+sec_in_day 1729989170 [23:09:26]quantity*price = 302379 [23:09:26]sum+1 = 302380 [23:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.79 ИТОГО: 3023.00 Внесено: 5000.00 СДАЧА: 1977.00 НСП 1% : 26.76 НДС 12% : 321.11 Наличными: 3023.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 323 26.10.2024 23:09 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа ДТ номер 170 сэкономлено 40.21 сом ФМ: 0000000000871754 ФД: 191960 ФПД: 109661528600897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191960&fm=109661528600897&tin=02508201610067®Number=0000000000091776&sum=302300 [23:09:28]StoreToDocumentArchive [23:09:28]shift 541 fd 191960 [23:09:28]save to /storage/0541/doc_00191960 [23:09:28]save last doc name /storage/0541/doc_00191960 to /storage/kkm_last_doc_name [23:09:28]save OK [23:09:28]Clear old archive folders... [23:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:09:28]tlvbuf is 0162FEB0 [23:09:28]SAM_PROTO_ClearQueue [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 09 00 00 [23:09:28]Write to MH i2c: E2 08 00 62 3B 80 09 00 00 00 00 00 00 0F [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 62 3B 00 90 00 11 [23:09:28]RAPDU: 90 00 [23:09:28]wFMCommunicate OK [23:09:28]SAM_PROTO_ClearQueue done [23:09:28]KKMCreateOFDPacket [23:09:28]OFDProtocolAddRootSTLVToBuf [23:09:28]FM_MakeSignedData [23:09:28]FM_MakeSignedData [23:09:28]SAM_PROTO_SignData [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 0D 01 02 [23:09:28]Write to MH i2c: E2 08 00 63 3B 80 0D 01 02 00 00 00 00 17 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 63 3B 00 90 00 12 [23:09:28]RAPDU: 90 00 [23:09:28]wFMCommunicate OK [23:09:28]wFMCommunicate request_size=255 [23:09:28]MH_SAM_APDU [23:09: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 12 9D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2B 9D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 7D 00 00 00 00 07 04 06 00 DC 9C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 B7 76 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 ED 02 00 35 04 06 00 63 BC 90 75 [23:09:28]Write to MH i2c: E2 02 01 64 3B 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 12 9D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2B 9D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 7D 00 00 00 00 07 04 06 00 DC 9C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 B7 76 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 ED 02 00 35 04 06 00 63 BC 90 75 00 00 D2 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 64 3B 00 90 00 13 [23:09:28]RAPDU: 90 00 [23:09:28]wFMCommunicate OK [23:09:28]wFMCommunicate request_size=7 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 0D 02 02 02 31 41 [23:09:28]Write to MH i2c: E2 0A 00 65 3B 80 0D 02 02 02 00 31 41 00 00 90 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 03 00 65 3B 00 90 00 14 [23:09:28]RAPDU: 90 00 [23:09:28]wFMCommunicate OK [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 0D 03 02 [23:09:28]Write to MH i2c: E2 08 00 66 3B 80 0D 03 02 00 00 00 00 1C [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0B 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0B 00 66 3B 00 B2 30 FE 12 5F 2F CD 3C 90 00 A6 [23:09:28]RAPDU: B2 30 FE 12 5F 2F CD 3C 90 00 [23:09:28]wFMCommunicate OK [23:09:28]SAM_PROTO_SignData done [23:09:28]FM_MakeSignedData done [23:09:28]CreateOFDProtocolMessage [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 11 00 00 [23:09:28]Write to MH i2c: E2 08 00 67 3B 80 11 00 00 00 00 00 00 1C [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 17 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 17 00 67 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 6F [23:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:09:28]wFMCommunicate OK [23:09:28]CreateOFDProtocolMessage done [23:09:28]OFDSenderStorePacket 191960 [23:09:28]StoreOFDPacket docnum=191960 [23:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 72 75 04 01 AA 3D 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 12 9D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2B 9D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 7D 00 00 00 00 07 04 06 00 DC 9C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 B7 76 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 ED 02 00 35 04 06 00 63 BC 90 75 31 41 B2 30 FE 12 5F 2F CD 3C [23:09:28]CheckFolder [23:09:28]dirname=/storage/ofd_packets [23:09:28]CheckFolder done [23:09:28]ProducePacketName [23:09:28]name=ofd_packets/00191960 [23:09:28]NVStorageSaveData ofd_packets/00191960 [23:09:28]File name is /storage/ofd_packets/00191960 [23:09:28]Write 298 bytes [23:09:28]NVStorageSaveData done [23:09:28]OFDSenderStorePacket done [23:09:28]KKMCreateOFDPacket done [23:09:28]NVStorageSaveData kkm_last_timestamp [23:09:28]File name is /storage/kkm_last_timestamp [23:09:28]Write 4 bytes [23:09:28]NVStorageSaveData done [23:09:28]ExternCall_PrintAddStr [23:09:28]wPrintStart [23:09:28]Write to MH i2c: 01 00 00 68 3B A3 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: 01 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: 01 07 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: 01 07 00 68 3B 00 00 00 00 00 FF 0F B8 [23:09:28]RasterBufferAndPrint [23:09:28]line Счет N : (1)31269 [23:09:28]line ИНН: 02508201610067 [23:09:28]line Контрольно-Кассовый Чек [23:09:28]line ПРОДАЖА [23:09:28]line ТРК (МРК, ГНК) : 11 [23:09:28]line Товар: 2710194210 [23:09:28]line ДТ-К-5 [23:09:28]line 40.210 * 75.20 [23:09:28]line = 3023.79 [23:09:28]line НДС 12% НСП 1% [23:09:28]line > о реализуемом товаре [23:09:28]line ОКРУГЛЕНИЕ: -0.79 [23:09:28]line ИТОГО: 3023.00 [23:09:28]line Внесено: 5000.00 [23:09:28]line СДАЧА: 1977.00 [23:09:28]line НСП 1% : 26.76 [23:09:28]line НДС 12% : 321.11 [23:09:28]line Наличными: 3023.00 [23:09:28]line Безнал.: 0.00 [23:09:28]line Место: АЗС № 170 "Партнер Нефть" [23:09:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:09:28]line СНО: Общий режим [23:09:28]line Чек 323 26.10.2024 23:09 [23:09:28]line Смена: 541 ФФД: 1.0 [23:09:28]line ЗНМ: 0300000110 [23:09:28]line РНМ: 0000000000091776 [23:09:28]line Версия ККМ: 001 [23:09:28]line [23:09:28]line Дисконтная программа [23:09:28]line ДТ [23:09:28]line номер 170 [23:09:28]line сэкономлено 40.21 сом [23:09:28]line ФМ: 0000000000871754 [23:09:28]line ФД: 191960 [23:09:28]line ФПД: 109661528600897 [23:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T230943&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191960&fm=109661528600897&tin=02508201610067®Number=0000000000091776&sum=302300 [23:09:28]OFD Sender: Processing packet 191960 [packets to send 75, broken 74] [23:09:28]ProducePacketName [23:09:28]name=ofd_packets/00191960 [23:09:28]OFD Sender: To server: pG, [23:09:28]CommunicateWithHost lk.salyk.kg:30040 [23:09:28]ConnectInit lk.salyk.kg [23:09:28]written 0, free lines is 4095 [23:09:28]Connected sock=8 [23:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 72 75 04 01 AA 3D 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 12 9D 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2B 9D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 9C 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 7D 00 00 00 00 07 04 06 00 DC 9C 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 B7 76 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 ED 02 00 35 04 06 00 63 BC 90 75 31 41 B2 30 FE 12 5F 2F CD 3C [23:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0C C8 47 00 30 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D8 ED 02 00 F4 03 04 00 81 1B 1D 67 B6 04 01 00 00 8B C5 C7 2C DC 5B D5 D6 [23:09:29]CommunicateWithHost err = 0 [23:09:29]CheckOFDResponse [23:09:29]1017 (14) - 77093643461234 [23:09:29]1041 (16) - 0000000000871754 [23:09:29]1040 (4) - 191960 [23:09:29]1012 (4) - 26.10.2024 16:40 [23:09:29]1206 (1) - 0 [23:09:29]OFD Sender: Remove packet 191960 [23:09:29]ProducePacketName [23:09:29]name=ofd_packets/00191960 [23:09:29]NVStorageDeleteData [23:09:29]Write to MH i2c: 01 00 00 98 3B D3 [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: 01 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: 01 07 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: 01 07 00 98 3B 00 00 00 00 00 50 0C 36 [23:09:29]RasterBufferAndPrint [23:09:29]line [23:09:29]line [23:09:29]line [23:09:29]line [23:09:29]line [23:09:29]written 0, free lines is 3157 [23:09:29]MH_Cut [23:09:29]Write to MH i2c: D1 01 00 9F 3B 01 AC [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: D1 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: D1 01 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: D1 01 00 9F 3B 00 AB [23:09:29]Write to MH i2c: 01 00 00 A0 3B DB [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]OFD Sender: No OFD packet to send [23:09:30]*** Cut start [23:09:30]*** Partial cut [23:09:30]*** CUTSNS_PIN = 1 [23:09:30]*** CUTSNS_PIN = 0 [23:09:30]*** Brake cut motor [23:09:30]Read from MH i2c: 01 [23:09:30]MH_I2C_Read... [23:09:30]*** Stop cut motor [23:09:30]*** Cut end [23:09:30]Read from MH i2c: 01 07 00 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 07 00 A0 3B 00 00 00 00 00 FF 0F F0 [23:09:30]process_action close_receipt done [23:09:30]requested_data is exist [23:09:30]produce_requested_data [23:09:30]requested_item fm.sn is exist - process it [23:09:30]wFMCommunicate request_size=4 [23:09:30]MH_SAM_APDU [23:09:30]CAPDU: 80 11 00 00 [23:09:30]Write to MH i2c: E2 08 00 A1 3B 80 11 00 00 00 00 00 00 56 [23:09:30]Write i2c OK [23:09:30]MH_I2C_Read... [23:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:31]Read from MH i2c: E2 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 17 00 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 17 00 A1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [23:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:09:31]wFMCommunicate OK [23:09:31]requested_item fd.num is exist - process it [23:09:31]SAM_PROTO_GetFieldsCounters [23:09:31]wFMCommunicate request_size=4 [23:09:31]MH_SAM_APDU [23:09:31]CAPDU: 80 13 00 00 [23:09:31]Write to MH i2c: E2 08 00 A2 3B 80 13 00 00 00 00 00 00 59 [23:09:31]Write i2c OK [23:09:31]MH_I2C_Read... [23:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:31]Read from MH i2c: E2 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 62 00 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 62 00 A2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [23: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 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D8 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:09:31]wFMCommunicate OK [23:09:31]SAM_PROTO_GetFieldsCounters done [23:09:31]requested_item shift.num is exist - process it [23:09:31]requested_item shift.opened is exist - process it [23:09:31]req_shift_opened [23:09:31]FM_GetShiftState [23:09:31]SAM_PROTO_GetShiftState [23:09:31]wFMCommunicate request_size=4 [23:09:31]MH_SAM_APDU [23:09:31]CAPDU: 80 13 01 00 [23:09:31]Write to MH i2c: E2 08 00 A3 3B 80 13 01 00 00 00 00 00 5B [23:09:31]Write i2c OK [23:09:31]MH_I2C_Read... [23:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:31]Read from MH i2c: E2 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 0E 00 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 0E 00 A3 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D4 [23:09:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:09:31]wFMCommunicate OK [23:09:31]SAM_PROTO_GetShiftState done [23:09:31]FM_GetShiftState done [23:09:31]req_shift_opened done [23:09:31]requested_item shift.open_date is exist - process it [23:09:31]req_shift_open_date [23:09:31]req_shift_open_date done [23:09:31]produce_requested_data done [23:09:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191960,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:09:31]process_action_free close_receipt [23:09:31]json_value_free [23:09:31]json_value_free done [23:09:31]process_json_proto returns [23:09:31]Send response to host [23:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191960,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:09:31]free response buf [23:09:31]execute_script done [23:09:31]execute_script returns [23:09:31]free content buf [23:09:31]Sock 5.Close socket [23:09:31]Sock 5.Thread stoped [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:27]accept exits with 6 [23:13:27]New connection [23:13:27]New thread 3066817892 created [23:13:27]Thread 3066961252 joined [23:13:27]Waiting for new connection... [23:13:27] Sock 6.Parse request [23:13:27]Sock 6.Check first char [23:13:27]Sock 6.First char is OK [23:13:27]request: POST /json_proto HTTP/1.0 [23:13:27]Method: POST [23:13:27]URL: /json_proto [23:13:27]Method is POST - this is cgi request [23:13:27]url: /json_proto [23:13:27]query_string will be loaded in cgi processing [23:13:27]execute_cgi json_proto POST (null) [23:13:27]execute_cgi path=json_proto method=POST [23:13:27]POST find Content-Length [23:13:27]Host: 172.17.63.131:8080 [23:13:27]Content-Length: 983 [23:13:27]Content-Type: application/json [23:13:27] [23:13:27]POST finish read [23:13:27]Found Content-Length = 983 [23:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [23:13:27]execute_script... [23:13: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)31270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 170\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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" ] } } [23:13:27]POST & json_proto [23:13:27]process_json_proto [23:13:27]json parsed OK: [23:13:27]protocol is kg_v1.0 [23:13:27]action value=close_receipt [23:13:27]process_action close_receipt [23:13:27]cmd_close_receipt [23:13:27]MH_GetDate [23:13:27]Write to MH i2c: F0 00 00 A4 3B CE [23:13:27]Write i2c OK [23:13:27]MH_I2C_Read... [23:13:27]Read from MH i2c: F0 [23:13:27]MH_I2C_Read... [23:13:27]Read from MH i2c: F0 09 00 [23:13:27]MH_I2C_Read... [23:13:27]Read from MH i2c: F0 09 00 A4 3B 00 A8 77 1D 67 22 05 6E 64 73 [23:13:27]GetLastDocTimeStamp 1729984183 [23:13:27]current date 1729984424 [23:13:27]FM_GetShiftState [23:13:27]SAM_PROTO_GetShiftState [23:13:27]wFMCommunicate request_size=4 [23:13:27]MH_SAM_APDU [23:13:27]CAPDU: 80 13 01 00 [23:13:27]Write to MH i2c: E2 08 00 A5 3B 80 13 01 00 00 00 00 00 5D [23:13:27]Write i2c OK [23:13:27]MH_I2C_Read... [23:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:27]Read from MH i2c: E2 [23:13:27]MH_I2C_Read... [23:13:27]Read from MH i2c: E2 0E 00 [23:13:27]MH_I2C_Read... [23:13:27]Read from MH i2c: E2 0E 00 A5 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D6 [23:13:27]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:13:27]wFMCommunicate OK [23:13:27]SAM_PROTO_GetShiftState done [23:13:27]FM_GetShiftState done [23:13:27]opened in 1729902770 [23:13:27]opened+sec_in_day 1729989170 [23:13:27]quantity*price = 200006 [23:13:27]sum+1 = 200008 [23:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 324 26.10.2024 23:13 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Дисконтная программа АИ-92 номер 170 сэкономлено 30.35 сом ФМ: 0000000000871754 ФД: 191961 ФПД: 172080361322456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T231344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191961&fm=172080361322456&tin=02508201610067®Number=0000000000091776&sum=200000 [23:13:28]StoreToDocumentArchive [23:13:28]shift 541 fd 191961 [23:13:28]save to /storage/0541/doc_00191961 [23:13:28]save last doc name /storage/0541/doc_00191961 to /storage/kkm_last_doc_name [23:13:28]save OK [23:13:28]Clear old archive folders... [23:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:28]tlvbuf is 017F1A20 [23:13:28]SAM_PROTO_ClearQueue [23:13:28]wFMCommunicate request_size=4 [23:13:28]MH_SAM_APDU [23:13:28]CAPDU: 80 09 00 00 [23:13:28]Write to MH i2c: E2 08 00 B2 3B 80 09 00 00 00 00 00 00 5F [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 B2 3B 00 90 00 61 [23:13:28]RAPDU: 90 00 [23:13:28]wFMCommunicate OK [23:13:28]SAM_PROTO_ClearQueue done [23:13:28]KKMCreateOFDPacket [23:13:28]OFDProtocolAddRootSTLVToBuf [23:13:28]FM_MakeSignedData [23:13:28]FM_MakeSignedData [23:13:28]SAM_PROTO_SignData [23:13:28]wFMCommunicate request_size=4 [23:13:28]MH_SAM_APDU [23:13:28]CAPDU: 80 0D 01 02 [23:13:28]Write to MH i2c: E2 08 00 B3 3B 80 0D 01 02 00 00 00 00 67 [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 B3 3B 00 90 00 62 [23:13:28]RAPDU: 90 00 [23:13:28]wFMCommunicate OK [23:13:28]wFMCommunicate request_size=255 [23:13:28]MH_SAM_APDU [23:13: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 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 A8 77 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 ED 02 00 35 04 06 00 9C [23:13:28]Write to MH i2c: E2 02 01 B4 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 A8 77 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 ED 02 00 35 04 06 00 9C 00 00 ED [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 B4 3B 00 90 00 63 [23:13:28]RAPDU: 90 00 [23:13:28]wFMCommunicate OK [23:13:28]wFMCommunicate request_size=10 [23:13:28]MH_SAM_APDU [23:13:28]CAPDU: 80 0D 02 02 05 81 94 CF 37 D8 [23:13:28]Write to MH i2c: E2 0D 00 B5 3B 80 0D 02 02 05 00 81 94 CF 37 D8 00 00 67 [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 03 00 B5 3B 00 90 00 64 [23:13:28]RAPDU: 90 00 [23:13:28]wFMCommunicate OK [23:13:28]wFMCommunicate request_size=4 [23:13:28]MH_SAM_APDU [23:13:28]CAPDU: 80 0D 03 02 [23:13:28]Write to MH i2c: E2 08 00 B6 3B 80 0D 03 02 00 00 00 00 6C [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 0B 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 0B 00 B6 3B 00 80 A2 1A A9 CC DC 2E 35 90 00 5D [23:13:28]RAPDU: 80 A2 1A A9 CC DC 2E 35 90 00 [23:13:28]wFMCommunicate OK [23:13:28]SAM_PROTO_SignData done [23:13:28]FM_MakeSignedData done [23:13:28]CreateOFDProtocolMessage [23:13:28]wFMCommunicate request_size=4 [23:13:28]MH_SAM_APDU [23:13:28]CAPDU: 80 11 00 00 [23:13:28]Write to MH i2c: E2 08 00 B7 3B 80 11 00 00 00 00 00 00 6C [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:28]Read from MH i2c: E2 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 17 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: E2 17 00 B7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BF [23:13:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:13:28]wFMCommunicate OK [23:13:28]CreateOFDProtocolMessage done [23:13:28]OFDSenderStorePacket 191961 [23:13:28]StoreOFDPacket docnum=191961 [23:13:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 CE 07 01 0F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 A8 77 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 ED 02 00 35 04 06 00 9C 81 94 CF 37 D8 80 A2 1A A9 CC DC 2E 35 [23:13:28]CheckFolder [23:13:28]dirname=/storage/ofd_packets [23:13:28]CheckFolder done [23:13:28]ProducePacketName [23:13:28]name=ofd_packets/00191961 [23:13:28]NVStorageSaveData ofd_packets/00191961 [23:13:28]File name is /storage/ofd_packets/00191961 [23:13:28]Write 301 bytes [23:13:28]NVStorageSaveData done [23:13:28]OFDSenderStorePacket done [23:13:28]KKMCreateOFDPacket done [23:13:28]NVStorageSaveData kkm_last_timestamp [23:13:28]File name is /storage/kkm_last_timestamp [23:13:28]Write 4 bytes [23:13:28]NVStorageSaveData done [23:13:28]ExternCall_PrintAddStr [23:13:28]wPrintStart [23:13:28]Write to MH i2c: 01 00 00 B8 3B F3 [23:13:28]Write i2c OK [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: 01 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: 01 07 00 [23:13:28]MH_I2C_Read... [23:13:28]Read from MH i2c: 01 07 00 B8 3B 00 00 00 00 00 FF 0F 08 [23:13:28]RasterBufferAndPrint [23:13:28]line Счет N : (1)31270 [23:13:28]line ИНН: 02508201610067 [23:13:28]line Контрольно-Кассовый Чек [23:13:28]line ПРОДАЖА [23:13:28]line ТРК (МРК, ГНК) : 21 [23:13:28]line Товар: 2710124130 [23:13:28]line Аи-92-К-5 [23:13:28]line 30.350 * 65.90 [23:13:28]line = 2000.07 [23:13:28]line НДС 12% НСП 1% [23:13:28]line > о реализуемом товаре [23:13:28]line ОКРУГЛЕНИЕ: -0.07 [23:13:28]line ИТОГО: 2000.00 [23:13:28]line Внесено: 2000.00 [23:13:28]line СДАЧА: 0.00 [23:13:28]line НСП 1% : 17.70 [23:13:28]line НДС 12% : 212.40 [23:13:28]line Наличными: 2000.00 [23:13:28]line Безнал.: 0.00 [23:13:28]line Место: АЗС № 170 "Партнер Нефть" [23:13:28]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:13:28]line СНО: Общий режим [23:13:28]line Чек 324 26.10.2024 23:13 [23:13:28]line Смена: 541 ФФД: 1.0 [23:13:28]line ЗНМ: 0300000110 [23:13:28]line РНМ: 0000000000091776 [23:13:28]line Версия ККМ: 001 [23:13:28]line [23:13:28]line Дисконтная программа [23:13:28]line АИ-92 [23:13:28]line номер 170 [23:13:28]line сэкономлено 30.35 сом [23:13:28]line ФМ: 0000000000871754 [23:13:28]line ФД: 191961 [23:13:28]line ФПД: 172080361322456 [23:13:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T231344&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191961&fm=172080361322456&tin=02508201610067®Number=0000000000091776&sum=200000 [23:13:29]OFD Sender: Processing packet 191961 [packets to send 75, broken 74] [23:13:29]ProducePacketName [23:13:29]name=ofd_packets/00191961 [23:13:29]OFD Sender: To server: pG, [23:13:29]CommunicateWithHost lk.salyk.kg:30040 [23:13:29]ConnectInit lk.salyk.kg [23:13:29]written 0, free lines is 4095 [23:13:29]Connected sock=8 [23:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 87 CE 07 01 0F BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 A8 77 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 ED 02 00 35 04 06 00 9C 81 94 CF 37 D8 80 A2 1A A9 CC DC 2E 35 [23:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 97 17 47 00 69 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 D9 ED 02 00 F4 03 04 00 71 1C 1D 67 B6 04 01 00 00 69 E5 54 EB 58 67 DD 47 [23:13:29]CommunicateWithHost err = 0 [23:13:29]CheckOFDResponse [23:13:29]1017 (14) - 77093643461234 [23:13:29]1041 (16) - 0000000000871754 [23:13:29]1040 (4) - 191961 [23:13:29]1012 (4) - 26.10.2024 16:44 [23:13:29]1206 (1) - 0 [23:13:29]OFD Sender: Remove packet 191961 [23:13:29]ProducePacketName [23:13:29]name=ofd_packets/00191961 [23:13:29]NVStorageDeleteData [23:13:29]Write to MH i2c: 01 00 00 E8 3B 23 [23:13:29]Write i2c OK [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: 01 [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: 01 07 00 [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: 01 07 00 E8 3B 00 00 00 00 00 61 0C 97 [23:13:29]RasterBufferAndPrint [23:13:29]line [23:13:29]line [23:13:29]line [23:13:29]line [23:13:29]line [23:13:29]written 0, free lines is 3179 [23:13:29]MH_Cut [23:13:29]Write to MH i2c: D1 01 00 EF 3B 01 FC [23:13:29]Write i2c OK [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: D1 [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: D1 01 00 [23:13:29]MH_I2C_Read... [23:13:29]Read from MH i2c: D1 01 00 EF 3B 00 FB [23:13:29]Write to MH i2c: 01 00 00 F0 3B 2B [23:13:29]Write i2c OK [23:13:29]MH_I2C_Read... [23:13:30]OFD Sender: No OFD packet to send [23:13:30]*** Cut start [23:13:30]*** Partial cut [23:13:30]*** CUTSNS_PIN = 1 [23:13:30]*** CUTSNS_PIN = 0 [23:13:30]*** Brake cut motor [23:13:31]Read from MH i2c: 01 [23:13:31]MH_I2C_Read... [23:13:31]*** Stop cut motor [23:13:31]*** Cut end [23:13:31]Read from MH i2c: 01 07 00 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: 01 07 00 F0 3B 00 00 00 00 00 FF 0F 40 [23:13:31]process_action close_receipt done [23:13:31]requested_data is exist [23:13:31]produce_requested_data [23:13:31]requested_item fm.sn is exist - process it [23:13:31]wFMCommunicate request_size=4 [23:13:31]MH_SAM_APDU [23:13:31]CAPDU: 80 11 00 00 [23:13:31]Write to MH i2c: E2 08 00 F1 3B 80 11 00 00 00 00 00 00 A6 [23:13:31]Write i2c OK [23:13:31]MH_I2C_Read... [23:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:31]Read from MH i2c: E2 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 17 00 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 17 00 F1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F9 [23:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:13:31]wFMCommunicate OK [23:13:31]requested_item fd.num is exist - process it [23:13:31]SAM_PROTO_GetFieldsCounters [23:13:31]wFMCommunicate request_size=4 [23:13:31]MH_SAM_APDU [23:13:31]CAPDU: 80 13 00 00 [23:13:31]Write to MH i2c: E2 08 00 F2 3B 80 13 00 00 00 00 00 00 A9 [23:13:31]Write i2c OK [23:13:31]MH_I2C_Read... [23:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:31]Read from MH i2c: E2 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 62 00 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 62 00 F2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [23:13:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 D9 ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:31]wFMCommunicate OK [23:13:31]SAM_PROTO_GetFieldsCounters done [23:13:31]requested_item shift.num is exist - process it [23:13:31]requested_item shift.opened is exist - process it [23:13:31]req_shift_opened [23:13:31]FM_GetShiftState [23:13:31]SAM_PROTO_GetShiftState [23:13:31]wFMCommunicate request_size=4 [23:13:31]MH_SAM_APDU [23:13:31]CAPDU: 80 13 01 00 [23:13:31]Write to MH i2c: E2 08 00 F3 3B 80 13 01 00 00 00 00 00 AB [23:13:31]Write i2c OK [23:13:31]MH_I2C_Read... [23:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:31]Read from MH i2c: E2 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 0E 00 [23:13:31]MH_I2C_Read... [23:13:31]Read from MH i2c: E2 0E 00 F3 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 24 [23:13:31]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:13:31]wFMCommunicate OK [23:13:31]SAM_PROTO_GetShiftState done [23:13:31]FM_GetShiftState done [23:13:31]req_shift_opened done [23:13:31]requested_item shift.open_date is exist - process it [23:13:31]req_shift_open_date [23:13:31]req_shift_open_date done [23:13:31]produce_requested_data done [23:13:31]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191961,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:13:31]process_action_free close_receipt [23:13:31]json_value_free [23:13:31]json_value_free done [23:13:31]process_json_proto returns [23:13:31]Send response to host [23:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191961,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:13:31]free response buf [23:13:31]execute_script done [23:13:31]execute_script returns [23:13:31]free content buf [23:13:31]Sock 6.Close socket [23:13:31]Sock 6.Thread stoped [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:03]accept exits with 5 [23:27:03]New connection [23:27:03]New thread 3066961252 created [23:27:03]Thread 3066817892 joined [23:27:03]Waiting for new connection... [23:27:03] Sock 5.Parse request [23:27:03]Sock 5.Check first char [23:27:03]Sock 5.First char is OK [23:27:03]request: POST /json_proto HTTP/1.0 [23:27:03]Method: POST [23:27:03]URL: /json_proto [23:27:03]Method is POST - this is cgi request [23:27:03]url: /json_proto [23:27:03]query_string will be loaded in cgi processing [23:27:03]execute_cgi json_proto POST (null) [23:27:03]execute_cgi path=json_proto method=POST [23:27:03]POST find Content-Length [23:27:03]Host: 172.17.63.131:8080 [23:27:03]Content-Length: 678 [23:27:03]Content-Type: application/json [23:27:03] [23:27:03]POST finish read [23:27:03]Found Content-Length = 678 [23:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:27:03]execute_script... [23:27: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)31272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [23:27:03]POST & json_proto [23:27:03]process_json_proto [23:27:03]json parsed OK: [23:27:03]protocol is kg_v1.0 [23:27:03]action value=close_receipt [23:27:03]process_action close_receipt [23:27:03]cmd_close_receipt [23:27:03]MH_GetDate [23:27:03]Write to MH i2c: F0 00 00 F4 3B 1E [23:27:03]Write i2c OK [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: F0 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: F0 09 00 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: F0 09 00 F4 3B 00 D8 7A 1D 67 22 05 6E 64 F6 [23:27:03]GetLastDocTimeStamp 1729984424 [23:27:03]current date 1729985240 [23:27:03]FM_GetShiftState [23:27:03]SAM_PROTO_GetShiftState [23:27:03]wFMCommunicate request_size=4 [23:27:03]MH_SAM_APDU [23:27:03]CAPDU: 80 13 01 00 [23:27:03]Write to MH i2c: E2 08 00 F5 3B 80 13 01 00 00 00 00 00 AD [23:27:03]Write i2c OK [23:27:03]MH_I2C_Read... [23:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:03]Read from MH i2c: E2 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 0E 00 [23:27:03]MH_I2C_Read... [23:27:03]Read from MH i2c: E2 0E 00 F5 3B 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 26 [23:27:03]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:27:03]wFMCommunicate OK [23:27:03]SAM_PROTO_GetShiftState done [23:27:03]FM_GetShiftState done [23:27:03]opened in 1729902770 [23:27:03]opened+sec_in_day 1729989170 [23:27:03]quantity*price = 300075 [23:27:03]sum+1 = 300077 [23:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 325 26.10.2024 23:27 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191962 ФПД: 251850519878924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T232720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191962&fm=251850519878924&tin=02508201610067®Number=0000000000091776&sum=300000 [23:27:04]StoreToDocumentArchive [23:27:04]shift 541 fd 191962 [23:27:04]save to /storage/0541/doc_00191962 [23:27:04]save last doc name /storage/0541/doc_00191962 to /storage/kkm_last_doc_name [23:27:04]save OK [23:27:04]Clear old archive folders... [23:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:27:04]tlvbuf is 015C8CD0 [23:27:04]SAM_PROTO_ClearQueue [23:27:04]wFMCommunicate request_size=4 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 09 00 00 [23:27:04]Write to MH i2c: E2 08 00 02 3C 80 09 00 00 00 00 00 00 B0 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 02 3C 00 90 00 B2 [23:27:04]RAPDU: 90 00 [23:27:04]wFMCommunicate OK [23:27:04]SAM_PROTO_ClearQueue done [23:27:04]KKMCreateOFDPacket [23:27:04]OFDProtocolAddRootSTLVToBuf [23:27:04]FM_MakeSignedData [23:27:04]FM_MakeSignedData [23:27:04]SAM_PROTO_SignData [23:27:04]wFMCommunicate request_size=4 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 0D 01 02 [23:27:04]Write to MH i2c: E2 08 00 03 3C 80 0D 01 02 00 00 00 00 B8 [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:04]Read from MH i2c: E2 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 [23:27:04]MH_I2C_Read... [23:27:04]Read from MH i2c: E2 03 00 03 3C 00 90 00 B3 [23:27:04]RAPDU: 90 00 [23:27:04]wFMCommunicate OK [23:27:04]wFMCommunicate request_size=255 [23:27:04]MH_SAM_APDU [23:27:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 7A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA ED 02 00 35 04 06 00 E5 0E 84 C6 [23:27:04]Write to MH i2c: E2 02 01 04 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 7A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA ED 02 00 35 04 06 00 E5 0E 84 C6 00 00 BA [23:27:04]Write i2c OK [23:27:04]MH_I2C_Read... [23:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:05]Read from MH i2c: E2 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 03 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 03 00 04 3C 00 90 00 B4 [23:27:05]RAPDU: 90 00 [23:27:05]wFMCommunicate OK [23:27:05]wFMCommunicate request_size=7 [23:27:05]MH_SAM_APDU [23:27:05]CAPDU: 80 0D 02 02 02 1D 0C [23:27:05]Write to MH i2c: E2 0A 00 05 3C 80 0D 02 02 02 00 1D 0C 00 00 E8 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:05]Read from MH i2c: E2 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 03 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 03 00 05 3C 00 90 00 B5 [23:27:05]RAPDU: 90 00 [23:27:05]wFMCommunicate OK [23:27:05]wFMCommunicate request_size=4 [23:27:05]MH_SAM_APDU [23:27:05]CAPDU: 80 0D 03 02 [23:27:05]Write to MH i2c: E2 08 00 06 3C 80 0D 03 02 00 00 00 00 BD [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:05]Read from MH i2c: E2 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 0B 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 0B 00 06 3C 00 9B 0D 1B C6 F3 C7 12 95 90 00 A8 [23:27:05]RAPDU: 9B 0D 1B C6 F3 C7 12 95 90 00 [23:27:05]wFMCommunicate OK [23:27:05]SAM_PROTO_SignData done [23:27:05]FM_MakeSignedData done [23:27:05]CreateOFDProtocolMessage [23:27:05]wFMCommunicate request_size=4 [23:27:05]MH_SAM_APDU [23:27:05]CAPDU: 80 11 00 00 [23:27:05]Write to MH i2c: E2 08 00 07 3C 80 11 00 00 00 00 00 00 BD [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:05]Read from MH i2c: E2 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 17 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: E2 17 00 07 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 10 [23:27:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:27:05]wFMCommunicate OK [23:27:05]CreateOFDProtocolMessage done [23:27:05]OFDSenderStorePacket 191962 [23:27:05]StoreOFDPacket docnum=191962 [23:27:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DF AA 04 01 5C 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 7A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA ED 02 00 35 04 06 00 E5 0E 84 C6 1D 0C 9B 0D 1B C6 F3 C7 12 95 [23:27:05]CheckFolder [23:27:05]dirname=/storage/ofd_packets [23:27:05]CheckFolder done [23:27:05]ProducePacketName [23:27:05]name=ofd_packets/00191962 [23:27:05]NVStorageSaveData ofd_packets/00191962 [23:27:05]File name is /storage/ofd_packets/00191962 [23:27:05]Write 298 bytes [23:27:05]NVStorageSaveData done [23:27:05]OFDSenderStorePacket done [23:27:05]KKMCreateOFDPacket done [23:27:05]NVStorageSaveData kkm_last_timestamp [23:27:05]File name is /storage/kkm_last_timestamp [23:27:05]Write 4 bytes [23:27:05]NVStorageSaveData done [23:27:05]ExternCall_PrintAddStr [23:27:05]wPrintStart [23:27:05]Write to MH i2c: 01 00 00 08 3C 44 [23:27:05]Write i2c OK [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: 01 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: 01 07 00 [23:27:05]MH_I2C_Read... [23:27:05]Read from MH i2c: 01 07 00 08 3C 00 00 00 00 00 FF 0F 59 [23:27:05]RasterBufferAndPrint [23:27:05]line Счет N : (1)31272 [23:27:05]line ИНН: 02508201610067 [23:27:05]line Контрольно-Кассовый Чек [23:27:05]line ПРОДАЖА [23:27:05]line ТРК (МРК, ГНК) : 11 [23:27:05]line Товар: 2710194210 [23:27:05]line ДТ-К-5 [23:27:05]line 39.380 * 76.20 [23:27:05]line = 3000.76 [23:27:05]line НДС 12% НСП 1% [23:27:05]line > о реализуемом товаре [23:27:05]line ОКРУГЛЕНИЕ: -0.76 [23:27:05]line ИТОГО: 3000.00 [23:27:05]line Внесено: 3000.00 [23:27:05]line СДАЧА: 0.00 [23:27:05]line НСП 1% : 26.55 [23:27:05]line НДС 12% : 318.66 [23:27:05]line Наличными: 3000.00 [23:27:05]line Безнал.: 0.00 [23:27:05]line Место: АЗС № 170 "Партнер Нефть" [23:27:05]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:27:05]line СНО: Общий режим [23:27:05]line Чек 325 26.10.2024 23:27 [23:27:05]line Смена: 541 ФФД: 1.0 [23:27:05]line ЗНМ: 0300000110 [23:27:05]line РНМ: 0000000000091776 [23:27:05]line Версия ККМ: 001 [23:27:05]line ФМ: 0000000000871754 [23:27:05]line ФД: 191962 [23:27:05]line ФПД: 251850519878924 [23:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T232720&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191962&fm=251850519878924&tin=02508201610067®Number=0000000000091776&sum=300000 [23:27:05]OFD Sender: Processing packet 191962 [packets to send 75, broken 74] [23:27:05]ProducePacketName [23:27:05]name=ofd_packets/00191962 [23:27:05]OFD Sender: To server: pG, [23:27:05]CommunicateWithHost lk.salyk.kg:30040 [23:27:05]ConnectInit lk.salyk.kg [23:27:05]written 0, free lines is 4095 [23:27:05]Connected sock=8 [23:27:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 DF AA 04 01 5C 60 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 D8 7A 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA ED 02 00 35 04 06 00 E5 0E 84 C6 1D 0C 9B 0D 1B C6 F3 C7 12 95 [23:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 02 B8 47 00 9A AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DA ED 02 00 F4 03 04 00 A2 1F 1D 67 B6 04 01 00 00 94 AD E0 0F FB 7E 3E F3 [23:27:05]CommunicateWithHost err = 0 [23:27:05]CheckOFDResponse [23:27:05]1017 (14) - 77093643461234 [23:27:05]1041 (16) - 0000000000871754 [23:27:05]1040 (4) - 191962 [23:27:05]1012 (4) - 26.10.2024 16:58 [23:27:05]1206 (1) - 0 [23:27:05]OFD Sender: Remove packet 191962 [23:27:05]ProducePacketName [23:27:05]name=ofd_packets/00191962 [23:27:05]NVStorageDeleteData [23:27:06]Write to MH i2c: 01 00 00 33 3C 6F [23:27:06]Write i2c OK [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: 01 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: 01 07 00 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: 01 07 00 33 3C 00 00 00 00 00 B3 0C 35 [23:27:06]RasterBufferAndPrint [23:27:06]line [23:27:06]line [23:27:06]line [23:27:06]line [23:27:06]line [23:27:06]written 0, free lines is 3258 [23:27:06]MH_Cut [23:27:06]Write to MH i2c: D1 01 00 3A 3C 01 48 [23:27:06]Write i2c OK [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: D1 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: D1 01 00 [23:27:06]MH_I2C_Read... [23:27:06]Read from MH i2c: D1 01 00 3A 3C 00 47 [23:27:06]Write to MH i2c: 01 00 00 3B 3C 77 [23:27:06]Write i2c OK [23:27:06]MH_I2C_Read... [23:27:06]OFD Sender: No OFD packet to send [23:27:06]*** Cut start [23:27:06]*** Partial cut [23:27:06]*** CUTSNS_PIN = 1 [23:27:06]*** CUTSNS_PIN = 0 [23:27:07]*** Brake cut motor [23:27:07]Read from MH i2c: 01 [23:27:07]MH_I2C_Read... [23:27:07]*** Stop cut motor [23:27:07]*** Cut end [23:27:07]Read from MH i2c: 01 07 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: 01 07 00 3B 3C 00 00 00 00 00 FF 0F 8C [23:27:07]process_action close_receipt done [23:27:07]requested_data is exist [23:27:07]produce_requested_data [23:27:07]requested_item fm.sn is exist - process it [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 11 00 00 [23:27:07]Write to MH i2c: E2 08 00 3C 3C 80 11 00 00 00 00 00 00 F2 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 17 00 3C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 45 [23:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:27:07]wFMCommunicate OK [23:27:07]requested_item fd.num is exist - process it [23:27:07]SAM_PROTO_GetFieldsCounters [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 13 00 00 [23:27:07]Write to MH i2c: E2 08 00 3D 3C 80 13 00 00 00 00 00 00 F5 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 62 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 62 00 3D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [23:27:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DA ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_GetFieldsCounters done [23:27:07]requested_item shift.num is exist - process it [23:27:07]requested_item shift.opened is exist - process it [23:27:07]req_shift_opened [23:27:07]FM_GetShiftState [23:27:07]SAM_PROTO_GetShiftState [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 13 01 00 [23:27:07]Write to MH i2c: E2 08 00 3E 3C 80 13 01 00 00 00 00 00 F7 [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0E 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0E 00 3E 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 70 [23:27:07]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_GetShiftState done [23:27:07]FM_GetShiftState done [23:27:07]req_shift_opened done [23:27:07]requested_item shift.open_date is exist - process it [23:27:07]req_shift_open_date [23:27:07]req_shift_open_date done [23:27:07]produce_requested_data done [23:27:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191962,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:27:07]process_action_free close_receipt [23:27:07]json_value_free [23:27:07]json_value_free done [23:27:07]process_json_proto returns [23:27:07]Send response to host [23:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191962,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:27:07]free response buf [23:27:07]execute_script done [23:27:07]execute_script returns [23:27:07]free content buf [23:27:07]Sock 5.Close socket [23:27:07]Sock 5.Thread stoped [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:33]accept exits with 6 [23:40:33]New connection [23:40:33]New thread 3066817892 created [23:40:33]Thread 3066961252 joined [23:40:33]Waiting for new connection... [23:40:33] Sock 6.Parse request [23:40:33]Sock 6.Check first char [23:40:33]Sock 6.First char is OK [23:40:33]request: POST /json_proto HTTP/1.0 [23:40:33]Method: POST [23:40:33]URL: /json_proto [23:40:33]Method is POST - this is cgi request [23:40:33]url: /json_proto [23:40:33]query_string will be loaded in cgi processing [23:40:33]execute_cgi json_proto POST (null) [23:40:33]execute_cgi path=json_proto method=POST [23:40:33]POST find Content-Length [23:40:33]Host: 172.17.63.131:8080 [23:40:33]Content-Length: 676 [23:40:33]Content-Type: application/json [23:40:33] [23:40:33]POST finish read [23:40:33]Found Content-Length = 676 [23:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:33]execute_script... [23:40:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:33]POST & json_proto [23:40:33]process_json_proto [23:40:33]json parsed OK: [23:40:33]protocol is kg_v1.0 [23:40:33]action value=close_receipt [23:40:33]process_action close_receipt [23:40:33]cmd_close_receipt [23:40:33]MH_GetDate [23:40:33]Write to MH i2c: F0 00 00 3F 3C 6A [23:40:33]Write i2c OK [23:40:33]MH_I2C_Read... [23:40:33]Read from MH i2c: F0 [23:40:33]MH_I2C_Read... [23:40:33]Read from MH i2c: F0 09 00 [23:40:33]MH_I2C_Read... [23:40:33]Read from MH i2c: F0 09 00 3F 3C 00 02 7E 1D 67 22 05 6E 64 70 [23:40:33]GetLastDocTimeStamp 1729985240 [23:40:33]current date 1729986050 [23:40:33]FM_GetShiftState [23:40:33]SAM_PROTO_GetShiftState [23:40:33]wFMCommunicate request_size=4 [23:40:33]MH_SAM_APDU [23:40:33]CAPDU: 80 13 01 00 [23:40:33]Write to MH i2c: E2 08 00 40 3C 80 13 01 00 00 00 00 00 F9 [23:40:33]Write i2c OK [23:40:33]MH_I2C_Read... [23:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:33]Read from MH i2c: E2 [23:40:33]MH_I2C_Read... [23:40:33]Read from MH i2c: E2 0E 00 [23:40:33]MH_I2C_Read... [23:40:33]Read from MH i2c: E2 0E 00 40 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 72 [23:40:33]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:40:33]wFMCommunicate OK [23:40:33]SAM_PROTO_GetShiftState done [23:40:33]FM_GetShiftState done [23:40:33]opened in 1729902770 [23:40:33]opened+sec_in_day 1729989170 [23:40:33]quantity*price = 50041 [23:40:33]sum+1 = 50042 [23:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 326 26.10.2024 23:40 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191963 ФПД: 39107034337797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191963&fm=39107034337797&tin=02508201610067®Number=0000000000091776&sum=50000 [23:40:34]StoreToDocumentArchive [23:40:34]shift 541 fd 191963 [23:40:34]save to /storage/0541/doc_00191963 [23:40:34]save last doc name /storage/0541/doc_00191963 to /storage/kkm_last_doc_name [23:40:34]save OK [23:40:34]Clear old archive folders... [23:40:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:34]tlvbuf is 018DC7C0 [23:40:34]SAM_PROTO_ClearQueue [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 09 00 00 [23:40:34]Write to MH i2c: E2 08 00 4D 3C 80 09 00 00 00 00 00 00 FB [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 4D 3C 00 90 00 FD [23:40:34]RAPDU: 90 00 [23:40:34]wFMCommunicate OK [23:40:34]SAM_PROTO_ClearQueue done [23:40:34]KKMCreateOFDPacket [23:40:34]OFDProtocolAddRootSTLVToBuf [23:40:34]FM_MakeSignedData [23:40:34]FM_MakeSignedData [23:40:34]SAM_PROTO_SignData [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 0D 01 02 [23:40:34]Write to MH i2c: E2 08 00 4E 3C 80 0D 01 02 00 00 00 00 03 [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 4E 3C 00 90 00 FE [23:40:34]RAPDU: 90 00 [23:40:34]wFMCommunicate OK [23:40:34]wFMCommunicate request_size=255 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 02 7E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB ED 02 00 35 04 06 00 23 [23:40:34]Write to MH i2c: E2 02 01 4F 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 02 7E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB ED 02 00 35 04 06 00 23 00 00 EE [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 4F 3C 00 90 00 FF [23:40:34]RAPDU: 90 00 [23:40:34]wFMCommunicate OK [23:40:34]wFMCommunicate request_size=10 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 0D 02 02 05 91 50 E3 D2 05 [23:40:34]Write to MH i2c: E2 0D 00 50 3C 80 0D 02 02 05 00 91 50 E3 D2 05 00 00 AB [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 03 00 50 3C 00 90 00 00 [23:40:34]RAPDU: 90 00 [23:40:34]wFMCommunicate OK [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 0D 03 02 [23:40:34]Write to MH i2c: E2 08 00 51 3C 80 0D 03 02 00 00 00 00 08 [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 0B 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 0B 00 51 3C 00 EB 87 83 2F B3 14 8F B4 90 00 37 [23:40:34]RAPDU: EB 87 83 2F B3 14 8F B4 90 00 [23:40:34]wFMCommunicate OK [23:40:34]SAM_PROTO_SignData done [23:40:34]FM_MakeSignedData done [23:40:34]CreateOFDProtocolMessage [23:40:34]wFMCommunicate request_size=4 [23:40:34]MH_SAM_APDU [23:40:34]CAPDU: 80 11 00 00 [23:40:34]Write to MH i2c: E2 08 00 52 3C 80 11 00 00 00 00 00 00 08 [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:34]Read from MH i2c: E2 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 17 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: E2 17 00 52 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5B [23:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:40:34]wFMCommunicate OK [23:40:34]CreateOFDProtocolMessage done [23:40:34]OFDSenderStorePacket 191963 [23:40:34]StoreOFDPacket docnum=191963 [23:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 34 07 01 40 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 02 7E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB ED 02 00 35 04 06 00 23 91 50 E3 D2 05 EB 87 83 2F B3 14 8F B4 [23:40:34]CheckFolder [23:40:34]dirname=/storage/ofd_packets [23:40:34]CheckFolder done [23:40:34]ProducePacketName [23:40:34]name=ofd_packets/00191963 [23:40:34]NVStorageSaveData ofd_packets/00191963 [23:40:34]File name is /storage/ofd_packets/00191963 [23:40:34]Write 301 bytes [23:40:34]NVStorageSaveData done [23:40:34]OFDSenderStorePacket done [23:40:34]KKMCreateOFDPacket done [23:40:34]NVStorageSaveData kkm_last_timestamp [23:40:34]File name is /storage/kkm_last_timestamp [23:40:34]Write 4 bytes [23:40:34]NVStorageSaveData done [23:40:34]ExternCall_PrintAddStr [23:40:34]wPrintStart [23:40:34]Write to MH i2c: 01 00 00 53 3C 8F [23:40:34]Write i2c OK [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: 01 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: 01 07 00 [23:40:34]MH_I2C_Read... [23:40:34]Read from MH i2c: 01 07 00 53 3C 00 00 00 00 00 FF 0F A4 [23:40:34]RasterBufferAndPrint [23:40:34]line Счет N : (1)31273 [23:40:34]line ИНН: 02508201610067 [23:40:34]line Контрольно-Кассовый Чек [23:40:34]line ПРОДАЖА [23:40:34]line ТРК (МРК, ГНК) : 21 [23:40:34]line Товар: 2710124130 [23:40:34]line Аи-92-К-5 [23:40:34]line 7.480 * 66.90 [23:40:34]line = 500.41 [23:40:34]line НДС 12% НСП 1% [23:40:34]line > о реализуемом товаре [23:40:34]line ОКРУГЛЕНИЕ: -0.41 [23:40:34]line ИТОГО: 500.00 [23:40:34]line Внесено: 500.00 [23:40:34]line СДАЧА: 0.00 [23:40:34]line НСП 1% : 4.43 [23:40:34]line НДС 12% : 53.14 [23:40:34]line Наличными: 500.00 [23:40:34]line Безнал.: 0.00 [23:40:34]line Место: АЗС № 170 "Партнер Нефть" [23:40:34]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:40:34]line СНО: Общий режим [23:40:34]line Чек 326 26.10.2024 23:40 [23:40:34]line Смена: 541 ФФД: 1.0 [23:40:34]line ЗНМ: 0300000110 [23:40:34]line РНМ: 0000000000091776 [23:40:34]line Версия ККМ: 001 [23:40:34]line ФМ: 0000000000871754 [23:40:34]line ФД: 191963 [23:40:34]line ФПД: 39107034337797 [23:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234050&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191963&fm=39107034337797&tin=02508201610067®Number=0000000000091776&sum=50000 [23:40:35]OFD Sender: Processing packet 191963 [packets to send 75, broken 74] [23:40:35]ProducePacketName [23:40:35]name=ofd_packets/00191963 [23:40:35]OFD Sender: To server: pG, [23:40:35]CommunicateWithHost lk.salyk.kg:30040 [23:40:35]ConnectInit lk.salyk.kg [23:40:35]written 0, free lines is 4095 [23:40:35]Connected sock=8 [23:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 65 34 07 01 40 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 02 7E 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB ED 02 00 35 04 06 00 23 91 50 E3 D2 05 EB 87 83 2F B3 14 8F B4 [23:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 71 46 47 00 71 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DB ED 02 00 F4 03 04 00 CB 22 1D 67 B6 04 01 00 00 E0 72 1F 56 E7 CB 53 67 [23:40:35]CommunicateWithHost err = 0 [23:40:35]CheckOFDResponse [23:40:35]1017 (14) - 77093643461234 [23:40:35]1041 (16) - 0000000000871754 [23:40:35]1040 (4) - 191963 [23:40:35]1012 (4) - 26.10.2024 17:11 [23:40:35]1206 (1) - 0 [23:40:35]OFD Sender: Remove packet 191963 [23:40:35]ProducePacketName [23:40:35]name=ofd_packets/00191963 [23:40:35]NVStorageDeleteData [23:40:35]Write to MH i2c: 01 00 00 7E 3C BA [23:40:35]Write i2c OK [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: 01 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: 01 07 00 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: 01 07 00 7E 3C 00 00 00 00 00 B6 0C 83 [23:40:35]RasterBufferAndPrint [23:40:35]line [23:40:35]line [23:40:35]line [23:40:35]line [23:40:35]line [23:40:35]written 0, free lines is 3264 [23:40:35]MH_Cut [23:40:35]Write to MH i2c: D1 01 00 85 3C 01 93 [23:40:35]Write i2c OK [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: D1 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: D1 01 00 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: D1 01 00 85 3C 00 92 [23:40:35]Write to MH i2c: 01 00 00 86 3C C2 [23:40:35]Write i2c OK [23:40:35]MH_I2C_Read... [23:40:36]OFD Sender: No OFD packet to send [23:40:36]*** Cut start [23:40:36]*** Partial cut [23:40:36]*** CUTSNS_PIN = 1 [23:40:36]*** CUTSNS_PIN = 0 [23:40:36]*** Brake cut motor [23:40:37]Read from MH i2c: 01 [23:40:37]MH_I2C_Read... [23:40:37]*** Stop cut motor [23:40:37]*** Cut end [23:40:37]Read from MH i2c: 01 07 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: 01 07 00 86 3C 00 00 00 00 00 FF 0F D7 [23:40:37]process_action close_receipt done [23:40:37]requested_data is exist [23:40:37]produce_requested_data [23:40:37]requested_item fm.sn is exist - process it [23:40:37]wFMCommunicate request_size=4 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 11 00 00 [23:40:37]Write to MH i2c: E2 08 00 87 3C 80 11 00 00 00 00 00 00 3D [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 17 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 17 00 87 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 90 [23:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:40:37]wFMCommunicate OK [23:40:37]requested_item fd.num is exist - process it [23:40:37]SAM_PROTO_GetFieldsCounters [23:40:37]wFMCommunicate request_size=4 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 13 00 00 [23:40:37]Write to MH i2c: E2 08 00 88 3C 80 13 00 00 00 00 00 00 40 [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 62 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 62 00 88 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [23:40:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DB ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:37]wFMCommunicate OK [23:40:37]SAM_PROTO_GetFieldsCounters done [23:40:37]requested_item shift.num is exist - process it [23:40:37]requested_item shift.opened is exist - process it [23:40:37]req_shift_opened [23:40:37]FM_GetShiftState [23:40:37]SAM_PROTO_GetShiftState [23:40:37]wFMCommunicate request_size=4 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 13 01 00 [23:40:37]Write to MH i2c: E2 08 00 89 3C 80 13 01 00 00 00 00 00 42 [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 0E 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 0E 00 89 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BB [23:40:37]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:40:37]wFMCommunicate OK [23:40:37]SAM_PROTO_GetShiftState done [23:40:37]FM_GetShiftState done [23:40:37]req_shift_opened done [23:40:37]requested_item shift.open_date is exist - process it [23:40:37]req_shift_open_date [23:40:37]req_shift_open_date done [23:40:37]produce_requested_data done [23:40:37]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191963,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:40:37]process_action_free close_receipt [23:40:37]json_value_free [23:40:37]json_value_free done [23:40:37]process_json_proto returns [23:40:37]Send response to host [23:40:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191963,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:40:37]free response buf [23:40:37]execute_script done [23:40:37]execute_script returns [23:40:37]free content buf [23:40:37]Sock 6.Close socket [23:40:37]Sock 6.Thread stoped [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:15]accept exits with 5 [23:47:15]New connection [23:47:15]New thread 3066961252 created [23:47:15]Thread 3066817892 joined [23:47:15]Waiting for new connection... [23:47:15] Sock 5.Parse request [23:47:15]Sock 5.Check first char [23:47:15]Sock 5.First char is OK [23:47:15]request: POST /json_proto HTTP/1.0 [23:47:15]Method: POST [23:47:15]URL: /json_proto [23:47:15]Method is POST - this is cgi request [23:47:15]url: /json_proto [23:47:15]query_string will be loaded in cgi processing [23:47:15]execute_cgi json_proto POST (null) [23:47:15]execute_cgi path=json_proto method=POST [23:47:15]POST find Content-Length [23:47:15]Host: 172.17.63.131:8080 [23:47:15]Content-Length: 673 [23:47:15]Content-Type: application/json [23:47:15] [23:47:15]POST finish read [23:47:15]Found Content-Length = 673 [23:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:15]execute_script... [23:47: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)31274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:15]POST & json_proto [23:47:15]process_json_proto [23:47:15]json parsed OK: [23:47:15]protocol is kg_v1.0 [23:47:15]action value=close_receipt [23:47:15]process_action close_receipt [23:47:15]cmd_close_receipt [23:47:15]MH_GetDate [23:47:15]Write to MH i2c: F0 00 00 8A 3C B5 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: F0 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: F0 09 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: F0 09 00 8A 3C 00 94 7F 1D 67 22 05 6E 64 4E [23:47:15]GetLastDocTimeStamp 1729986050 [23:47:15]current date 1729986452 [23:47:15]FM_GetShiftState [23:47:15]SAM_PROTO_GetShiftState [23:47:15]wFMCommunicate request_size=4 [23:47:15]MH_SAM_APDU [23:47:15]CAPDU: 80 13 01 00 [23:47:15]Write to MH i2c: E2 08 00 8B 3C 80 13 01 00 00 00 00 00 44 [23:47:15]Write i2c OK [23:47:15]MH_I2C_Read... [23:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:15]Read from MH i2c: E2 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 0E 00 [23:47:15]MH_I2C_Read... [23:47:15]Read from MH i2c: E2 0E 00 8B 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BD [23:47:15]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:47:15]wFMCommunicate OK [23:47:15]SAM_PROTO_GetShiftState done [23:47:15]FM_GetShiftState done [23:47:15]opened in 1729902770 [23:47:15]opened+sec_in_day 1729989170 [23:47:15]quantity*price = 50063 [23:47:15]sum+1 = 50064 [23:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 327 26.10.2024 23:47 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191964 ФПД: 203174841213109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191964&fm=203174841213109&tin=02508201610067®Number=0000000000091776&sum=50000 [23:47:16]StoreToDocumentArchive [23:47:16]shift 541 fd 191964 [23:47:16]save to /storage/0541/doc_00191964 [23:47:16]save last doc name /storage/0541/doc_00191964 to /storage/kkm_last_doc_name [23:47:16]save OK [23:47:16]Clear old archive folders... [23:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:47:16]tlvbuf is 018DC540 [23:47:16]SAM_PROTO_ClearQueue [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 09 00 00 [23:47:16]Write to MH i2c: E2 08 00 98 3C 80 09 00 00 00 00 00 00 46 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 98 3C 00 90 00 48 [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]SAM_PROTO_ClearQueue done [23:47:16]KKMCreateOFDPacket [23:47:16]OFDProtocolAddRootSTLVToBuf [23:47:16]FM_MakeSignedData [23:47:16]FM_MakeSignedData [23:47:16]SAM_PROTO_SignData [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 01 02 [23:47:16]Write to MH i2c: E2 08 00 99 3C 80 0D 01 02 00 00 00 00 4E [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]OFD Sender: No OFD packet to send [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 99 3C 00 90 00 49 [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=255 [23:47:16]MH_SAM_APDU [23:47: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC ED 02 00 35 04 06 00 B8 C9 54 3C [23:47:16]Write to MH i2c: E2 02 01 9A 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC ED 02 00 35 04 06 00 B8 C9 54 3C 00 00 3A [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 9A 3C 00 90 00 4A [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=7 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 02 02 02 E0 B5 [23:47:16]Write to MH i2c: E2 0A 00 9B 3C 80 0D 02 02 02 00 E0 B5 00 00 EA [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 03 00 9B 3C 00 90 00 4B [23:47:16]RAPDU: 90 00 [23:47:16]wFMCommunicate OK [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 0D 03 02 [23:47:16]Write to MH i2c: E2 08 00 9C 3C 80 0D 03 02 00 00 00 00 53 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:16]Read from MH i2c: E2 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 0B 00 [23:47:16]MH_I2C_Read... [23:47:16]Read from MH i2c: E2 0B 00 9C 3C 00 B8 52 5E 5C 17 8C 2B CD 90 00 B3 [23:47:16]RAPDU: B8 52 5E 5C 17 8C 2B CD 90 00 [23:47:16]wFMCommunicate OK [23:47:16]SAM_PROTO_SignData done [23:47:16]FM_MakeSignedData done [23:47:16]CreateOFDProtocolMessage [23:47:16]wFMCommunicate request_size=4 [23:47:16]MH_SAM_APDU [23:47:16]CAPDU: 80 11 00 00 [23:47:16]Write to MH i2c: E2 08 00 9D 3C 80 11 00 00 00 00 00 00 53 [23:47:16]Write i2c OK [23:47:16]MH_I2C_Read... [23:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:17]Read from MH i2c: E2 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 17 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: E2 17 00 9D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A6 [23:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:47:17]wFMCommunicate OK [23:47:17]CreateOFDProtocolMessage done [23:47:17]OFDSenderStorePacket 191964 [23:47:17]StoreOFDPacket docnum=191964 [23:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E0 EB 04 01 E5 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC ED 02 00 35 04 06 00 B8 C9 54 3C E0 B5 B8 52 5E 5C 17 8C 2B CD [23:47:17]CheckFolder [23:47:17]dirname=/storage/ofd_packets [23:47:17]CheckFolder done [23:47:17]ProducePacketName [23:47:17]name=ofd_packets/00191964 [23:47:17]NVStorageSaveData ofd_packets/00191964 [23:47:17]File name is /storage/ofd_packets/00191964 [23:47:17]Write 298 bytes [23:47:17]NVStorageSaveData done [23:47:17]OFDSenderStorePacket done [23:47:17]KKMCreateOFDPacket done [23:47:17]NVStorageSaveData kkm_last_timestamp [23:47:17]File name is /storage/kkm_last_timestamp [23:47:17]Write 4 bytes [23:47:17]NVStorageSaveData done [23:47:17]ExternCall_PrintAddStr [23:47:17]wPrintStart [23:47:17]Write to MH i2c: 01 00 00 9E 3C DA [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 9E 3C 00 00 00 00 00 FF 0F EF [23:47:17]RasterBufferAndPrint [23:47:17]line Счет N : (1)31274 [23:47:17]line ИНН: 02508201610067 [23:47:17]line Контрольно-Кассовый Чек [23:47:17]line ПРОДАЖА [23:47:17]line ТРК (МРК, ГНК) : 11 [23:47:17]line Товар: 2710194210 [23:47:17]line ДТ-К-5 [23:47:17]line 6.570 * 76.20 [23:47:17]line = 500.63 [23:47:17]line НДС 12% НСП 1% [23:47:17]line > о реализуемом товаре [23:47:17]line ОКРУГЛЕНИЕ: -0.63 [23:47:17]line ИТОГО: 500.00 [23:47:17]line Внесено: 500.00 [23:47:17]line СДАЧА: 0.00 [23:47:17]line НСП 1% : 4.43 [23:47:17]line НДС 12% : 53.16 [23:47:17]line Наличными: 500.00 [23:47:17]line Безнал.: 0.00 [23:47:17]line Место: АЗС № 170 "Партнер Нефть" [23:47:17]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:47:17]line СНО: Общий режим [23:47:17]line Чек 327 26.10.2024 23:47 [23:47:17]line Смена: 541 ФФД: 1.0 [23:47:17]line ЗНМ: 0300000110 [23:47:17]line РНМ: 0000000000091776 [23:47:17]line Версия ККМ: 001 [23:47:17]line ФМ: 0000000000871754 [23:47:17]line ФД: 191964 [23:47:17]line ФПД: 203174841213109 [23:47:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234732&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191964&fm=203174841213109&tin=02508201610067®Number=0000000000091776&sum=50000 [23:47:17]OFD Sender: Processing packet 191964 [packets to send 75, broken 74] [23:47:17]ProducePacketName [23:47:17]name=ofd_packets/00191964 [23:47:17]OFD Sender: To server: pG, [23:47:17]CommunicateWithHost lk.salyk.kg:30040 [23:47:17]ConnectInit lk.salyk.kg [23:47:17]written 0, free lines is 4095 [23:47:17]Connected sock=8 [23:47:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 E0 EB 04 01 E5 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC ED 02 00 35 04 06 00 B8 C9 54 3C E0 B5 B8 52 5E 5C 17 8C 2B CD [23:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 70 C5 47 00 C6 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DC ED 02 00 F4 03 04 00 5E 24 1D 67 B6 04 01 00 00 17 B2 ED F3 AE 69 28 F7 [23:47:17]CommunicateWithHost err = 0 [23:47:17]CheckOFDResponse [23:47:17]1017 (14) - 77093643461234 [23:47:17]1041 (16) - 0000000000871754 [23:47:17]1040 (4) - 191964 [23:47:17]1012 (4) - 26.10.2024 17:18 [23:47:17]1206 (1) - 0 [23:47:17]OFD Sender: Remove packet 191964 [23:47:17]ProducePacketName [23:47:17]name=ofd_packets/00191964 [23:47:17]NVStorageDeleteData [23:47:17]Write to MH i2c: 01 00 00 C9 3C 05 [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: 01 07 00 C9 3C 00 00 00 00 00 9E 0C B6 [23:47:17]RasterBufferAndPrint [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]line [23:47:17]written 0, free lines is 3235 [23:47:17]MH_Cut [23:47:17]Write to MH i2c: D1 01 00 D0 3C 01 DE [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 01 00 [23:47:17]MH_I2C_Read... [23:47:17]Read from MH i2c: D1 01 00 D0 3C 00 DD [23:47:17]Write to MH i2c: 01 00 00 D1 3C 0D [23:47:17]Write i2c OK [23:47:17]MH_I2C_Read... [23:47:18]OFD Sender: No OFD packet to send [23:47:18]*** Cut start [23:47:18]*** Partial cut [23:47:18]*** CUTSNS_PIN = 1 [23:47:18]*** CUTSNS_PIN = 0 [23:47:18]*** Brake cut motor [23:47:19]Read from MH i2c: 01 [23:47:19]MH_I2C_Read... [23:47:19]*** Stop cut motor [23:47:19]*** Cut end [23:47:19]Read from MH i2c: 01 07 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: 01 07 00 D1 3C 00 00 00 00 00 FF 0F 22 [23:47:19]process_action close_receipt done [23:47:19]requested_data is exist [23:47:19]produce_requested_data [23:47:19]requested_item fm.sn is exist - process it [23:47:19]wFMCommunicate request_size=4 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 11 00 00 [23:47:19]Write to MH i2c: E2 08 00 D2 3C 80 11 00 00 00 00 00 00 88 [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 17 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 17 00 D2 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DB [23:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:47:19]wFMCommunicate OK [23:47:19]requested_item fd.num is exist - process it [23:47:19]SAM_PROTO_GetFieldsCounters [23:47:19]wFMCommunicate request_size=4 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 13 00 00 [23:47:19]Write to MH i2c: E2 08 00 D3 3C 80 13 00 00 00 00 00 00 8B [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 62 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 62 00 D3 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [23:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DC ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:19]wFMCommunicate OK [23:47:19]SAM_PROTO_GetFieldsCounters done [23:47:19]requested_item shift.num is exist - process it [23:47:19]requested_item shift.opened is exist - process it [23:47:19]req_shift_opened [23:47:19]FM_GetShiftState [23:47:19]SAM_PROTO_GetShiftState [23:47:19]wFMCommunicate request_size=4 [23:47:19]MH_SAM_APDU [23:47:19]CAPDU: 80 13 01 00 [23:47:19]Write to MH i2c: E2 08 00 D4 3C 80 13 01 00 00 00 00 00 8D [23:47:19]Write i2c OK [23:47:19]MH_I2C_Read... [23:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:19]Read from MH i2c: E2 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 0E 00 [23:47:19]MH_I2C_Read... [23:47:19]Read from MH i2c: E2 0E 00 D4 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 06 [23:47:19]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:47:19]wFMCommunicate OK [23:47:19]SAM_PROTO_GetShiftState done [23:47:19]FM_GetShiftState done [23:47:19]req_shift_opened done [23:47:19]requested_item shift.open_date is exist - process it [23:47:19]req_shift_open_date [23:47:19]req_shift_open_date done [23:47:19]produce_requested_data done [23:47:19]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191964,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:47:19]process_action_free close_receipt [23:47:19]json_value_free [23:47:19]json_value_free done [23:47:19]process_json_proto returns [23:47:19]Send response to host [23:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191964,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:47:19]free response buf [23:47:19]execute_script done [23:47:19]execute_script returns [23:47:19]free content buf [23:47:19]Sock 5.Close socket [23:47:19]Sock 5.Thread stoped [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]accept exits with 6 [23:48:08]New connection [23:48:08]New thread 3066817892 created [23:48:08]Thread 3066961252 joined [23:48:08]Waiting for new connection... [23:48:08] Sock 6.Parse request [23:48:08]Sock 6.Check first char [23:48:08]Sock 6.First char is OK [23:48:08]request: POST /json_proto HTTP/1.0 [23:48:08]Method: POST [23:48:08]URL: /json_proto [23:48:08]Method is POST - this is cgi request [23:48:08]url: /json_proto [23:48:08]query_string will be loaded in cgi processing [23:48:08]execute_cgi json_proto POST (null) [23:48:08]execute_cgi path=json_proto method=POST [23:48:08]POST find Content-Length [23:48:08]Host: 172.17.63.131:8080 [23:48:08]Content-Length: 676 [23:48:08]Content-Type: application/json [23:48:08] [23:48:08]POST finish read [23:48:08]Found Content-Length = 676 [23:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:08]execute_script... [23:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:08]POST & json_proto [23:48:08]process_json_proto [23:48:08]json parsed OK: [23:48:08]protocol is kg_v1.0 [23:48:08]action value=close_receipt [23:48:08]process_action close_receipt [23:48:08]cmd_close_receipt [23:48:08]MH_GetDate [23:48:08]Write to MH i2c: F0 00 00 D5 3C 00 [23:48:08]Write i2c OK [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 09 00 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: F0 09 00 D5 3C 00 C9 7F 1D 67 22 05 6E 64 CE [23:48:08]GetLastDocTimeStamp 1729986452 [23:48:08]current date 1729986505 [23:48:08]FM_GetShiftState [23:48:08]SAM_PROTO_GetShiftState [23:48:08]wFMCommunicate request_size=4 [23:48:08]MH_SAM_APDU [23:48:08]CAPDU: 80 13 01 00 [23:48:08]Write to MH i2c: E2 08 00 D6 3C 80 13 01 00 00 00 00 00 8F [23:48:08]Write i2c OK [23:48:08]MH_I2C_Read... [23:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:08]Read from MH i2c: E2 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: E2 0E 00 [23:48:08]MH_I2C_Read... [23:48:08]Read from MH i2c: E2 0E 00 D6 3C 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 08 [23:48:08]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:48:08]wFMCommunicate OK [23:48:08]SAM_PROTO_GetShiftState done [23:48:08]FM_GetShiftState done [23:48:08]opened in 1729902770 [23:48:08]opened+sec_in_day 1729989170 [23:48:08]quantity*price = 50041 [23:48:08]sum+1 = 50042 [23:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 328 26.10.2024 23:48 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191965 ФПД: 236656119293631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191965&fm=236656119293631&tin=02508201610067®Number=0000000000091776&sum=50000 [23:48:09]StoreToDocumentArchive [23:48:09]shift 541 fd 191965 [23:48:09]save to /storage/0541/doc_00191965 [23:48:09]save last doc name /storage/0541/doc_00191965 to /storage/kkm_last_doc_name [23:48:09]save OK [23:48:09]Clear old archive folders... [23:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:09]tlvbuf is 01960C80 [23:48:09]SAM_PROTO_ClearQueue [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 09 00 00 [23:48:09]Write to MH i2c: E2 08 00 E3 3C 80 09 00 00 00 00 00 00 91 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 E3 3C 00 90 00 93 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]SAM_PROTO_ClearQueue done [23:48:09]KKMCreateOFDPacket [23:48:09]OFDProtocolAddRootSTLVToBuf [23:48:09]FM_MakeSignedData [23:48:09]FM_MakeSignedData [23:48:09]SAM_PROTO_SignData [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 01 02 [23:48:09]Write to MH i2c: E2 08 00 E4 3C 80 0D 01 02 00 00 00 00 99 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 E4 3C 00 90 00 94 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=255 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 C9 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD ED 02 00 35 04 06 00 D7 [23:48:09]Write to MH i2c: E2 02 01 E5 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 C9 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD ED 02 00 35 04 06 00 D7 00 00 04 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 E5 3C 00 90 00 95 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=10 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 02 02 05 3C CB EC A6 BF [23:48:09]Write to MH i2c: E2 0D 00 E6 3C 80 0D 02 02 05 00 3C CB EC A6 BF 00 00 FE [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 03 00 E6 3C 00 90 00 96 [23:48:09]RAPDU: 90 00 [23:48:09]wFMCommunicate OK [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 0D 03 02 [23:48:09]Write to MH i2c: E2 08 00 E7 3C 80 0D 03 02 00 00 00 00 9E [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 0B 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 0B 00 E7 3C 00 6A 45 CE 94 50 AC F7 51 90 00 F4 [23:48:09]RAPDU: 6A 45 CE 94 50 AC F7 51 90 00 [23:48:09]wFMCommunicate OK [23:48:09]SAM_PROTO_SignData done [23:48:09]FM_MakeSignedData done [23:48:09]CreateOFDProtocolMessage [23:48:09]wFMCommunicate request_size=4 [23:48:09]MH_SAM_APDU [23:48:09]CAPDU: 80 11 00 00 [23:48:09]Write to MH i2c: E2 08 00 E8 3C 80 11 00 00 00 00 00 00 9E [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:09]Read from MH i2c: E2 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 17 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: E2 17 00 E8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F1 [23:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:48:09]wFMCommunicate OK [23:48:09]CreateOFDProtocolMessage done [23:48:09]OFDSenderStorePacket 191965 [23:48:09]StoreOFDPacket docnum=191965 [23:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 04 07 01 04 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 C9 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD ED 02 00 35 04 06 00 D7 3C CB EC A6 BF 6A 45 CE 94 50 AC F7 51 [23:48:09]CheckFolder [23:48:09]dirname=/storage/ofd_packets [23:48:09]CheckFolder done [23:48:09]ProducePacketName [23:48:09]name=ofd_packets/00191965 [23:48:09]NVStorageSaveData ofd_packets/00191965 [23:48:09]File name is /storage/ofd_packets/00191965 [23:48:09]Write 301 bytes [23:48:09]NVStorageSaveData done [23:48:09]OFDSenderStorePacket done [23:48:09]KKMCreateOFDPacket done [23:48:09]NVStorageSaveData kkm_last_timestamp [23:48:09]File name is /storage/kkm_last_timestamp [23:48:09]Write 4 bytes [23:48:09]NVStorageSaveData done [23:48:09]ExternCall_PrintAddStr [23:48:09]wPrintStart [23:48:09]Write to MH i2c: 01 00 00 E9 3C 25 [23:48:09]Write i2c OK [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 07 00 [23:48:09]MH_I2C_Read... [23:48:09]Read from MH i2c: 01 07 00 E9 3C 00 00 00 00 00 FF 0F 3A [23:48:09]RasterBufferAndPrint [23:48:09]line Счет N : (1)31275 [23:48:09]line ИНН: 02508201610067 [23:48:09]line Контрольно-Кассовый Чек [23:48:09]line ПРОДАЖА [23:48:09]line ТРК (МРК, ГНК) : 12 [23:48:09]line Товар: 2710124130 [23:48:09]line Аи-92-К-5 [23:48:09]line 7.480 * 66.90 [23:48:09]line = 500.41 [23:48:09]line НДС 12% НСП 1% [23:48:09]line > о реализуемом товаре [23:48:09]line ОКРУГЛЕНИЕ: -0.41 [23:48:09]line ИТОГО: 500.00 [23:48:09]line Внесено: 500.00 [23:48:09]line СДАЧА: 0.00 [23:48:09]line НСП 1% : 4.43 [23:48:09]line НДС 12% : 53.14 [23:48:09]line Наличными: 500.00 [23:48:09]line Безнал.: 0.00 [23:48:09]line Место: АЗС № 170 "Партнер Нефть" [23:48:09]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:48:09]line СНО: Общий режим [23:48:09]line Чек 328 26.10.2024 23:48 [23:48:09]line Смена: 541 ФФД: 1.0 [23:48:09]line ЗНМ: 0300000110 [23:48:09]line РНМ: 0000000000091776 [23:48:09]line Версия ККМ: 001 [23:48:09]line ФМ: 0000000000871754 [23:48:09]line ФД: 191965 [23:48:09]line ФПД: 236656119293631 [23:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T234825&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191965&fm=236656119293631&tin=02508201610067®Number=0000000000091776&sum=50000 [23:48:10]OFD Sender: Processing packet 191965 [packets to send 75, broken 74] [23:48:10]ProducePacketName [23:48:10]name=ofd_packets/00191965 [23:48:10]OFD Sender: To server: pG, [23:48:10]CommunicateWithHost lk.salyk.kg:30040 [23:48:10]ConnectInit lk.salyk.kg [23:48:10]written 0, free lines is 4095 [23:48:10]Connected sock=9 [23:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 E1 04 07 01 04 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 01 00 00 F4 03 04 00 C9 7F 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD ED 02 00 35 04 06 00 D7 3C CB EC A6 BF 6A 45 CE 94 50 AC F7 51 [23:48:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 D2 F1 47 00 E4 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DD ED 02 00 F4 03 04 00 92 24 1D 67 B6 04 01 00 00 12 C5 96 53 57 25 7D 61 [23:48:10]CommunicateWithHost err = 0 [23:48:10]CheckOFDResponse [23:48:10]1017 (14) - 77093643461234 [23:48:10]1041 (16) - 0000000000871754 [23:48:10]1040 (4) - 191965 [23:48:10]1012 (4) - 26.10.2024 17:19 [23:48:10]1206 (1) - 0 [23:48:10]OFD Sender: Remove packet 191965 [23:48:10]ProducePacketName [23:48:10]name=ofd_packets/00191965 [23:48:10]NVStorageDeleteData [23:48:10]Write to MH i2c: 01 00 00 14 3D 51 [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 07 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: 01 07 00 14 3D 00 00 00 00 00 A5 0C 09 [23:48:10]RasterBufferAndPrint [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]line [23:48:10]written 0, free lines is 3242 [23:48:10]MH_Cut [23:48:10]Write to MH i2c: D1 01 00 1B 3D 01 2A [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: D1 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: D1 01 00 [23:48:10]MH_I2C_Read... [23:48:10]Read from MH i2c: D1 01 00 1B 3D 00 29 [23:48:10]Write to MH i2c: 01 00 00 1C 3D 59 [23:48:10]Write i2c OK [23:48:10]MH_I2C_Read... [23:48:10]OFD Sender: No OFD packet to send [23:48:11]*** Cut start [23:48:11]*** Partial cut [23:48:11]*** CUTSNS_PIN = 1 [23:48:11]*** CUTSNS_PIN = 0 [23:48:11]*** Brake cut motor [23:48:12]Read from MH i2c: 01 [23:48:12]MH_I2C_Read... [23:48:12]*** Stop cut motor [23:48:12]*** Cut end [23:48:12]Read from MH i2c: 01 07 00 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: 01 07 00 1C 3D 00 00 00 00 00 FF 0F 6E [23:48:12]process_action close_receipt done [23:48:12]requested_data is exist [23:48:12]produce_requested_data [23:48:12]requested_item fm.sn is exist - process it [23:48:12]wFMCommunicate request_size=4 [23:48:12]MH_SAM_APDU [23:48:12]CAPDU: 80 11 00 00 [23:48:12]Write to MH i2c: E2 08 00 1D 3D 80 11 00 00 00 00 00 00 D4 [23:48:12]Write i2c OK [23:48:12]MH_I2C_Read... [23:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:12]Read from MH i2c: E2 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 17 00 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 17 00 1D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 27 [23:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:48:12]wFMCommunicate OK [23:48:12]requested_item fd.num is exist - process it [23:48:12]SAM_PROTO_GetFieldsCounters [23:48:12]wFMCommunicate request_size=4 [23:48:12]MH_SAM_APDU [23:48:12]CAPDU: 80 13 00 00 [23:48:12]Write to MH i2c: E2 08 00 1E 3D 80 13 00 00 00 00 00 00 D7 [23:48:12]Write i2c OK [23:48:12]MH_I2C_Read... [23:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:12]Read from MH i2c: E2 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 62 00 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 62 00 1E 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [23:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DD ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:12]wFMCommunicate OK [23:48:12]SAM_PROTO_GetFieldsCounters done [23:48:12]requested_item shift.num is exist - process it [23:48:12]requested_item shift.opened is exist - process it [23:48:12]req_shift_opened [23:48:12]FM_GetShiftState [23:48:12]SAM_PROTO_GetShiftState [23:48:12]wFMCommunicate request_size=4 [23:48:12]MH_SAM_APDU [23:48:12]CAPDU: 80 13 01 00 [23:48:12]Write to MH i2c: E2 08 00 1F 3D 80 13 01 00 00 00 00 00 D9 [23:48:12]Write i2c OK [23:48:12]MH_I2C_Read... [23:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:12]Read from MH i2c: E2 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 0E 00 [23:48:12]MH_I2C_Read... [23:48:12]Read from MH i2c: E2 0E 00 1F 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 52 [23:48:12]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:48:12]wFMCommunicate OK [23:48:12]SAM_PROTO_GetShiftState done [23:48:12]FM_GetShiftState done [23:48:12]req_shift_opened done [23:48:12]requested_item shift.open_date is exist - process it [23:48:12]req_shift_open_date [23:48:12]req_shift_open_date done [23:48:12]produce_requested_data done [23:48:12]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191965,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:48:12]process_action_free close_receipt [23:48:12]json_value_free [23:48:12]json_value_free done [23:48:12]process_json_proto returns [23:48:12]Send response to host [23:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191965,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:48:12]free response buf [23:48:12]execute_script done [23:48:12]execute_script returns [23:48:12]free content buf [23:48:12]Sock 6.Close socket [23:48:12]Sock 6.Thread stoped [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:11]OFD Sender: No OFD packet to send [23:55:16]OFD Sender: No OFD packet to send [23:55:21]OFD Sender: No OFD packet to send [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:56:58]accept exits with 5 [23:56:58]New connection [23:56:58]New thread 3066961252 created [23:56:58]Thread 3066817892 joined [23:56:58]Waiting for new connection... [23:56:58] Sock 5.Parse request [23:56:58]Sock 5.Check first char [23:56:58]Sock 5.First char is OK [23:56:58]request: POST /json_proto HTTP/1.0 [23:56:58]Method: POST [23:56:58]URL: /json_proto [23:56:58]Method is POST - this is cgi request [23:56:58]url: /json_proto [23:56:58]query_string will be loaded in cgi processing [23:56:58]execute_cgi json_proto POST (null) [23:56:58]execute_cgi path=json_proto method=POST [23:56:58]POST find Content-Length [23:56:58]Host: 172.17.63.131:8080 [23:56:58]Content-Length: 677 [23:56:58]Content-Type: application/json [23:56:58] [23:56:58]POST finish read [23:56:58]Found Content-Length = 677 [23:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:58]execute_script... [23:56: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)31276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:58]POST & json_proto [23:56:58]process_json_proto [23:56:58]json parsed OK: [23:56:58]protocol is kg_v1.0 [23:56:58]action value=close_receipt [23:56:58]process_action close_receipt [23:56:58]cmd_close_receipt [23:56:58]MH_GetDate [23:56:58]Write to MH i2c: F0 00 00 20 3D 4C [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: F0 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: F0 09 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: F0 09 00 20 3D 00 DB 81 1D 67 22 05 6E 64 2E [23:56:58]GetLastDocTimeStamp 1729986505 [23:56:58]current date 1729987035 [23:56:58]FM_GetShiftState [23:56:58]SAM_PROTO_GetShiftState [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 01 00 [23:56:58]Write to MH i2c: E2 08 00 21 3D 80 13 01 00 00 00 00 00 DB [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 21 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 54 [23:56:58]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetShiftState done [23:56:58]FM_GetShiftState done [23:56:58]opened in 1729902770 [23:56:58]opened+sec_in_day 1729989170 [23:56:58]quantity*price = 80012 [23:56:58]sum+1 = 80013 [23:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 329 26.10.2024 23:57 Смена: 541 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191966 ФПД: 64791847755943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T235715&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191966&fm=64791847755943&tin=02508201610067®Number=0000000000091776&sum=80000 [23:56:59]StoreToDocumentArchive [23:56:59]shift 541 fd 191966 [23:56:59]save to /storage/0541/doc_00191966 [23:56:59]save last doc name /storage/0541/doc_00191966 to /storage/kkm_last_doc_name [23:56:59]save OK [23:56:59]Clear old archive folders... [23:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:56:59]tlvbuf is 01B75F90 [23:56:59]SAM_PROTO_ClearQueue [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 09 00 00 [23:56:59]Write to MH i2c: E2 08 00 2E 3D 80 09 00 00 00 00 00 00 DD [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 2E 3D 00 90 00 DF [23:56:59]RAPDU: 90 00 [23:56:59]wFMCommunicate OK [23:56:59]SAM_PROTO_ClearQueue done [23:56:59]KKMCreateOFDPacket [23:56:59]OFDProtocolAddRootSTLVToBuf [23:56:59]FM_MakeSignedData [23:56:59]FM_MakeSignedData [23:56:59]SAM_PROTO_SignData [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 0D 01 02 [23:56:59]Write to MH i2c: E2 08 00 2F 3D 80 0D 01 02 00 00 00 00 E5 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 2F 3D 00 90 00 E0 [23:56:59]RAPDU: 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=255 [23:56:59]MH_SAM_APDU [23:56: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 81 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE ED 02 00 35 04 06 00 3A [23:56:59]Write to MH i2c: E2 02 01 30 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 81 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE ED 02 00 35 04 06 00 3A 00 00 B5 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 30 3D 00 90 00 E1 [23:56:59]RAPDU: 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=10 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 0D 02 02 05 ED 87 11 E0 A7 [23:56:59]Write to MH i2c: E2 0D 00 31 3D 80 0D 02 02 05 00 ED 87 11 E0 A7 00 00 FE [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 03 00 31 3D 00 90 00 E2 [23:56:59]RAPDU: 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 0D 03 02 [23:56:59]Write to MH i2c: E2 08 00 32 3D 80 0D 03 02 00 00 00 00 EA [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 0B 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 0B 00 32 3D 00 12 EF E7 D2 D9 FB 59 37 90 00 09 [23:56:59]RAPDU: 12 EF E7 D2 D9 FB 59 37 90 00 [23:56:59]wFMCommunicate OK [23:56:59]SAM_PROTO_SignData done [23:56:59]FM_MakeSignedData done [23:56:59]CreateOFDProtocolMessage [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 11 00 00 [23:56:59]Write to MH i2c: E2 08 00 33 3D 80 11 00 00 00 00 00 00 EA [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 17 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 17 00 33 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 3D [23:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:56:59]wFMCommunicate OK [23:56:59]CreateOFDProtocolMessage done [23:56:59]OFDSenderStorePacket 191966 [23:56:59]StoreOFDPacket docnum=191966 [23:56:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 77 07 01 6D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 81 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE ED 02 00 35 04 06 00 3A ED 87 11 E0 A7 12 EF E7 D2 D9 FB 59 37 [23:56:59]CheckFolder [23:56:59]dirname=/storage/ofd_packets [23:56:59]CheckFolder done [23:56:59]ProducePacketName [23:56:59]name=ofd_packets/00191966 [23:56:59]NVStorageSaveData ofd_packets/00191966 [23:56:59]File name is /storage/ofd_packets/00191966 [23:56:59]Write 301 bytes [23:56:59]NVStorageSaveData done [23:56:59]OFDSenderStorePacket done [23:56:59]KKMCreateOFDPacket done [23:56:59]NVStorageSaveData kkm_last_timestamp [23:56:59]File name is /storage/kkm_last_timestamp [23:56:59]Write 4 bytes [23:56:59]NVStorageSaveData done [23:56:59]ExternCall_PrintAddStr [23:56:59]wPrintStart [23:56:59]Write to MH i2c: 01 00 00 34 3D 71 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: 01 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: 01 07 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: 01 07 00 34 3D 00 00 00 00 00 FF 0F 86 [23:56:59]RasterBufferAndPrint [23:56:59]line Счет N : (1)31276 [23:56:59]line ИНН: 02508201610067 [23:56:59]line Контрольно-Кассовый Чек [23:56:59]line ПРОДАЖА [23:56:59]line ТРК (МРК, ГНК) : 21 [23:56:59]line Товар: 2710124130 [23:56:59]line Аи-92-К-5 [23:56:59]line 11.960 * 66.90 [23:56:59]line = 800.12 [23:56:59]line НДС 12% НСП 1% [23:56:59]line > о реализуемом товаре [23:56:59]line ОКРУГЛЕНИЕ: -0.12 [23:56:59]line ИТОГО: 800.00 [23:56:59]line Внесено: 800.00 [23:56:59]line СДАЧА: 0.00 [23:56:59]line НСП 1% : 7.08 [23:56:59]line НДС 12% : 84.97 [23:56:59]line Наличными: 800.00 [23:56:59]line Безнал.: 0.00 [23:56:59]line Место: АЗС № 170 "Партнер Нефть" [23:56:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [23:56:59]line СНО: Общий режим [23:56:59]line Чек 329 26.10.2024 23:57 [23:56:59]line Смена: 541 ФФД: 1.0 [23:56:59]line ЗНМ: 0300000110 [23:56:59]line РНМ: 0000000000091776 [23:56:59]line Версия ККМ: 001 [23:57:00]line ФМ: 0000000000871754 [23:57:00]line ФД: 191966 [23:57:00]line ФПД: 64791847755943 [23:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241026T235715&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191966&fm=64791847755943&tin=02508201610067®Number=0000000000091776&sum=80000 [23:57:00]OFD Sender: Processing packet 191966 [packets to send 75, broken 74] [23:57:00]ProducePacketName [23:57:00]name=ofd_packets/00191966 [23:57:00]OFD Sender: To server: pG, [23:57:00]CommunicateWithHost lk.salyk.kg:30040 [23:57:00]ConnectInit lk.salyk.kg [23:57:00]written 0, free lines is 4095 [23:57:00]Connected sock=8 [23:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 3B 77 07 01 6D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 DB 81 1D 67 0E 04 04 00 1D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE ED 02 00 35 04 06 00 3A ED 87 11 E0 A7 12 EF E7 D2 D9 FB 59 37 [23:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DE 16 47 00 53 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DE ED 02 00 F4 03 04 00 A5 26 1D 67 B6 04 01 00 00 C8 A7 B9 BE 77 18 15 84 [23:57:00]CommunicateWithHost err = 0 [23:57:00]CheckOFDResponse [23:57:00]1017 (14) - 77093643461234 [23:57:00]1041 (16) - 0000000000871754 [23:57:00]1040 (4) - 191966 [23:57:00]1012 (4) - 26.10.2024 17:28 [23:57:00]1206 (1) - 0 [23:57:00]OFD Sender: Remove packet 191966 [23:57:00]ProducePacketName [23:57:00]name=ofd_packets/00191966 [23:57:00]NVStorageDeleteData [23:57:00]Write to MH i2c: 01 00 00 5F 3D 9C [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: 01 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: 01 07 00 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: 01 07 00 5F 3D 00 00 00 00 00 B0 0C 5F [23:57:00]RasterBufferAndPrint [23:57:00]line [23:57:00]line [23:57:00]line [23:57:00]line [23:57:00]line [23:57:00]written 0, free lines is 3254 [23:57:00]MH_Cut [23:57:00]Write to MH i2c: D1 01 00 66 3D 01 75 [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: D1 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: D1 01 00 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: D1 01 00 66 3D 00 74 [23:57:00]Write to MH i2c: 01 00 00 67 3D A4 [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:01]OFD Sender: No OFD packet to send [23:57:01]*** Cut start [23:57:01]*** Partial cut [23:57:01]*** CUTSNS_PIN = 1 [23:57:01]*** CUTSNS_PIN = 0 [23:57:01]*** Brake cut motor [23:57:02]Read from MH i2c: 01 [23:57:02]MH_I2C_Read... [23:57:02]*** Stop cut motor [23:57:02]*** Cut end [23:57:02]Read from MH i2c: 01 07 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: 01 07 00 67 3D 00 00 00 00 00 FF 0F B9 [23:57:02]process_action close_receipt done [23:57:02]requested_data is exist [23:57:02]produce_requested_data [23:57:02]requested_item fm.sn is exist - process it [23:57:02]wFMCommunicate request_size=4 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 11 00 00 [23:57:02]Write to MH i2c: E2 08 00 68 3D 80 11 00 00 00 00 00 00 1F [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 17 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 17 00 68 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 72 [23:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [23:57:02]wFMCommunicate OK [23:57:02]requested_item fd.num is exist - process it [23:57:02]SAM_PROTO_GetFieldsCounters [23:57:02]wFMCommunicate request_size=4 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 13 00 00 [23:57:02]Write to MH i2c: E2 08 00 69 3D 80 13 00 00 00 00 00 00 22 [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 62 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 62 00 69 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [23:57:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:02]wFMCommunicate OK [23:57:02]SAM_PROTO_GetFieldsCounters done [23:57:02]requested_item shift.num is exist - process it [23:57:02]requested_item shift.opened is exist - process it [23:57:02]req_shift_opened [23:57:02]FM_GetShiftState [23:57:02]SAM_PROTO_GetShiftState [23:57:02]wFMCommunicate request_size=4 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 13 01 00 [23:57:02]Write to MH i2c: E2 08 00 6A 3D 80 13 01 00 00 00 00 00 24 [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 0E 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 0E 00 6A 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 9D [23:57:02]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [23:57:02]wFMCommunicate OK [23:57:02]SAM_PROTO_GetShiftState done [23:57:02]FM_GetShiftState done [23:57:02]req_shift_opened done [23:57:02]requested_item shift.open_date is exist - process it [23:57:02]req_shift_open_date [23:57:02]req_shift_open_date done [23:57:02]produce_requested_data done [23:57:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [23:57:02]process_action_free close_receipt [23:57:02]json_value_free [23:57:02]json_value_free done [23:57:02]process_json_proto returns [23:57:02]Send response to host [23:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [23:57:02]free response buf [23:57:02]execute_script done [23:57:02]execute_script returns [23:57:02]free content buf [23:57:02]Sock 5.Close socket [23:57:02]Sock 5.Thread stoped [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:23]accept exits with 6 [00:02:23]New connection [00:02:23]New thread 3066817892 created [00:02:23]Thread 3066961252 joined [00:02:23]Waiting for new connection... [00:02:23] Sock 6.Parse request [00:02:23]Sock 6.Check first char [00:02:23]Sock 6.First char is OK [00:02:23]request: POST /json_proto HTTP/1.0 [00:02:23]Method: POST [00:02:23]URL: /json_proto [00:02:23]Method is POST - this is cgi request [00:02:23]url: /json_proto [00:02:23]query_string will be loaded in cgi processing [00:02:23]execute_cgi json_proto POST (null) [00:02:23]execute_cgi path=json_proto method=POST [00:02:23]POST find Content-Length [00:02:23]Host: 172.17.63.131:8080 [00:02:23]Content-Length: 215 [00:02:23]Content-Type: application/json [00:02:23] [00:02:23]POST finish read [00:02:23]Found Content-Length = 215 [00:02: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" ] } } [00:02:23]execute_script... [00:02: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" ] } } [00:02:23]POST & json_proto [00:02:23]process_json_proto [00:02:23]json parsed OK: [00:02:23]protocol is kg_v1.0 [00:02:23]action value=get_value [00:02:23]process_action get_value [00:02:23]cmd_get_value [00:02:23]process_action get_value done [00:02:23]requested_data is exist [00:02:23]produce_requested_data [00:02:23]requested_item kkm.sn is exist - process it [00:02:23]requested_item kkm.ver is exist - process it [00:02:23]requested_item fm.sn is exist - process it [00:02:23]wFMCommunicate request_size=4 [00:02:23]MH_SAM_APDU [00:02:23]CAPDU: 80 11 00 00 [00:02:23]Write to MH i2c: E2 08 00 6B 3D 80 11 00 00 00 00 00 00 22 [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:23]Read from MH i2c: E2 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 17 00 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 17 00 6B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 75 [00:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:02:23]wFMCommunicate OK [00:02:23]requested_item fd.num is exist - process it [00:02:23]SAM_PROTO_GetFieldsCounters [00:02:23]wFMCommunicate request_size=4 [00:02:23]MH_SAM_APDU [00:02:23]CAPDU: 80 13 00 00 [00:02:23]Write to MH i2c: E2 08 00 6C 3D 80 13 00 00 00 00 00 00 25 [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:23]Read from MH i2c: E2 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 62 00 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 62 00 6C 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [00:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:23]wFMCommunicate OK [00:02:23]SAM_PROTO_GetFieldsCounters done [00:02:23]requested_item shift.num is exist - process it [00:02:23]requested_item shift.opened is exist - process it [00:02:23]req_shift_opened [00:02:23]FM_GetShiftState [00:02:23]SAM_PROTO_GetShiftState [00:02:23]wFMCommunicate request_size=4 [00:02:23]MH_SAM_APDU [00:02:23]CAPDU: 80 13 01 00 [00:02:23]Write to MH i2c: E2 08 00 6D 3D 80 13 01 00 00 00 00 00 27 [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:23]Read from MH i2c: E2 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 0E 00 [00:02:23]MH_I2C_Read... [00:02:23]Read from MH i2c: E2 0E 00 6D 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 A0 [00:02:23]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:02:23]wFMCommunicate OK [00:02:23]SAM_PROTO_GetShiftState done [00:02:23]FM_GetShiftState done [00:02:23]req_shift_opened done [00:02:23]requested_item shift.open_date is exist - process it [00:02:23]req_shift_open_date [00:02:23]req_shift_open_date done [00:02:23]produce_requested_data done [00:02:23]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:02:23]process_action_free get_value [00:02:23]json_value_free [00:02:23]json_value_free done [00:02:23]process_json_proto returns [00:02:23]Send response to host [00:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:02:23]free response buf [00:02:23]execute_script done [00:02:23]execute_script returns [00:02:23]free content buf [00:02:23]Sock 6.Close socket [00:02:23]Sock 6.Thread stoped [00:02:23]accept exits with 5 [00:02:23]New connection [00:02:23]New thread 3066961252 created [00:02:23]Thread 3066817892 joined [00:02:23]Waiting for new connection... [00:02:23] Sock 5.Parse request [00:02:23]Sock 5.Check first char [00:02:23]Sock 5.First char is OK [00:02:23]request: POST /json_proto HTTP/1.0 [00:02:23]Method: POST [00:02:23]URL: /json_proto [00:02:23]Method is POST - this is cgi request [00:02:23]url: /json_proto [00:02:23]query_string will be loaded in cgi processing [00:02:23]execute_cgi json_proto POST (null) [00:02:23]execute_cgi path=json_proto method=POST [00:02:23]POST find Content-Length [00:02:23]Host: 172.17.63.131:8080 [00:02:23]Content-Length: 331 [00:02:23]Content-Type: application/json [00:02:23] [00:02:23]POST finish read [00:02:23]Found Content-Length = 331 [00:02: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" ] } } [00:02:23]execute_script... [00:02: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" ] } } [00:02:23]POST & json_proto [00:02:23]process_json_proto [00:02:23]json parsed OK: [00:02:23]protocol is kg_v1.0 [00:02:23]action value=get_value [00:02:23]process_action get_value [00:02:23]cmd_get_value [00:02:23]process_action get_value done [00:02:23]requested_data is exist [00:02:23]produce_requested_data [00:02:23]requested_item fm.sale.total is exist - process it [00:02:23]SAM_PROTO_GetFMData [00:02:23]wFMCommunicate request_size=4 [00:02:23]MH_SAM_APDU [00:02:23]CAPDU: 80 13 03 00 [00:02:23]Write to MH i2c: E2 08 00 6E 3D 80 13 03 00 00 00 00 00 2A [00:02:23]Write i2c OK [00:02:23]MH_I2C_Read... [00:02:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:24]Read from MH i2c: E2 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 6E 3D 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 B9 [00:02:24]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:02:24]wFMCommunicate OK [00:02:24]wFMCommunicate request_size=4 [00:02:24]MH_SAM_APDU [00:02:24]CAPDU: 80 17 00 00 [00:02:24]Write to MH i2c: E2 08 00 6F 3D 80 17 00 00 00 00 00 00 2C [00:02:24]Write i2c OK [00:02:24]MH_I2C_Read... [00:02:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:24]Read from MH i2c: E2 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 6F 3D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [00:02:24]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:24]wFMCommunicate OK [00:02:24]wFMCommunicate request_size=4 [00:02:24]MH_SAM_APDU [00:02:24]CAPDU: 80 17 00 00 [00:02:24]Write to MH i2c: E2 08 00 70 3D 80 17 00 00 00 00 00 00 2D [00:02:24]Write i2c OK [00:02:24]MH_I2C_Read... [00:02:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:24]Read from MH i2c: E2 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 [00:02:24]MH_I2C_Read... [00:02:24]Read from MH i2c: E2 FD 00 70 3D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [00:02:24]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:24]wFMCommunicate OK [00:02:24]wFMCommunicate request_size=4 [00:02:24]MH_SAM_APDU [00:02:24]CAPDU: 80 17 00 00 [00:02:24]Write to MH i2c: E2 08 00 71 3D 80 17 00 00 00 00 00 00 2E [00:02:24]Write i2c OK [00:02:24]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 FD 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 FD 00 71 3D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B3 [00:02:25]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:02:25]wFMCommunicate OK [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 17 00 00 [00:02:25]Write to MH i2c: E2 08 00 72 3D 80 17 00 00 00 00 00 00 2F [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 DE 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 DE 00 72 3D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E [00:02:25]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:25]wFMCommunicate OK [00:02:25]SAM_PROTO_GetFMData done [00:02:25]requested_item fm.sale_refund.total is exist - process it [00:02:25]requested_item fm.buy.total is exist - process it [00:02:25]requested_item shift.sale.total is exist - process it [00:02:25]SAM_PROTO_GetShiftData [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 13 02 00 [00:02:25]Write to MH i2c: E2 08 00 73 3D 80 13 02 00 00 00 00 00 2E [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:25]Read from MH i2c: E2 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 FD 00 [00:02:25]MH_I2C_Read... [00:02:25]Read from MH i2c: E2 FD 00 73 3D 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E7 [00:02:25]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:02:25]wFMCommunicate OK [00:02:25]wFMCommunicate request_size=4 [00:02:25]MH_SAM_APDU [00:02:25]CAPDU: 80 17 00 00 [00:02:25]Write to MH i2c: E2 08 00 74 3D 80 17 00 00 00 00 00 00 31 [00:02:25]Write i2c OK [00:02:25]MH_I2C_Read... [00:02:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:26]Read from MH i2c: E2 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 74 3D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 4A [00:02:26]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:02:26]wFMCommunicate OK [00:02:26]wFMCommunicate request_size=4 [00:02:26]MH_SAM_APDU [00:02:26]CAPDU: 80 17 00 00 [00:02:26]Write to MH i2c: E2 08 00 75 3D 80 17 00 00 00 00 00 00 32 [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:26]Read from MH i2c: E2 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 75 3D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 EB [00:02:26]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:02:26]wFMCommunicate OK [00:02:26]wFMCommunicate request_size=4 [00:02:26]MH_SAM_APDU [00:02:26]CAPDU: 80 17 00 00 [00:02:26]Write to MH i2c: E2 08 00 76 3D 80 17 00 00 00 00 00 00 33 [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:26]OFD Sender: No OFD packet to send [00:02:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:26]Read from MH i2c: E2 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 [00:02:26]MH_I2C_Read... [00:02:26]Read from MH i2c: E2 FD 00 76 3D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AB [00:02:26]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:02:26]wFMCommunicate OK [00:02:26]wFMCommunicate request_size=4 [00:02:26]MH_SAM_APDU [00:02:26]CAPDU: 80 17 00 00 [00:02:26]Write to MH i2c: E2 08 00 77 3D 80 17 00 00 00 00 00 00 34 [00:02:26]Write i2c OK [00:02:26]MH_I2C_Read... [00:02:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:02:27]Read from MH i2c: E2 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 CE 00 [00:02:27]MH_I2C_Read... [00:02:27]Read from MH i2c: E2 CE 00 77 3D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 19 [00:02:27]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:02:27]wFMCommunicate OK [00:02:27]SAM_PROTO_GetShiftData done [00:02:27]requested_item shift.sale.total_cash is exist - process it [00:02:27]requested_item shift.sale_refund.total is exist - process it [00:02:27]requested_item shift.sale_refund.total_cash is exist - process it [00:02:27]requested_item shift.buy.total is exist - process it [00:02:27]requested_item shift.buy.total_cash is exist - process it [00:02:27]produce_requested_data done [00:02:27]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:27]process_action_free get_value [00:02:27]json_value_free [00:02:27]json_value_free done [00:02:27]process_json_proto returns [00:02:27]Send response to host [00:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:27]free response buf [00:02:27]execute_script done [00:02:27]execute_script returns [00:02:27]free content buf [00:02:27]Sock 5.Close socket [00:02:27]Sock 5.Thread stoped [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:46]OFD Sender: No OFD packet to send [00:07:51]OFD Sender: No OFD packet to send [00:07:56]OFD Sender: No OFD packet to send [00:08:01]OFD Sender: No OFD packet to send [00:08:06]OFD Sender: No OFD packet to send [00:08:11]OFD Sender: No OFD packet to send [00:08:16]OFD Sender: No OFD packet to send [00:08:21]OFD Sender: No OFD packet to send [00:08:26]OFD Sender: No OFD packet to send [00:08:31]OFD Sender: No OFD packet to send [00:08:36]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:04]accept exits with 6 [00:23:04]New connection [00:23:04]New thread 3066817892 created [00:23:04]Thread 3066961252 joined [00:23:04]Waiting for new connection... [00:23:04] Sock 6.Parse request [00:23:04]Sock 6.Check first char [00:23:04]Sock 6.First char is OK [00:23:04]request: POST /json_proto HTTP/1.0 [00:23:04]Method: POST [00:23:04]URL: /json_proto [00:23:04]Method is POST - this is cgi request [00:23:04]url: /json_proto [00:23:04]query_string will be loaded in cgi processing [00:23:04]execute_cgi json_proto POST (null) [00:23:04]execute_cgi path=json_proto method=POST [00:23:04]POST find Content-Length [00:23:04]Host: 172.17.63.131:8080 [00:23:04]Content-Length: 215 [00:23:04]Content-Type: application/json [00:23:04] [00:23:04]POST finish read [00:23:04]Found Content-Length = 215 [00:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:04]execute_script... [00:23:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:04]POST & json_proto [00:23:04]process_json_proto [00:23:04]json parsed OK: [00:23:04]protocol is kg_v1.0 [00:23:04]action value=get_value [00:23:04]process_action get_value [00:23:04]cmd_get_value [00:23:04]process_action get_value done [00:23:04]requested_data is exist [00:23:04]produce_requested_data [00:23:04]requested_item kkm.sn is exist - process it [00:23:04]requested_item kkm.ver is exist - process it [00:23:04]requested_item fm.sn is exist - process it [00:23:04]wFMCommunicate request_size=4 [00:23:04]MH_SAM_APDU [00:23:04]CAPDU: 80 11 00 00 [00:23:04]Write to MH i2c: E2 08 00 78 3D 80 11 00 00 00 00 00 00 2F [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:04]Read from MH i2c: E2 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 17 00 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 17 00 78 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 82 [00:23:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:23:04]wFMCommunicate OK [00:23:04]requested_item fd.num is exist - process it [00:23:04]SAM_PROTO_GetFieldsCounters [00:23:04]wFMCommunicate request_size=4 [00:23:04]MH_SAM_APDU [00:23:04]CAPDU: 80 13 00 00 [00:23:04]Write to MH i2c: E2 08 00 79 3D 80 13 00 00 00 00 00 00 32 [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:04]Read from MH i2c: E2 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 62 00 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 62 00 79 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [00:23:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:04]wFMCommunicate OK [00:23:04]SAM_PROTO_GetFieldsCounters done [00:23:04]requested_item shift.num is exist - process it [00:23:04]requested_item shift.opened is exist - process it [00:23:04]req_shift_opened [00:23:04]FM_GetShiftState [00:23:04]SAM_PROTO_GetShiftState [00:23:04]wFMCommunicate request_size=4 [00:23:04]MH_SAM_APDU [00:23:04]CAPDU: 80 13 01 00 [00:23:04]Write to MH i2c: E2 08 00 7A 3D 80 13 01 00 00 00 00 00 34 [00:23:04]Write i2c OK [00:23:04]MH_I2C_Read... [00:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:04]Read from MH i2c: E2 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 0E 00 [00:23:04]MH_I2C_Read... [00:23:04]Read from MH i2c: E2 0E 00 7A 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 AD [00:23:04]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:23:04]wFMCommunicate OK [00:23:04]SAM_PROTO_GetShiftState done [00:23:04]FM_GetShiftState done [00:23:04]req_shift_opened done [00:23:04]requested_item shift.open_date is exist - process it [00:23:04]req_shift_open_date [00:23:04]req_shift_open_date done [00:23:04]produce_requested_data done [00:23:04]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:23:04]process_action_free get_value [00:23:04]json_value_free [00:23:04]json_value_free done [00:23:04]process_json_proto returns [00:23:04]Send response to host [00:23:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:23:04]free response buf [00:23:04]execute_script done [00:23:04]execute_script returns [00:23:04]free content buf [00:23:04]Sock 6.Close socket [00:23:04]Sock 6.Thread stoped [00:23:04]accept exits with 5 [00:23:04]New connection [00:23:04]New thread 3066961252 created [00:23:04]Thread 3066817892 joined [00:23:04]Waiting for new connection... [00:23:04] Sock 5.Parse request [00:23:04]Sock 5.Check first char [00:23:04]Sock 5.First char is OK [00:23:04]request: POST /json_proto HTTP/1.0 [00:23:04]Method: POST [00:23:04]URL: /json_proto [00:23:04]Method is POST - this is cgi request [00:23:04]url: /json_proto [00:23:04]query_string will be loaded in cgi processing [00:23:04]execute_cgi json_proto POST (null) [00:23:04]execute_cgi path=json_proto method=POST [00:23:04]POST find Content-Length [00:23:04]Host: 172.17.63.131:8080 [00:23:04]Content-Length: 331 [00:23:04]Content-Type: application/json [00:23:04] [00:23:04]POST finish read [00:23:04]Found Content-Length = 331 [00:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:04]execute_script... [00:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:05]POST & json_proto [00:23:05]process_json_proto [00:23:05]json parsed OK: [00:23:05]protocol is kg_v1.0 [00:23:05]action value=get_value [00:23:05]process_action get_value [00:23:05]cmd_get_value [00:23:05]process_action get_value done [00:23:05]requested_data is exist [00:23:05]produce_requested_data [00:23:05]requested_item fm.sale.total is exist - process it [00:23:05]SAM_PROTO_GetFMData [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 03 00 [00:23:05]Write to MH i2c: E2 08 00 7B 3D 80 13 03 00 00 00 00 00 37 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 FD 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 FD 00 7B 3D 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 C6 [00:23:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:23:05]wFMCommunicate OK [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 17 00 00 [00:23:05]Write to MH i2c: E2 08 00 7C 3D 80 17 00 00 00 00 00 00 39 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 FD 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 FD 00 7C 3D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4A [00:23:05]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:05]wFMCommunicate OK [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 17 00 00 [00:23:05]Write to MH i2c: E2 08 00 7D 3D 80 17 00 00 00 00 00 00 3A [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 7D 3D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [00:23:06]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 7E 3D 80 17 00 00 00 00 00 00 3B [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 7E 3D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C0 [00:23:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 7F 3D 80 17 00 00 00 00 00 00 3C [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 DE 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 DE 00 7F 3D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [00:23:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:06]wFMCommunicate OK [00:23:06]SAM_PROTO_GetFMData done [00:23:06]requested_item fm.sale_refund.total is exist - process it [00:23:06]requested_item fm.buy.total is exist - process it [00:23:06]requested_item shift.sale.total is exist - process it [00:23:06]SAM_PROTO_GetShiftData [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 13 02 00 [00:23:06]Write to MH i2c: E2 08 00 80 3D 80 13 02 00 00 00 00 00 3B [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 80 3D 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F4 [00:23:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 81 3D 80 17 00 00 00 00 00 00 3E [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 81 3D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 57 [00:23:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 82 3D 80 17 00 00 00 00 00 00 3F [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 82 3D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F8 [00:23:07]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 83 3D 80 17 00 00 00 00 00 00 40 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]OFD Sender: No OFD packet to send [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 83 3D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B8 [00:23:07]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 84 3D 80 17 00 00 00 00 00 00 41 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 CE 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 CE 00 84 3D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 26 [00:23:08]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]SAM_PROTO_GetShiftData done [00:23:08]requested_item shift.sale.total_cash is exist - process it [00:23:08]requested_item shift.sale_refund.total is exist - process it [00:23:08]requested_item shift.sale_refund.total_cash is exist - process it [00:23:08]requested_item shift.buy.total is exist - process it [00:23:08]requested_item shift.buy.total_cash is exist - process it [00:23:08]produce_requested_data done [00:23:08]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:08]process_action_free get_value [00:23:08]json_value_free [00:23:08]json_value_free done [00:23:08]process_json_proto returns [00:23:08]Send response to host [00:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:08]free response buf [00:23:08]execute_script done [00:23:08]execute_script returns [00:23:08]free content buf [00:23:08]Sock 5.Close socket [00:23:08]Sock 5.Thread stoped [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:34]accept exits with 6 [00:24:34]New connection [00:24:34]New thread 3066817892 created [00:24:34]Thread 3066961252 joined [00:24:34]Waiting for new connection... [00:24:34] Sock 6.Parse request [00:24:34]Sock 6.Check first char [00:24:34]Sock 6.First char is OK [00:24:34]request: POST /json_proto HTTP/1.0 [00:24:34]Method: POST [00:24:34]URL: /json_proto [00:24:34]Method is POST - this is cgi request [00:24:34]url: /json_proto [00:24:34]query_string will be loaded in cgi processing [00:24:34]execute_cgi json_proto POST (null) [00:24:34]execute_cgi path=json_proto method=POST [00:24:34]POST find Content-Length [00:24:34]Host: 172.17.63.131:8080 [00:24:34]Content-Length: 215 [00:24:34]Content-Type: application/json [00:24:34] [00:24:34]POST finish read [00:24:34]Found Content-Length = 215 [00:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:34]execute_script... [00:24:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:34]POST & json_proto [00:24:34]process_json_proto [00:24:34]json parsed OK: [00:24:34]protocol is kg_v1.0 [00:24:34]action value=get_value [00:24:34]process_action get_value [00:24:34]cmd_get_value [00:24:34]process_action get_value done [00:24:34]requested_data is exist [00:24:34]produce_requested_data [00:24:34]requested_item kkm.sn is exist - process it [00:24:34]requested_item kkm.ver is exist - process it [00:24:34]requested_item fm.sn is exist - process it [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 11 00 00 [00:24:34]Write to MH i2c: E2 08 00 85 3D 80 11 00 00 00 00 00 00 3C [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 17 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 17 00 85 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8F [00:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:24:34]wFMCommunicate OK [00:24:34]requested_item fd.num is exist - process it [00:24:34]SAM_PROTO_GetFieldsCounters [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 00 00 [00:24:34]Write to MH i2c: E2 08 00 86 3D 80 13 00 00 00 00 00 00 3F [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 62 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 62 00 86 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:24:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:34]wFMCommunicate OK [00:24:34]SAM_PROTO_GetFieldsCounters done [00:24:34]requested_item shift.num is exist - process it [00:24:34]requested_item shift.opened is exist - process it [00:24:34]req_shift_opened [00:24:34]FM_GetShiftState [00:24:34]SAM_PROTO_GetShiftState [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 01 00 [00:24:34]Write to MH i2c: E2 08 00 87 3D 80 13 01 00 00 00 00 00 41 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 0E 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 0E 00 87 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 BA [00:24:34]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:24:34]wFMCommunicate OK [00:24:34]SAM_PROTO_GetShiftState done [00:24:34]FM_GetShiftState done [00:24:34]req_shift_opened done [00:24:34]requested_item shift.open_date is exist - process it [00:24:34]req_shift_open_date [00:24:34]req_shift_open_date done [00:24:34]produce_requested_data done [00:24:34]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:24:34]process_action_free get_value [00:24:34]json_value_free [00:24:34]json_value_free done [00:24:34]process_json_proto returns [00:24:34]Send response to host [00:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:24:34]free response buf [00:24:34]execute_script done [00:24:34]execute_script returns [00:24:34]free content buf [00:24:34]Sock 6.Close socket [00:24:34]Sock 6.Thread stoped [00:24:34]accept exits with 5 [00:24:34]New connection [00:24:34]New thread 3066961252 created [00:24:34]Thread 3066817892 joined [00:24:34]Waiting for new connection... [00:24:34] Sock 5.Parse request [00:24:34]Sock 5.Check first char [00:24:34]Sock 5.First char is OK [00:24:34]request: POST /json_proto HTTP/1.0 [00:24:34]Method: POST [00:24:34]URL: /json_proto [00:24:34]Method is POST - this is cgi request [00:24:34]url: /json_proto [00:24:34]query_string will be loaded in cgi processing [00:24:34]execute_cgi json_proto POST (null) [00:24:34]execute_cgi path=json_proto method=POST [00:24:34]POST find Content-Length [00:24:34]Host: 172.17.63.131:8080 [00:24:34]Content-Length: 331 [00:24:34]Content-Type: application/json [00:24:34] [00:24:34]POST finish read [00:24:34]Found Content-Length = 331 [00:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:34]execute_script... [00:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:35]POST & json_proto [00:24:35]process_json_proto [00:24:35]json parsed OK: [00:24:35]protocol is kg_v1.0 [00:24:35]action value=get_value [00:24:35]process_action get_value [00:24:35]cmd_get_value [00:24:35]process_action get_value done [00:24:35]requested_data is exist [00:24:35]produce_requested_data [00:24:35]requested_item fm.sale.total is exist - process it [00:24:35]SAM_PROTO_GetFMData [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 13 03 00 [00:24:35]Write to MH i2c: E2 08 00 88 3D 80 13 03 00 00 00 00 00 44 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 88 3D 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 D3 [00:24:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 89 3D 80 17 00 00 00 00 00 00 46 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 89 3D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:24:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 8A 3D 80 17 00 00 00 00 00 00 47 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 8A 3D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [00:24:35]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 8B 3D 80 17 00 00 00 00 00 00 48 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 8B 3D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CD [00:24:36]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 8C 3D 80 17 00 00 00 00 00 00 49 [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 DE 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 DE 00 8C 3D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 28 [00:24:36]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:36]wFMCommunicate OK [00:24:36]SAM_PROTO_GetFMData done [00:24:36]requested_item fm.sale_refund.total is exist - process it [00:24:36]requested_item fm.buy.total is exist - process it [00:24:36]requested_item shift.sale.total is exist - process it [00:24:36]SAM_PROTO_GetShiftData [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 13 02 00 [00:24:36]Write to MH i2c: E2 08 00 8D 3D 80 13 02 00 00 00 00 00 48 [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 8D 3D 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 01 [00:24:36]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 8E 3D 80 17 00 00 00 00 00 00 4B [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 8E 3D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 64 [00:24:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 8F 3D 80 17 00 00 00 00 00 00 4C [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 8F 3D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 05 [00:24:37]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 90 3D 80 17 00 00 00 00 00 00 4D [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 90 3D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C5 [00:24:37]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 91 3D 80 17 00 00 00 00 00 00 4E [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:38]OFD Sender: No OFD packet to send [00:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 CE 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 CE 00 91 3D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 33 [00:24:38]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:38]wFMCommunicate OK [00:24:38]SAM_PROTO_GetShiftData done [00:24:38]requested_item shift.sale.total_cash is exist - process it [00:24:38]requested_item shift.sale_refund.total is exist - process it [00:24:38]requested_item shift.sale_refund.total_cash is exist - process it [00:24:38]requested_item shift.buy.total is exist - process it [00:24:38]requested_item shift.buy.total_cash is exist - process it [00:24:38]produce_requested_data done [00:24:38]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:24:38]process_action_free get_value [00:24:38]json_value_free [00:24:38]json_value_free done [00:24:38]process_json_proto returns [00:24:38]Send response to host [00:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:24:38]free response buf [00:24:38]execute_script done [00:24:38]execute_script returns [00:24:38]free content buf [00:24:38]Sock 5.Close socket [00:24:38]Sock 5.Thread stoped [00:24:38]accept exits with 6 [00:24:38]New connection [00:24:38]New thread 3066817892 created [00:24:38]Thread 3066961252 joined [00:24:38]Waiting for new connection... [00:24:38] Sock 6.Parse request [00:24:38]Sock 6.Check first char [00:24:38]Sock 6.First char is OK [00:24:38]request: POST /json_proto HTTP/1.0 [00:24:38]Method: POST [00:24:38]URL: /json_proto [00:24:38]Method is POST - this is cgi request [00:24:38]url: /json_proto [00:24:38]query_string will be loaded in cgi processing [00:24:38]execute_cgi json_proto POST (null) [00:24:38]execute_cgi path=json_proto method=POST [00:24:38]POST find Content-Length [00:24:38]Host: 172.17.63.131:8080 [00:24:38]Content-Length: 331 [00:24:38]Content-Type: application/json [00:24:38] [00:24:38]POST finish read [00:24:38]Found Content-Length = 331 [00:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:38]execute_script... [00:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:38]POST & json_proto [00:24:38]process_json_proto [00:24:38]json parsed OK: [00:24:38]protocol is kg_v1.0 [00:24:38]action value=get_value [00:24:38]process_action get_value [00:24:38]cmd_get_value [00:24:38]process_action get_value done [00:24:38]requested_data is exist [00:24:38]produce_requested_data [00:24:38]requested_item fm.sale.total is exist - process it [00:24:38]SAM_PROTO_GetFMData [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 13 03 00 [00:24:38]Write to MH i2c: E2 08 00 92 3D 80 13 03 00 00 00 00 00 4E [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 92 3D 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 DD [00:24:38]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 17 00 00 [00:24:38]Write to MH i2c: E2 08 00 93 3D 80 17 00 00 00 00 00 00 50 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 93 3D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [00:24:39]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:39]wFMCommunicate OK [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 17 00 00 [00:24:39]Write to MH i2c: E2 08 00 94 3D 80 17 00 00 00 00 00 00 51 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 94 3D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [00:24:39]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:39]wFMCommunicate OK [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 17 00 00 [00:24:39]Write to MH i2c: E2 08 00 95 3D 80 17 00 00 00 00 00 00 52 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 95 3D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D7 [00:24:39]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:24:39]wFMCommunicate OK [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 17 00 00 [00:24:39]Write to MH i2c: E2 08 00 96 3D 80 17 00 00 00 00 00 00 53 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 DE 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 DE 00 96 3D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:24:40]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:40]wFMCommunicate OK [00:24:40]SAM_PROTO_GetFMData done [00:24:40]requested_item fm.sale_refund.total is exist - process it [00:24:40]requested_item fm.buy.total is exist - process it [00:24:40]requested_item shift.sale.total is exist - process it [00:24:40]SAM_PROTO_GetShiftData [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 13 02 00 [00:24:40]Write to MH i2c: E2 08 00 97 3D 80 13 02 00 00 00 00 00 52 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 97 3D 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 0B [00:24:40]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:40]wFMCommunicate OK [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 17 00 00 [00:24:40]Write to MH i2c: E2 08 00 98 3D 80 17 00 00 00 00 00 00 55 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:41]Read from MH i2c: E2 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 98 3D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 6E [00:24:41]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:41]wFMCommunicate OK [00:24:41]wFMCommunicate request_size=4 [00:24:41]MH_SAM_APDU [00:24:41]CAPDU: 80 17 00 00 [00:24:41]Write to MH i2c: E2 08 00 99 3D 80 17 00 00 00 00 00 00 56 [00:24:41]Write i2c OK [00:24:41]MH_I2C_Read... [00:24:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:41]Read from MH i2c: E2 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 99 3D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0F [00:24:41]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:41]wFMCommunicate OK [00:24:41]wFMCommunicate request_size=4 [00:24:41]MH_SAM_APDU [00:24:41]CAPDU: 80 17 00 00 [00:24:41]Write to MH i2c: E2 08 00 9A 3D 80 17 00 00 00 00 00 00 57 [00:24:41]Write i2c OK [00:24:41]MH_I2C_Read... [00:24:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:41]Read from MH i2c: E2 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 FD 00 9A 3D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CF [00:24:41]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:42]wFMCommunicate OK [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 17 00 00 [00:24:42]Write to MH i2c: E2 08 00 9B 3D 80 17 00 00 00 00 00 00 58 [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:42]Read from MH i2c: E2 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 CE 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 CE 00 9B 3D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3D [00:24:42]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:42]wFMCommunicate OK [00:24:42]SAM_PROTO_GetShiftData done [00:24:42]requested_item shift.sale.total_cash is exist - process it [00:24:42]requested_item shift.sale_refund.total is exist - process it [00:24:42]requested_item shift.sale_refund.total_cash is exist - process it [00:24:42]requested_item shift.buy.total is exist - process it [00:24:42]requested_item shift.buy.total_cash is exist - process it [00:24:42]produce_requested_data done [00:24:42]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:24:42]process_action_free get_value [00:24:42]json_value_free [00:24:42]json_value_free done [00:24:42]process_json_proto returns [00:24:42]Send response to host [00:24:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:24:42]free response buf [00:24:42]execute_script done [00:24:42]execute_script returns [00:24:42]free content buf [00:24:42]Sock 6.Close socket [00:24:42]Sock 6.Thread stoped [00:24:42]accept exits with 5 [00:24:42]New connection [00:24:42]New thread 3066961252 created [00:24:42]Thread 3066817892 joined [00:24:42]Waiting for new connection... [00:24:42] Sock 5.Parse request [00:24:42]Sock 5.Check first char [00:24:42]Sock 5.First char is OK [00:24:42]request: POST /json_proto HTTP/1.0 [00:24:42]Method: POST [00:24:42]URL: /json_proto [00:24:42]Method is POST - this is cgi request [00:24:42]url: /json_proto [00:24:42]query_string will be loaded in cgi processing [00:24:42]execute_cgi json_proto POST (null) [00:24:42]execute_cgi path=json_proto method=POST [00:24:42]POST find Content-Length [00:24:42]Host: 172.17.63.131:8080 [00:24:42]Content-Length: 269 [00:24:42]Content-Type: application/json [00:24:42] [00:24:42]POST finish read [00:24:42]Found Content-Length = 269 [00:24:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:42]execute_script... [00:24:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:42]POST & json_proto [00:24:42]process_json_proto [00:24:42]json parsed OK: [00:24:42]protocol is kg_v1.0 [00:24:42]action value=x_report [00:24:42]process_action x_report [00:24:42]cmd_x_report [00:24:42]MH_GetDate [00:24:42]Write to MH i2c: F0 00 00 9C 3D C8 [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 09 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 09 00 9C 3D 00 5B 88 1D 67 22 05 6E 64 31 [00:24:42]GetLastDocTimeStamp 1729987035 [00:24:42]current date 1729988699 [00:24:42]FM_GetShiftState [00:24:42]SAM_PROTO_GetShiftState [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 13 01 00 [00:24:42]Write to MH i2c: E2 08 00 9D 3D 80 13 01 00 00 00 00 00 57 [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:42]Read from MH i2c: E2 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 0E 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 0E 00 9D 3D 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 D0 [00:24:42]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:24:42]wFMCommunicate OK [00:24:42]SAM_PROTO_GetShiftState done [00:24:42]FM_GetShiftState done [00:24:42]KKMCreateXReportDocument [00:24:42]Load OK [00:24:42]Malloc new data [00:24:42]MH_GetDate [00:24:42]Write to MH i2c: F0 00 00 9E 3D CA [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 09 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: F0 09 00 9E 3D 00 5B 88 1D 67 22 05 6E 64 33 [00:24:42]Malloc new data [00:24:42]Malloc new data [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 11 00 00 [00:24:42]Write to MH i2c: E2 08 00 9F 3D 80 11 00 00 00 00 00 00 56 [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:42]Read from MH i2c: E2 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 17 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 17 00 9F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A9 [00:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:24:42]wFMCommunicate OK [00:24:42]SAM_PROTO_GetFieldsCounters [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 13 00 00 [00:24:42]Write to MH i2c: E2 08 00 A0 3D 80 13 00 00 00 00 00 00 59 [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:42]Read from MH i2c: E2 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 62 00 [00:24:42]MH_I2C_Read... [00:24:42]Read from MH i2c: E2 62 00 A0 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [00:24:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:42]wFMCommunicate OK [00:24:42]SAM_PROTO_GetFieldsCounters done [00:24:42]Malloc new data [00:24:42]Malloc new data [00:24:42]Malloc new data [00:24:42]KKMCreateXReportDocument OK [00:24:42]KKMSetXReportData OK [00:24:42]KKMPrepareXReportFMData [00:24:42]SAM_PROTO_GetShiftData [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 13 02 00 [00:24:42]Write to MH i2c: E2 08 00 A1 3D 80 13 02 00 00 00 00 00 5C [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:43]OFD Sender: No OFD packet to send [00:24:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 A1 3D 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 15 [00:24:43]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:43]wFMCommunicate OK [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 17 00 00 [00:24:43]Write to MH i2c: E2 08 00 A2 3D 80 17 00 00 00 00 00 00 5F [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 A2 3D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 78 [00:24:43]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:43]wFMCommunicate OK [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 17 00 00 [00:24:43]Write to MH i2c: E2 08 00 A3 3D 80 17 00 00 00 00 00 00 60 [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 A3 3D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 19 [00:24:44]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 A4 3D 80 17 00 00 00 00 00 00 61 [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 A4 3D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D9 [00:24:44]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 A5 3D 80 17 00 00 00 00 00 00 62 [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 CE 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 CE 00 A5 3D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [00:24:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_GetShiftData done [00:24:45]1194 (1197) - счетчики итогов смены [00:24:45] 1134 (4) - 329 - количество чеков со всеми признаками расчетов [00:24:45] 1129 (158) - счетчики операций «приход» [00:24:45] 1135 (4) - 329 - количество чеков по признаку расчетов [00:24:45] 1201 (4) - 253525.05 - общая итоговая сумма в чеках [00:24:45] 1136 (4) - 237417.00 - итоговая сумма в чеках наличными [00:24:45] 1138 (3) - 16108.05 - итоговая сумма в чеках безналичными [00:24:45] 1024 (123) - суммы налогов [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 0% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1006 (12) - суммы НДС [00:24:45] 1010 (1) - 12% - код ставки НДС [00:24:45] 1011 (3) - 26933.04 - сумма НДС по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (12) - суммы НСП [00:24:45] 1014 (1) - 1% - код ставки НСП [00:24:45] 1015 (3) - 2244.44 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 2% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 3% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 5% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1130 (141) - счетчики операций «возврат прихода» [00:24:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:45] 1024 (117) - суммы налогов [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 0% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 12% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 2% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 3% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 5% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1131 (141) - счетчики операций «расход» [00:24:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:45] 1024 (117) - суммы налогов [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 0% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 12% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 2% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 3% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 5% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1132 (141) - счетчики операций «возврат расхода» [00:24:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:45] 1024 (117) - суммы налогов [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 0% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1006 (9) - суммы НДС [00:24:45] 1010 (1) - 12% - код ставки НДС [00:24:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 2% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 3% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 5% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 0,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1007 (9) - суммы НСП [00:24:45] 1014 (1) - 1,50% - код ставки НСП [00:24:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:45] 1133 (588) - - счетчики коррекции - не используются [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1194 (04AA) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1134 (046E) [00:24:45]Malloc new data [00:24:45]Processing tag 1129 (0469) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1135 (046F) [00:24:45]Malloc new data [00:24:45]Processing tag 1201 (04B1) [00:24:45]Malloc new data [00:24:45]Processing tag 1136 (0470) [00:24:45]Malloc new data [00:24:45]Processing tag 1138 (0472) [00:24:45]Malloc new data [00:24:45]Processing tag 1024 (0400) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1006 (03EE) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1010 (03F2) [00:24:45]Malloc new data [00:24:45]Processing tag 1011 (03F3) [00:24:45]Malloc new data [00:24:45]SetTLVBufToDocument err=0 [00:24:45]Processing tag 1006 (03EE) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1010 (03F2) [00:24:45]Malloc new data [00:24:45]Processing tag 1011 (03F3) [00:24:45]Malloc new data [00:24:45]SetTLVBufToDocument err=0 [00:24:45]Processing tag 1007 (03EF) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1014 (03F6) [00:24:45]Malloc new data [00:24:45]Processing tag 1015 (03F7) [00:24:45]Malloc new data [00:24:45]SetTLVBufToDocument err=0 [00:24:45]Processing tag 1007 (03EF) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1014 (03F6) [00:24:45]Malloc new data [00:24:45]Processing tag 1015 (03F7) [00:24:45]Malloc new data [00:24:45]SetTLVBufToDocument err=0 [00:24:45]Processing tag 1007 (03EF) [00:24:45]Load OK [00:24:45]SetTLVBufToDocument [00:24:45]Processing tag 1014 (03F6) [00:24:45]Malloc new data [00:24:45]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1130 (046A) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1131 (046B) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1132 (046C) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1135 (046F) [00:24:46]Malloc new data [00:24:46]Processing tag 1201 (04B1) [00:24:46]Malloc new data [00:24:46]Processing tag 1136 (0470) [00:24:46]Malloc new data [00:24:46]Processing tag 1138 (0472) [00:24:46]Malloc new data [00:24:46]Processing tag 1024 (0400) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1006 (03EE) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1010 (03F2) [00:24:46]Malloc new data [00:24:46]Processing tag 1011 (03F3) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1007 (03EF) [00:24:46]Load OK [00:24:46]SetTLVBufToDocument [00:24:46]Processing tag 1014 (03F6) [00:24:46]Malloc new data [00:24:46]Processing tag 1015 (03F7) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Processing tag 1133 (046D) [00:24:46]Malloc new data [00:24:46]SetTLVBufToDocument err=0 [00:24:46]SetTLVBufToDocument err=0 [00:24:46]Malloc new data [00:24:46]SAM_PROTO_GetFMData [00:24:46]wFMCommunicate request_size=4 [00:24:46]MH_SAM_APDU [00:24:46]CAPDU: 80 13 03 00 [00:24:46]Write to MH i2c: E2 08 00 A6 3D 80 13 03 00 00 00 00 00 62 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:47]Read from MH i2c: E2 FD 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 A6 3D 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 F1 [00:24:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:24:47]wFMCommunicate OK [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 17 00 00 [00:24:47]Write to MH i2c: E2 08 00 A7 3D 80 17 00 00 00 00 00 00 64 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 FD 00 A7 3D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [00:24:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:47]wFMCommunicate OK [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 17 00 00 [00:24:47]Write to MH i2c: E2 08 00 A8 3D 80 17 00 00 00 00 00 00 65 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 A8 3D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 05 [00:24:48]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:24:48]03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:48]wFMCommunicate OK [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 17 00 00 [00:24:48]Write to MH i2c: E2 08 00 A9 3D 80 17 00 00 00 00 00 00 66 [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:48]Read from MH i2c: E2 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 [00:24:48]MH_I2C_Read... [00:24:48]Read from MH i2c: E2 FD 00 A9 3D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EB [00:24:48]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:24:48]wFMCommunicate OK [00:24:48]wFMCommunicate request_size=4 [00:24:48]MH_SAM_APDU [00:24:48]CAPDU: 80 17 00 00 [00:24:48]Write to MH i2c: E2 08 00 AA 3D 80 17 00 00 00 00 00 00 67 [00:24:48]Write i2c OK [00:24:48]MH_I2C_Read... [00:24:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:24:49]Read from MH i2c: E2 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 DE 00 [00:24:49]MH_I2C_Read... [00:24:49]Read from MH i2c: E2 DE 00 AA 3D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:24:49]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:49]wFMCommunicate OK [00:24:49]SAM_PROTO_GetFMData done [00:24:49]FM_GetFMData:85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:50]oper:6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:50]total:07 E8 CA B4 03 [00:24:50]Malloc new data [00:24:50]oper:6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:50]total:04 E9 2B [00:24:50]Malloc new data [00:24:50]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:50]total: [00:24:50]Malloc new data [00:24:50]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:24:50]total: [00:24:50]Malloc new data [00:24:50]KKMPrepareXReportFMData err=0 [00:24:50]Х отчет ИНН: 02508201610067 Кассир: Асылбекова Ч. 27.10.2024 00:24 Смена: 522 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Всего чеков: 329 ИТОГИ ПРИХОД Чеков: 329 Общий итог: 253525.05 Итого наличными: 237417.00 Итого безнал.: 16108.05 НДС 0% : 0.00 НДС 12% : 26933.04 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2244.44 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 237417.00 НС Приход: 159180984.39 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871754 [00:24:50]StoreToDocumentArchive [00:24:50]MH_GetDate [00:24:50]Write to MH i2c: F0 00 00 AB 3D D7 [00:24:50]Write i2c OK [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 09 00 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: F0 09 00 AB 3D 00 63 88 1D 67 22 05 6E 64 48 [00:24:50]shift 522 fd 1729988707 [00:24:50]Create dir for shift 0522 [00:24:50]save to /storage/0522/doc_1729988707 [00:24:50]save last doc name /storage/0522/doc_1729988707 to /storage/kkm_last_doc_name [00:24:50]save OK [00:24:50]Clear old archive folders... [00:24:50]NVStorageSaveData kkm_last_timestamp [00:24:50]File name is /storage/kkm_last_timestamp [00:24:50]Write 4 bytes [00:24:50]NVStorageSaveData done [00:24:50]ExternCall_PrintAddStr [00:24:50]wPrintStart [00:24:50]Write to MH i2c: 01 00 00 AC 3D E9 [00:24:50]Write i2c OK [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: 01 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: 01 07 00 [00:24:50]MH_I2C_Read... [00:24:50]Read from MH i2c: 01 07 00 AC 3D 00 00 00 00 00 FF 0F FE [00:24:50]RasterBufferAndPrint [00:24:50]line Х отчет [00:24:50]line ИНН: 02508201610067 [00:24:50]line Кассир: Асылбекова Ч. [00:24:50]line 27.10.2024 00:24 [00:24:50]line Смена: 522 [00:24:50]line РНМ: 0000000000091776 [00:24:50]line ЗНМ: 0300000110 [00:24:50]line СНО: Общий режим [00:24:50]line Всего чеков: 329 [00:24:50]line ИТОГИ ПРИХОД [00:24:50]line Чеков: 329 [00:24:50]line Общий итог: 253525.05 [00:24:50]line Итого наличными: 237417.00 [00:24:50]line Итого безнал.: 16108.05 [00:24:50]line НДС 0% : 0.00 [00:24:50]line НДС 12% : 26933.04 [00:24:50]line НСП 0% : 0.00 [00:24:50]line НСП 1,50% : 0.00 [00:24:50]line НСП 0,50% : 0.00 [00:24:50]line НСП 5% : 0.00 [00:24:50]line НСП 3% : 0.00 [00:24:50]line НСП 2% : 0.00 [00:24:50]line НСП 1% : 2244.44 [00:24:50]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:24:50]line Чеков: 0 [00:24:50]line Общий итог: 0.00 [00:24:50]line Итого наличными: 0.00 [00:24:50]line Итого безнал.: 0.00 [00:24:50]line НДС 0% : 0.00 [00:24:50]line НДС 12% : 0.00 [00:24:50]line НСП 0% : 0.00 [00:24:50]line НСП 1,50% : 0.00 [00:24:50]line НСП 0,50% : 0.00 [00:24:50]line НСП 5% : 0.00 [00:24:50]line НСП 3% : 0.00 [00:24:50]line НСП 2% : 0.00 [00:24:50]line НСП 1% : 0.00 [00:24:50]line ИТОГИ РАСХОД [00:24:50]line Чеков: 0 [00:24:50]line Общий итог: 0.00 [00:24:50]line Итого наличными: 0.00 [00:24:50]line Итого безнал.: 0.00 [00:24:50]line НДС 0% : 0.00 [00:24:50]line НДС 12% : 0.00 [00:24:50]line НСП 0% : 0.00 [00:24:50]line НСП 1,50% : 0.00 [00:24:50]line НСП 0,50% : 0.00 [00:24:50]line НСП 5% : 0.00 [00:24:50]line НСП 3% : 0.00 [00:24:50]line НСП 2% : 0.00 [00:24:50]line НСП 1% : 0.00 [00:24:50]line ИТОГИ ВОЗВРАТ РАСХОДА [00:24:50]line Чеков: 0 [00:24:50]line Общий итог: 0.00 [00:24:50]line Итого наличными: 0.00 [00:24:50]line Итого безнал.: 0.00 [00:24:50]line НДС 0% : 0.00 [00:24:50]line НДС 12% : 0.00 [00:24:50]line НСП 0% : 0.00 [00:24:50]line НСП 1,50% : 0.00 [00:24:50]line НСП 0,50% : 0.00 [00:24:50]line НСП 5% : 0.00 [00:24:50]line НСП 3% : 0.00 [00:24:50]line НСП 2% : 0.00 [00:24:50]line НСП 1% : 0.00 [00:24:50]line Сумма внесений: 0.00 [00:24:50]line Сумма выплат: 0.00 [00:24:50]line Нал. в кассе: 237417.00 [00:24:50]line НС Приход: 159180984.39 [00:24:50]line НС Возвр.Прихода: 28777.00 [00:24:50]line НС Расход: 0.00 [00:24:50]line НС Возвр.Расхода: 0.00 [00:24:50]line ФМ: 0000000000871754 [00:24:50]written 0, free lines is 4095 [00:24:51]Write to MH i2c: 01 00 00 F7 3D 34 [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 07 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: 01 07 00 F7 3D 00 00 00 00 00 7F 0A C4 [00:24:51]RasterBufferAndPrint [00:24:51]line [00:24:51]line [00:24:51]line [00:24:51]line [00:24:51]line [00:24:51]written 0, free lines is 2718 [00:24:51]MH_Cut [00:24:51]Write to MH i2c: D1 01 00 FE 3D 01 0D [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: D1 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: D1 01 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: D1 01 00 FE 3D 00 0C [00:24:51]Write to MH i2c: 01 00 00 FF 3D 3C [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:52]*** Cut start [00:24:52]*** Partial cut [00:24:52]*** CUTSNS_PIN = 1 [00:24:52]*** CUTSNS_PIN = 0 [00:24:52]*** Brake cut motor [00:24:53]Read from MH i2c: 01 [00:24:53]MH_I2C_Read... [00:24:53]*** Stop cut motor [00:24:53]*** Cut end [00:24:53]Read from MH i2c: 01 07 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: 01 07 00 FF 3D 00 00 00 00 00 FF 0F 51 [00:24:53]process_action x_report done [00:24:53]requested_data is exist [00:24:53]produce_requested_data [00:24:53]requested_item fd.num is exist - process it [00:24:53]SAM_PROTO_GetFieldsCounters [00:24:53]wFMCommunicate request_size=4 [00:24:53]MH_SAM_APDU [00:24:53]CAPDU: 80 13 00 00 [00:24:53]Write to MH i2c: E2 08 00 00 3E 80 13 00 00 00 00 00 00 BA [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]OFD Sender: No OFD packet to send [00:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:53]Read from MH i2c: E2 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 62 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 62 00 00 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [00:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:53]wFMCommunicate OK [00:24:53]SAM_PROTO_GetFieldsCounters done [00:24:53]requested_item shift.num is exist - process it [00:24:53]requested_item shift.opened is exist - process it [00:24:53]req_shift_opened [00:24:53]FM_GetShiftState [00:24:53]SAM_PROTO_GetShiftState [00:24:53]wFMCommunicate request_size=4 [00:24:53]MH_SAM_APDU [00:24:53]CAPDU: 80 13 01 00 [00:24:53]Write to MH i2c: E2 08 00 01 3E 80 13 01 00 00 00 00 00 BC [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:53]Read from MH i2c: E2 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 0E 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 0E 00 01 3E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 35 [00:24:53]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:24:53]wFMCommunicate OK [00:24:53]SAM_PROTO_GetShiftState done [00:24:53]FM_GetShiftState done [00:24:53]req_shift_opened done [00:24:53]requested_item shift.open_date is exist - process it [00:24:53]req_shift_open_date [00:24:53]req_shift_open_date done [00:24:53]produce_requested_data done [00:24:53]produce_requested_data return {"fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:24:53]process_action_free x_report [00:24:53]json_value_free [00:24:53]json_value_free done [00:24:53]process_json_proto returns [00:24:53]Send response to host [00:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:24:53]free response buf [00:24:53]execute_script done [00:24:53]execute_script returns [00:24:53]free content buf [00:24:53]Sock 5.Close socket [00:24:53]Sock 5.Thread stoped [00:24:56]accept exits with 6 [00:24:56]New connection [00:24:56]New thread 3066817892 created [00:24:56]Thread 3066961252 joined [00:24:56]Waiting for new connection... [00:24:56] Sock 6.Parse request [00:24:56]Sock 6.Check first char [00:24:56]Sock 6.First char is OK [00:24:56]request: POST /json_proto HTTP/1.0 [00:24:56]Method: POST [00:24:56]URL: /json_proto [00:24:56]Method is POST - this is cgi request [00:24:56]url: /json_proto [00:24:56]query_string will be loaded in cgi processing [00:24:56]execute_cgi json_proto POST (null) [00:24:56]execute_cgi path=json_proto method=POST [00:24:56]POST find Content-Length [00:24:56]Host: 172.17.63.131:8080 [00:24:56]Content-Length: 215 [00:24:56]Content-Type: application/json [00:24:56] [00:24:56]POST finish read [00:24:56]Found Content-Length = 215 [00:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:56]execute_script... [00:24:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:56]POST & json_proto [00:24:56]process_json_proto [00:24:56]json parsed OK: [00:24:56]protocol is kg_v1.0 [00:24:56]action value=get_value [00:24:56]process_action get_value [00:24:56]cmd_get_value [00:24:56]process_action get_value done [00:24:56]requested_data is exist [00:24:56]produce_requested_data [00:24:56]requested_item kkm.sn is exist - process it [00:24:56]requested_item kkm.ver is exist - process it [00:24:56]requested_item fm.sn is exist - process it [00:24:56]wFMCommunicate request_size=4 [00:24:56]MH_SAM_APDU [00:24:56]CAPDU: 80 11 00 00 [00:24:56]Write to MH i2c: E2 08 00 02 3E 80 11 00 00 00 00 00 00 BA [00:24:56]Write i2c OK [00:24:56]MH_I2C_Read... [00:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:56]Read from MH i2c: E2 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 17 00 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 17 00 02 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 0D [00:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:24:57]wFMCommunicate OK [00:24:57]requested_item fd.num is exist - process it [00:24:57]SAM_PROTO_GetFieldsCounters [00:24:57]wFMCommunicate request_size=4 [00:24:57]MH_SAM_APDU [00:24:57]CAPDU: 80 13 00 00 [00:24:57]Write to MH i2c: E2 08 00 03 3E 80 13 00 00 00 00 00 00 BD [00:24:57]Write i2c OK [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 [00:24:57]MH_I2C_Read... [00:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:57]Read from MH i2c: E2 62 00 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 62 00 03 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DE ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:57]wFMCommunicate OK [00:24:57]SAM_PROTO_GetFieldsCounters done [00:24:57]requested_item shift.num is exist - process it [00:24:57]requested_item shift.opened is exist - process it [00:24:57]req_shift_opened [00:24:57]FM_GetShiftState [00:24:57]SAM_PROTO_GetShiftState [00:24:57]wFMCommunicate request_size=4 [00:24:57]MH_SAM_APDU [00:24:57]CAPDU: 80 13 01 00 [00:24:57]Write to MH i2c: E2 08 00 04 3E 80 13 01 00 00 00 00 00 BF [00:24:57]Write i2c OK [00:24:57]MH_I2C_Read... [00:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:57]Read from MH i2c: E2 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 0E 00 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 0E 00 04 3E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 38 [00:24:57]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:24:57]wFMCommunicate OK [00:24:57]SAM_PROTO_GetShiftState done [00:24:57]FM_GetShiftState done [00:24:57]req_shift_opened done [00:24:57]requested_item shift.open_date is exist - process it [00:24:57]req_shift_open_date [00:24:57]req_shift_open_date done [00:24:57]produce_requested_data done [00:24:57]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770} [00:24:57]process_action_free get_value [00:24:57]json_value_free [00:24:57]json_value_free done [00:24:57]process_json_proto returns [00:24:57]Send response to host [00:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191966,"shift.num":541,"shift.opened":1,"shift.open_date":1729902770}}} [00:24:57]free response buf [00:24:57]execute_script done [00:24:57]execute_script returns [00:24:57]free content buf [00:24:57]Sock 6.Close socket [00:24:57]Sock 6.Thread stoped [00:24:57]accept exits with 5 [00:24:57]New connection [00:24:57]New thread 3066961252 created [00:24:57]Thread 3066817892 joined [00:24:57]Waiting for new connection... [00:24:57] Sock 5.Parse request [00:24:57]Sock 5.Check first char [00:24:57]Sock 5.First char is OK [00:24:57]request: POST /json_proto HTTP/1.0 [00:24:57]Method: POST [00:24:57]URL: /json_proto [00:24:57]Method is POST - this is cgi request [00:24:57]url: /json_proto [00:24:57]query_string will be loaded in cgi processing [00:24:57]execute_cgi json_proto POST (null) [00:24:57]execute_cgi path=json_proto method=POST [00:24:57]POST find Content-Length [00:24:57]Host: 172.17.63.131:8080 [00:24:57]Content-Length: 331 [00:24:57]Content-Type: application/json [00:24:57] [00:24:57]POST finish read [00:24:57]Found Content-Length = 331 [00:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:57]execute_script... [00:24:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:57]POST & json_proto [00:24:57]process_json_proto [00:24:57]json parsed OK: [00:24:57]protocol is kg_v1.0 [00:24:57]action value=get_value [00:24:57]process_action get_value [00:24:57]cmd_get_value [00:24:57]process_action get_value done [00:24:57]requested_data is exist [00:24:57]produce_requested_data [00:24:57]requested_item fm.sale.total is exist - process it [00:24:57]SAM_PROTO_GetFMData [00:24:57]wFMCommunicate request_size=4 [00:24:57]MH_SAM_APDU [00:24:57]CAPDU: 80 13 03 00 [00:24:57]Write to MH i2c: E2 08 00 05 3E 80 13 03 00 00 00 00 00 C2 [00:24:57]Write i2c OK [00:24:57]MH_I2C_Read... [00:24:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:57]Read from MH i2c: E2 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 05 3E 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 51 [00:24:57]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:24:58]wFMCommunicate OK [00:24:58]wFMCommunicate request_size=4 [00:24:58]MH_SAM_APDU [00:24:58]CAPDU: 80 17 00 00 [00:24:58]Write to MH i2c: E2 08 00 06 3E 80 17 00 00 00 00 00 00 C4 [00:24:58]Write i2c OK [00:24:58]MH_I2C_Read... [00:24:58]OFD Sender: No OFD packet to send [00:24:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:58]Read from MH i2c: E2 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 FD 00 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 FD 00 06 3E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:24:58]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:58]wFMCommunicate OK [00:24:58]wFMCommunicate request_size=4 [00:24:58]MH_SAM_APDU [00:24:58]CAPDU: 80 17 00 00 [00:24:58]Write to MH i2c: E2 08 00 07 3E 80 17 00 00 00 00 00 00 C5 [00:24:58]Write i2c OK [00:24:58]MH_I2C_Read... [00:24:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:58]Read from MH i2c: E2 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 FD 00 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 FD 00 07 3E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:24:59]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:59]wFMCommunicate OK [00:24:59]wFMCommunicate request_size=4 [00:24:59]MH_SAM_APDU [00:24:59]CAPDU: 80 17 00 00 [00:24:59]Write to MH i2c: E2 08 00 08 3E 80 17 00 00 00 00 00 00 C6 [00:24:59]Write i2c OK [00:24:59]MH_I2C_Read... [00:24:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:59]Read from MH i2c: E2 [00:24:59]MH_I2C_Read... [00:24:59]Read from MH i2c: E2 FD 00 [00:24:59]MH_I2C_Read... [00:24:59]Read from MH i2c: E2 FD 00 08 3E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4B [00:24:59]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:24:59]wFMCommunicate OK [00:24:59]wFMCommunicate request_size=4 [00:24:59]MH_SAM_APDU [00:24:59]CAPDU: 80 17 00 00 [00:24:59]Write to MH i2c: E2 08 00 09 3E 80 17 00 00 00 00 00 00 C7 [00:24:59]Write i2c OK [00:24:59]MH_I2C_Read... [00:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:00]Read from MH i2c: E2 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 DE 00 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 DE 00 09 3E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [00:25:00]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:00]wFMCommunicate OK [00:25:00]SAM_PROTO_GetFMData done [00:25:00]requested_item fm.sale_refund.total is exist - process it [00:25:00]requested_item fm.buy.total is exist - process it [00:25:00]requested_item shift.sale.total is exist - process it [00:25:00]SAM_PROTO_GetShiftData [00:25:00]wFMCommunicate request_size=4 [00:25:00]MH_SAM_APDU [00:25:00]CAPDU: 80 13 02 00 [00:25:00]Write to MH i2c: E2 08 00 0A 3E 80 13 02 00 00 00 00 00 C6 [00:25:00]Write i2c OK [00:25:00]MH_I2C_Read... [00:25:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:00]Read from MH i2c: E2 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 FD 00 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 FD 00 0A 3E 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7F [00:25:00]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:01]wFMCommunicate OK [00:25:01]wFMCommunicate request_size=4 [00:25:01]MH_SAM_APDU [00:25:01]CAPDU: 80 17 00 00 [00:25:01]Write to MH i2c: E2 08 00 0B 3E 80 17 00 00 00 00 00 00 C9 [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:01]Read from MH i2c: E2 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 FD 00 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 FD 00 0B 3E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 E2 [00:25:01]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:25:01]wFMCommunicate OK [00:25:01]wFMCommunicate request_size=4 [00:25:01]MH_SAM_APDU [00:25:01]CAPDU: 80 17 00 00 [00:25:01]Write to MH i2c: E2 08 00 0C 3E 80 17 00 00 00 00 00 00 CA [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:01]Read from MH i2c: E2 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 FD 00 [00:25:01]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 FD 00 0C 3E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 83 [00:25:02]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:02]wFMCommunicate OK [00:25:02]wFMCommunicate request_size=4 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 17 00 00 [00:25:02]Write to MH i2c: E2 08 00 0D 3E 80 17 00 00 00 00 00 00 CB [00:25:02]Write i2c OK [00:25:02]MH_I2C_Read... [00:25:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:02]Read from MH i2c: E2 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 FD 00 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 FD 00 0D 3E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 43 [00:25:02]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:02]wFMCommunicate OK [00:25:02]wFMCommunicate request_size=4 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 17 00 00 [00:25:02]Write to MH i2c: E2 08 00 0E 3E 80 17 00 00 00 00 00 00 CC [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 CE 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 CE 00 0E 3E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B1 [00:25:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [00:25:03]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:03]wFMCommunicate OK [00:25:03]SAM_PROTO_GetShiftData done [00:25:03]requested_item shift.sale.total_cash is exist - process it [00:25:03]requested_item shift.sale_refund.total is exist - process it [00:25:03]requested_item shift.sale_refund.total_cash is exist - process it [00:25:03]requested_item shift.buy.total is exist - process it [00:25:03]requested_item shift.buy.total_cash is exist - process it [00:25:03]produce_requested_data done [00:25:03]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:03]process_action_free get_value [00:25:03]json_value_free [00:25:03]json_value_free done [00:25:03]process_json_proto returns [00:25:03]Send response to host [00:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:03]free response buf [00:25:03]execute_script done [00:25:03]execute_script returns [00:25:03]free content buf [00:25:03]Sock 5.Close socket [00:25:03]Sock 5.Thread stoped [00:25:03]accept exits with 6 [00:25:03]New connection [00:25:03]New thread 3066817892 created [00:25:03]Thread 3066961252 joined [00:25:03]Waiting for new connection... [00:25:03] Sock 6.Parse request [00:25:03]Sock 6.Check first char [00:25:03]Sock 6.First char is OK [00:25:03]request: POST /json_proto HTTP/1.0 [00:25:03]Method: POST [00:25:03]URL: /json_proto [00:25:03]Method is POST - this is cgi request [00:25:03]url: /json_proto [00:25:03]query_string will be loaded in cgi processing [00:25:03]execute_cgi json_proto POST (null) [00:25:03]execute_cgi path=json_proto method=POST [00:25:03]POST find Content-Length [00:25:03]Host: 172.17.63.131:8080 [00:25:03]Content-Length: 331 [00:25:03]Content-Type: application/json [00:25:03] [00:25:03]POST finish read [00:25:03]Found Content-Length = 331 [00:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:03]execute_script... [00:25:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:03]POST & json_proto [00:25:03]process_json_proto [00:25:03]json parsed OK: [00:25:03]protocol is kg_v1.0 [00:25:03]action value=get_value [00:25:03]process_action get_value [00:25:03]cmd_get_value [00:25:03]process_action get_value done [00:25:03]requested_data is exist [00:25:03]produce_requested_data [00:25:03]requested_item fm.sale.total is exist - process it [00:25:03]SAM_PROTO_GetFMData [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 13 03 00 [00:25:03]Write to MH i2c: E2 08 00 0F 3E 80 13 03 00 00 00 00 00 CC [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 0F 3E 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 5B [00:25:04]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:25:04]wFMCommunicate OK [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 17 00 00 [00:25:04]Write to MH i2c: E2 08 00 10 3E 80 17 00 00 00 00 00 00 CE [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 10 3E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [00:25:04]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 11 3E 80 17 00 00 00 00 00 00 CF [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 FD 00 11 3E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [00:25:05]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 12 3E 80 17 00 00 00 00 00 00 D0 [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 FD 00 12 3E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 55 [00:25:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 17 00 00 [00:25:06]Write to MH i2c: E2 08 00 13 3E 80 17 00 00 00 00 00 00 D1 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 DE 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 DE 00 13 3E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [00:25:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetFMData done [00:25:07]requested_item fm.sale_refund.total is exist - process it [00:25:07]requested_item fm.buy.total is exist - process it [00:25:07]requested_item shift.sale.total is exist - process it [00:25:07]SAM_PROTO_GetShiftData [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 02 00 [00:25:07]Write to MH i2c: E2 08 00 14 3E 80 13 02 00 00 00 00 00 D0 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 14 3E 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 89 [00:25:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=4 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 17 00 00 [00:25:08]Write to MH i2c: E2 08 00 15 3E 80 17 00 00 00 00 00 00 D3 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 FD 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 FD 00 15 3E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 EC [00:25:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:25:08]wFMCommunicate OK [00:25:08]wFMCommunicate request_size=4 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 17 00 00 [00:25:08]Write to MH i2c: E2 08 00 16 3E 80 17 00 OFD Sender: No OFD packet to send [00:25:08]00 00 00 00 00 D4 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 [00:25:09]MH_I2C_Read... [00:25:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:09]Read from MH i2c: E2 FD 00 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 FD 00 16 3E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 8D [00:25:09]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:09]wFMCommunicate OK [00:25:09]wFMCommunicate request_size=4 [00:25:09]MH_SAM_APDU [00:25:09]CAPDU: 80 17 00 00 [00:25:09]Write to MH i2c: E2 08 00 17 3E 80 17 00 00 00 00 00 00 D5 [00:25:09]Write i2c OK [00:25:09]MH_I2C_Read... [00:25:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:09]Read from MH i2c: E2 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 FD 00 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 FD 00 17 3E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 4D [00:25:09]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:10]wFMCommunicate OK [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 17 00 00 [00:25:10]Write to MH i2c: E2 08 00 18 3E 80 17 00 00 00 00 00 00 D6 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 CE 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 CE 00 18 3E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BB [00:25:10]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_GetShiftData done [00:25:10]requested_item shift.sale.total_cash is exist - process it [00:25:10]requested_item shift.sale_refund.total is exist - process it [00:25:10]requested_item shift.sale_refund.total_cash is exist - process it [00:25:10]requested_item shift.buy.total is exist - process it [00:25:10]requested_item shift.buy.total_cash is exist - process it [00:25:10]produce_requested_data done [00:25:10]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:10]process_action_free get_value [00:25:10]json_value_free [00:25:10]json_value_free done [00:25:10]process_json_proto returns [00:25:10]Send response to host [00:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:10]free response buf [00:25:10]execute_script done [00:25:10]execute_script returns [00:25:10]free content buf [00:25:10]Sock 6.Close socket [00:25:10]Sock 6.Thread stoped [00:25:10]accept exits with 5 [00:25:10]New connection [00:25:10]New thread 3066961252 created [00:25:10]Thread 3066817892 joined [00:25:10]Waiting for new connection... [00:25:10] Sock 5.Parse request [00:25:10]Sock 5.Check first char [00:25:10]Sock 5.First char is OK [00:25:10]request: POST /json_proto HTTP/1.0 [00:25:10]Method: POST [00:25:10]URL: /json_proto [00:25:10]Method is POST - this is cgi request [00:25:10]url: /json_proto [00:25:10]query_string will be loaded in cgi processing [00:25:10]execute_cgi json_proto POST (null) [00:25:10]execute_cgi path=json_proto method=POST [00:25:10]POST find Content-Length [00:25:10]Host: 172.17.63.131:8080 [00:25:10]Content-Length: 272 [00:25:10]Content-Type: application/json [00:25:10] [00:25:10]POST finish read [00:25:10]Found Content-Length = 272 [00:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:10]execute_script... [00:25:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0441\u044B\u043B\u0431\u0435\u043A\u043E\u0432\u0430 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:10]POST & json_proto [00:25:10]process_json_proto [00:25:10]json parsed OK: [00:25:10]protocol is kg_v1.0 [00:25:10]action value=close_shift [00:25:10]process_action close_shift [00:25:10]cmd_close_shift [00:25:10]MH_GetDate [00:25:10]Write to MH i2c: F0 00 00 19 3E 46 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 19 3E 00 78 88 1D 67 22 05 6E 64 CC [00:25:10]GetLastDocTimeStamp 1729988699 [00:25:10]current date 1729988728 [00:25:10]FM_GetShiftState [00:25:10]SAM_PROTO_GetShiftState [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 13 01 00 [00:25:10]Write to MH i2c: E2 08 00 1A 3E 80 13 01 00 00 00 00 00 D5 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0E 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 0E 00 1A 3E 00 09 00 01 B2 38 1C 67 00 00 00 00 90 00 4E [00:25:10]RAPDU: 09 00 01 B2 38 1C 67 00 00 00 00 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_GetShiftState done [00:25:10]FM_GetShiftState done [00:25:10]KKMCreateCloseShiftDocument [00:25:10]Load OK [00:25:10]Malloc new data [00:25:10]MH_GetDate [00:25:10]Write to MH i2c: F0 00 00 1B 3E 48 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: F0 09 00 1B 3E 00 78 88 1D 67 22 05 6E 64 CE [00:25:10]Malloc new data [00:25:10]Malloc new data [00:25:10]Malloc new data [00:25:10]Malloc new data [00:25:10]KKMCreateCloseShiftDocument OK [00:25:10]KKMSetCloseShiftData OK [00:25:10]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:25:10]tlvbuf is 01D3C460 [00:25:10]KKMLoadAndSignCloseShiftData [00:25:10]SAM_PROTO_ProcessDocument [00:25:10]wFMCommunicate request_size=9 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:25:10]Write to MH i2c: E2 0C 00 1C 3E 80 15 01 00 04 00 05 00 4B 00 00 00 31 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=23 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:25:11]Write to MH i2c: E2 1A 00 1D 3E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 D0 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=34 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 [00:25:11]Write to MH i2c: E2 25 00 1E 3E 80 15 02 00 1D 00 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 00 00 CD [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 1E 3E 00 90 00 D0 [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=13 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 15 02 00 08 F4 03 04 00 78 88 1D 67 [00:25:11]Write to MH i2c: E2 10 00 1F 3E 80 15 02 00 08 00 F4 03 04 00 78 88 1D 67 00 00 6C [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 1F 3E 00 90 00 D1 [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=25 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:25:11]Write to MH i2c: E2 1C 00 20 3E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 45 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:11]Read from MH i2c: E2 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 [00:25:11]MH_I2C_Read... [00:25:11]Read from MH i2c: E2 03 00 20 3E 00 90 00 D2 [00:25:11]RAPDU: 90 00 [00:25:11]wFMCommunicate OK [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 15 03 00 [00:25:11]Write to MH i2c: E2 08 00 21 3E 80 15 03 00 00 00 00 00 E0 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 21 3E 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 AF [00:25:12]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:25:12]wFMCommunicate OK [00:25:12]SAM_PROTO_ProcessDocument answer len = 1268 [00:25:12]SAM_PROTO_ProcessDocument remain to read = 1020 [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 17 00 00 [00:25:12]Write to MH i2c: E2 08 00 22 3E 80 17 00 00 00 00 00 00 E0 [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 22 3E 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 34 [00:25:13]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:25:13]wFMCommunicate OK [00:25:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:13]SAM_PROTO_ProcessDocument remain to read = 770 [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 17 00 00 [00:25:13]Write to MH i2c: E2 08 00 23 3E 80 17 00 00 00 00 00 00 E1 [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 23 3E 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 43 [00:25:13]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 OFD Sender: No OFD packet to send [00:25:13]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:14]SAM_PROTO_ProcessDocument remain to read = 520 [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 17 00 00 [00:25:14]Write to MH i2c: E2 08 00 24 3E 80 17 00 00 00 00 00 00 E2 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 24 3E 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 6A [00:25:14]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:25:14]wFMCommunicate OK [00:25:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:14]SAM_PROTO_ProcessDocument remain to read = 270 [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 17 00 00 [00:25:14]Write to MH i2c: E2 08 00 25 3E 80 17 00 00 00 00 00 00 E3 [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 FD 00 25 3E 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 AD [00:25:15]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:15]SAM_PROTO_ProcessDocument remain to read = 20 [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 17 00 00 [00:25:15]Write to MH i2c: E2 08 00 26 3E 80 17 00 00 00 00 00 00 E4 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 17 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 17 00 26 3E 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CF E1 E8 DC D4 AB 90 00 18 [00:25:15]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 CF E1 E8 DC D4 AB 90 00 [00:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:25:15]SAM_PROTO_ProcessDocument done [00:25:15]1209 (1) - 1.0 - номер версии ФФД [00:25:15]1041 (16) - 0000000000871754 - номер ФМ [00:25:15]1040 (4) - 191967 - номер ФД [00:25:15]1038 (4) - 541 - номер смены [00:25:15]1118 (4) - 329 - количество кассовых чеков за смену [00:25:15]1111 (4) - 331 - общее количество ФД за смену [00:25:15]1194 (1197) - счетчики итогов смены [00:25:15] 1134 (4) - 329 - количество чеков со всеми признаками расчетов [00:25:15] 1129 (158) - счетчики операций «приход» [00:25:15] 1135 (4) - 329 - количество чеков по признаку расчетов [00:25:15] 1201 (4) - 253525.05 - общая итоговая сумма в чеках [00:25:15] 1136 (4) - 237417.00 - итоговая сумма в чеках наличными [00:25:15] 1138 (3) - 16108.05 - итоговая сумма в чеках безналичными [00:25:15] 1024 (123) - суммы налогов [00:25:15] 1006 (9) - суммы НДС [00:25:15] 1010 (1) - 0% - код ставки НДС [00:25:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:15] 1006 (12) - суммы НДС [00:25:15] 1010 (1) - 12% - код ставки НДС [00:25:15] 1011 (3) - 26933.04 - сумма НДС по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 0% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (12) - суммы НСП [00:25:15] 1014 (1) - 1% - код ставки НСП [00:25:15] 1015 (3) - 2244.44 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 2% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 3% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 5% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 0,50% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 1,50% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1130 (141) - счетчики операций «возврат прихода» [00:25:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:15] 1024 (117) - суммы налогов [00:25:15] 1006 (9) - суммы НДС [00:25:15] 1010 (1) - 0% - код ставки НДС [00:25:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:15] 1006 (9) - суммы НДС [00:25:15] 1010 (1) - 12% - код ставки НДС [00:25:15] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 0% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 1% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 2% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 3% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 5% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 0,50% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1007 (9) - суммы НСП [00:25:15] 1014 (1) - 1,50% - код ставки НСП [00:25:15] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:15] 1131 (141) - счетчики операций «расход» [00:25:15] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:16] 1024 (117) - суммы налогов [00:25:16] 1006 (9) - суммы НДС [00:25:16] 1010 (1) - 0% - код ставки НДС [00:25:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:16] 1006 (9) - суммы НДС [00:25:16] 1010 (1) - 12% - код ставки НДС [00:25:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 0% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 1% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 2% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 3% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 5% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 0,50% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 1,50% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1132 (141) - счетчики операций «возврат расхода» [00:25:16] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:16] 1024 (117) - суммы налогов [00:25:16] 1006 (9) - суммы НДС [00:25:16] 1010 (1) - 0% - код ставки НДС [00:25:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:16] 1006 (9) - суммы НДС [00:25:16] 1010 (1) - 12% - код ставки НДС [00:25:16] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 0% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 1% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 2% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 3% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 5% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 0,50% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1007 (9) - суммы НСП [00:25:16] 1014 (1) - 1,50% - код ставки НСП [00:25:16] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:16] 1133 (588) - - счетчики коррекции - не используются [00:25:16]1077 (6) - 228569181377707 - ФПД [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1209 (04B9) [00:25:16]Malloc new data [00:25:16]Processing tag 1041 (0411) [00:25:16]Processing tag 1040 (0410) [00:25:16]Malloc new data [00:25:16]Processing tag 1038 (040E) [00:25:16]Malloc new data [00:25:16]Processing tag 1118 (045E) [00:25:16]Malloc new data [00:25:16]Processing tag 1111 (0457) [00:25:16]Malloc new data [00:25:16]Processing tag 1194 (04AA) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1134 (046E) [00:25:16]Malloc new data [00:25:16]Processing tag 1129 (0469) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1135 (046F) [00:25:16]Malloc new data [00:25:16]Processing tag 1201 (04B1) [00:25:16]Malloc new data [00:25:16]Processing tag 1136 (0470) [00:25:16]Malloc new data [00:25:16]Processing tag 1138 (0472) [00:25:16]Malloc new data [00:25:16]Processing tag 1024 (0400) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1130 (046A) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1135 (046F) [00:25:16]Malloc new data [00:25:16]Processing tag 1201 (04B1) [00:25:16]Malloc new data [00:25:16]Processing tag 1136 (0470) [00:25:16]Malloc new data [00:25:16]Processing tag 1138 (0472) [00:25:16]Malloc new data [00:25:16]Processing tag 1024 (0400) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1131 (046B) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1135 (046F) [00:25:16]Malloc new data [00:25:16]Processing tag 1201 (04B1) [00:25:16]Malloc new data [00:25:16]Processing tag 1136 (0470) [00:25:16]Malloc new data [00:25:16]Processing tag 1138 (0472) [00:25:16]Malloc new data [00:25:16]Processing tag 1024 (0400) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1132 (046C) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1135 (046F) [00:25:16]Malloc new data [00:25:16]Processing tag 1201 (04B1) [00:25:16]Malloc new data [00:25:16]Processing tag 1136 (0470) [00:25:16]Malloc new data [00:25:16]Processing tag 1138 (0472) [00:25:16]Malloc new data [00:25:16]Processing tag 1024 (0400) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1006 (03EE) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1010 (03F2) [00:25:16]Malloc new data [00:25:16]Processing tag 1011 (03F3) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1007 (03EF) [00:25:16]Load OK [00:25:16]SetTLVBufToDocument [00:25:16]Processing tag 1014 (03F6) [00:25:16]Malloc new data [00:25:16]Processing tag 1015 (03F7) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1133 (046D) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Processing tag 1077 (0435) [00:25:16]Malloc new data [00:25:16]SetTLVBufToDocument err=0 [00:25:16]Malloc new data [00:25:16]SAM_PROTO_GetFMData [00:25:16]wFMCommunicate request_size=4 [00:25:16]MH_SAM_APDU [00:25:16]CAPDU: 80 13 03 00 [00:25:16]Write to MH i2c: E2 08 00 27 3E 80 13 03 00 00 00 00 00 E4 [00:25:16]Write i2c OK [00:25:16]MH_I2C_Read... [00:25:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 FD 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 FD 00 27 3E 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 73 [00:25:17]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:25:17]wFMCommunicate OK [00:25:17]wFMCommunicate request_size=4 [00:25:17]MH_SAM_APDU [00:25:17]CAPDU: 80 17 00 00 [00:25:17]Write to MH i2c: E2 08 00 28 3E 80 17 00 00 00 00 00 00 E6 [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 FD 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 FD 00 28 3E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:25:18]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=4 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 17 00 00 [00:25:18]Write to MH i2c: E2 08 00 29 3E 80 17 00 00 00 00 00 00 E7 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 FD 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 FD 00 29 3E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 87 [00:25:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 OFD Sender: No OFD packet to send [00:25:19]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=4 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 17 00 00 [00:25:19]Write to MH i2c: E2 08 00 2A 3E 80 17 00 00 00 00 00 00 E8 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 FD 00 2A 3E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6D [00:25:19]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 17 00 00 [00:25:20]Write to MH i2c: E2 08 00 2B 3E 80 17 00 00 00 00 00 00 E9 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 DE 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 DE 00 2B 3E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 [00:25:20]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:20]wFMCommunicate OK [00:25:20]SAM_PROTO_GetFMData done [00:25:20]Malloc new data [00:25:20]Malloc new data [00:25:20]Malloc new data [00:25:20]Malloc new data [00:25:20]KKMLoadAndSignCloseShiftData err=0 [00:25:20]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Асылбекова Ч. 27.10.2024 00:25 Смена: 541 РНМ: 0000000000091776 ЗНМ: 0300000110 СНО: Общий режим Чеков за смену: 329 ФД за смену: 331 Всего чеков: 329 ИТОГИ ПРИХОД Чеков: 329 Общий итог: 253525.05 Итого наличными: 237417.00 Итого безнал.: 16108.05 НДС 0% : 0.00 НДС 12% : 26933.04 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2244.44 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 237417.00 НС Приход: 159180984.39 НС Возвр.Прихода: 28777.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 191967 ФМ: 0000000000871754 ФПД: 228569181377707 [00:25:20]StoreToDocumentArchive [00:25:20]shift 541 fd 191967 [00:25:20]save to /storage/0541/doc_00191967 [00:25:20]save last doc name /storage/0541/doc_00191967 to /storage/kkm_last_doc_name [00:25:20]save OK [00:25:20]Clear old archive folders... [00:25:20]Remove dir /storage/0522 [00:25:20]opendir ok [00:25:20]file . [00:25:20]file .. [00:25:20]file doc_1729988707 [00:25:20]remove file /storage/0522/doc_1729988707 [00:25:20]remove dir /storage/0522 [00:25:20]NVStorageSaveData kkm_registers [00:25:20]File name is /storage/kkm_registers [00:25:20]Write 24 bytes [00:25:20]NVStorageSaveData done [00:25:20]NVStorageSaveData kkm_registers [00:25:20]File name is /storage/kkm_registers [00:25:20]Write 24 bytes [00:25:20]NVStorageSaveData done [00:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:25:20]tlvbuf is 01D861A0 [00:25:20]SAM_PROTO_ClearQueue [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 09 00 00 [00:25:20]Write to MH i2c: E2 08 00 2C 3E 80 09 00 00 00 00 00 00 DC [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 2C 3E 00 90 00 DE [00:25:20]RAPDU: 90 00 [00:25:20]wFMCommunicate OK [00:25:20]SAM_PROTO_ClearQueue done [00:25:20]KKMCreateOFDPacket [00:25:21]OFDProtocolAddRootSTLVToBuf [00:25:21]FM_MakeSignedData [00:25:21]FM_MakeSignedData [00:25:21]SAM_PROTO_SignData [00:25:21]wFMCommunicate request_size=4 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 0D 01 02 [00:25:21]Write to MH i2c: E2 08 00 2D 3E 80 0D 01 02 00 00 00 00 E4 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 03 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 03 00 2D 3E 00 90 00 DF [00:25:21]RAPDU: 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=255 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 78 88 1D 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 D8 04 6E 04 04 00 49 01 00 00 69 04 A5 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B8 18 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:25:21]Write to MH i2c: E2 02 01 2E 3E 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 78 88 1D 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 D8 04 6E 04 04 00 49 01 00 00 69 04 A5 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B8 18 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 EE [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:21]Read from MH i2c: E2 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 03 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: E2 03 00 2E 3E 00 90 00 E0 [00:25:21]RAPDU: 90 00 [00:25:21]wFMCommunicate OK [00:25:21]wFMCommunicate request_size=255 [00:25:21]MH_SAM_APDU [00:25:21]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [00:25:22]Write to MH i2c: E2 02 01 2F 3E 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 8E [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:22]Read from MH i2c: E2 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: E2 03 00 2F 3E 00 90 00 E1 [00:25:22]RAPDU: 90 00 [00:25:22]wFMCommunicate OK [00:25:22]wFMCommunicate request_size=255 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 0D 02 02 FA F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 [00:25:23]Write to MH i2c: E2 02 01 30 3E 80 0D 02 02 FA 00 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 00 00 AB [00:25:23]Write i2c OK [00:25:23]MH_I2C_Read... [00:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:23]Read from MH i2c: E2 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 03 00 [00:25:23]MH_I2C_Read... [00:25:23]Read from MH i2c: E2 03 00 30 3E 00 90 00 E2 [00:25:23]RAPDU: 90 00 [00:25:23]wFMCommunicate OK [00:25:23]wFMCommunicate request_size=255 [00:25:23]MH_SAM_APDU [00:25:23]CAPDU: 80 0D 02 02 FA F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 [00:25:23]Write to MH i2c: E2 02 01 31 3E 80 0D 02 02 FA 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 AE [00:25:24]OFD Sender: No OFD packet to send [00:25:24]Write i2c OK [00:25:24]MH_I2C_Read... [00:25:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:24]Read from MH i2c: E2 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 [00:25:24]MH_I2C_Read... [00:25:24]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [00:25:24]RAPDU: 90 00 [00:25:24]wFMCommunicate OK [00:25:24]wFMCommunicate request_size=255 [00:25:24]MH_SAM_APDU [00:25:24]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [00:25:24]Write to MH i2c: E2 02 01 32 3E 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 00 70 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 03 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [00:25:25]RAPDU: 90 00 [00:25:25]wFMCommunicate OK [00:25:25]wFMCommunicate request_size=145 [00:25:25]MH_SAM_APDU [00:25:25]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DF ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 CF E1 E8 DC D4 AB [00:25:25]Write to MH i2c: E2 94 00 33 3E 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DF ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 CF E1 E8 DC D4 AB 00 00 F4 [00:25:25]Write i2c OK [00:25:25]MH_I2C_Read... [00:25:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:25]Read from MH i2c: E2 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 03 00 [00:25:25]MH_I2C_Read... [00:25:25]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [00:25:26]RAPDU: 90 00 [00:25:26]wFMCommunicate OK [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 0D 03 02 [00:25:26]Write to MH i2c: E2 08 00 34 3E 80 0D 03 02 00 00 00 00 ED [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:26]Read from MH i2c: E2 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0B 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 0B 00 34 3E 00 7C 6F 9F AF 9A 7F B7 60 90 00 57 [00:25:26]RAPDU: 7C 6F 9F AF 9A 7F B7 60 90 00 [00:25:26]wFMCommunicate OK [00:25:26]SAM_PROTO_SignData done [00:25:26]FM_MakeSignedData done [00:25:26]CreateOFDProtocolMessage [00:25:26]wFMCommunicate request_size=4 [00:25:26]MH_SAM_APDU [00:25:26]CAPDU: 80 11 00 00 [00:25:26]Write to MH i2c: E2 08 00 35 3E 80 11 00 00 00 00 00 00 ED [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 [00:25:26]MH_I2C_Read... [00:25:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:26]Read from MH i2c: E2 17 00 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: E2 17 00 35 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 40 [00:25:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:25:26]wFMCommunicate OK [00:25:26]CreateOFDProtocolMessage done [00:25:26]OFDSenderStorePacket 191967 [00:25:26]StoreOFDPacket docnum=191967 [00:25:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7E 05 00 00 C7 79 76 05 38 22 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 78 88 1D 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 D8 04 6E 04 04 00 49 01 00 00 69 04 A5 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B8 18 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DF ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 CF E1 E8 DC D4 AB 7C 6F 9F AF 9A 7F B7 60 [00:25:26]CheckFolder [00:25:26]dirname=/storage/ofd_packets [00:25:26]CheckFolder done [00:25:26]ProducePacketName [00:25:26]name=ofd_packets/00191967 [00:25:26]NVStorageSaveData ofd_packets/00191967 [00:25:26]File name is /storage/ofd_packets/00191967 [00:25:26]Write 1436 bytes [00:25:26]NVStorageSaveData done [00:25:26]OFDSenderStorePacket done [00:25:26]KKMCreateOFDPacket done [00:25:26]NVStorageSaveData kkm_last_timestamp [00:25:26]File name is /storage/kkm_last_timestamp [00:25:26]Write 4 bytes [00:25:26]NVStorageSaveData done [00:25:26]ExternCall_PrintAddStr [00:25:26]wPrintStart [00:25:26]Write to MH i2c: 01 00 00 36 3E 74 [00:25:26]Write i2c OK [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: 01 [00:25:26]MH_I2C_Read... [00:25:26]Read from MH i2c: 01 07 00 [00:25:26]MH_I2C_Read... [00:25:26]OFD Sender: Processing packet 191967 [packets to send 75, broken 74] [00:25:26]ProducePacketName [00:25:26]name=ofd_packets/00191967 [00:25:26]OFD Sender: To server: pG, [00:25:26]CommunicateWithHost lk.salyk.kg:30040 [00:25:26]ConnectInit lk.salyk.kg [00:25:26]Read from MH i2c: 01 07 00 36 3E 00 00 00 00 00 FF 0F 89 [00:25:26]RasterBufferAndPrint [00:25:26]line Отчет о закрытии смены [00:25:26]line ФФД: 1.0 [00:25:26]line ИНН: 02508201610067 [00:25:26]line Кассир: Асылбекова Ч. [00:25:26]line 27.10.2024 00:25 [00:25:26]line Смена: 541 [00:25:26]line РНМ: 0000000000091776 [00:25:26]line ЗНМ: 0300000110 [00:25:26]line СНО: Общий режим [00:25:26]line Чеков за смену: 329 [00:25:26]line ФД за смену: 331 [00:25:26]line Всего чеков: 329 [00:25:26]line ИТОГИ ПРИХОД [00:25:26]line Чеков: 329 [00:25:26]line Общий итог: 253525.05 [00:25:26]line Итого наличными: 237417.00 [00:25:26]line Итого безнал.: 16108.05 [00:25:26]line НДС 0% : 0.00 [00:25:26]line НДС 12% : 26933.04 [00:25:26]line НСП 0% : 0.00 [00:25:26]line НСП 1,50% : 0.00 [00:25:26]line НСП 0,50% : 0.00 [00:25:26]line НСП 5% : 0.00 [00:25:26]line НСП 3% : 0.00 [00:25:26]line НСП 2% : 0.00 [00:25:26]line НСП 1% : 2244.44 [00:25:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:25:26]line Чеков: 0 [00:25:26]line Общий итог: 0.00 [00:25:26]line Итого наличными: 0.00 [00:25:26]line Итого безнал.: 0.00 [00:25:26]line НДС 0% : 0.00 [00:25:26]line НДС 12% : 0.00 [00:25:26]line НСП 0% : 0.00 [00:25:26]line НСП 1,50% : 0.00 [00:25:26]line НСП 0,50% : 0.00 [00:25:26]line НСП 5% : 0.00 [00:25:26]line НСП 3% : 0.00 [00:25:26]line НСП 2% : 0.00 [00:25:26]line НСП 1% : 0.00 [00:25:26]line ИТОГИ РАСХОД [00:25:26]line Чеков: 0 [00:25:26]line Общий итог: 0.00 [00:25:26]line Итого наличными: 0.00 [00:25:26]line Итого безнал.: 0.00 [00:25:26]line НДС 0% : 0.00 [00:25:26]line НДС 12% : 0.00 [00:25:26]line НСП 0% : 0.00 [00:25:26]line НСП 1,50% : 0.00 [00:25:26]line НСП 0,50% : 0.00 [00:25:26]line НСП 5% : 0.00 [00:25:26]line НСП 3% : 0.00 [00:25:26]line НСП 2% : 0.00 [00:25:26]line НСП 1% : 0.00 [00:25:26]line ИТОГИ ВОЗВРАТ РАСХОДА [00:25:26]line Чеков: 0 [00:25:26]line Общий итог: 0.00 [00:25:26]line Итого наличными: 0.00 [00:25:26]line Итого безнал.: 0.00 [00:25:26]line НДС 0% : 0.00 [00:25:26]line НДС 12% : 0.00 [00:25:26]line НСП 0% : 0.00 [00:25:26]line НСП 1,50% : 0.00 [00:25:26]line НСП 0,50% : 0.00 [00:25:26]line НСП 5% : 0.00 [00:25:26]line НСП 3% : 0.00 [00:25:26]line НСП 2% : 0.00 [00:25:26]line НСП 1% : 0.00 [00:25:26]line Сумма внесений: 0.00 [00:25:26]line Сумма выплат: 0.00 [00:25:26]line Нал. в кассе: 237417.00 [00:25:26]line НС Приход: 159180984.39 [00:25:26]line НС Возвр.Прихода: 28777.00 [00:25:26]line НС Расход: 0.00 [00:25:26]line НС Возвр.Расхода: 0.00 [00:25:26]line ФД: 191967 [00:25:26]line ФМ: 0000000000871754 [00:25:26]line ФПД: 228569181377707 [00:25:26]Connected sock=8 [00:25:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 7E 05 00 00 C7 79 76 05 38 22 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 90 D1 81 D1 8B D0 BB D0 B1 D0 B5 D0 BA D0 BE D0 B2 D0 B0 20 D0 A7 2E 20 F4 03 04 00 78 88 1D 67 0E 04 04 00 1D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 5E written 0, free lines is 4095 [00:25:27]04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 AA 04 D8 04 6E 04 04 00 49 01 00 00 69 04 A5 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B8 18 29 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF Write to MH i2c: 03 01 0A 00 00 00 F6 86 03 3E C4 01 [00:25:28]00 Write i2c OK [00:25:28]03 MH_I2C_Read... [00:25:28]F7 03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 [00:25:28]01 MH_I2C_Read... [00:25:28]00 02 F7 03 01 00 00 EF 03 0A Read from MH i2c: 00 01 F6 07 03 00 01 [00:25:28]00 MH_I2C_Read... [00:25:28]01 F7 03 01 00 00 6D Read from MH i2c: 04 01 4C 07 02 00 78 86 04 3E 04 00 00 00 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 3C 00 0B 00 12 00 [00:25:28]B1 RasterBufferAndPrint [00:25:28]04 line [00:25:28]00 line [00:25:28]00 70 04 00 00 72 04 00 00 line [00:25:28]00 line [00:25:28]04 line [00:25:28]75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 written 0, free lines is 3088 [00:25:28]00 EE 03 09 00 F2 03 01 00 01 MH_Cut [00:25:28]F3 Write to MH i2c: 03 D1 00 01 00 00 EF 8D 03 09 00 F6 03 01 00 00 F7 03 3E 00 01 00 9D EF [00:25:28]03 09 00 F6 03 01 00 01 F7 03 00 00 Write i2c OK [00:25:28]EF MH_I2C_Read... [00:25:28]03 09 00 F6 03 Read from MH i2c: 01 D1 00 [00:25:28]02 MH_I2C_Read... [00:25:28]F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 D1 00 01 03 00 [00:25:28]F7 03 00 00 EF 03 09 00 F6 03 MH_I2C_Read... [00:25:28]01 Read from MH i2c: 00 D1 04 01 00 F7 03 00 00 EF 03 09 00 F6 03 8D 01 3E 00 00 05 9C F7 [00:25:28]03 Write to MH i2c: 00 01 00 00 EF 00 03 09 00 F6 03 01 00 06 F7 8E 03 3E 00 CC 00 [00:25:28]D0 04 8D 00 6F 04 04 00 00 00 00 00 Write i2c OK [00:25:28]B1 MH_I2C_Read... [00:25:28]04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 DF ED 02 00 11 04 10 00 *** Cut start [00:25:29]30 *** Partial cut [00:25:29]30 *** CUTSNS_PIN = 1 [00:25:29]30 30 30 30 *** CUTSNS_PIN = 0 [00:25:29]30 30 30 30 38 37 31 37 35 34 35 04 06 00 CF E1 E8 DC D4 AB 7C 6F 9F AF 9A 7F B7 60 [00:25:29]*** Brake cut motor [00:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 44 8C 47 00 A3 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 DF ED 02 00 F4 03 04 00 51 2D 1D 67 B6 04 01 00 00 BE B4 CE E1 14 69 4A 91 [00:25:29]CommunicateWithHost err = 0 [00:25:29]CheckOFDResponse [00:25:29]1017 (14) - 77093643461234 [00:25:29]1041 (16) - 0000000000871754 [00:25:29]1040 (4) - 191967 [00:25:29]1012 (4) - 26.10.2024 17:56 [00:25:29]1206 (1) - 0 [00:25:29]OFD Sender: Remove packet 191967 [00:25:29]ProducePacketName [00:25:29]name=ofd_packets/00191967 [00:25:29]NVStorageDeleteData [00:25:29]*** Stop cut motor [00:25:29]*** Cut end [00:25:29]Read from MH i2c: 01 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: 01 07 00 [00:25:29]MH_I2C_Read... [00:25:29]Read from MH i2c: 01 07 00 8E 3E 00 00 00 00 00 FF 0F E1 [00:25:29]process_action close_shift done [00:25:29]requested_data is exist [00:25:29]produce_requested_data [00:25:29]requested_item fd.num is exist - process it [00:25:29]SAM_PROTO_GetFieldsCounters [00:25:29]wFMCommunicate request_size=4 [00:25:29]MH_SAM_APDU [00:25:29]CAPDU: 80 13 00 00 [00:25:29]Write to MH i2c: E2 08 00 8F 3E 80 13 00 00 00 00 00 00 49 [00:25:29]Write i2c OK [00:25:29]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 62 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 62 00 8F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 3B [00:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetFieldsCounters done [00:25:30]requested_item shift.num is exist - process it [00:25:30]requested_item shift.opened is exist - process it [00:25:30]req_shift_opened [00:25:30]FM_GetShiftState [00:25:30]SAM_PROTO_GetShiftState [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 01 00 [00:25:30]Write to MH i2c: E2 08 00 90 3E 80 13 01 00 00 00 00 00 4B [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]OFD Sender: No OFD packet to send [00:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 90 3E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 56 [00:25:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetShiftState done [00:25:30]FM_GetShiftState done [00:25:30]req_shift_opened done [00:25:30]requested_item shift.open_date is exist - process it [00:25:30]req_shift_open_date [00:25:30]FM_GetShiftState [00:25:30]SAM_PROTO_GetShiftState [00:25:30]wFMCommunicate request_size=4 [00:25:30]MH_SAM_APDU [00:25:30]CAPDU: 80 13 01 00 [00:25:30]Write to MH i2c: E2 08 00 91 3E 80 13 01 00 00 00 00 00 4C [00:25:30]Write i2c OK [00:25:30]MH_I2C_Read... [00:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:30]Read from MH i2c: E2 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 [00:25:30]MH_I2C_Read... [00:25:30]Read from MH i2c: E2 0E 00 91 3E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 57 [00:25:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:30]wFMCommunicate OK [00:25:30]SAM_PROTO_GetShiftState done [00:25:30]FM_GetShiftState done [00:25:30]req_shift_open_date done [00:25:30]produce_requested_data done [00:25:30]produce_requested_data return {"fd.num":191967,"shift.num":541,"shift.opened":0,"shift.open_date":0} [00:25:30]process_action_free close_shift [00:25:30]json_value_free [00:25:30]json_value_free done [00:25:30]process_json_proto returns [00:25:30]Send response to host [00:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191967,"shift.num":541,"shift.opened":0,"shift.open_date":0}}} [00:25:30]free response buf [00:25:30]execute_script done [00:25:30]execute_script returns [00:25:30]free content buf [00:25:30]Sock 5.Close socket [00:25:30]Sock 5.Thread stoped [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:18]accept exits with 6 [00:32:18]New connection [00:32:18]New thread 3066817892 created [00:32:18]Thread 3066961252 joined [00:32:18]Waiting for new connection... [00:32:18] Sock 6.Parse request [00:32:18]Sock 6.Check first char [00:32:18]Sock 6.First char is OK [00:32:18]request: POST /json_proto HTTP/1.0 [00:32:18]Method: POST [00:32:18]URL: /json_proto [00:32:18]Method is POST - this is cgi request [00:32:18]url: /json_proto [00:32:18]query_string will be loaded in cgi processing [00:32:18]execute_cgi json_proto POST (null) [00:32:18]execute_cgi path=json_proto method=POST [00:32:18]POST find Content-Length [00:32:18]Host: 172.17.63.131:8080 [00:32:18]Content-Length: 215 [00:32:18]Content-Type: application/json [00:32:18] [00:32:18]POST finish read [00:32:18]Found Content-Length = 215 [00:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:18]execute_script... [00:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:18]POST & json_proto [00:32:18]process_json_proto [00:32:18]json parsed OK: [00:32:18]protocol is kg_v1.0 [00:32:18]action value=get_value [00:32:18]process_action get_value [00:32:18]cmd_get_value [00:32:18]process_action get_value done [00:32:18]requested_data is exist [00:32:18]produce_requested_data [00:32:18]requested_item kkm.sn is exist - process it [00:32:18]requested_item kkm.ver is exist - process it [00:32:18]requested_item fm.sn is exist - process it [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 11 00 00 [00:32:18]Write to MH i2c: E2 08 00 92 3E 80 11 00 00 00 00 00 00 4A [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 17 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 17 00 92 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 9D [00:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:32:18]wFMCommunicate OK [00:32:18]requested_item fd.num is exist - process it [00:32:18]SAM_PROTO_GetFieldsCounters [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 13 00 00 [00:32:18]Write to MH i2c: E2 08 00 93 3E 80 13 00 00 00 00 00 00 4D [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 62 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 62 00 93 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [00:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 DF ED 02 00 0E 04 04 00 1D 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:18]wFMCommunicate OK [00:32:18]SAM_PROTO_GetFieldsCounters done [00:32:18]requested_item shift.num is exist - process it [00:32:18]requested_item shift.opened is exist - process it [00:32:18]req_shift_opened [00:32:18]FM_GetShiftState [00:32:18]SAM_PROTO_GetShiftState [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 13 01 00 [00:32:18]Write to MH i2c: E2 08 00 94 3E 80 13 01 00 00 00 00 00 4F [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 0E 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 0E 00 94 3E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5A [00:32:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:18]wFMCommunicate OK [00:32:18]SAM_PROTO_GetShiftState done [00:32:18]FM_GetShiftState done [00:32:18]req_shift_opened done [00:32:18]requested_item shift.open_date is exist - process it [00:32:18]req_shift_open_date [00:32:18]FM_GetShiftState [00:32:18]SAM_PROTO_GetShiftState [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 13 01 00 [00:32:18]Write to MH i2c: E2 08 00 95 3E 80 13 01 00 00 00 00 00 50 [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:18]Read from MH i2c: E2 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 0E 00 [00:32:18]MH_I2C_Read... [00:32:18]Read from MH i2c: E2 0E 00 95 3E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5B [00:32:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:18]wFMCommunicate OK [00:32:18]SAM_PROTO_GetShiftState done [00:32:18]FM_GetShiftState done [00:32:18]req_shift_open_date done [00:32:18]produce_requested_data done [00:32:18]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191967,"shift.num":541,"shift.opened":0,"shift.open_date":0} [00:32:18]process_action_free get_value [00:32:18]json_value_free [00:32:18]json_value_free done [00:32:18]process_json_proto returns [00:32:18]Send response to host [00:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191967,"shift.num":541,"shift.opened":0,"shift.open_date":0}}} [00:32:18]free response buf [00:32:18]execute_script done [00:32:18]execute_script returns [00:32:18]free content buf [00:32:18]Sock 6.Close socket [00:32:18]Sock 6.Thread stoped [00:32:18]accept exits with 8 [00:32:18]New connection [00:32:18]New thread 3066961252 created [00:32:18]Thread 3066817892 joined [00:32:18]Waiting for new connection... [00:32:18] Sock 8.Parse request [00:32:18]Sock 8.Check first char [00:32:18]Sock 8.First char is OK [00:32:18]request: POST /json_proto HTTP/1.0 [00:32:18]Method: POST [00:32:18]URL: /json_proto [00:32:18]Method is POST - this is cgi request [00:32:18]url: /json_proto [00:32:18]query_string will be loaded in cgi processing [00:32:18]execute_cgi json_proto POST (null) [00:32:18]execute_cgi path=json_proto method=POST [00:32:18]POST find Content-Length [00:32:18]Host: 172.17.63.131:8080 [00:32:18]Content-Length: 331 [00:32:18]Content-Type: application/json [00:32:18] [00:32:18]POST finish read [00:32:18]Found Content-Length = 331 [00:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:18]execute_script... [00:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:18]POST & json_proto [00:32:18]process_json_proto [00:32:18]json parsed OK: [00:32:18]protocol is kg_v1.0 [00:32:18]action value=get_value [00:32:18]process_action get_value [00:32:18]cmd_get_value [00:32:18]process_action get_value done [00:32:18]requested_data is exist [00:32:18]produce_requested_data [00:32:18]requested_item fm.sale.total is exist - process it [00:32:18]SAM_PROTO_GetFMData [00:32:18]wFMCommunicate request_size=4 [00:32:18]MH_SAM_APDU [00:32:18]CAPDU: 80 13 03 00 [00:32:18]Write to MH i2c: E2 08 00 96 3E 80 13 03 00 00 00 00 00 53 [00:32:18]Write i2c OK [00:32:18]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 96 3E 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 E2 [00:32:19]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:32:19]wFMCommunicate OK [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 17 00 00 [00:32:19]Write to MH i2c: E2 08 00 97 3E 80 17 00 00 00 00 00 00 55 [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 97 3E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [00:32:19]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:19]wFMCommunicate OK [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 17 00 00 [00:32:19]Write to MH i2c: E2 08 00 98 3E 80 17 00 00 00 00 00 00 56 [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:19]Read from MH i2c: E2 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 [00:32:19]MH_I2C_Read... [00:32:19]Read from MH i2c: E2 FD 00 98 3E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [00:32:19]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:19]wFMCommunicate OK [00:32:19]wFMCommunicate request_size=4 [00:32:19]MH_SAM_APDU [00:32:19]CAPDU: 80 17 00 00 [00:32:19]Write to MH i2c: E2 08 00 99 3E 80 17 00 00 00 00 00 00 57 [00:32:19]Write i2c OK [00:32:19]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 99 3E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DC [00:32:20]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:32:20]wFMCommunicate OK [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 17 00 00 [00:32:20]Write to MH i2c: E2 08 00 9A 3E 80 17 00 00 00 00 00 00 58 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 DE 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 DE 00 9A 3E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [00:32:20]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:20]wFMCommunicate OK [00:32:20]SAM_PROTO_GetFMData done [00:32:20]requested_item fm.sale_refund.total is exist - process it [00:32:20]requested_item fm.buy.total is exist - process it [00:32:20]requested_item shift.sale.total is exist - process it [00:32:20]SAM_PROTO_GetShiftData [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 13 02 00 [00:32:20]Write to MH i2c: E2 08 00 9B 3E 80 13 02 00 00 00 00 00 57 [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:20]Read from MH i2c: E2 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 [00:32:20]MH_I2C_Read... [00:32:20]Read from MH i2c: E2 FD 00 9B 3E 00 B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 10 [00:32:20]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 49 01 00 00 69 04 9E 00 6F 04 04 00 49 01 00 00 B1 04 04 00 39 D9 82 01 70 04 04 00 04 45 6A 01 72 04 03 00 35 94 18 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 B8 18 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BC 6C 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:20]wFMCommunicate OK [00:32:20]wFMCommunicate request_size=4 [00:32:20]MH_SAM_APDU [00:32:20]CAPDU: 80 17 00 00 [00:32:20]Write to MH i2c: E2 08 00 9C 3E 80 17 00 00 00 00 00 00 5A [00:32:20]Write i2c OK [00:32:20]MH_I2C_Read... [00:32:20]OFD Sender: No OFD packet to send [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 9C 3E 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 73 [00:32:21]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 9D 3E 80 17 00 00 00 00 00 00 5B [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 9D 3E 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 14 [00:32:21]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 9E 3E 80 17 00 00 00 00 00 00 5C [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:21]Read from MH i2c: E2 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 [00:32:21]MH_I2C_Read... [00:32:21]Read from MH i2c: E2 FD 00 9E 3E 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D4 [00:32:21]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:21]wFMCommunicate OK [00:32:21]wFMCommunicate request_size=4 [00:32:21]MH_SAM_APDU [00:32:21]CAPDU: 80 17 00 00 [00:32:21]Write to MH i2c: E2 08 00 9F 3E 80 17 00 00 00 00 00 00 5D [00:32:21]Write i2c OK [00:32:21]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 CE 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 CE 00 9F 3E 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 42 [00:32:22]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:22]wFMCommunicate OK [00:32:22]SAM_PROTO_GetShiftData done [00:32:22]requested_item shift.sale.total_cash is exist - process it [00:32:22]requested_item shift.sale_refund.total is exist - process it [00:32:22]requested_item shift.sale_refund.total_cash is exist - process it [00:32:22]requested_item shift.buy.total is exist - process it [00:32:22]requested_item shift.buy.total_cash is exist - process it [00:32:22]produce_requested_data done [00:32:22]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:22]process_action_free get_value [00:32:22]json_value_free [00:32:22]json_value_free done [00:32:22]process_json_proto returns [00:32:22]Send response to host [00:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":253525.05,"shift.sale.total_cash":237417.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:22]free response buf [00:32:22]execute_script done [00:32:22]execute_script returns [00:32:22]free content buf [00:32:22]Sock 8.Close socket [00:32:22]Sock 8.Thread stoped [00:32:22]accept exits with 5 [00:32:22]New connection [00:32:22]New thread 3066817892 created [00:32:22]Thread 3066961252 joined [00:32:22]Waiting for new connection... [00:32:22] Sock 5.Parse request [00:32:22]Sock 5.Check first char [00:32:22]Sock 5.First char is OK [00:32:22]request: POST /json_proto HTTP/1.0 [00:32:22]Method: POST [00:32:22]URL: /json_proto [00:32:22]Method is POST - this is cgi request [00:32:22]url: /json_proto [00:32:22]query_string will be loaded in cgi processing [00:32:22]execute_cgi json_proto POST (null) [00:32:22]execute_cgi path=json_proto method=POST [00:32:22]POST find Content-Length [00:32:22]Host: 172.17.63.131:8080 [00:32:22]Content-Length: 265 [00:32:22]Content-Type: application/json [00:32:22] [00:32:22]POST finish read [00:32:22]Found Content-Length = 265 [00:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:22]execute_script... [00:32:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0445\u0442\u0430\u0431\u0430\u0435\u0432 \u0416. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:22]POST & json_proto [00:32:22]process_json_proto [00:32:22]json parsed OK: [00:32:22]protocol is kg_v1.0 [00:32:22]action value=open_shift [00:32:22]process_action open_shift [00:32:22]cmd_open_shift [00:32:22]MH_GetDate [00:32:22]Write to MH i2c: F0 00 00 A0 3E CD [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 09 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 09 00 A0 3E 00 27 8A 1D 67 22 05 6E 64 04 [00:32:22]GetLastDocTimeStamp 1729988728 [00:32:22]current date 1729989159 [00:32:22]FM_GetShiftState [00:32:22]SAM_PROTO_GetShiftState [00:32:22]wFMCommunicate request_size=4 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 13 01 00 [00:32:22]Write to MH i2c: E2 08 00 A1 3E 80 13 01 00 00 00 00 00 5C [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 0E 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 0E 00 A1 3E 00 09 00 00 00 00 00 00 00 00 00 00 90 00 67 [00:32:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:22]wFMCommunicate OK [00:32:22]SAM_PROTO_GetShiftState done [00:32:22]FM_GetShiftState done [00:32:22]KKMCreateOpenShiftDocument [00:32:22]Load OK [00:32:22]Malloc new data [00:32:22]MH_GetDate [00:32:22]Write to MH i2c: F0 00 00 A2 3E CF [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 09 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: F0 09 00 A2 3E 00 27 8A 1D 67 22 05 6E 64 06 [00:32:22]Malloc new data [00:32:22]KKMCreateOpenShiftDocument OK [00:32:22]KKMSetOpenShiftData OK [00:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:32:22]tlvbuf is 01B49800 [00:32:22]KKMLoadAndSignOpenShiftData [00:32:22]SAM_PROTO_ProcessDocument [00:32:22]wFMCommunicate request_size=9 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:32:22]Write to MH i2c: E2 0C 00 A3 3E 80 15 01 00 04 00 02 00 D4 00 00 00 3E [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 A3 3E 00 90 00 55 [00:32:22]RAPDU: 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=23 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:32:22]Write to MH i2c: E2 1A 00 A4 3E 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 57 [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 A4 3E 00 90 00 56 [00:32:22]RAPDU: 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=32 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 [00:32:22]Write to MH i2c: E2 23 00 A5 3E 80 15 02 00 1B 00 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 00 00 7B [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 A5 3E 00 90 00 57 [00:32:22]RAPDU: 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=98 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 02 00 5D F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 [00:32:22]Write to MH i2c: E2 65 00 A6 3E 80 15 02 00 5D 00 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 00 00 FB [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 A6 3E 00 90 00 58 [00:32:22]RAPDU: 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=51 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:32:22]Write to MH i2c: E2 36 00 A7 3E 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 0F [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:22]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:22]Read from MH i2c: E2 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 [00:32:22]MH_I2C_Read... [00:32:22]Read from MH i2c: E2 03 00 A7 3E 00 90 00 59 [00:32:22]RAPDU: 90 00 [00:32:22]wFMCommunicate OK [00:32:22]wFMCommunicate request_size=13 [00:32:22]MH_SAM_APDU [00:32:22]CAPDU: 80 15 02 00 08 F4 03 04 00 27 8A 1D 67 [00:32:22]Write to MH i2c: E2 10 00 A8 3E 80 15 02 00 08 00 F4 03 04 00 27 8A 1D 67 00 00 A6 [00:32:22]Write i2c OK [00:32:22]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 A8 3E 00 90 00 5A [00:32:23]RAPDU: 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=25 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 [00:32:23]Write to MH i2c: E2 1C 00 A9 3E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 00 00 CE [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 03 00 A9 3E 00 90 00 5B [00:32:23]RAPDU: 90 00 [00:32:23]wFMCommunicate OK [00:32:23]wFMCommunicate request_size=4 [00:32:23]MH_SAM_APDU [00:32:23]CAPDU: 80 15 03 00 [00:32:23]Write to MH i2c: E2 08 00 AA 3E 80 15 03 00 00 00 00 00 69 [00:32:23]Write i2c OK [00:32:23]MH_I2C_Read... [00:32:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:23]Read from MH i2c: E2 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 38 00 [00:32:23]MH_I2C_Read... [00:32:23]Read from MH i2c: E2 38 00 AA 3E 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 ED 02 00 0E 04 04 00 1E 02 00 00 35 04 06 00 A7 DC B4 52 85 DA 90 00 0C [00:32:23]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 ED 02 00 0E 04 04 00 1E 02 00 00 35 04 06 00 A7 DC B4 52 85 DA 90 00 [00:32:23]wFMCommunicate OK [00:32:23]SAM_PROTO_ProcessDocument answer len = 51 [00:32:23]SAM_PROTO_ProcessDocument done [00:32:23]SetTLVBufToDocument [00:32:23]Processing tag 1209 (04B9) [00:32:23]Malloc new data [00:32:23]Processing tag 1041 (0411) [00:32:23]Processing tag 1040 (0410) [00:32:23]Malloc new data [00:32:23]Processing tag 1038 (040E) [00:32:23]Malloc new data [00:32:23]Processing tag 1077 (0435) [00:32:23]Malloc new data [00:32:23]SetTLVBufToDocument err=0 [00:32:23]KKMLoadAndSignOpenShiftData store KKM data [00:32:23]KKMLoadAndSignOpenShiftData err=0 [00:32:23]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Тухтабаев Ж. Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 Место: АЗС № 170 "Партнер Нефть" 27.10.2024 00:32 Смена: 542 РНМ: 0000000000091776 ЗНМ: 0300000110 ФД: 191968 ФМ: 0000000000871754 ФПД: 184566359950810 [00:32:23]StoreToDocumentArchive [00:32:23]shift 542 fd 191968 [00:32:23]Create dir for shift 0542 [00:32:23]save to /storage/0542/doc_00191968 [00:32:23]save last doc name /storage/0542/doc_00191968 to /storage/kkm_last_doc_name [00:32:23]save OK [00:32:23]Clear old archive folders... [00:32:23]Remove dir /storage/0541 [00:32:23]opendir ok [00:32:23]file . [00:32:23]file .. [00:32:23]file doc_00191637 [00:32:23]remove file /storage/0541/doc_00191637 [00:32:23]file doc_00191638 [00:32:23]remove file /storage/0541/doc_00191638 [00:32:23]file doc_00191639 [00:32:23]remove file /storage/0541/doc_00191639 [00:32:23]file doc_00191640 [00:32:23]remove file /storage/0541/doc_00191640 [00:32:23]file doc_00191641 [00:32:23]remove file /storage/0541/doc_00191641 [00:32:23]file doc_00191642 [00:32:23]remove file /storage/0541/doc_00191642 [00:32:23]file doc_00191643 [00:32:23]remove file /storage/0541/doc_00191643 [00:32:23]file doc_00191644 [00:32:23]remove file /storage/0541/doc_00191644 [00:32:23]file doc_00191645 [00:32:23]remove file /storage/0541/doc_00191645 [00:32:23]file doc_00191646 [00:32:23]remove file /storage/0541/doc_00191646 [00:32:23]file doc_00191647 [00:32:23]remove file /storage/0541/doc_00191647 [00:32:23]file doc_00191648 [00:32:23]remove file /storage/0541/doc_00191648 [00:32:23]file doc_00191649 [00:32:23]remove file /storage/0541/doc_00191649 [00:32:23]file doc_00191650 [00:32:23]remove file /storage/0541/doc_00191650 [00:32:23]file doc_00191651 [00:32:23]remove file /storage/0541/doc_00191651 [00:32:23]file doc_00191652 [00:32:23]remove file /storage/0541/doc_00191652 [00:32:23]file doc_00191653 [00:32:23]remove file /storage/0541/doc_00191653 [00:32:23]file doc_00191654 [00:32:23]remove file /storage/0541/doc_00191654 [00:32:23]file doc_00191655 [00:32:23]remove file /storage/0541/doc_00191655 [00:32:23]file doc_00191656 [00:32:23]remove file /storage/0541/doc_00191656 [00:32:23]file doc_00191657 [00:32:23]remove file /storage/0541/doc_00191657 [00:32:23]file doc_00191658 [00:32:23]remove file /storage/0541/doc_00191658 [00:32:23]file doc_00191659 [00:32:23]remove file /storage/0541/doc_00191659 [00:32:23]file doc_00191660 [00:32:23]remove file /storage/0541/doc_00191660 [00:32:23]file doc_00191661 [00:32:23]remove file /storage/0541/doc_00191661 [00:32:23]file doc_00191662 [00:32:23]remove file /storage/0541/doc_00191662 [00:32:23]file doc_00191663 [00:32:23]remove file /storage/0541/doc_00191663 [00:32:23]file doc_00191664 [00:32:23]remove file /storage/0541/doc_00191664 [00:32:23]file doc_00191665 [00:32:23]remove file /storage/0541/doc_00191665 [00:32:23]file doc_00191666 [00:32:23]remove file /storage/0541/doc_00191666 [00:32:23]file doc_00191667 [00:32:23]remove file /storage/0541/doc_00191667 [00:32:23]file doc_00191668 [00:32:23]remove file /storage/0541/doc_00191668 [00:32:23]file doc_00191669 [00:32:23]remove file /storage/0541/doc_00191669 [00:32:23]file doc_00191670 [00:32:23]remove file /storage/0541/doc_00191670 [00:32:23]file doc_00191671 [00:32:23]remove file /storage/0541/doc_00191671 [00:32:23]file doc_00191672 [00:32:23]remove file /storage/0541/doc_00191672 [00:32:23]file doc_00191673 [00:32:23]remove file /storage/0541/doc_00191673 [00:32:23]file doc_00191674 [00:32:23]remove file /storage/0541/doc_00191674 [00:32:23]file doc_00191675 [00:32:23]remove file /storage/0541/doc_00191675 [00:32:23]file doc_00191676 [00:32:23]remove file /storage/0541/doc_00191676 [00:32:23]file doc_00191677 [00:32:23]remove file /storage/0541/doc_00191677 [00:32:23]file doc_00191678 [00:32:23]remove file /storage/0541/doc_00191678 [00:32:23]file doc_00191679 [00:32:23]remove file /storage/0541/doc_00191679 [00:32:23]file doc_00191680 [00:32:23]remove file /storage/0541/doc_00191680 [00:32:23]file doc_00191681 [00:32:23]remove file /storage/0541/doc_00191681 [00:32:23]file doc_00191682 [00:32:23]remove file /storage/0541/doc_00191682 [00:32:23]file doc_00191683 [00:32:23]remove file /storage/0541/doc_00191683 [00:32:23]file doc_00191684 [00:32:23]remove file /storage/0541/doc_00191684 [00:32:23]file doc_00191685 [00:32:23]remove file /storage/0541/doc_00191685 [00:32:23]file doc_00191686 [00:32:23]remove file /storage/0541/doc_00191686 [00:32:23]file doc_00191687 [00:32:23]remove file /storage/0541/doc_00191687 [00:32:23]file doc_00191688 [00:32:23]remove file /storage/0541/doc_00191688 [00:32:23]file doc_00191689 [00:32:23]remove file /storage/0541/doc_00191689 [00:32:23]file doc_00191690 [00:32:23]remove file /storage/0541/doc_00191690 [00:32:23]file doc_00191691 [00:32:23]remove file /storage/0541/doc_00191691 [00:32:23]file doc_00191692 [00:32:23]remove file /storage/0541/doc_00191692 [00:32:23]file doc_00191693 [00:32:23]remove file /storage/0541/doc_00191693 [00:32:23]file doc_00191694 [00:32:23]remove file /storage/0541/doc_00191694 [00:32:23]file doc_00191695 [00:32:23]remove file /storage/0541/doc_00191695 [00:32:23]file doc_00191696 [00:32:23]remove file /storage/0541/doc_00191696 [00:32:23]file doc_00191697 [00:32:23]remove file /storage/0541/doc_00191697 [00:32:23]file doc_00191698 [00:32:23]remove file /storage/0541/doc_00191698 [00:32:23]file doc_00191699 [00:32:23]remove file /storage/0541/doc_00191699 [00:32:23]file doc_00191700 [00:32:23]remove file /storage/0541/doc_00191700 [00:32:23]file doc_00191701 [00:32:23]remove file /storage/0541/doc_00191701 [00:32:23]file doc_00191702 [00:32:23]remove file /storage/0541/doc_00191702 [00:32:23]file doc_00191703 [00:32:23]remove file /storage/0541/doc_00191703 [00:32:23]file doc_00191704 [00:32:23]remove file /storage/0541/doc_00191704 [00:32:23]file doc_00191705 [00:32:23]remove file /storage/0541/doc_00191705 [00:32:23]file doc_00191706 [00:32:23]remove file /storage/0541/doc_00191706 [00:32:23]file doc_00191707 [00:32:23]remove file /storage/0541/doc_00191707 [00:32:23]file doc_00191708 [00:32:23]remove file /storage/0541/doc_00191708 [00:32:23]file doc_00191709 [00:32:23]remove file /storage/0541/doc_00191709 [00:32:23]file doc_00191710 [00:32:23]remove file /storage/0541/doc_00191710 [00:32:23]file doc_00191711 [00:32:23]remove file /storage/0541/doc_00191711 [00:32:23]file doc_00191712 [00:32:23]remove file /storage/0541/doc_00191712 [00:32:23]file doc_00191713 [00:32:23]remove file /storage/0541/doc_00191713 [00:32:23]file doc_00191714 [00:32:23]remove file /storage/0541/doc_00191714 [00:32:23]file doc_00191715 [00:32:23]remove file /storage/0541/doc_00191715 [00:32:23]file doc_00191716 [00:32:23]remove file /storage/0541/doc_00191716 [00:32:23]file doc_00191717 [00:32:23]remove file /storage/0541/doc_00191717 [00:32:23]file doc_00191718 [00:32:23]remove file /storage/0541/doc_00191718 [00:32:23]file doc_00191719 [00:32:23]remove file /storage/0541/doc_00191719 [00:32:23]file doc_00191720 [00:32:23]remove file /storage/0541/doc_00191720 [00:32:23]file doc_00191721 [00:32:23]remove file /storage/0541/doc_00191721 [00:32:23]file doc_00191722 [00:32:23]remove file /storage/0541/doc_00191722 [00:32:23]file doc_00191723 [00:32:23]remove file /storage/0541/doc_00191723 [00:32:23]file doc_00191724 [00:32:23]remove file /storage/0541/doc_00191724 [00:32:23]file doc_00191725 [00:32:23]remove file /storage/0541/doc_00191725 [00:32:23]file doc_00191726 [00:32:23]remove file /storage/0541/doc_00191726 [00:32:23]file doc_00191727 [00:32:23]remove file /storage/0541/doc_00191727 [00:32:23]file doc_00191728 [00:32:23]remove file /storage/0541/doc_00191728 [00:32:23]file doc_00191729 [00:32:23]remove file /storage/0541/doc_00191729 [00:32:23]file doc_00191730 [00:32:23]remove file /storage/0541/doc_00191730 [00:32:23]file doc_00191731 [00:32:23]remove file /storage/0541/doc_00191731 [00:32:23]file doc_00191732 [00:32:23]remove file /storage/0541/doc_00191732 [00:32:23]file doc_00191733 [00:32:23]remove file /storage/0541/doc_00191733 [00:32:23]file doc_00191734 [00:32:23]remove file /storage/0541/doc_00191734 [00:32:23]file doc_00191735 [00:32:23]remove file /storage/0541/doc_00191735 [00:32:23]file doc_00191736 [00:32:23]remove file /storage/0541/doc_00191736 [00:32:23]file doc_00191737 [00:32:23]remove file /storage/0541/doc_00191737 [00:32:23]file doc_00191738 [00:32:23]remove file /storage/0541/doc_00191738 [00:32:23]file doc_00191739 [00:32:23]remove file /storage/0541/doc_00191739 [00:32:23]file doc_00191740 [00:32:23]remove file /storage/0541/doc_00191740 [00:32:23]file doc_00191741 [00:32:23]remove file /storage/0541/doc_00191741 [00:32:23]file doc_00191742 [00:32:23]remove file /storage/0541/doc_00191742 [00:32:23]file doc_00191743 [00:32:23]remove file /storage/0541/doc_00191743 [00:32:23]file doc_00191744 [00:32:23]remove file /storage/0541/doc_00191744 [00:32:23]file doc_00191745 [00:32:23]remove file /storage/0541/doc_00191745 [00:32:23]file doc_00191746 [00:32:23]remove file /storage/0541/doc_00191746 [00:32:23]file doc_00191747 [00:32:23]remove file /storage/0541/doc_00191747 [00:32:23]file doc_00191748 [00:32:23]remove file /storage/0541/doc_00191748 [00:32:23]file doc_00191749 [00:32:23]remove file /storage/0541/doc_00191749 [00:32:23]file doc_00191750 [00:32:23]remove file /storage/0541/doc_00191750 [00:32:23]file doc_00191751 [00:32:23]remove file /storage/0541/doc_00191751 [00:32:23]file doc_00191752 [00:32:23]remove file /storage/0541/doc_00191752 [00:32:23]file doc_00191753 [00:32:23]remove file /storage/0541/doc_00191753 [00:32:23]file doc_00191754 [00:32:23]remove file /storage/0541/doc_00191754 [00:32:23]file doc_00191755 [00:32:23]remove file /storage/0541/doc_00191755 [00:32:23]file doc_00191756 [00:32:24]remove file /storage/0541/doc_00191756 [00:32:24]file doc_00191757 [00:32:24]remove file /storage/0541/doc_00191757 [00:32:24]file doc_00191758 [00:32:24]remove file /storage/0541/doc_00191758 [00:32:24]file doc_00191759 [00:32:24]remove file /storage/0541/doc_00191759 [00:32:24]file doc_00191760 [00:32:24]remove file /storage/0541/doc_00191760 [00:32:24]file doc_00191761 [00:32:24]remove file /storage/0541/doc_00191761 [00:32:24]file doc_00191762 [00:32:24]remove file /storage/0541/doc_00191762 [00:32:24]file doc_00191763 [00:32:24]remove file /storage/0541/doc_00191763 [00:32:24]file doc_00191764 [00:32:24]remove file /storage/0541/doc_00191764 [00:32:24]file doc_00191765 [00:32:24]remove file /storage/0541/doc_00191765 [00:32:24]file doc_00191766 [00:32:24]remove file /storage/0541/doc_00191766 [00:32:24]file doc_00191767 [00:32:24]remove file /storage/0541/doc_00191767 [00:32:24]file doc_00191768 [00:32:24]remove file /storage/0541/doc_00191768 [00:32:24]file doc_00191769 [00:32:24]remove file /storage/0541/doc_00191769 [00:32:24]file doc_00191770 [00:32:24]remove file /storage/0541/doc_00191770 [00:32:24]file doc_00191771 [00:32:24]remove file /storage/0541/doc_00191771 [00:32:24]file doc_00191772 [00:32:24]remove file /storage/0541/doc_00191772 [00:32:24]file doc_00191773 [00:32:24]remove file /storage/0541/doc_00191773 [00:32:24]file doc_00191774 [00:32:24]remove file /storage/0541/doc_00191774 [00:32:24]file doc_00191775 [00:32:24]remove file /storage/0541/doc_00191775 [00:32:24]file doc_00191776 [00:32:24]remove file /storage/0541/doc_00191776 [00:32:24]file doc_00191777 [00:32:24]remove file /storage/0541/doc_00191777 [00:32:24]file doc_00191778 [00:32:24]remove file /storage/0541/doc_00191778 [00:32:24]file doc_00191779 [00:32:24]remove file /storage/0541/doc_00191779 [00:32:24]file doc_00191780 [00:32:24]remove file /storage/0541/doc_00191780 [00:32:24]file doc_00191781 [00:32:24]remove file /storage/0541/doc_00191781 [00:32:24]file doc_00191782 [00:32:24]remove file /storage/0541/doc_00191782 [00:32:24]file doc_00191783 [00:32:24]remove file /storage/0541/doc_00191783 [00:32:24]file doc_00191784 [00:32:24]remove file /storage/0541/doc_00191784 [00:32:24]file doc_00191785 [00:32:24]remove file /storage/0541/doc_00191785 [00:32:24]file doc_00191786 [00:32:24]remove file /storage/0541/doc_00191786 [00:32:24]file doc_00191787 [00:32:24]remove file /storage/0541/doc_00191787 [00:32:24]file doc_00191788 [00:32:24]remove file /storage/0541/doc_00191788 [00:32:24]file doc_00191789 [00:32:24]remove file /storage/0541/doc_00191789 [00:32:24]file doc_00191790 [00:32:24]remove file /storage/0541/doc_00191790 [00:32:24]file doc_00191791 [00:32:24]remove file /storage/0541/doc_00191791 [00:32:24]file doc_00191792 [00:32:24]remove file /storage/0541/doc_00191792 [00:32:24]file doc_00191793 [00:32:24]remove file /storage/0541/doc_00191793 [00:32:24]file doc_00191794 [00:32:24]remove file /storage/0541/doc_00191794 [00:32:24]file doc_00191795 [00:32:24]remove file /storage/0541/doc_00191795 [00:32:24]file doc_00191796 [00:32:24]remove file /storage/0541/doc_00191796 [00:32:24]file doc_00191797 [00:32:24]remove file /storage/0541/doc_00191797 [00:32:24]file doc_00191798 [00:32:24]remove file /storage/0541/doc_00191798 [00:32:24]file doc_00191799 [00:32:24]remove file /storage/0541/doc_00191799 [00:32:24]file doc_00191800 [00:32:24]remove file /storage/0541/doc_00191800 [00:32:24]file doc_00191801 [00:32:24]remove file /storage/0541/doc_00191801 [00:32:24]file doc_00191802 [00:32:24]remove file /storage/0541/doc_00191802 [00:32:24]file doc_00191803 [00:32:24]remove file /storage/0541/doc_00191803 [00:32:24]file doc_00191804 [00:32:24]remove file /storage/0541/doc_00191804 [00:32:24]file doc_00191805 [00:32:24]remove file /storage/0541/doc_00191805 [00:32:24]file doc_00191806 [00:32:24]remove file /storage/0541/doc_00191806 [00:32:24]file doc_00191807 [00:32:24]remove file /storage/0541/doc_00191807 [00:32:24]file doc_00191808 [00:32:24]remove file /storage/0541/doc_00191808 [00:32:24]file doc_00191809 [00:32:24]remove file /storage/0541/doc_00191809 [00:32:24]file doc_00191810 [00:32:24]remove file /storage/0541/doc_00191810 [00:32:24]file doc_00191811 [00:32:24]remove file /storage/0541/doc_00191811 [00:32:24]file doc_00191812 [00:32:24]remove file /storage/0541/doc_00191812 [00:32:24]file doc_00191813 [00:32:24]remove file /storage/0541/doc_00191813 [00:32:24]file doc_00191814 [00:32:24]remove file /storage/0541/doc_00191814 [00:32:24]file doc_00191815 [00:32:24]remove file /storage/0541/doc_00191815 [00:32:24]file doc_00191816 [00:32:24]remove file /storage/0541/doc_00191816 [00:32:24]file doc_00191817 [00:32:24]remove file /storage/0541/doc_00191817 [00:32:24]file doc_00191818 [00:32:24]remove file /storage/0541/doc_00191818 [00:32:24]file doc_00191819 [00:32:24]remove file /storage/0541/doc_00191819 [00:32:24]file doc_00191820 [00:32:24]remove file /storage/0541/doc_00191820 [00:32:24]file doc_00191821 [00:32:24]remove file /storage/0541/doc_00191821 [00:32:24]file doc_00191822 [00:32:24]remove file /storage/0541/doc_00191822 [00:32:24]file doc_00191823 [00:32:24]remove file /storage/0541/doc_00191823 [00:32:24]file doc_00191824 [00:32:24]remove file /storage/0541/doc_00191824 [00:32:24]file doc_00191825 [00:32:24]remove file /storage/0541/doc_00191825 [00:32:24]file doc_00191826 [00:32:24]remove file /storage/0541/doc_00191826 [00:32:24]file doc_00191827 [00:32:24]remove file /storage/0541/doc_00191827 [00:32:24]file doc_00191828 [00:32:24]remove file /storage/0541/doc_00191828 [00:32:24]file doc_00191829 [00:32:24]remove file /storage/0541/doc_00191829 [00:32:24]file doc_00191830 [00:32:24]remove file /storage/0541/doc_00191830 [00:32:24]file doc_00191831 [00:32:24]remove file /storage/0541/doc_00191831 [00:32:24]file doc_00191832 [00:32:24]remove file /storage/0541/doc_00191832 [00:32:24]file doc_00191833 [00:32:24]remove file /storage/0541/doc_00191833 [00:32:24]file doc_00191834 [00:32:24]remove file /storage/0541/doc_00191834 [00:32:24]file doc_00191835 [00:32:24]remove file /storage/0541/doc_00191835 [00:32:24]file doc_00191836 [00:32:24]remove file /storage/0541/doc_00191836 [00:32:24]file doc_00191837 [00:32:24]remove file /storage/0541/doc_00191837 [00:32:24]file doc_00191838 [00:32:24]remove file /storage/0541/doc_00191838 [00:32:24]file doc_00191839 [00:32:24]remove file /storage/0541/doc_00191839 [00:32:24]file doc_00191840 [00:32:24]remove file /storage/0541/doc_00191840 [00:32:24]file doc_00191841 [00:32:24]remove file /storage/0541/doc_00191841 [00:32:24]file doc_00191842 [00:32:24]remove file /storage/0541/doc_00191842 [00:32:24]file doc_00191843 [00:32:24]remove file /storage/0541/doc_00191843 [00:32:24]file doc_00191844 [00:32:24]remove file /storage/0541/doc_00191844 [00:32:24]file doc_00191845 [00:32:24]remove file /storage/0541/doc_00191845 [00:32:24]file doc_00191846 [00:32:24]remove file /storage/0541/doc_00191846 [00:32:24]file doc_00191847 [00:32:24]remove file /storage/0541/doc_00191847 [00:32:24]file doc_00191848 [00:32:24]remove file /storage/0541/doc_00191848 [00:32:24]file doc_00191849 [00:32:24]remove file /storage/0541/doc_00191849 [00:32:24]file doc_00191850 [00:32:24]remove file /storage/0541/doc_00191850 [00:32:24]file doc_00191851 [00:32:24]remove file /storage/0541/doc_00191851 [00:32:24]file doc_00191852 [00:32:24]remove file /storage/0541/doc_00191852 [00:32:24]file doc_00191853 [00:32:24]remove file /storage/0541/doc_00191853 [00:32:24]file doc_00191854 [00:32:24]remove file /storage/0541/doc_00191854 [00:32:24]file doc_00191855 [00:32:24]remove file /storage/0541/doc_00191855 [00:32:24]file doc_00191856 [00:32:24]remove file /storage/0541/doc_00191856 [00:32:24]file doc_00191857 [00:32:24]remove file /storage/0541/doc_00191857 [00:32:24]file doc_00191858 [00:32:24]remove file /storage/0541/doc_00191858 [00:32:24]file doc_00191859 [00:32:24]remove file /storage/0541/doc_00191859 [00:32:24]file doc_00191860 [00:32:24]remove file /storage/0541/doc_00191860 [00:32:24]file doc_00191861 [00:32:24]remove file /storage/0541/doc_00191861 [00:32:24]file doc_00191862 [00:32:24]remove file /storage/0541/doc_00191862 [00:32:24]file doc_00191863 [00:32:24]remove file /storage/0541/doc_00191863 [00:32:24]file doc_00191864 [00:32:24]remove file /storage/0541/doc_00191864 [00:32:24]file doc_00191865 [00:32:24]remove file /storage/0541/doc_00191865 [00:32:24]file doc_00191866 [00:32:24]remove file /storage/0541/doc_00191866 [00:32:24]file doc_00191867 [00:32:24]remove file /storage/0541/doc_00191867 [00:32:24]file doc_00191868 [00:32:24]remove file /storage/0541/doc_00191868 [00:32:24]file doc_00191869 [00:32:24]remove file /storage/0541/doc_00191869 [00:32:24]file doc_00191870 [00:32:24]remove file /storage/0541/doc_00191870 [00:32:24]file doc_00191871 [00:32:24]remove file /storage/0541/doc_00191871 [00:32:24]file doc_00191872 [00:32:24]remove file /storage/0541/doc_00191872 [00:32:24]file doc_00191873 [00:32:24]remove file /storage/0541/doc_00191873 [00:32:24]file doc_00191874 [00:32:24]remove file /storage/0541/doc_00191874 [00:32:24]file doc_00191875 [00:32:24]remove file /storage/0541/doc_00191875 [00:32:24]file doc_00191876 [00:32:24]remove file /storage/0541/doc_00191876 [00:32:24]file doc_00191877 [00:32:24]remove file /storage/0541/doc_00191877 [00:32:24]file doc_00191878 [00:32:24]remove file /storage/0541/doc_00191878 [00:32:24]file doc_00191879 [00:32:24]remove file /storage/0541/doc_00191879 [00:32:24]file doc_00191880 [00:32:24]remove file /storage/0541/doc_00191880 [00:32:24]file doc_00191881 [00:32:24]remove file /storage/0541/doc_00191881 [00:32:24]file doc_00191882 [00:32:24]remove file /storage/0541/doc_00191882 [00:32:24]file doc_00191883 [00:32:24]remove file /storage/0541/doc_00191883 [00:32:24]file doc_00191884 [00:32:24]remove file /storage/0541/doc_00191884 [00:32:24]file doc_00191885 [00:32:24]remove file /storage/0541/doc_00191885 [00:32:24]file doc_00191886 [00:32:24]remove file /storage/0541/doc_00191886 [00:32:24]file doc_00191887 [00:32:24]remove file /storage/0541/doc_00191887 [00:32:24]file doc_00191888 [00:32:24]remove file /storage/0541/doc_00191888 [00:32:24]file doc_00191889 [00:32:24]remove file /storage/0541/doc_00191889 [00:32:24]file doc_00191890 [00:32:24]remove file /storage/0541/doc_00191890 [00:32:24]file doc_00191891 [00:32:24]remove file /storage/0541/doc_00191891 [00:32:24]file doc_00191892 [00:32:24]remove file /storage/0541/doc_00191892 [00:32:24]file doc_00191893 [00:32:24]remove file /storage/0541/doc_00191893 [00:32:24]file doc_00191894 [00:32:24]remove file /storage/0541/doc_00191894 [00:32:24]file doc_00191895 [00:32:24]remove file /storage/0541/doc_00191895 [00:32:24]file doc_00191896 [00:32:24]remove file /storage/0541/doc_00191896 [00:32:24]file doc_00191897 [00:32:24]remove file /storage/0541/doc_00191897 [00:32:24]file doc_00191898 [00:32:24]remove file /storage/0541/doc_00191898 [00:32:24]file doc_00191899 [00:32:24]remove file /storage/0541/doc_00191899 [00:32:24]file doc_00191900 [00:32:24]remove file /storage/0541/doc_00191900 [00:32:24]file doc_00191901 [00:32:24]remove file /storage/0541/doc_00191901 [00:32:24]file doc_00191902 [00:32:24]remove file /storage/0541/doc_00191902 [00:32:24]file doc_00191903 [00:32:24]remove file /storage/0541/doc_00191903 [00:32:24]file doc_00191904 [00:32:24]remove file /storage/0541/doc_00191904 [00:32:24]file doc_00191905 [00:32:24]remove file /storage/0541/doc_00191905 [00:32:24]file doc_00191906 [00:32:24]remove file /storage/0541/doc_00191906 [00:32:24]file doc_00191907 [00:32:24]remove file /storage/0541/doc_00191907 [00:32:24]file doc_00191908 [00:32:24]remove file /storage/0541/doc_00191908 [00:32:24]file doc_00191909 [00:32:24]remove file /storage/0541/doc_00191909 [00:32:24]file doc_00191910 [00:32:24]remove file /storage/0541/doc_00191910 [00:32:24]file doc_00191911 [00:32:24]remove file /storage/0541/doc_00191911 [00:32:24]file doc_00191912 [00:32:24]remove file /storage/0541/doc_00191912 [00:32:24]file doc_00191913 [00:32:24]remove file /storage/0541/doc_00191913 [00:32:24]file doc_00191914 [00:32:24]remove file /storage/0541/doc_00191914 [00:32:24]file doc_00191915 [00:32:24]remove file /storage/0541/doc_00191915 [00:32:24]file doc_00191916 [00:32:24]remove file /storage/0541/doc_00191916 [00:32:24]file doc_00191917 [00:32:24]remove file /storage/0541/doc_00191917 [00:32:24]file doc_00191918 [00:32:24]remove file /storage/0541/doc_00191918 [00:32:24]file doc_00191919 [00:32:24]remove file /storage/0541/doc_00191919 [00:32:24]file doc_00191920 [00:32:24]remove file /storage/0541/doc_00191920 [00:32:24]file doc_00191921 [00:32:24]remove file /storage/0541/doc_00191921 [00:32:24]file doc_00191922 [00:32:24]remove file /storage/0541/doc_00191922 [00:32:24]file doc_00191923 [00:32:24]remove file /storage/0541/doc_00191923 [00:32:24]file doc_00191924 [00:32:24]remove file /storage/0541/doc_00191924 [00:32:24]file doc_00191925 [00:32:24]remove file /storage/0541/doc_00191925 [00:32:24]file doc_00191926 [00:32:24]remove file /storage/0541/doc_00191926 [00:32:24]file doc_00191927 [00:32:24]remove file /storage/0541/doc_00191927 [00:32:24]file doc_00191928 [00:32:24]remove file /storage/0541/doc_00191928 [00:32:24]file doc_00191929 [00:32:24]remove file /storage/0541/doc_00191929 [00:32:24]file doc_00191930 [00:32:24]remove file /storage/0541/doc_00191930 [00:32:24]file doc_00191931 [00:32:24]remove file /storage/0541/doc_00191931 [00:32:24]file doc_00191932 [00:32:24]remove file /storage/0541/doc_00191932 [00:32:24]file doc_00191933 [00:32:24]remove file /storage/0541/doc_00191933 [00:32:24]file doc_00191934 [00:32:24]remove file /storage/0541/doc_00191934 [00:32:24]file doc_00191935 [00:32:24]remove file /storage/0541/doc_00191935 [00:32:24]file doc_00191936 [00:32:24]remove file /storage/0541/doc_00191936 [00:32:24]file doc_00191937 [00:32:24]remove file /storage/0541/doc_00191937 [00:32:24]file doc_00191938 [00:32:24]remove file /storage/0541/doc_00191938 [00:32:24]file doc_00191939 [00:32:24]remove file /storage/0541/doc_00191939 [00:32:24]file doc_00191940 [00:32:24]remove file /storage/0541/doc_00191940 [00:32:24]file doc_00191941 [00:32:24]remove file /storage/0541/doc_00191941 [00:32:24]file doc_00191942 [00:32:24]remove file /storage/0541/doc_00191942 [00:32:24]file doc_00191943 [00:32:24]remove file /storage/0541/doc_00191943 [00:32:24]file doc_00191944 [00:32:24]remove file /storage/0541/doc_00191944 [00:32:24]file doc_00191945 [00:32:25]remove file /storage/0541/doc_00191945 [00:32:25]file doc_00191946 [00:32:25]remove file /storage/0541/doc_00191946 [00:32:25]file doc_00191947 [00:32:25]remove file /storage/0541/doc_00191947 [00:32:25]file doc_00191948 [00:32:25]remove file /storage/0541/doc_00191948 [00:32:25]file doc_00191949 [00:32:25]remove file /storage/0541/doc_00191949 [00:32:25]file doc_00191950 [00:32:25]remove file /storage/0541/doc_00191950 [00:32:25]file doc_00191951 [00:32:25]remove file /storage/0541/doc_00191951 [00:32:25]file doc_00191952 [00:32:25]remove file /storage/0541/doc_00191952 [00:32:25]file doc_00191953 [00:32:25]remove file /storage/0541/doc_00191953 [00:32:25]file doc_00191954 [00:32:25]remove file /storage/0541/doc_00191954 [00:32:25]file doc_00191955 [00:32:25]remove file /storage/0541/doc_00191955 [00:32:25]file doc_00191956 [00:32:25]remove file /storage/0541/doc_00191956 [00:32:25]file doc_00191957 [00:32:25]remove file /storage/0541/doc_00191957 [00:32:25]file doc_00191958 [00:32:25]remove file /storage/0541/doc_00191958 [00:32:25]file doc_00191959 [00:32:25]remove file /storage/0541/doc_00191959 [00:32:25]file doc_00191960 [00:32:25]remove file /storage/0541/doc_00191960 [00:32:25]file doc_00191961 [00:32:25]remove file /storage/0541/doc_00191961 [00:32:25]file doc_00191962 [00:32:25]remove file /storage/0541/doc_00191962 [00:32:25]file doc_00191963 [00:32:25]remove file /storage/0541/doc_00191963 [00:32:25]file doc_00191964 [00:32:25]remove file /storage/0541/doc_00191964 [00:32:25]file doc_00191965 [00:32:25]remove file /storage/0541/doc_00191965 [00:32:25]file doc_00191966 [00:32:25]remove file /storage/0541/doc_00191966 [00:32:25]file doc_00191967 [00:32:25]remove file /storage/0541/doc_00191967 [00:32:25]remove dir /storage/0541 [00:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:32:25]tlvbuf is 01C6F750 [00:32:25]SAM_PROTO_ClearQueue [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 09 00 00 [00:32:25]Write to MH i2c: E2 08 00 AB 3E 80 09 00 00 00 00 00 00 5B [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 AB 3E 00 90 00 5D [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]SAM_PROTO_ClearQueue done [00:32:25]KKMCreateOFDPacket [00:32:25]OFDProtocolAddRootSTLVToBuf [00:32:25]FM_MakeSignedData [00:32:25]FM_MakeSignedData [00:32:25]SAM_PROTO_SignData [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 01 02 [00:32:25]Write to MH i2c: E2 08 00 AC 3E 80 0D 01 02 00 00 00 00 63 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 AC 3E 00 90 00 5E [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=255 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 02 02 FA 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 27 8A 1D 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:32:25]Write to MH i2c: E2 02 01 AD 3E 80 0D 02 02 FA 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 27 8A 1D 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 62 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 AD 3E 00 90 00 5F [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=22 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 02 02 11 30 38 37 31 37 35 34 35 04 06 00 A7 DC B4 52 85 DA [00:32:25]Write to MH i2c: E2 19 00 AE 3E 80 0D 02 02 11 00 30 38 37 31 37 35 34 35 04 06 00 A7 DC B4 52 85 DA 00 00 1F [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 03 00 AE 3E 00 90 00 60 [00:32:25]RAPDU: 90 00 [00:32:25]wFMCommunicate OK [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 0D 03 02 [00:32:25]Write to MH i2c: E2 08 00 AF 3E 80 0D 03 02 00 00 00 00 68 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:25]Read from MH i2c: E2 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 0B 00 [00:32:25]MH_I2C_Read... [00:32:25]Read from MH i2c: E2 0B 00 AF 3E 00 71 99 18 22 FA 1F F3 98 90 00 51 [00:32:25]RAPDU: 71 99 18 22 FA 1F F3 98 90 00 [00:32:25]wFMCommunicate OK [00:32:25]SAM_PROTO_SignData done [00:32:25]FM_MakeSignedData done [00:32:25]CreateOFDProtocolMessage [00:32:25]wFMCommunicate request_size=4 [00:32:25]MH_SAM_APDU [00:32:25]CAPDU: 80 11 00 00 [00:32:25]Write to MH i2c: E2 08 00 B0 3E 80 11 00 00 00 00 00 00 68 [00:32:25]Write i2c OK [00:32:25]MH_I2C_Read... [00:32:25]OFD Sender: No OFD packet to send [00:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:26]Read from MH i2c: E2 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: E2 17 00 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: E2 17 00 B0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 BB [00:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:32:26]wFMCommunicate OK [00:32:26]CreateOFDProtocolMessage done [00:32:26]OFDSenderStorePacket 191968 [00:32:26]StoreOFDPacket docnum=191968 [00:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1B 01 00 00 EC 18 13 01 3E 7C 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 27 8A 1D 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 A7 DC B4 52 85 DA 71 99 18 22 FA 1F F3 98 [00:32:26]CheckFolder [00:32:26]dirname=/storage/ofd_packets [00:32:26]CheckFolder done [00:32:26]ProducePacketName [00:32:26]name=ofd_packets/00191968 [00:32:26]NVStorageSaveData ofd_packets/00191968 [00:32:26]File name is /storage/ofd_packets/00191968 [00:32:26]Write 313 bytes [00:32:26]NVStorageSaveData done [00:32:26]OFDSenderStorePacket done [00:32:26]KKMCreateOFDPacket done [00:32:26]NVStorageSaveData kkm_last_timestamp [00:32:26]File name is /storage/kkm_last_timestamp [00:32:26]Write 4 bytes [00:32:26]NVStorageSaveData done [00:32:26]ExternCall_PrintAddStr [00:32:26]wPrintStart [00:32:26]Write to MH i2c: 01 00 00 B1 3E EF [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 B1 3E 00 00 00 00 00 FF 0F 04 [00:32:26]RasterBufferAndPrint [00:32:26]line Отчет об открытии смены [00:32:26]line ФФД: 1.0 [00:32:26]line ИНН: 02508201610067 [00:32:26]line Кассир: Тухтабаев Ж. [00:32:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:32:26]line Место: АЗС № 170 "Партнер Нефть" [00:32:26]line 27.10.2024 00:32 [00:32:26]line Смена: 542 [00:32:26]line РНМ: 0000000000091776 [00:32:26]line ЗНМ: 0300000110 [00:32:26]line ФД: 191968 [00:32:26]line ФМ: 0000000000871754 [00:32:26]line ФПД: 184566359950810 [00:32:26]written 0, free lines is 4095 [00:32:26]OFD Sender: Processing packet 191968 [packets to send 75, broken 74] [00:32:26]ProducePacketName [00:32:26]name=ofd_packets/00191968 [00:32:26]OFD Sender: To server: pG, [00:32:26]CommunicateWithHost lk.salyk.kg:30040 [00:32:26]ConnectInit lk.salyk.kg [00:32:26]Connected sock=8 [00:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 1B 01 00 00 EC 18 13 01 3E 7C 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 A2 D1 83 D1 85 D1 82 D0 B0 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 96 2E 20 F1 03 59 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9E D1 80 D1 83 D0 BA D1 82 D1 83 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A7 D0 B0 D1 82 D0 BA D0 B0 D0 BB 2D D0 90 D0 BB D0 B0 20 D0 91 D1 83 D0 BA D0 B0 2C 20 34 30 2E 38 39 35 33 31 35 2C 20 37 33 2E 30 30 32 35 32 32 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 27 8A 1D 67 0E 04 04 00 1E 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 35 04 06 00 A7 DC B4 52 85 DA 71 99 18 22 FA 1F F3 98 [00:32:26]Write to MH i2c: 01 00 00 C3 3E 01 [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: 01 07 00 C3 3E 00 00 00 00 00 89 0E 9F [00:32:26]RasterBufferAndPrint [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]line [00:32:26]written 0, free lines is 3741 [00:32:26]MH_Cut [00:32:26]Write to MH i2c: D1 01 00 CA 3E 01 DA [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: D1 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: D1 01 00 [00:32:26]MH_I2C_Read... [00:32:26]Read from MH i2c: D1 01 00 CA 3E 00 D9 [00:32:26]Write to MH i2c: 01 00 00 CB 3E 09 [00:32:26]Write i2c OK [00:32:26]MH_I2C_Read... [00:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 7B 31 47 00 A9 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E0 ED 02 00 F4 03 04 00 F2 2E 1D 67 B6 04 01 00 00 8D A9 00 AA A0 8E 8E 1C [00:32:26]CommunicateWithHost err = 0 [00:32:26]CheckOFDResponse [00:32:26]1017 (14) - 77093643461234 [00:32:26]1041 (16) - 0000000000871754 [00:32:26]1040 (4) - 191968 [00:32:26]1012 (4) - 26.10.2024 18:03 [00:32:26]1206 (1) - 0 [00:32:26]OFD Sender: Remove packet 191968 [00:32:26]ProducePacketName [00:32:26]name=ofd_packets/00191968 [00:32:26]NVStorageDeleteData [00:32:26]*** Cut start [00:32:26]*** Partial cut [00:32:26]*** CUTSNS_PIN = 1 [00:32:26]*** CUTSNS_PIN = 0 [00:32:27]*** Brake cut motor [00:32:27]OFD Sender: No OFD packet to send [00:32:27]Read from MH i2c: 01 [00:32:27]MH_I2C_Read... [00:32:27]*** Stop cut motor [00:32:27]*** Cut end [00:32:27]Read from MH i2c: 01 07 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: 01 07 00 CB 3E 00 00 00 00 00 FF 0F 1E [00:32:27]process_action open_shift done [00:32:27]requested_data is exist [00:32:27]produce_requested_data [00:32:27]requested_item fd.num is exist - process it [00:32:27]SAM_PROTO_GetFieldsCounters [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 00 00 [00:32:27]Write to MH i2c: E2 08 00 CC 3E 80 13 00 00 00 00 00 00 86 [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:27]Read from MH i2c: E2 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 62 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 62 00 CC 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [00:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E0 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:27]wFMCommunicate OK [00:32:27]SAM_PROTO_GetFieldsCounters done [00:32:27]requested_item shift.num is exist - process it [00:32:27]requested_item shift.opened is exist - process it [00:32:27]req_shift_opened [00:32:27]FM_GetShiftState [00:32:27]SAM_PROTO_GetShiftState [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 01 00 [00:32:27]Write to MH i2c: E2 08 00 CD 3E 80 13 01 00 00 00 00 00 88 [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:27]Read from MH i2c: E2 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 0E 00 [00:32:27]MH_I2C_Read... [00:32:27]Read from MH i2c: E2 0E 00 CD 3E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 C9 [00:32:27]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:32:27]wFMCommunicate OK [00:32:27]SAM_PROTO_GetShiftState done [00:32:27]FM_GetShiftState done [00:32:27]req_shift_opened done [00:32:27]requested_item shift.open_date is exist - process it [00:32:27]req_shift_open_date [00:32:27]req_shift_open_date done [00:32:27]produce_requested_data done [00:32:27]produce_requested_data return {"fd.num":191968,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:32:27]process_action_free open_shift [00:32:27]json_value_free [00:32:27]json_value_free done [00:32:27]process_json_proto returns [00:32:27]Send response to host [00:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":191968,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:32:27]free response buf [00:32:27]execute_script done [00:32:27]execute_script returns [00:32:27]free content buf [00:32:27]Sock 5.Close socket [00:32:27]Sock 5.Thread stoped [00:32:27]accept exits with 6 [00:32:27]New connection [00:32:27]New thread 3066961252 created [00:32:27]Thread 3066817892 joined [00:32:27]Waiting for new connection... [00:32:27] Sock 6.Parse request [00:32:27]Sock 6.Check first char [00:32:27]Sock 6.First char is OK [00:32:27]request: POST /json_proto HTTP/1.0 [00:32:27]Method: POST [00:32:27]URL: /json_proto [00:32:27]Method is POST - this is cgi request [00:32:27]url: /json_proto [00:32:27]query_string will be loaded in cgi processing [00:32:27]execute_cgi json_proto POST (null) [00:32:27]execute_cgi path=json_proto method=POST [00:32:27]POST find Content-Length [00:32:27]Host: 172.17.63.131:8080 [00:32:27]Content-Length: 331 [00:32:27]Content-Type: application/json [00:32:27] [00:32:27]POST finish read [00:32:27]Found Content-Length = 331 [00:32:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:27]execute_script... [00:32:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:27]POST & json_proto [00:32:27]process_json_proto [00:32:27]json parsed OK: [00:32:27]protocol is kg_v1.0 [00:32:27]action value=get_value [00:32:27]process_action get_value [00:32:27]cmd_get_value [00:32:27]process_action get_value done [00:32:27]requested_data is exist [00:32:27]produce_requested_data [00:32:27]requested_item fm.sale.total is exist - process it [00:32:27]SAM_PROTO_GetFMData [00:32:27]wFMCommunicate request_size=4 [00:32:27]MH_SAM_APDU [00:32:27]CAPDU: 80 13 03 00 [00:32:27]Write to MH i2c: E2 08 00 CE 3E 80 13 03 00 00 00 00 00 8B [00:32:27]Write i2c OK [00:32:27]MH_I2C_Read... [00:32:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:28]Read from MH i2c: E2 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 CE 3E 00 C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 1A [00:32:28]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A4 E9 02 00 69 04 A3 00 6F 04 04 00 9A E9 02 00 B1 04 05 00 07 E8 CA B4 03 70 04 05 00 30 53 AB 87 03 72 04 04 00 D7 94 1F 2D 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 96 88 CB 64 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 E2 1E 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:32:28]wFMCommunicate OK [00:32:28]wFMCommunicate request_size=4 [00:32:28]MH_SAM_APDU [00:32:28]CAPDU: 80 17 00 00 [00:32:28]Write to MH i2c: E2 08 00 CF 3E 80 17 00 00 00 00 00 00 8D [00:32:28]Write i2c OK [00:32:28]MH_I2C_Read... [00:32:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:28]Read from MH i2c: E2 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 [00:32:28]MH_I2C_Read... [00:32:28]Read from MH i2c: E2 FD 00 CF 3E 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:32:28]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:28]wFMCommunicate OK [00:32:28]wFMCommunicate request_size=4 [00:32:28]MH_SAM_APDU [00:32:28]CAPDU: 80 17 00 00 [00:32:28]Write to MH i2c: E2 08 00 D0 3E 80 17 00 00 00 00 00 00 8E [00:32:28]Write i2c OK [00:32:28]MH_I2C_Read... [00:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:29]Read from MH i2c: E2 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 D0 3E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [00:32:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:29]wFMCommunicate OK [00:32:29]wFMCommunicate request_size=4 [00:32:29]MH_SAM_APDU [00:32:29]CAPDU: 80 17 00 00 [00:32:29]Write to MH i2c: E2 08 00 D1 3E 80 17 00 00 00 00 00 00 8F [00:32:29]Write i2c OK [00:32:29]MH_I2C_Read... [00:32:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:29]Read from MH i2c: E2 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 [00:32:29]MH_I2C_Read... [00:32:29]Read from MH i2c: E2 FD 00 D1 3E 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 14 [00:32:29]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:32:29]wFMCommunicate OK [00:32:29]wFMCommunicate request_size=4 [00:32:29]MH_SAM_APDU [00:32:29]CAPDU: 80 17 00 00 [00:32:29]Write to MH i2c: E2 08 00 D2 3E 80 17 00 00 00 00 00 00 90 [00:32:29]Write i2c OK [00:32:29]MH_I2C_Read... [00:32:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:32:30]Read from MH i2c: E2 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 DE 00 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 DE 00 D2 3E 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [00:32:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:30]wFMCommunicate OK [00:32:30]SAM_PROTO_GetFMData done [00:32:30]requested_item fm.sale_refund.total is exist - process it [00:32:30]requested_item fm.buy.total is exist - process it [00:32:30]requested_item shift.sale.total is exist - process it [00:32:30]SAM_PROTO_GetShiftData [00:32:30]wFMCommunicate request_size=4 [00:32:30]MH_SAM_APDU [00:32:30]CAPDU: 80 13 02 00 [00:32:30]Write to MH i2c: E2 08 00 D3 3E 80 13 02 00 00 00 00 00 8F [00:32:30]Write i2c OK [00:32:30]MH_I2C_Read... [00:32:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:30]Read from MH i2c: E2 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 [00:32:30]MH_I2C_Read... [00:32:30]Read from MH i2c: E2 FD 00 D3 3E 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 02 [00:32:30]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:32:31]wFMCommunicate OK [00:32:31]wFMCommunicate request_size=4 [00:32:31]MH_SAM_APDU [00:32:31]CAPDU: 80 17 00 00 [00:32:31]Write to MH i2c: E2 08 00 D4 3E 80 17 00 00 00 00 00 00 92 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:31]Read from MH i2c: E2 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 D4 3E 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 9A [00:32:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:32:31]wFMCommunicate OK [00:32:31]wFMCommunicate request_size=4 [00:32:31]MH_SAM_APDU [00:32:31]CAPDU: 80 17 00 00 [00:32:31]Write to MH i2c: E2 08 00 D5 3E 80 17 00 00 00 00 00 00 93 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:31]Read from MH i2c: E2 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 FD 00 D5 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 65 [00:32:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:32:32]wFMCommunicate OK [00:32:32]wFMCommunicate request_size=4 [00:32:32]MH_SAM_APDU [00:32:32]CAPDU: 80 17 00 00 [00:32:32]Write to MH i2c: E2 08 00 D6 3E 80 17 00 00 00 00 00 00 94 [00:32:32]Write i2c OK [00:32:32]MH_I2C_Read... [00:32:32]OFD Sender: No OFD packet to send [00:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:32]Read from MH i2c: E2 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 FD 00 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 FD 00 D6 3E 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 06 [00:32:32]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:32:32]wFMCommunicate OK [00:32:32]wFMCommunicate request_size=4 [00:32:32]MH_SAM_APDU [00:32:32]CAPDU: 80 17 00 00 [00:32:32]Write to MH i2c: E2 08 00 D7 3E 80 17 00 00 00 00 00 00 95 [00:32:32]Write i2c OK [00:32:32]MH_I2C_Read... [00:32:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:32]Read from MH i2c: E2 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 BD 00 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 BD 00 D7 3E 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [00:32:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:33]wFMCommunicate OK [00:32:33]SAM_PROTO_GetShiftData done [00:32:33]requested_item shift.sale.total_cash is exist - process it [00:32:33]requested_item shift.sale_refund.total is exist - process it [00:32:33]requested_item shift.sale_refund.total_cash is exist - process it [00:32:33]requested_item shift.buy.total is exist - process it [00:32:33]requested_item shift.buy.total_cash is exist - process it [00:32:33]produce_requested_data done [00:32:33]produce_requested_data return {"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:33]process_action_free get_value [00:32:33]json_value_free [00:32:33]json_value_free done [00:32:33]process_json_proto returns [00:32:33]Send response to host [00:32:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159180984.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:33]free response buf [00:32:33]execute_script done [00:32:33]execute_script returns [00:32:33]free content buf [00:32:33]Sock 6.Close socket [00:32:33]Sock 6.Thread stoped [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:01]accept exits with 5 [00:33:01]New connection [00:33:01]New thread 3066817892 created [00:33:01]Thread 3066961252 joined [00:33:01]Waiting for new connection... [00:33:01] Sock 5.Parse request [00:33:01]Sock 5.Check first char [00:33:01]Sock 5.First char is OK [00:33:01]request: POST /json_proto HTTP/1.0 [00:33:01]Method: POST [00:33:01]URL: /json_proto [00:33:01]Method is POST - this is cgi request [00:33:01]url: /json_proto [00:33:01]query_string will be loaded in cgi processing [00:33:01]execute_cgi json_proto POST (null) [00:33:01]execute_cgi path=json_proto method=POST [00:33:01]POST find Content-Length [00:33:01]Host: 172.17.63.131:8080 [00:33:01]Content-Length: 676 [00:33:01]Content-Type: application/json [00:33:01] [00:33:01]POST finish read [00:33:01]Found Content-Length = 676 [00:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:01]execute_script... [00:33: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)31277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:01]POST & json_proto [00:33:01]process_json_proto [00:33:01]json parsed OK: [00:33:01]protocol is kg_v1.0 [00:33:01]action value=close_receipt [00:33:01]process_action close_receipt [00:33:01]cmd_close_receipt [00:33:01]MH_GetDate [00:33:01]Write to MH i2c: F0 00 00 D8 3E 05 [00:33:01]Write i2c OK [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 09 00 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: F0 09 00 D8 3E 00 4E 8A 1D 67 22 05 6E 64 63 [00:33:01]GetLastDocTimeStamp 1729989159 [00:33:01]current date 1729989198 [00:33:01]FM_GetShiftState [00:33:01]SAM_PROTO_GetShiftState [00:33:01]wFMCommunicate request_size=4 [00:33:01]MH_SAM_APDU [00:33:01]CAPDU: 80 13 01 00 [00:33:01]Write to MH i2c: E2 08 00 D9 3E 80 13 01 00 00 00 00 00 94 [00:33:01]Write i2c OK [00:33:01]MH_I2C_Read... [00:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:01]Read from MH i2c: E2 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: E2 0E 00 [00:33:01]MH_I2C_Read... [00:33:01]Read from MH i2c: E2 0E 00 D9 3E 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D5 [00:33:01]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:33:01]wFMCommunicate OK [00:33:01]SAM_PROTO_GetShiftState done [00:33:01]FM_GetShiftState done [00:33:01]opened in 1729989159 [00:33:01]opened+sec_in_day 1730075559 [00:33:01]quantity*price = 30038 [00:33:01]sum+1 = 30039 [00:33:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 1 27.10.2024 00:33 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191969 ФПД: 160752320260373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191969&fm=160752320260373&tin=02508201610067®Number=0000000000091776&sum=30000 [00:33:02]StoreToDocumentArchive [00:33:02]shift 542 fd 191969 [00:33:02]save to /storage/0542/doc_00191969 [00:33:02]save last doc name /storage/0542/doc_00191969 to /storage/kkm_last_doc_name [00:33:02]save OK [00:33:02]Clear old archive folders... [00:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:02]tlvbuf is 01B48D60 [00:33:02]SAM_PROTO_ClearQueue [00:33:02]wFMCommunicate request_size=4 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 09 00 00 [00:33:02]Write to MH i2c: E2 08 00 E6 3E 80 09 00 00 00 00 00 00 96 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]OFD Sender: No OFD packet to send [00:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 E6 3E 00 90 00 98 [00:33:02]RAPDU: 90 00 [00:33:02]wFMCommunicate OK [00:33:02]SAM_PROTO_ClearQueue done [00:33:02]KKMCreateOFDPacket [00:33:02]OFDProtocolAddRootSTLVToBuf [00:33:02]FM_MakeSignedData [00:33:02]FM_MakeSignedData [00:33:02]SAM_PROTO_SignData [00:33:02]wFMCommunicate request_size=4 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 0D 01 02 [00:33:02]Write to MH i2c: E2 08 00 E7 3E 80 0D 01 02 00 00 00 00 9E [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 E7 3E 00 90 00 99 [00:33:02]RAPDU: 90 00 [00:33:02]wFMCommunicate OK [00:33:02]wFMCommunicate request_size=255 [00:33:02]MH_SAM_APDU [00:33: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4E 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 ED 02 00 35 04 06 00 92 [00:33:02]Write to MH i2c: E2 02 01 E8 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4E 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 ED 02 00 35 04 06 00 92 00 00 05 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 E8 3E 00 90 00 9A [00:33:02]RAPDU: 90 00 [00:33:02]wFMCommunicate OK [00:33:02]wFMCommunicate request_size=10 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 0D 02 02 05 34 10 F2 29 15 [00:33:02]Write to MH i2c: E2 0D 00 E9 3E 80 0D 02 02 05 00 34 10 F2 29 15 00 00 1F [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 03 00 E9 3E 00 90 00 9B [00:33:02]RAPDU: 90 00 [00:33:02]wFMCommunicate OK [00:33:02]wFMCommunicate request_size=4 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 0D 03 02 [00:33:02]Write to MH i2c: E2 08 00 EA 3E 80 0D 03 02 00 00 00 00 A3 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 0B 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 0B 00 EA 3E 00 E3 CD 25 C9 0E 2C 9B AF 90 00 C6 [00:33:02]RAPDU: E3 CD 25 C9 0E 2C 9B AF 90 00 [00:33:02]wFMCommunicate OK [00:33:02]SAM_PROTO_SignData done [00:33:02]FM_MakeSignedData done [00:33:02]CreateOFDProtocolMessage [00:33:02]wFMCommunicate request_size=4 [00:33:02]MH_SAM_APDU [00:33:02]CAPDU: 80 11 00 00 [00:33:02]Write to MH i2c: E2 08 00 EB 3E 80 11 00 00 00 00 00 00 A3 [00:33:02]Write i2c OK [00:33:02]MH_I2C_Read... [00:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:02]Read from MH i2c: E2 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 17 00 [00:33:02]MH_I2C_Read... [00:33:02]Read from MH i2c: E2 17 00 EB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 F6 [00:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:03]wFMCommunicate OK [00:33:03]CreateOFDProtocolMessage done [00:33:03]OFDSenderStorePacket 191969 [00:33:03]StoreOFDPacket docnum=191969 [00:33:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 CD 07 01 92 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4E 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 ED 02 00 35 04 06 00 92 34 10 F2 29 15 E3 CD 25 C9 0E 2C 9B AF [00:33:03]CheckFolder [00:33:03]dirname=/storage/ofd_packets [00:33:03]CheckFolder done [00:33:03]ProducePacketName [00:33:03]name=ofd_packets/00191969 [00:33:03]NVStorageSaveData ofd_packets/00191969 [00:33:03]File name is /storage/ofd_packets/00191969 [00:33:03]Write 301 bytes [00:33:03]NVStorageSaveData done [00:33:03]OFDSenderStorePacket done [00:33:03]KKMCreateOFDPacket done [00:33:03]NVStorageSaveData kkm_last_timestamp [00:33:03]File name is /storage/kkm_last_timestamp [00:33:03]Write 4 bytes [00:33:03]NVStorageSaveData done [00:33:03]ExternCall_PrintAddStr [00:33:03]wPrintStart [00:33:03]Write to MH i2c: 01 00 00 EC 3E 2A [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 07 00 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 07 00 EC 3E 00 00 00 00 00 FF 0F 3F [00:33:03]RasterBufferAndPrint [00:33:03]line Счет N : (1)31277 [00:33:03]line ИНН: 02508201610067 [00:33:03]line Контрольно-Кассовый Чек [00:33:03]line ПРОДАЖА [00:33:03]line ТРК (МРК, ГНК) : 12 [00:33:03]line Товар: 2710124130 [00:33:03]line Аи-92-К-5 [00:33:03]line 4.490 * 66.90 [00:33:03]line = 300.38 [00:33:03]line НДС 12% НСП 1% [00:33:03]line > о реализуемом товаре [00:33:03]line ОКРУГЛЕНИЕ: -0.38 [00:33:03]line ИТОГО: 300.00 [00:33:03]line Внесено: 300.00 [00:33:03]line СДАЧА: 0.00 [00:33:03]line НСП 1% : 2.66 [00:33:03]line НДС 12% : 31.90 [00:33:03]line Наличными: 300.00 [00:33:03]line Безнал.: 0.00 [00:33:03]line Место: АЗС № 170 "Партнер Нефть" [00:33:03]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:33:03]line СНО: Общий режим [00:33:03]line Чек 1 27.10.2024 00:33 [00:33:03]line Смена: 542 ФФД: 1.0 [00:33:03]line ЗНМ: 0300000110 [00:33:03]line РНМ: 0000000000091776 [00:33:03]line Версия ККМ: 001 [00:33:03]line ФМ: 0000000000871754 [00:33:03]line ФД: 191969 [00:33:03]line ФПД: 160752320260373 [00:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003318&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191969&fm=160752320260373&tin=02508201610067®Number=0000000000091776&sum=30000 [00:33:03]written 0, free lines is 4095 [00:33:03]OFD Sender: Processing packet 191969 [packets to send 75, broken 74] [00:33:03]ProducePacketName [00:33:03]name=ofd_packets/00191969 [00:33:03]OFD Sender: To server: pG, [00:33:03]CommunicateWithHost lk.salyk.kg:30040 [00:33:03]ConnectInit lk.salyk.kg [00:33:03]Connected sock=8 [00:33:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 21 CD 07 01 92 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 4E 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 ED 02 00 35 04 06 00 92 34 10 F2 29 15 E3 CD 25 C9 0E 2C 9B AF [00:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 1F A9 47 00 AE C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E1 ED 02 00 F4 03 04 00 17 2F 1D 67 B6 04 01 00 00 79 5D D6 B3 34 61 7D 96 [00:33:03]CommunicateWithHost err = 0 [00:33:03]CheckOFDResponse [00:33:03]1017 (14) - 77093643461234 [00:33:03]1041 (16) - 0000000000871754 [00:33:03]1040 (4) - 191969 [00:33:03]1012 (4) - 26.10.2024 18:04 [00:33:03]1206 (1) - 0 [00:33:03]OFD Sender: Remove packet 191969 [00:33:03]ProducePacketName [00:33:03]name=ofd_packets/00191969 [00:33:03]NVStorageDeleteData [00:33:03]Write to MH i2c: 01 00 00 17 3F 56 [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 07 00 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: 01 07 00 17 3F 00 00 00 00 00 D7 0C 40 [00:33:03]RasterBufferAndPrint [00:33:03]line [00:33:03]line [00:33:03]line [00:33:03]line [00:33:03]line [00:33:03]written 0, free lines is 3312 [00:33:03]MH_Cut [00:33:03]Write to MH i2c: D1 01 00 1E 3F 01 2F [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: D1 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: D1 01 00 [00:33:03]MH_I2C_Read... [00:33:03]Read from MH i2c: D1 01 00 1E 3F 00 2E [00:33:03]Write to MH i2c: 01 00 00 1F 3F 5E [00:33:03]Write i2c OK [00:33:03]MH_I2C_Read... [00:33:04]OFD Sender: No OFD packet to send [00:33:04]*** Cut start [00:33:04]*** Partial cut [00:33:04]*** CUTSNS_PIN = 1 [00:33:04]*** CUTSNS_PIN = 0 [00:33:04]*** Brake cut motor [00:33:04]Read from MH i2c: 01 [00:33:04]MH_I2C_Read... [00:33:04]*** Stop cut motor [00:33:05]*** Cut end [00:33:05]Read from MH i2c: 01 07 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: 01 07 00 1F 3F 00 00 00 00 00 FF 0F 73 [00:33:05]process_action close_receipt done [00:33:05]requested_data is exist [00:33:05]produce_requested_data [00:33:05]requested_item fm.sn is exist - process it [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 11 00 00 [00:33:05]Write to MH i2c: E2 08 00 20 3F 80 11 00 00 00 00 00 00 D9 [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:05]Read from MH i2c: E2 17 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 17 00 20 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 2C [00:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:33:05]wFMCommunicate OK [00:33:05]requested_item fd.num is exist - process it [00:33:05]SAM_PROTO_GetFieldsCounters [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 13 00 00 [00:33:05]Write to MH i2c: E2 08 00 21 3F 80 13 00 00 00 00 00 00 DC [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 62 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 62 00 21 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [00:33:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E1 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_GetFieldsCounters done [00:33:05]requested_item shift.num is exist - process it [00:33:05]requested_item shift.opened is exist - process it [00:33:05]req_shift_opened [00:33:05]FM_GetShiftState [00:33:05]SAM_PROTO_GetShiftState [00:33:05]wFMCommunicate request_size=4 [00:33:05]MH_SAM_APDU [00:33:05]CAPDU: 80 13 01 00 [00:33:05]Write to MH i2c: E2 08 00 22 3F 80 13 01 00 00 00 00 00 DE [00:33:05]Write i2c OK [00:33:05]MH_I2C_Read... [00:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:05]Read from MH i2c: E2 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 [00:33:05]MH_I2C_Read... [00:33:05]Read from MH i2c: E2 0E 00 22 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1F [00:33:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:33:05]wFMCommunicate OK [00:33:05]SAM_PROTO_GetShiftState done [00:33:05]FM_GetShiftState done [00:33:05]req_shift_opened done [00:33:05]requested_item shift.open_date is exist - process it [00:33:05]req_shift_open_date [00:33:05]req_shift_open_date done [00:33:05]produce_requested_data done [00:33:05]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191969,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:33:05]process_action_free close_receipt [00:33:05]json_value_free [00:33:05]json_value_free done [00:33:05]process_json_proto returns [00:33:05]Send response to host [00:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191969,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:33:05]free response buf [00:33:05]execute_script done [00:33:05]execute_script returns [00:33:05]free content buf [00:33:05]Sock 5.Close socket [00:33:05]Sock 5.Thread stoped [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:58]accept exits with 6 [00:35:58]New connection [00:35:58]New thread 3066961252 created [00:35:58]Thread 3066817892 joined [00:35:58]Waiting for new connection... [00:35:58] Sock 6.Parse request [00:35:58]Sock 6.Check first char [00:35:58]Sock 6.First char is OK [00:35:58]request: POST /json_proto HTTP/1.0 [00:35:58]Method: POST [00:35:58]URL: /json_proto [00:35:58]Method is POST - this is cgi request [00:35:58]url: /json_proto [00:35:58]query_string will be loaded in cgi processing [00:35:58]execute_cgi json_proto POST (null) [00:35:58]execute_cgi path=json_proto method=POST [00:35:58]POST find Content-Length [00:35:58]Host: 172.17.63.131:8080 [00:35:58]Content-Length: 677 [00:35:58]Content-Type: application/json [00:35:58] [00:35:58]POST finish read [00:35:58]Found Content-Length = 677 [00:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:58]execute_script... [00:35: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)31278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:58]POST & json_proto [00:35:58]process_json_proto [00:35:58]json parsed OK: [00:35:58]protocol is kg_v1.0 [00:35:58]action value=close_receipt [00:35:58]process_action close_receipt [00:35:58]cmd_close_receipt [00:35:58]MH_GetDate [00:35:58]Write to MH i2c: F0 00 00 23 3F 51 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: F0 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: F0 09 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: F0 09 00 23 3F 00 FF 8A 1D 67 22 05 6E 64 60 [00:35:58]GetLastDocTimeStamp 1729989198 [00:35:58]current date 1729989375 [00:35:58]FM_GetShiftState [00:35:58]SAM_PROTO_GetShiftState [00:35:58]wFMCommunicate request_size=4 [00:35:58]MH_SAM_APDU [00:35:58]CAPDU: 80 13 01 00 [00:35:58]Write to MH i2c: E2 08 00 24 3F 80 13 01 00 00 00 00 00 E0 [00:35:58]Write i2c OK [00:35:58]MH_I2C_Read... [00:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:58]Read from MH i2c: E2 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 0E 00 [00:35:58]MH_I2C_Read... [00:35:58]Read from MH i2c: E2 0E 00 24 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 21 [00:35:58]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:35:58]wFMCommunicate OK [00:35:58]SAM_PROTO_GetShiftState done [00:35:58]FM_GetShiftState done [00:35:58]opened in 1729989159 [00:35:58]opened+sec_in_day 1730075559 [00:35:58]quantity*price = 80012 [00:35:58]sum+1 = 80013 [00:35:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 2 27.10.2024 00:36 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191970 ФПД: 259314299633758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191970&fm=259314299633758&tin=02508201610067®Number=0000000000091776&sum=80000 [00:35:59]StoreToDocumentArchive [00:35:59]shift 542 fd 191970 [00:35:59]save to /storage/0542/doc_00191970 [00:35:59]save last doc name /storage/0542/doc_00191970 to /storage/kkm_last_doc_name [00:35:59]save OK [00:35:59]Clear old archive folders... [00:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:59]tlvbuf is 015C8AF0 [00:35:59]SAM_PROTO_ClearQueue [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 09 00 00 [00:35:59]Write to MH i2c: E2 08 00 31 3F 80 09 00 00 00 00 00 00 E2 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 31 3F 00 90 00 E4 [00:35:59]RAPDU: 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_ClearQueue done [00:35:59]KKMCreateOFDPacket [00:35:59]OFDProtocolAddRootSTLVToBuf [00:35:59]FM_MakeSignedData [00:35:59]FM_MakeSignedData [00:35:59]SAM_PROTO_SignData [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 0D 01 02 [00:35:59]Write to MH i2c: E2 08 00 32 3F 80 0D 01 02 00 00 00 00 EA [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 32 3F 00 90 00 E5 [00:35:59]RAPDU: 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=255 [00:35:59]MH_SAM_APDU [00:35: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FF 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 ED 02 00 35 04 06 00 EB [00:35:59]Write to MH i2c: E2 02 01 33 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FF 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 ED 02 00 35 04 06 00 EB 00 00 55 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 33 3F 00 90 00 E6 [00:35:59]RAPDU: 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=10 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 0D 02 02 05 D8 50 B7 00 5E [00:35:59]Write to MH i2c: E2 0D 00 34 3F 80 0D 02 02 05 00 D8 50 B7 00 5E 00 00 34 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 03 00 34 3F 00 90 00 E7 [00:35:59]RAPDU: 90 00 [00:35:59]wFMCommunicate OK [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 0D 03 02 [00:35:59]Write to MH i2c: E2 08 00 35 3F 80 0D 03 02 00 00 00 00 EF [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 0B 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 0B 00 35 3F 00 93 4C F7 72 61 1A 0B CF 90 00 8D [00:35:59]RAPDU: 93 4C F7 72 61 1A 0B CF 90 00 [00:35:59]wFMCommunicate OK [00:35:59]SAM_PROTO_SignData done [00:35:59]FM_MakeSignedData done [00:35:59]CreateOFDProtocolMessage [00:35:59]wFMCommunicate request_size=4 [00:35:59]MH_SAM_APDU [00:35:59]CAPDU: 80 11 00 00 [00:35:59]Write to MH i2c: E2 08 00 36 3F 80 11 00 00 00 00 00 00 EF [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:59]Read from MH i2c: E2 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 17 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: E2 17 00 36 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 42 [00:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:35:59]wFMCommunicate OK [00:35:59]CreateOFDProtocolMessage done [00:35:59]OFDSenderStorePacket 191970 [00:35:59]StoreOFDPacket docnum=191970 [00:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 95 C4 07 01 93 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FF 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 ED 02 00 35 04 06 00 EB D8 50 B7 00 5E 93 4C F7 72 61 1A 0B CF [00:35:59]CheckFolder [00:35:59]dirname=/storage/ofd_packets [00:35:59]CheckFolder done [00:35:59]ProducePacketName [00:35:59]name=ofd_packets/00191970 [00:35:59]NVStorageSaveData ofd_packets/00191970 [00:35:59]File name is /storage/ofd_packets/00191970 [00:35:59]Write 301 bytes [00:35:59]NVStorageSaveData done [00:35:59]OFDSenderStorePacket done [00:35:59]KKMCreateOFDPacket done [00:35:59]NVStorageSaveData kkm_last_timestamp [00:35:59]File name is /storage/kkm_last_timestamp [00:35:59]OFD Sender: Processing packet 191970 [packets to send 75, broken 74] [00:35:59]ProducePacketName [00:35:59]name=ofd_packets/00191970 [00:35:59]OFD Sender: To server: pG, [00:35:59]CommunicateWithHost lk.salyk.kg:30040 [00:35:59]ConnectInit lk.salyk.kg [00:35:59]Write 4 bytes [00:35:59]NVStorageSaveData done [00:35:59]ExternCall_PrintAddStr [00:35:59]wPrintStart [00:35:59]Write to MH i2c: 01 00 00 37 3F 76 [00:35:59]Write i2c OK [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: 01 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: 01 07 00 [00:35:59]MH_I2C_Read... [00:35:59]Read from MH i2c: 01 07 00 37 3F 00 00 00 00 00 FF 0F 8B [00:35:59]RasterBufferAndPrint [00:35:59]line Счет N : (1)31278 [00:35:59]line ИНН: 02508201610067 [00:35:59]line Контрольно-Кассовый Чек [00:35:59]line ПРОДАЖА [00:35:59]line ТРК (МРК, ГНК) : 12 [00:35:59]line Товар: 2710124130 [00:35:59]line Аи-92-К-5 [00:35:59]line 11.960 * 66.90 [00:35:59]line = 800.12 [00:35:59]line НДС 12% НСП 1% [00:35:59]line > о реализуемом товаре [00:35:59]line ОКРУГЛЕНИЕ: -0.12 [00:35:59]line ИТОГО: 800.00 [00:35:59]line Внесено: 800.00 [00:35:59]line СДАЧА: 0.00 [00:35:59]line НСП 1% : 7.08 [00:35:59]line НДС 12% : 84.97 [00:35:59]line Наличными: 800.00 [00:35:59]line Безнал.: 0.00 [00:35:59]line Место: АЗС № 170 "Партнер Нефть" [00:35:59]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:35:59]line СНО: Общий режим [00:35:59]line Чек 2 27.10.2024 00:36 [00:35:59]line Смена: 542 ФФД: 1.0 [00:35:59]line ЗНМ: 0300000110 [00:35:59]line РНМ: 0000000000091776 [00:35:59]line Версия ККМ: 001 [00:35:59]line ФМ: 0000000000871754 [00:35:59]line ФД: 191970 [00:35:59]line ФПД: 259314299633758 [00:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003615&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191970&fm=259314299633758&tin=02508201610067®Number=0000000000091776&sum=80000 [00:36:00]Connected sock=9 [00:36:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 95 C4 07 01 93 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FF 8A 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 ED 02 00 35 04 06 00 EB D8 50 B7 00 5E 93 4C F7 72 61 1A 0B CF [00:36:00]written 0, free lines is 4095 [00:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 0D 17 47 00 0B 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E2 ED 02 00 F4 03 04 00 C8 2F 1D 67 B6 04 01 00 00 E4 51 F8 56 43 6D 24 45 [00:36:00]CommunicateWithHost err = 0 [00:36:00]CheckOFDResponse [00:36:00]1017 (14) - 77093643461234 [00:36:00]1041 (16) - 0000000000871754 [00:36:00]1040 (4) - 191970 [00:36:00]1012 (4) - 26.10.2024 18:07 [00:36:00]1206 (1) - 0 [00:36:00]OFD Sender: Remove packet 191970 [00:36:00]ProducePacketName [00:36:00]name=ofd_packets/00191970 [00:36:00]NVStorageDeleteData [00:36:00]Write to MH i2c: 01 00 00 62 3F A1 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: 01 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: 01 07 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: 01 07 00 62 3F 00 00 00 00 00 B4 0C 68 [00:36:00]RasterBufferAndPrint [00:36:00]line [00:36:00]line [00:36:00]line [00:36:00]line [00:36:00]line [00:36:00]written 0, free lines is 3258 [00:36:00]MH_Cut [00:36:00]Write to MH i2c: D1 01 00 69 3F 01 7A [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: D1 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: D1 01 00 [00:36:00]MH_I2C_Read... [00:36:00]Read from MH i2c: D1 01 00 69 3F 00 79 [00:36:00]Write to MH i2c: 01 00 00 6A 3F A9 [00:36:00]Write i2c OK [00:36:00]MH_I2C_Read... [00:36:00]OFD Sender: No OFD packet to send [00:36:01]*** Cut start [00:36:01]*** Partial cut [00:36:01]*** CUTSNS_PIN = 1 [00:36:01]*** CUTSNS_PIN = 0 [00:36:01]*** Brake cut motor [00:36:02]Read from MH i2c: 01 [00:36:02]MH_I2C_Read... [00:36:02]*** Stop cut motor [00:36:02]*** Cut end [00:36:02]Read from MH i2c: 01 07 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: 01 07 00 6A 3F 00 00 00 00 00 FF 0F BE [00:36:02]process_action close_receipt done [00:36:02]requested_data is exist [00:36:02]produce_requested_data [00:36:02]requested_item fm.sn is exist - process it [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 11 00 00 [00:36:02]Write to MH i2c: E2 08 00 6B 3F 80 11 00 00 00 00 00 00 24 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 17 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 17 00 6B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 77 [00:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:36:02]wFMCommunicate OK [00:36:02]requested_item fd.num is exist - process it [00:36:02]SAM_PROTO_GetFieldsCounters [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 13 00 00 [00:36:02]Write to MH i2c: E2 08 00 6C 3F 80 13 00 00 00 00 00 00 27 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 62 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 62 00 6C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E2 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:02]wFMCommunicate OK [00:36:02]SAM_PROTO_GetFieldsCounters done [00:36:02]requested_item shift.num is exist - process it [00:36:02]requested_item shift.opened is exist - process it [00:36:02]req_shift_opened [00:36:02]FM_GetShiftState [00:36:02]SAM_PROTO_GetShiftState [00:36:02]wFMCommunicate request_size=4 [00:36:02]MH_SAM_APDU [00:36:02]CAPDU: 80 13 01 00 [00:36:02]Write to MH i2c: E2 08 00 6D 3F 80 13 01 00 00 00 00 00 29 [00:36:02]Write i2c OK [00:36:02]MH_I2C_Read... [00:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:02]Read from MH i2c: E2 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 0E 00 [00:36:02]MH_I2C_Read... [00:36:02]Read from MH i2c: E2 0E 00 6D 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6A [00:36:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:36:02]wFMCommunicate OK [00:36:02]SAM_PROTO_GetShiftState done [00:36:02]FM_GetShiftState done [00:36:02]req_shift_opened done [00:36:02]requested_item shift.open_date is exist - process it [00:36:02]req_shift_open_date [00:36:02]req_shift_open_date done [00:36:02]produce_requested_data done [00:36:02]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191970,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:36:02]process_action_free close_receipt [00:36:02]json_value_free [00:36:02]json_value_free done [00:36:02]process_json_proto returns [00:36:02]Send response to host [00:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191970,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:36:02]free response buf [00:36:02]execute_script done [00:36:02]execute_script returns [00:36:02]free content buf [00:36:02]Sock 6.Close socket [00:36:02]Sock 6.Thread stoped [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:24]accept exits with 5 [00:39:24]New connection [00:39:24]New thread 3066817892 created [00:39:24]Thread 3066961252 joined [00:39:24]Waiting for new connection... [00:39:24] Sock 5.Parse request [00:39:24]Sock 5.Check first char [00:39:24]Sock 5.First char is OK [00:39:24]request: POST /json_proto HTTP/1.0 [00:39:24]Method: POST [00:39:24]URL: /json_proto [00:39:24]Method is POST - this is cgi request [00:39:24]url: /json_proto [00:39:24]query_string will be loaded in cgi processing [00:39:24]execute_cgi json_proto POST (null) [00:39:24]execute_cgi path=json_proto method=POST [00:39:24]POST find Content-Length [00:39:24]Host: 172.17.63.131:8080 [00:39:24]Content-Length: 676 [00:39:24]Content-Type: application/json [00:39:24] [00:39:24]POST finish read [00:39:24]Found Content-Length = 676 [00:39:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:24]execute_script... [00:39: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)31279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:24]POST & json_proto [00:39:24]process_json_proto [00:39:24]json parsed OK: [00:39:24]protocol is kg_v1.0 [00:39:24]action value=close_receipt [00:39:24]process_action close_receipt [00:39:24]cmd_close_receipt [00:39:24]MH_GetDate [00:39:24]Write to MH i2c: F0 00 00 6E 3F 9C [00:39:24]Write i2c OK [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: F0 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: F0 09 00 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: F0 09 00 6E 3F 00 CD 8B 1D 67 22 05 6E 64 7A [00:39:24]GetLastDocTimeStamp 1729989375 [00:39:24]current date 1729989581 [00:39:24]FM_GetShiftState [00:39:24]SAM_PROTO_GetShiftState [00:39:24]wFMCommunicate request_size=4 [00:39:24]MH_SAM_APDU [00:39:24]CAPDU: 80 13 01 00 [00:39:24]Write to MH i2c: E2 08 00 6F 3F 80 13 01 00 00 00 00 00 2B [00:39:24]Write i2c OK [00:39:24]MH_I2C_Read... [00:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:24]Read from MH i2c: E2 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 0E 00 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 0E 00 6F 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 6C [00:39:24]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:39:24]wFMCommunicate OK [00:39:24]SAM_PROTO_GetShiftState done [00:39:24]FM_GetShiftState done [00:39:24]opened in 1729989159 [00:39:24]opened+sec_in_day 1730075559 [00:39:24]quantity*price = 40006 [00:39:24]sum+1 = 40007 [00:39:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 3 27.10.2024 00:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191971 ФПД: 62454659603671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191971&fm=62454659603671&tin=02508201610067®Number=0000000000091776&sum=40000 [00:39:25]StoreToDocumentArchive [00:39:25]shift 542 fd 191971 [00:39:25]save to /storage/0542/doc_00191971 [00:39:25]save last doc name /storage/0542/doc_00191971 to /storage/kkm_last_doc_name [00:39:25]save OK [00:39:25]Clear old archive folders... [00:39:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:39:25]tlvbuf is 018CA9E0 [00:39:25]SAM_PROTO_ClearQueue [00:39:25]wFMCommunicate request_size=4 [00:39:25]MH_SAM_APDU [00:39:25]CAPDU: 80 09 00 00 [00:39:25]Write to MH i2c: E2 08 00 7C 3F 80 09 00 00 00 00 00 00 2D [00:39:25]Write i2c OK [00:39:25]MH_I2C_Read... [00:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:25]Read from MH i2c: E2 [00:39:25]MH_I2C_Read... [00:39:25]Read from MH i2c: E2 03 00 [00:39:25]MH_I2C_Read... [00:39:25]Read from MH i2c: E2 03 00 7C 3F 00 90 00 2F [00:39:25]RAPDU: 90 00 [00:39:25]wFMCommunicate OK [00:39:25]SAM_PROTO_ClearQueue done [00:39:25]KKMCreateOFDPacket [00:39:25]OFDProtocolAddRootSTLVToBuf [00:39:25]FM_MakeSignedData [00:39:25]FM_MakeSignedData [00:39:25]SAM_PROTO_SignData [00:39:25]wFMCommunicate request_size=4 [00:39:25]MH_SAM_APDU [00:39:25]CAPDU: 80 0D 01 02 [00:39:25]Write to MH i2c: E2 08 00 7D 3F 80 0D 01 02 00 00 00 00 35 [00:39:25]Write i2c OK [00:39:25]MH_I2C_Read... [00:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:25]Read from MH i2c: E2 [00:39:25]MH_I2C_Read... [00:39:25]Read from MH i2c: E2 03 00 [00:39:25]MH_I2C_Read... [00:39:25]Read from MH i2c: E2 03 00 7D 3F 00 90 00 30 [00:39:25]RAPDU: 90 00 [00:39:25]wFMCommunicate OK [00:39:25]wFMCommunicate request_size=255 [00:39:25]MH_SAM_APDU [00:39: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CD 8B 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 ED 02 00 35 04 06 00 38 [00:39:25]Write to MH i2c: E2 02 01 7E 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CD 8B 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 ED 02 00 35 04 06 00 38 00 00 A1 [00:39:25]Write i2c OK [00:39:25]MH_I2C_Read... [00:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:26]Read from MH i2c: E2 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 03 00 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 03 00 7E 3F 00 90 00 31 [00:39:26]RAPDU: 90 00 [00:39:26]wFMCommunicate OK [00:39:26]wFMCommunicate request_size=10 [00:39:26]MH_SAM_APDU [00:39:26]CAPDU: 80 0D 02 02 05 CD 5B CC DC D7 [00:39:26]Write to MH i2c: E2 0D 00 7F 3F 80 0D 02 02 05 00 CD 5B CC DC D7 00 00 E9 [00:39:26]Write i2c OK [00:39:26]MH_I2C_Read... [00:39:26]OFD Sender: No OFD packet to send [00:39:26]Read from MH i2c: E2 [00:39:26]MH_I2C_Read... [00:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:26]Read from MH i2c: E2 03 00 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 03 00 7F 3F 00 90 00 32 [00:39:26]RAPDU: 90 00 [00:39:26]wFMCommunicate OK [00:39:26]wFMCommunicate request_size=4 [00:39:26]MH_SAM_APDU [00:39:26]CAPDU: 80 0D 03 02 [00:39:26]Write to MH i2c: E2 08 00 80 3F 80 0D 03 02 00 00 00 00 3A [00:39:26]Write i2c OK [00:39:26]MH_I2C_Read... [00:39:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:26]Read from MH i2c: E2 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 0B 00 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 0B 00 80 3F 00 06 BA 94 98 BC F7 4D 0D 90 00 34 [00:39:26]RAPDU: 06 BA 94 98 BC F7 4D 0D 90 00 [00:39:26]wFMCommunicate OK [00:39:26]SAM_PROTO_SignData done [00:39:26]FM_MakeSignedData done [00:39:26]CreateOFDProtocolMessage [00:39:26]wFMCommunicate request_size=4 [00:39:26]MH_SAM_APDU [00:39:26]CAPDU: 80 11 00 00 [00:39:26]Write to MH i2c: E2 08 00 81 3F 80 11 00 00 00 00 00 00 3A [00:39:26]Write i2c OK [00:39:26]MH_I2C_Read... [00:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:26]Read from MH i2c: E2 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 17 00 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: E2 17 00 81 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 8D [00:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:39:26]wFMCommunicate OK [00:39:26]CreateOFDProtocolMessage done [00:39:26]OFDSenderStorePacket 191971 [00:39:26]StoreOFDPacket docnum=191971 [00:39:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 CB 07 01 E3 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CD 8B 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 ED 02 00 35 04 06 00 38 CD 5B CC DC D7 06 BA 94 98 BC F7 4D 0D [00:39:26]CheckFolder [00:39:26]dirname=/storage/ofd_packets [00:39:26]CheckFolder done [00:39:26]ProducePacketName [00:39:26]name=ofd_packets/00191971 [00:39:26]NVStorageSaveData ofd_packets/00191971 [00:39:26]File name is /storage/ofd_packets/00191971 [00:39:26]Write 301 bytes [00:39:26]NVStorageSaveData done [00:39:26]OFDSenderStorePacket done [00:39:26]KKMCreateOFDPacket done [00:39:26]NVStorageSaveData kkm_last_timestamp [00:39:26]File name is /storage/kkm_last_timestamp [00:39:26]Write 4 bytes [00:39:26]NVStorageSaveData done [00:39:26]ExternCall_PrintAddStr [00:39:26]wPrintStart [00:39:26]Write to MH i2c: 01 00 00 82 3F C1 [00:39:26]Write i2c OK [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: 01 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: 01 07 00 [00:39:26]MH_I2C_Read... [00:39:26]Read from MH i2c: 01 07 00 82 3F 00 00 00 00 00 FF 0F D6 [00:39:26]RasterBufferAndPrint [00:39:26]line Счет N : (1)31279 [00:39:26]line ИНН: 02508201610067 [00:39:26]line Контрольно-Кассовый Чек [00:39:26]line ПРОДАЖА [00:39:26]line ТРК (МРК, ГНК) : 12 [00:39:26]line Товар: 2710124130 [00:39:26]line Аи-92-К-5 [00:39:26]line 5.980 * 66.90 [00:39:26]line = 400.06 [00:39:26]line НДС 12% НСП 1% [00:39:26]line > о реализуемом товаре [00:39:26]line ОКРУГЛЕНИЕ: -0.06 [00:39:26]line ИТОГО: 400.00 [00:39:26]line Внесено: 400.00 [00:39:26]line СДАЧА: 0.00 [00:39:26]line НСП 1% : 3.54 [00:39:26]line НДС 12% : 42.48 [00:39:26]line Наличными: 400.00 [00:39:26]line Безнал.: 0.00 [00:39:26]line Место: АЗС № 170 "Партнер Нефть" [00:39:26]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:39:26]line СНО: Общий режим [00:39:26]line Чек 3 27.10.2024 00:39 [00:39:26]line Смена: 542 ФФД: 1.0 [00:39:26]line ЗНМ: 0300000110 [00:39:26]line РНМ: 0000000000091776 [00:39:26]line Версия ККМ: 001 [00:39:26]line ФМ: 0000000000871754 [00:39:26]line ФД: 191971 [00:39:26]line ФПД: 62454659603671 [00:39:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T003941&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191971&fm=62454659603671&tin=02508201610067®Number=0000000000091776&sum=40000 [00:39:26]OFD Sender: Processing packet 191971 [packets to send 75, broken 74] [00:39:26]ProducePacketName [00:39:26]name=ofd_packets/00191971 [00:39:26]OFD Sender: To server: pG, [00:39:26]CommunicateWithHost lk.salyk.kg:30040 [00:39:26]ConnectInit lk.salyk.kg [00:39:26]written 0, free lines is 4095 [00:39:26]Connected sock=8 [00:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 05 CB 07 01 E3 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CD 8B 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 ED 02 00 35 04 06 00 38 CD 5B CC DC D7 06 BA 94 98 BC F7 4D 0D [00:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 3C D6 47 00 B0 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E3 ED 02 00 F4 03 04 00 97 30 1D 67 B6 04 01 00 00 B1 A2 A6 70 09 6D DC D1 [00:39:26]CommunicateWithHost err = 0 [00:39:26]CheckOFDResponse [00:39:26]1017 (14) - 77093643461234 [00:39:26]1041 (16) - 0000000000871754 [00:39:26]1040 (4) - 191971 [00:39:26]1012 (4) - 26.10.2024 18:10 [00:39:26]1206 (1) - 0 [00:39:26]OFD Sender: Remove packet 191971 [00:39:26]ProducePacketName [00:39:26]name=ofd_packets/00191971 [00:39:26]NVStorageDeleteData [00:39:27]Write to MH i2c: 01 00 00 AD 3F EC [00:39:27]Write i2c OK [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: 01 [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: 01 07 00 [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: 01 07 00 AD 3F 00 00 00 00 00 9E 0C 9D [00:39:27]RasterBufferAndPrint [00:39:27]line [00:39:27]line [00:39:27]line [00:39:27]line [00:39:27]line [00:39:27]written 0, free lines is 3238 [00:39:27]MH_Cut [00:39:27]Write to MH i2c: D1 01 00 B4 3F 01 C5 [00:39:27]Write i2c OK [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: D1 [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: D1 01 00 [00:39:27]MH_I2C_Read... [00:39:27]Read from MH i2c: D1 01 00 B4 3F 00 C4 [00:39:27]Write to MH i2c: 01 00 00 B5 3F F4 [00:39:27]Write i2c OK [00:39:27]MH_I2C_Read... [00:39:27]OFD Sender: No OFD packet to send [00:39:27]*** FLAG_PRN_PAP2 set [00:39:27]*** Cut start [00:39:27]*** Partial cut [00:39:27]*** CUTSNS_PIN = 1 [00:39:27]*** CUTSNS_PIN = 0 [00:39:27]*** Brake cut motor [00:39:28]Read from MH i2c: 01 [00:39:28]MH_I2C_Read... [00:39:28]*** Stop cut motor [00:39:28]*** Cut end [00:39:28]Read from MH i2c: 01 07 00 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: 01 07 00 B5 3F 00 02 00 00 00 FF 0F 0B [00:39:28]process_action close_receipt done [00:39:28]requested_data is exist [00:39:28]produce_requested_data [00:39:28]requested_item fm.sn is exist - process it [00:39:28]wFMCommunicate request_size=4 [00:39:28]MH_SAM_APDU [00:39:28]CAPDU: 80 11 00 00 [00:39:28]Write to MH i2c: E2 08 00 B6 3F 80 11 00 00 00 00 00 00 6F [00:39:28]Write i2c OK [00:39:28]MH_I2C_Read... [00:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:28]Read from MH i2c: E2 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 17 00 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 17 00 B6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C2 [00:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:39:28]wFMCommunicate OK [00:39:28]requested_item fd.num is exist - process it [00:39:28]SAM_PROTO_GetFieldsCounters [00:39:28]wFMCommunicate request_size=4 [00:39:28]MH_SAM_APDU [00:39:28]CAPDU: 80 13 00 00 [00:39:28]Write to MH i2c: E2 08 00 B7 3F 80 13 00 00 00 00 00 00 72 [00:39:28]Write i2c OK [00:39:28]MH_I2C_Read... [00:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:28]Read from MH i2c: E2 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 62 00 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 62 00 B7 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E3 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:28]wFMCommunicate OK [00:39:28]SAM_PROTO_GetFieldsCounters done [00:39:28]requested_item shift.num is exist - process it [00:39:28]requested_item shift.opened is exist - process it [00:39:28]req_shift_opened [00:39:28]FM_GetShiftState [00:39:28]SAM_PROTO_GetShiftState [00:39:28]wFMCommunicate request_size=4 [00:39:28]MH_SAM_APDU [00:39:28]CAPDU: 80 13 01 00 [00:39:28]Write to MH i2c: E2 08 00 B8 3F 80 13 01 00 00 00 00 00 74 [00:39:28]Write i2c OK [00:39:28]MH_I2C_Read... [00:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:28]Read from MH i2c: E2 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 0E 00 [00:39:28]MH_I2C_Read... [00:39:28]Read from MH i2c: E2 0E 00 B8 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B5 [00:39:28]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:39:28]wFMCommunicate OK [00:39:28]SAM_PROTO_GetShiftState done [00:39:28]FM_GetShiftState done [00:39:28]req_shift_opened done [00:39:28]requested_item shift.open_date is exist - process it [00:39:28]req_shift_open_date [00:39:28]req_shift_open_date done [00:39:28]produce_requested_data done [00:39:28]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191971,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:39:28]process_action_free close_receipt [00:39:28]json_value_free [00:39:28]json_value_free done [00:39:28]process_json_proto returns [00:39:28]Send response to host [00:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191971,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:39:28]free response buf [00:39:28]execute_script done [00:39:28]execute_script returns [00:39:28]free content buf [00:39:28]Sock 5.Close socket [00:39:28]Sock 5.Thread stoped [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:40]accept exits with 6 [00:53:40]New connection [00:53:40]New thread 3066961252 created [00:53:40]Thread 3066817892 joined [00:53:40]Waiting for new connection... [00:53:40] Sock 6.Parse request [00:53:40]Sock 6.Check first char [00:53:40]Sock 6.First char is OK [00:53:40]request: POST /json_proto HTTP/1.0 [00:53:40]Method: POST [00:53:40]URL: /json_proto [00:53:40]Method is POST - this is cgi request [00:53:40]url: /json_proto [00:53:40]query_string will be loaded in cgi processing [00:53:40]execute_cgi json_proto POST (null) [00:53:40]execute_cgi path=json_proto method=POST [00:53:40]POST find Content-Length [00:53:40]Host: 172.17.63.131:8080 [00:53:40]Content-Length: 677 [00:53:40]Content-Type: application/json [00:53:40] [00:53:40]POST finish read [00:53:40]Found Content-Length = 677 [00:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:40]execute_script... [00:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:53:40]POST & json_proto [00:53:40]process_json_proto [00:53:40]json parsed OK: [00:53:40]protocol is kg_v1.0 [00:53:40]action value=close_receipt [00:53:40]process_action close_receipt [00:53:40]cmd_close_receipt [00:53:40]MH_GetDate [00:53:40]Write to MH i2c: F0 00 00 B9 3F E7 [00:53:40]Write i2c OK [00:53:40]MH_I2C_Read... [00:53:40]Read from MH i2c: F0 [00:53:40]MH_I2C_Read... [00:53:40]Read from MH i2c: F0 09 00 [00:53:40]MH_I2C_Read... [00:53:40]Read from MH i2c: F0 09 00 B9 3F 00 25 8F 1D 67 22 05 6E 64 21 [00:53:40]GetLastDocTimeStamp 1729989581 [00:53:40]current date 1729990437 [00:53:40]FM_GetShiftState [00:53:40]SAM_PROTO_GetShiftState [00:53:40]wFMCommunicate request_size=4 [00:53:40]MH_SAM_APDU [00:53:40]CAPDU: 80 13 01 00 [00:53:40]Write to MH i2c: E2 08 00 BA 3F 80 13 01 00 00 00 00 00 76 [00:53:40]Write i2c OK [00:53:40]MH_I2C_Read... [00:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:40]Read from MH i2c: E2 [00:53:40]MH_I2C_Read... [00:53:40]Read from MH i2c: E2 0E 00 [00:53:40]MH_I2C_Read... [00:53:40]Read from MH i2c: E2 0E 00 BA 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 B7 [00:53:40]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:53:40]wFMCommunicate OK [00:53:40]SAM_PROTO_GetShiftState done [00:53:40]FM_GetShiftState done [00:53:40]opened in 1729989159 [00:53:40]opened+sec_in_day 1730075559 [00:53:40]quantity*price = 90047 [00:53:40]sum+1 = 90048 [00:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 4 27.10.2024 00:53 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191972 ФПД: 259826148880147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T005357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191972&fm=259826148880147&tin=02508201610067®Number=0000000000091776&sum=90000 [00:53:41]StoreToDocumentArchive [00:53:41]shift 542 fd 191972 [00:53:41]save to /storage/0542/doc_00191972 [00:53:41]save last doc name /storage/0542/doc_00191972 to /storage/kkm_last_doc_name [00:53:41]save OK [00:53:41]Clear old archive folders... [00:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:53:41]tlvbuf is 01609470 [00:53:41]SAM_PROTO_ClearQueue [00:53:41]wFMCommunicate request_size=4 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 09 00 00 [00:53:41]Write to MH i2c: E2 08 00 C7 3F 80 09 00 00 00 00 00 00 78 [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 C7 3F 00 90 00 7A [00:53:41]RAPDU: 90 00 [00:53:41]wFMCommunicate OK [00:53:41]SAM_PROTO_ClearQueue done [00:53:41]KKMCreateOFDPacket [00:53:41]OFDProtocolAddRootSTLVToBuf [00:53:41]FM_MakeSignedData [00:53:41]FM_MakeSignedData [00:53:41]SAM_PROTO_SignData [00:53:41]wFMCommunicate request_size=4 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 0D 01 02 [00:53:41]Write to MH i2c: E2 08 00 C8 3F 80 0D 01 02 00 00 00 00 80 [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 C8 3F 00 90 00 7B [00:53:41]RAPDU: 90 00 [00:53:41]wFMCommunicate OK [00:53:41]wFMCommunicate request_size=255 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 25 8F 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 ED 02 00 35 04 06 00 EC [00:53:41]Write to MH i2c: E2 02 01 C9 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 25 8F 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 ED 02 00 35 04 06 00 EC 00 00 4C [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 C9 3F 00 90 00 7C [00:53:41]RAPDU: 90 00 [00:53:41]wFMCommunicate OK [00:53:41]wFMCommunicate request_size=10 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 0D 02 02 05 4F 7D 4E AF 13 [00:53:41]Write to MH i2c: E2 0D 00 CA 3F 80 0D 02 02 05 00 4F 7D 4E AF 13 00 00 69 [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 03 00 CA 3F 00 90 00 7D [00:53:41]RAPDU: 90 00 [00:53:41]wFMCommunicate OK [00:53:41]wFMCommunicate request_size=4 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 0D 03 02 [00:53:41]Write to MH i2c: E2 08 00 CB 3F 80 0D 03 02 00 00 00 00 85 [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 0B 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 0B 00 CB 3F 00 42 CF B2 A5 C9 82 6E B7 90 00 5E [00:53:41]RAPDU: 42 CF B2 A5 C9 82 6E B7 90 00 [00:53:41]wFMCommunicate OK [00:53:41]SAM_PROTO_SignData done [00:53:41]FM_MakeSignedData done [00:53:41]CreateOFDProtocolMessage [00:53:41]wFMCommunicate request_size=4 [00:53:41]MH_SAM_APDU [00:53:41]CAPDU: 80 11 00 00 [00:53:41]Write to MH i2c: E2 08 00 CC 3F 80 11 00 00 00 00 00 00 85 [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:41]Read from MH i2c: E2 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 17 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: E2 17 00 CC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 D8 [00:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:53:41]wFMCommunicate OK [00:53:41]CreateOFDProtocolMessage done [00:53:41]OFDSenderStorePacket 191972 [00:53:41]StoreOFDPacket docnum=191972 [00:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 18 07 01 39 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 25 8F 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 ED 02 00 35 04 06 00 EC 4F 7D 4E AF 13 42 CF B2 A5 C9 82 6E B7 [00:53:41]CheckFolder [00:53:41]dirname=/storage/ofd_packets [00:53:41]CheckFolder done [00:53:41]ProducePacketName [00:53:41]name=ofd_packets/00191972 [00:53:41]NVStorageSaveData ofd_packets/00191972 [00:53:41]File name is /storage/ofd_packets/00191972 [00:53:41]Write 301 bytes [00:53:41]NVStorageSaveData done [00:53:41]OFDSenderStorePacket done [00:53:41]KKMCreateOFDPacket done [00:53:41]NVStorageSaveData kkm_last_timestamp [00:53:41]File name is /storage/kkm_last_timestamp [00:53:41]Write 4 bytes [00:53:41]NVStorageSaveData done [00:53:41]ExternCall_PrintAddStr [00:53:41]wPrintStart [00:53:41]Write to MH i2c: 01 00 00 CD 3F 0C [00:53:41]Write i2c OK [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: 01 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: 01 07 00 [00:53:41]MH_I2C_Read... [00:53:41]Read from MH i2c: 01 07 00 CD 3F 00 02 00 00 00 FF 0F 23 [00:53:41]RasterBufferAndPrint [00:53:41]line Счет N : (1)31280 [00:53:41]line ИНН: 02508201610067 [00:53:41]line Контрольно-Кассовый Чек [00:53:41]line ПРОДАЖА [00:53:41]line ТРК (МРК, ГНК) : 12 [00:53:41]line Товар: 2710124130 [00:53:41]line Аи-92-К-5 [00:53:41]line 13.460 * 66.90 [00:53:41]line = 900.47 [00:53:41]line НДС 12% НСП 1% [00:53:41]line > о реализуемом товаре [00:53:41]line ОКРУГЛЕНИЕ: -0.47 [00:53:41]line ИТОГО: 900.00 [00:53:41]line Внесено: 900.00 [00:53:41]line СДАЧА: 0.00 [00:53:41]line НСП 1% : 7.97 [00:53:41]line НДС 12% : 95.62 [00:53:41]line Наличными: 900.00 [00:53:41]line Безнал.: 0.00 [00:53:41]line Место: АЗС № 170 "Партнер Нефть" [00:53:41]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:53:41]line СНО: Общий режим [00:53:41]line Чек 4 27.10.2024 00:53 [00:53:41]line Смена: 542 ФФД: 1.0 [00:53:41]line ЗНМ: 0300000110 [00:53:41]line РНМ: 0000000000091776 [00:53:41]line Версия ККМ: 001 [00:53:41]line ФМ: 0000000000871754 [00:53:41]line ФД: 191972 [00:53:41]line ФПД: 259826148880147 [00:53:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T005357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191972&fm=259826148880147&tin=02508201610067®Number=0000000000091776&sum=90000 [00:53:41]written 0, free lines is 4095 [00:53:42]Error from MH - 05 [00:53:42]process_action_free close_receipt [00:53:42]json_value_free [00:53:42]json_value_free done [00:53:42]process_json_proto returns [00:53:42]Send response to host [00:53:42]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [00:53:42]free response buf [00:53:42]execute_script done [00:53:42]execute_script returns [00:53:42]free content buf [00:53:42]Sock 6.Close socket [00:53:42]Sock 6.Thread stoped [00:53:42]OFD Sender: Processing packet 191972 [packets to send 75, broken 74] [00:53:42]ProducePacketName [00:53:42]name=ofd_packets/00191972 [00:53:42]OFD Sender: To server: pG, [00:53:42]CommunicateWithHost lk.salyk.kg:30040 [00:53:42]ConnectInit lk.salyk.kg [00:53:42]Connected sock=6 [00:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 FE 18 07 01 39 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 25 8F 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 ED 02 00 35 04 06 00 EC 4F 7D 4E AF 13 42 CF B2 A5 C9 82 6E B7 [00:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 9A 73 47 00 4A D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E4 ED 02 00 F4 03 04 00 EF 33 1D 67 B6 04 01 00 00 59 0E 7C AA DC 1E 37 B1 [00:53:42]CommunicateWithHost err = 0 [00:53:42]CheckOFDResponse [00:53:42]1017 (14) - 77093643461234 [00:53:42]1041 (16) - 0000000000871754 [00:53:42]1040 (4) - 191972 [00:53:42]1012 (4) - 26.10.2024 18:24 [00:53:42]1206 (1) - 0 [00:53:42]OFD Sender: Remove packet 191972 [00:53:42]ProducePacketName [00:53:42]name=ofd_packets/00191972 [00:53:42]NVStorageDeleteData [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:06]*** FLAG_PRN_PAP1 set [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:29]*** FLAG_PRN_PAP2 reset [00:57:29]*** FLAG_PRN_PAP1 reset [00:57:33]OFD Sender: No OFD packet to send [00:57:35]accept exits with 5 [00:57:35]New connection [00:57:35]New thread 3066817892 created [00:57:35]Thread 3066961252 joined [00:57:35]Waiting for new connection... [00:57:35] Sock 5.Parse request [00:57:35]Sock 5.Check first char [00:57:35]Sock 5.First char is OK [00:57:35]request: POST /json_proto HTTP/1.0 [00:57:35]Method: POST [00:57:35]URL: /json_proto [00:57:35]Method is POST - this is cgi request [00:57:35]url: /json_proto [00:57:35]query_string will be loaded in cgi processing [00:57:35]execute_cgi json_proto POST (null) [00:57:35]execute_cgi path=json_proto method=POST [00:57:35]POST find Content-Length [00:57:35]Host: 172.17.63.131:8080 [00:57:35]Content-Length: 215 [00:57:35]Content-Type: application/json [00:57:35] [00:57:35]POST finish read [00:57:35]Found Content-Length = 215 [00:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:35]execute_script... [00:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:57:35]POST & json_proto [00:57:35]process_json_proto [00:57:35]json parsed OK: [00:57:35]protocol is kg_v1.0 [00:57:35]action value=get_value [00:57:35]process_action get_value [00:57:35]cmd_get_value [00:57:35]process_action get_value done [00:57:35]requested_data is exist [00:57:35]produce_requested_data [00:57:35]requested_item kkm.sn is exist - process it [00:57:35]requested_item kkm.ver is exist - process it [00:57:35]requested_item fm.sn is exist - process it [00:57:35]wFMCommunicate request_size=4 [00:57:35]MH_SAM_APDU [00:57:35]CAPDU: 80 11 00 00 [00:57:35]Write to MH i2c: E2 08 00 D0 3F 80 11 00 00 00 00 00 00 89 [00:57:35]Write i2c OK [00:57:35]MH_I2C_Read... [00:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:35]Read from MH i2c: E2 [00:57:35]MH_I2C_Read... [00:57:35]Read from MH i2c: E2 17 00 [00:57:35]MH_I2C_Read... [00:57:35]Read from MH i2c: E2 17 00 D0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [00:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [00:57:35]wFMCommunicate OK [00:57:35]requested_item fd.num is exist - process it [00:57:35]SAM_PROTO_GetFieldsCounters [00:57:35]wFMCommunicate request_size=4 [00:57:35]MH_SAM_APDU [00:57:35]CAPDU: 80 13 00 00 [00:57:35]Write to MH i2c: E2 08 00 D1 3F 80 13 00 00 00 00 00 00 8C [00:57:35]Write i2c OK [00:57:35]MH_I2C_Read... [00:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:36]Read from MH i2c: E2 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 62 00 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 62 00 D1 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [00:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E4 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:36]wFMCommunicate OK [00:57:36]SAM_PROTO_GetFieldsCounters done [00:57:36]requested_item shift.num is exist - process it [00:57:36]requested_item shift.opened is exist - process it [00:57:36]req_shift_opened [00:57:36]FM_GetShiftState [00:57:36]SAM_PROTO_GetShiftState [00:57:36]wFMCommunicate request_size=4 [00:57:36]MH_SAM_APDU [00:57:36]CAPDU: 80 13 01 00 [00:57:36]Write to MH i2c: E2 08 00 D2 3F 80 13 01 00 00 00 00 00 8E [00:57:36]Write i2c OK [00:57:36]MH_I2C_Read... [00:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:36]Read from MH i2c: E2 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 0E 00 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 0E 00 D2 3F 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [00:57:36]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [00:57:36]wFMCommunicate OK [00:57:36]SAM_PROTO_GetShiftState done [00:57:36]FM_GetShiftState done [00:57:36]req_shift_opened done [00:57:36]requested_item shift.open_date is exist - process it [00:57:36]req_shift_open_date [00:57:36]req_shift_open_date done [00:57:36]produce_requested_data done [00:57:36]produce_requested_data return {"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191972,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [00:57:36]process_action_free get_value [00:57:36]json_value_free [00:57:36]json_value_free done [00:57:36]process_json_proto returns [00:57:36]Send response to host [00:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000110","kkm.ver":"001","fm.sn":"0000000000871754","fd.num":191972,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [00:57:36]free response buf [00:57:36]execute_script done [00:57:36]execute_script returns [00:57:36]free content buf [00:57:36]Sock 5.Close socket [00:57:36]Sock 5.Thread stoped [00:57:36]accept exits with 6 [00:57:36]New connection [00:57:36]New thread 3066961252 created [00:57:36]Thread 3066817892 joined [00:57:36]Waiting for new connection... [00:57:36] Sock 6.Parse request [00:57:36]Sock 6.Check first char [00:57:36]Sock 6.First char is OK [00:57:36]request: POST /json_proto HTTP/1.0 [00:57:36]Method: POST [00:57:36]URL: /json_proto [00:57:36]Method is POST - this is cgi request [00:57:36]url: /json_proto [00:57:36]query_string will be loaded in cgi processing [00:57:36]execute_cgi json_proto POST (null) [00:57:36]execute_cgi path=json_proto method=POST [00:57:36]POST find Content-Length [00:57:36]Host: 172.17.63.131:8080 [00:57:36]Content-Length: 331 [00:57:36]Content-Type: application/json [00:57:36] [00:57:36]POST finish read [00:57:36]Found Content-Length = 331 [00:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:57:36]execute_script... [00:57:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:57:36]POST & json_proto [00:57:36]process_json_proto [00:57:36]json parsed OK: [00:57:36]protocol is kg_v1.0 [00:57:36]action value=get_value [00:57:36]process_action get_value [00:57:36]cmd_get_value [00:57:36]process_action get_value done [00:57:36]requested_data is exist [00:57:36]produce_requested_data [00:57:36]requested_item fm.sale.total is exist - process it [00:57:36]SAM_PROTO_GetFMData [00:57:36]wFMCommunicate request_size=4 [00:57:36]MH_SAM_APDU [00:57:36]CAPDU: 80 13 03 00 [00:57:36]Write to MH i2c: E2 08 00 D3 3F 80 13 03 00 00 00 00 00 91 [00:57:36]Write i2c OK [00:57:36]MH_I2C_Read... [00:57:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:57:36]Read from MH i2c: E2 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 FD 00 [00:57:36]MH_I2C_Read... [00:57:36]Read from MH i2c: E2 FD 00 D3 3F 00 C1 04 85 04 BD 04 6E 04 04 00 A8 E9 02 00 69 04 A3 00 6F 04 04 00 9E E9 02 00 B1 04 05 00 87 91 CE B4 03 70 04 05 00 B0 FC AE 87 03 72 04 04 00 D7 94 1F 2D 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 2F EC CB 64 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 2F 27 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 D4 [00:57:36]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 A8 E9 02 00 69 04 A3 00 6F 04 04 00 9E E9 02 00 B1 04 05 00 87 91 CE B4 03 70 04 05 00 B0 FC AE 87 03 72 04 04 00 D7 94 1F 2D 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 2F EC CB 64 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 2F 27 66 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 04 E9 2B 70 04 03 00 04 E9 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EF A9 04 EF 03 09 00 F6 03 90 00 [00:57:36]wFMCommunicate OK [00:57:36]wFMCommunicate request_size=4 [00:57:36]MH_SAM_APDU [00:57:36]CAPDU: 80 17 00 00 [00:57:36]Write to MH i2c: E2 08 00 D4 3F 80 17 00 00 00 00 00 00 93 [00:57:36]Write i2c OK [00:57:36]MH_I2C_Read... [00:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:37]Read from MH i2c: E2 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 D4 3F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:57:37]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7F 63 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:57:37]wFMCommunicate OK [00:57:37]wFMCommunicate request_size=4 [00:57:37]MH_SAM_APDU [00:57:37]CAPDU: 80 17 00 00 [00:57:37]Write to MH i2c: E2 08 00 D5 3F 80 17 00 00 00 00 00 00 94 [00:57:37]Write i2c OK [00:57:37]MH_I2C_Read... [00:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:37]Read from MH i2c: E2 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 D5 3F 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 34 [00:57:37]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:57:37]wFMCommunicate OK [00:57:37]wFMCommunicate request_size=4 [00:57:37]MH_SAM_APDU [00:57:37]CAPDU: 80 17 00 00 [00:57:37]Write to MH i2c: E2 08 00 D6 3F 80 17 00 00 00 00 00 00 95 [00:57:37]Write i2c OK [00:57:37]MH_I2C_Read... [00:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:37]Read from MH i2c: E2 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 FD 00 D6 3F 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1A [00:57:37]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:57:37]wFMCommunicate OK [00:57:37]wFMCommunicate request_size=4 [00:57:37]MH_SAM_APDU [00:57:37]CAPDU: 80 17 00 00 [00:57:37]Write to MH i2c: E2 08 00 D7 3F 80 17 00 00 00 00 00 00 96 [00:57:37]Write i2c OK [00:57:37]MH_I2C_Read... [00:57:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:57:37]Read from MH i2c: E2 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 DE 00 [00:57:37]MH_I2C_Read... [00:57:37]Read from MH i2c: E2 DE 00 D7 3F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [00:57:37]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:57:37]wFMCommunicate OK [00:57:37]SAM_PROTO_GetFMData done [00:57:37]requested_item fm.sale_refund.total is exist - process it [00:57:37]requested_item fm.buy.total is exist - process it [00:57:37]requested_item shift.sale.total is exist - process it [00:57:37]SAM_PROTO_GetShiftData [00:57:37]wFMCommunicate request_size=4 [00:57:37]MH_SAM_APDU [00:57:37]CAPDU: 80 13 02 00 [00:57:37]Write to MH i2c: E2 08 00 D8 3F 80 13 02 00 00 00 00 00 95 [00:57:37]Write i2c OK [00:57:37]MH_I2C_Read... [00:57:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:57:38]Read from MH i2c: E2 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 D8 3F 00 AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 99 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 E7 [00:57:38]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 A9 03 70 04 03 00 80 A9 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 99 63 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [00:57:38]wFMCommunicate OK [00:57:38]wFMCommunicate request_size=4 [00:57:38]MH_SAM_APDU [00:57:38]CAPDU: 80 17 00 00 [00:57:38]Write to MH i2c: E2 08 00 D9 3F 80 17 00 00 00 00 00 00 98 [00:57:38]Write i2c OK [00:57:38]MH_I2C_Read... [00:57:38]OFD Sender: No OFD packet to send [00:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:38]Read from MH i2c: E2 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 D9 3F 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 BE [00:57:38]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 90 00 [00:57:38]wFMCommunicate OK [00:57:38]wFMCommunicate request_size=4 [00:57:38]MH_SAM_APDU [00:57:38]CAPDU: 80 17 00 00 [00:57:38]Write to MH i2c: E2 08 00 DA 3F 80 17 00 00 00 00 00 00 99 [00:57:38]Write i2c OK [00:57:38]MH_I2C_Read... [00:57:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:38]Read from MH i2c: E2 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 [00:57:38]MH_I2C_Read... [00:57:38]Read from MH i2c: E2 FD 00 DA 3F 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 4C [00:57:38]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [00:57:39]wFMCommunicate OK [00:57:39]wFMCommunicate request_size=4 [00:57:39]MH_SAM_APDU [00:57:39]CAPDU: 80 17 00 00 [00:57:39]Write to MH i2c: E2 08 00 DB 3F 80 17 00 00 00 00 00 00 9A [00:57:39]Write i2c OK [00:57:39]MH_I2C_Read... [00:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:57:39]Read from MH i2c: E2 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: E2 FD 00 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: E2 FD 00 DB 3F 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 0C [00:57:39]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [00:57:39]wFMCommunicate OK [00:57:39]wFMCommunicate request_size=4 [00:57:39]MH_SAM_APDU [00:57:39]CAPDU: 80 17 00 00 [00:57:39]Write to MH i2c: E2 08 00 DC 3F 80 17 00 00 00 00 00 00 9B [00:57:39]Write i2c OK [00:57:39]MH_I2C_Read... [00:57:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [00:57:39]Read from MH i2c: E2 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: E2 C7 00 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: E2 C7 00 DC 3F 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [00:57:39]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:57:39]wFMCommunicate OK [00:57:39]SAM_PROTO_GetShiftData done [00:57:39]requested_item shift.sale.total_cash is exist - process it [00:57:39]requested_item shift.sale_refund.total is exist - process it [00:57:39]requested_item shift.sale_refund.total_cash is exist - process it [00:57:39]requested_item shift.buy.total is exist - process it [00:57:39]requested_item shift.buy.total_cash is exist - process it [00:57:39]produce_requested_data done [00:57:39]produce_requested_data return {"fm.sale.total":159183384.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":2400.00,"shift.sale.total_cash":2400.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:57:39]process_action_free get_value [00:57:39]json_value_free [00:57:39]json_value_free done [00:57:39]process_json_proto returns [00:57:39]Send response to host [00:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":159183384.39,"fm.sale_refund.total":28777.00,"fm.buy.total":0.00,"shift.sale.total":2400.00,"shift.sale.total_cash":2400.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:57:39]free response buf [00:57:39]execute_script done [00:57:39]execute_script returns [00:57:39]free content buf [00:57:39]Sock 6.Close socket [00:57:39]Sock 6.Thread stoped [00:57:39]accept exits with 5 [00:57:39]New connection [00:57:39]New thread 3066817892 created [00:57:39]Thread 3066961252 joined [00:57:39]Waiting for new connection... [00:57:39] Sock 5.Parse request [00:57:39]Sock 5.Check first char [00:57:39]Sock 5.First char is OK [00:57:39]request: POST /json_proto HTTP/1.0 [00:57:39]Method: POST [00:57:39]URL: /json_proto [00:57:39]Method is POST - this is cgi request [00:57:39]url: /json_proto [00:57:39]query_string will be loaded in cgi processing [00:57:39]execute_cgi json_proto POST (null) [00:57:39]execute_cgi path=json_proto method=POST [00:57:39]POST find Content-Length [00:57:39]Host: 172.17.63.131:8080 [00:57:39]Content-Length: 144 [00:57:39]Content-Type: application/json [00:57:39] [00:57:39]POST finish read [00:57:39]Found Content-Length = 144 [00:57:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:57:39]execute_script... [00:57:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:57:39]POST & json_proto [00:57:39]process_json_proto [00:57:39]json parsed OK: [00:57:39]protocol is kg_v1.0 [00:57:39]action value=print_doc [00:57:39]process_action print_doc [00:57:39]ExternCall_PrintAddStr [00:57:39]wPrintStart [00:57:39]Write to MH i2c: 01 00 00 DD 3F 1C [00:57:39]Write i2c OK [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: 01 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: 01 07 00 [00:57:39]MH_I2C_Read... [00:57:39]Read from MH i2c: 01 07 00 DD 3F 00 00 00 00 00 FF 0F 31 [00:57:39]RasterBufferAndPrint [00:57:39]line Счет N : (1)31280 [00:57:39]line ИНН: 02508201610067 [00:57:39]line Контрольно-Кассовый Чек [00:57:39]line ПРОДАЖА [00:57:39]line ТРК (МРК, ГНК) : 12 [00:57:39]line Товар: 2710124130 [00:57:39]line Аи-92-К-5 [00:57:39]line 13.460 * 66.90 [00:57:39]line = 900.47 [00:57:39]line НДС 12% НСП 1% [00:57:39]line > о реализуемом товаре [00:57:39]line ОКРУГЛЕНИЕ: -0.47 [00:57:39]line ИТОГО: 900.00 [00:57:39]line Внесено: 900.00 [00:57:39]line СДАЧА: 0.00 [00:57:39]line НСП 1% : 7.97 [00:57:39]line НДС 12% : 95.62 [00:57:39]line Наличными: 900.00 [00:57:39]line Безнал.: 0.00 [00:57:39]line Место: АЗС № 170 "Партнер Нефть" [00:57:39]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [00:57:39]line СНО: Общий режим [00:57:39]line Чек 4 27.10.2024 00:53 [00:57:39]line Смена: 542 ФФД: 1.0 [00:57:39]line ЗНМ: 0300000110 [00:57:39]line РНМ: 0000000000091776 [00:57:39]line Версия ККМ: 001 [00:57:39]line ФМ: 0000000000871754 [00:57:39]line ФД: 191972 [00:57:39]line ФПД: 259826148880147 [00:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T005357&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191972&fm=259826148880147&tin=02508201610067®Number=0000000000091776&sum=90000 [00:57:39]written 0, free lines is 4095 [00:57:40]Write to MH i2c: 01 00 00 08 40 48 [00:57:40]Write i2c OK [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: 01 [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: 01 07 00 [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: 01 07 00 08 40 00 00 00 00 00 A8 0C 03 [00:57:40]RasterBufferAndPrint [00:57:40]line [00:57:40]line [00:57:40]line [00:57:40]line [00:57:40]line [00:57:40]written 0, free lines is 3258 [00:57:40]MH_Cut [00:57:40]Write to MH i2c: D1 01 00 0F 40 01 21 [00:57:40]Write i2c OK [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: D1 [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: D1 01 00 [00:57:40]MH_I2C_Read... [00:57:40]Read from MH i2c: D1 01 00 0F 40 00 20 [00:57:40]Write to MH i2c: 01 00 00 10 40 50 [00:57:40]Write i2c OK [00:57:40]MH_I2C_Read... [00:57:41]*** Cut start [00:57:41]*** Partial cut [00:57:41]*** CUTSNS_PIN = 1 [00:57:41]*** CUTSNS_PIN = 0 [00:57:41]*** Brake cut motor [00:57:41]Read from MH i2c: 01 [00:57:41]MH_I2C_Read... [00:57:41]*** Stop cut motor [00:57:41]*** Cut end [00:57:41]Read from MH i2c: 01 07 00 [00:57:41]MH_I2C_Read... [00:57:41]Read from MH i2c: 01 07 00 10 40 00 00 00 00 00 FF 0F 65 [00:57:41]process_action print_doc done [00:57:41]requested_data is exist [00:57:41]produce_requested_data [00:57:41]produce_requested_data return (null) [00:57:41]process_action_free print_doc [00:57:41]json_value_free [00:57:41]json_value_free done [00:57:41]process_json_proto returns [00:57:41]Send response to host [00:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [00:57:41]free response buf [00:57:41]execute_script done [00:57:41]execute_script returns [00:57:41]free content buf [00:57:41]Sock 5.Close socket [00:57:41]Sock 5.Thread stoped [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:02]accept exits with 6 [01:00:02]New connection [01:00:02]New thread 3066961252 created [01:00:02]Thread 3066817892 joined [01:00:02]Waiting for new connection... [01:00:02] Sock 6.Parse request [01:00:02]Sock 6.Check first char [01:00:02]Sock 6.First char is OK [01:00:02]request: POST /json_proto HTTP/1.0 [01:00:02]Method: POST [01:00:02]URL: /json_proto [01:00:02]Method is POST - this is cgi request [01:00:02]url: /json_proto [01:00:02]query_string will be loaded in cgi processing [01:00:02]execute_cgi json_proto POST (null) [01:00:02]execute_cgi path=json_proto method=POST [01:00:02]POST find Content-Length [01:00:02]Host: 172.17.63.131:8080 [01:00:02]Content-Length: 791 [01:00:02]Content-Type: application/json [01:00:02] [01:00:02]POST finish read [01:00:02]Found Content-Length = 791 [01:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 24.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31386", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:02]execute_script... [01:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 24.440, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31386", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:02]POST & json_proto [01:00:02]process_json_proto [01:00:02]json parsed OK: [01:00:02]protocol is kg_v1.0 [01:00:02]action value=close_receipt [01:00:02]process_action close_receipt [01:00:02]cmd_close_receipt [01:00:02]MH_GetDate [01:00:02]Write to MH i2c: F0 00 00 11 40 40 [01:00:02]Write i2c OK [01:00:02]MH_I2C_Read... [01:00:02]Read from MH i2c: F0 [01:00:02]MH_I2C_Read... [01:00:02]Read from MH i2c: F0 09 00 [01:00:02]MH_I2C_Read... [01:00:02]Read from MH i2c: F0 09 00 11 40 00 A4 90 1D 67 22 05 6E 64 FA [01:00:02]GetLastDocTimeStamp 1729990437 [01:00:02]current date 1729990820 [01:00:02]FM_GetShiftState [01:00:02]SAM_PROTO_GetShiftState [01:00:02]wFMCommunicate request_size=4 [01:00:02]MH_SAM_APDU [01:00:02]CAPDU: 80 13 01 00 [01:00:02]Write to MH i2c: E2 08 00 12 40 80 13 01 00 00 00 00 00 CF [01:00:02]Write i2c OK [01:00:02]MH_I2C_Read... [01:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:02]Read from MH i2c: E2 [01:00:02]MH_I2C_Read... [01:00:02]Read from MH i2c: E2 0E 00 [01:00:02]MH_I2C_Read... [01:00:02]Read from MH i2c: E2 0E 00 12 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 10 [01:00:02]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:00:02]wFMCommunicate OK [01:00:02]SAM_PROTO_GetShiftState done [01:00:02]FM_GetShiftState done [01:00:02]opened in 1729989159 [01:00:02]opened+sec_in_day 1730075559 [01:00:02]quantity*price = 0 [01:00:02]sum+1 = 1 [01:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 5 27.10.2024 01:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Талоны: Топливная Карта 31386 ФМ: 0000000000871754 ФД: 191973 ФПД: 42975217971079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191973&fm=42975217971079&tin=02508201610067®Number=0000000000091776&sum=0 [01:00:04]StoreToDocumentArchive [01:00:04]shift 542 fd 191973 [01:00:04]save to /storage/0542/doc_00191973 [01:00:04]save last doc name /storage/0542/doc_00191973 to /storage/kkm_last_doc_name [01:00:04]save OK [01:00:04]Clear old archive folders... [01:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:04]tlvbuf is 017E2270 [01:00:04]SAM_PROTO_ClearQueue [01:00:04]wFMCommunicate request_size=4 [01:00:04]MH_SAM_APDU [01:00:04]CAPDU: 80 09 00 00 [01:00:04]Write to MH i2c: E2 08 00 1F 40 80 09 00 00 00 00 00 00 D1 [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 1F 40 00 90 00 D3 [01:00:04]RAPDU: 90 00 [01:00:04]wFMCommunicate OK [01:00:04]SAM_PROTO_ClearQueue done [01:00:04]KKMCreateOFDPacket [01:00:04]OFDProtocolAddRootSTLVToBuf [01:00:04]FM_MakeSignedData [01:00:04]FM_MakeSignedData [01:00:04]SAM_PROTO_SignData [01:00:04]wFMCommunicate request_size=4 [01:00:04]MH_SAM_APDU [01:00:04]CAPDU: 80 0D 01 02 [01:00:04]Write to MH i2c: E2 08 00 20 40 80 0D 01 02 00 00 00 00 D9 [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 20 40 00 90 00 D4 [01:00:04]RAPDU: 90 00 [01:00:04]wFMCommunicate OK [01:00:04]wFMCommunicate request_size=255 [01:00:04]MH_SAM_APDU [01:00: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 78 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A4 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 ED 02 00 35 04 06 00 27 [01:00:04]Write to MH i2c: E2 02 01 21 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A4 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 ED 02 00 35 04 06 00 27 00 00 97 [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 21 40 00 90 00 D5 [01:00:04]RAPDU: 90 00 [01:00:04]wFMCommunicate OK [01:00:04]wFMCommunicate request_size=10 [01:00:04]MH_SAM_APDU [01:00:04]CAPDU: 80 0D 02 02 05 15 F2 99 EF 87 [01:00:04]Write to MH i2c: E2 0D 00 22 40 80 0D 02 02 05 00 15 F2 99 EF 87 00 00 FC [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 03 00 22 40 00 90 00 D6 [01:00:04]RAPDU: 90 00 [01:00:04]wFMCommunicate OK [01:00:04]wFMCommunicate request_size=4 [01:00:04]MH_SAM_APDU [01:00:04]CAPDU: 80 0D 03 02 [01:00:04]Write to MH i2c: E2 08 00 23 40 80 0D 03 02 00 00 00 00 DE [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 0B 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 0B 00 23 40 00 F9 1D B7 92 2E 8C 85 2A 90 00 A7 [01:00:04]RAPDU: F9 1D B7 92 2E 8C 85 2A 90 00 [01:00:04]wFMCommunicate OK [01:00:04]SAM_PROTO_SignData done [01:00:04]FM_MakeSignedData done [01:00:04]CreateOFDProtocolMessage [01:00:04]wFMCommunicate request_size=4 [01:00:04]MH_SAM_APDU [01:00:04]CAPDU: 80 11 00 00 [01:00:04]Write to MH i2c: E2 08 00 24 40 80 11 00 00 00 00 00 00 DE [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:04]Read from MH i2c: E2 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 17 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: E2 17 00 24 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 31 [01:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:00:04]wFMCommunicate OK [01:00:04]CreateOFDProtocolMessage done [01:00:04]OFDSenderStorePacket 191973 [01:00:04]StoreOFDPacket docnum=191973 [01:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 59 07 01 9E 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 78 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A4 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 ED 02 00 35 04 06 00 27 15 F2 99 EF 87 F9 1D B7 92 2E 8C 85 2A [01:00:04]CheckFolder [01:00:04]dirname=/storage/ofd_packets [01:00:04]CheckFolder done [01:00:04]ProducePacketName [01:00:04]name=ofd_packets/00191973 [01:00:04]NVStorageSaveData ofd_packets/00191973 [01:00:04]File name is /storage/ofd_packets/00191973 [01:00:04]Write 301 bytes [01:00:04]NVStorageSaveData done [01:00:04]OFDSenderStorePacket done [01:00:04]KKMCreateOFDPacket done [01:00:04]NVStorageSaveData kkm_last_timestamp [01:00:04]File name is /storage/kkm_last_timestamp [01:00:04]Write 4 bytes [01:00:04]NVStorageSaveData done [01:00:04]ExternCall_PrintAddStr [01:00:04]wPrintStart [01:00:04]Write to MH i2c: 01 00 00 25 40 65 [01:00:04]Write i2c OK [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: 01 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: 01 07 00 [01:00:04]MH_I2C_Read... [01:00:04]Read from MH i2c: 01 07 00 25 40 00 00 00 00 00 FF 0F 7A [01:00:04]RasterBufferAndPrint [01:00:04]line Счет N : (1)31283 [01:00:04]line ИНН: 02508201610067 [01:00:04]line Контрольно-Кассовый Чек [01:00:04]line ПРОДАЖА [01:00:04]line ТРК (МРК, ГНК) : 21 [01:00:04]line Товар: 2710124130 [01:00:04]line Аи-92-К-5 [01:00:04]line 24.440 * 0.00 [01:00:04]line = 0.00 [01:00:04]line НДС 12% НСП 1% [01:00:04]line > о реализуемом товаре [01:00:04]line ИТОГО: 0.00 [01:00:04]line НСП 1% : 0.00 [01:00:04]line НДС 12% : 0.00 [01:00:04]line Наличными: 0.00 [01:00:04]line Безнал.: 0.00 [01:00:04]line Место: АЗС № 170 "Партнер Нефть" [01:00:04]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:00:04]line СНО: Общий режим [01:00:04]line Чек 5 27.10.2024 01:00 [01:00:04]line Смена: 542 ФФД: 1.0 [01:00:04]line ЗНМ: 0300000110 [01:00:04]line РНМ: 0000000000091776 [01:00:04]line Версия ККМ: 001 [01:00:04]line Талоны: Топливная Карта [01:00:04]line 31386 [01:00:04]line ФМ: 0000000000871754 [01:00:04]line ФД: 191973 [01:00:04]line ФПД: 42975217971079 [01:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010020&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191973&fm=42975217971079&tin=02508201610067®Number=0000000000091776&sum=0 [01:00:05]OFD Sender: Processing packet 191973 [packets to send 75, broken 74] [01:00:05]ProducePacketName [01:00:05]name=ofd_packets/00191973 [01:00:05]OFD Sender: To server: pG, [01:00:05]CommunicateWithHost lk.salyk.kg:30040 [01:00:05]ConnectInit lk.salyk.kg [01:00:05]written 0, free lines is 4095 [01:00:05]Connected sock=8 [01:00:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C1 59 07 01 9E 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 78 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A4 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 ED 02 00 35 04 06 00 27 15 F2 99 EF 87 F9 1D B7 92 2E 8C 85 2A [01:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 C5 5E 47 00 9C D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E5 ED 02 00 F4 03 04 00 6D 35 1D 67 B6 04 01 00 00 F0 CD DF 67 2F CB F7 56 [01:00:05]CommunicateWithHost err = 0 [01:00:05]CheckOFDResponse [01:00:05]1017 (14) - 77093643461234 [01:00:05]1041 (16) - 0000000000871754 [01:00:05]1040 (4) - 191973 [01:00:05]1012 (4) - 26.10.2024 18:31 [01:00:05]1206 (1) - 0 [01:00:05]OFD Sender: Remove packet 191973 [01:00:05]ProducePacketName [01:00:05]name=ofd_packets/00191973 [01:00:05]NVStorageDeleteData [01:00:05]Write to MH i2c: 01 00 00 4F 40 8F [01:00:05]Write i2c OK [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: 01 [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: 01 07 00 [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: 01 07 00 4F 40 00 00 00 00 00 B3 0C 55 [01:00:05]RasterBufferAndPrint [01:00:05]line [01:00:05]line [01:00:05]line [01:00:05]line [01:00:05]line [01:00:05]written 0, free lines is 3255 [01:00:05]MH_Cut [01:00:05]Write to MH i2c: D1 01 00 56 40 01 68 [01:00:05]Write i2c OK [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: D1 [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: D1 01 00 [01:00:05]MH_I2C_Read... [01:00:05]Read from MH i2c: D1 01 00 56 40 00 67 [01:00:05]Write to MH i2c: 01 00 00 57 40 97 [01:00:05]Write i2c OK [01:00:05]MH_I2C_Read... [01:00:05]OFD Sender: No OFD packet to send [01:00:06]*** Cut start [01:00:06]*** Partial cut [01:00:06]*** CUTSNS_PIN = 1 [01:00:06]*** CUTSNS_PIN = 0 [01:00:06]*** Brake cut motor [01:00:06]Read from MH i2c: 01 [01:00:06]MH_I2C_Read... [01:00:06]*** Stop cut motor [01:00:06]Read from MH i2c: 01 07 00 [01:00:06]MH_I2C_Read... [01:00:06]*** Cut end [01:00:06]Read from MH i2c: 01 07 00 57 40 00 00 00 00 00 FF 0F AC [01:00:06]process_action close_receipt done [01:00:06]requested_data is exist [01:00:06]produce_requested_data [01:00:06]requested_item fm.sn is exist - process it [01:00:06]wFMCommunicate request_size=4 [01:00:06]MH_SAM_APDU [01:00:06]CAPDU: 80 11 00 00 [01:00:06]Write to MH i2c: E2 08 00 58 40 80 11 00 00 00 00 00 00 12 [01:00:06]Write i2c OK [01:00:06]MH_I2C_Read... [01:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:06]Read from MH i2c: E2 [01:00:06]MH_I2C_Read... [01:00:06]Read from MH i2c: E2 17 00 [01:00:06]MH_I2C_Read... [01:00:06]Read from MH i2c: E2 17 00 58 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 65 [01:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:00:06]wFMCommunicate OK [01:00:06]requested_item fd.num is exist - process it [01:00:06]SAM_PROTO_GetFieldsCounters [01:00:06]wFMCommunicate request_size=4 [01:00:06]MH_SAM_APDU [01:00:06]CAPDU: 80 13 00 00 [01:00:06]Write to MH i2c: E2 08 00 59 40 80 13 00 00 00 00 00 00 15 [01:00:06]Write i2c OK [01:00:06]MH_I2C_Read... [01:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:07]Read from MH i2c: E2 [01:00:07]MH_I2C_Read... [01:00:07]Read from MH i2c: E2 62 00 [01:00:07]MH_I2C_Read... [01:00:07]Read from MH i2c: E2 62 00 59 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [01:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E5 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:00:07]wFMCommunicate OK [01:00:07]SAM_PROTO_GetFieldsCounters done [01:00:07]requested_item shift.num is exist - process it [01:00:07]requested_item shift.opened is exist - process it [01:00:07]req_shift_opened [01:00:07]FM_GetShiftState [01:00:07]SAM_PROTO_GetShiftState [01:00:07]wFMCommunicate request_size=4 [01:00:07]MH_SAM_APDU [01:00:07]CAPDU: 80 13 01 00 [01:00:07]Write to MH i2c: E2 08 00 5A 40 80 13 01 00 00 00 00 00 17 [01:00:07]Write i2c OK [01:00:07]MH_I2C_Read... [01:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:07]Read from MH i2c: E2 [01:00:07]MH_I2C_Read... [01:00:07]Read from MH i2c: E2 0E 00 [01:00:07]MH_I2C_Read... [01:00:07]Read from MH i2c: E2 0E 00 5A 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 58 [01:00:07]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:00:07]wFMCommunicate OK [01:00:07]SAM_PROTO_GetShiftState done [01:00:07]FM_GetShiftState done [01:00:07]req_shift_opened done [01:00:07]requested_item shift.open_date is exist - process it [01:00:07]req_shift_open_date [01:00:07]req_shift_open_date done [01:00:07]produce_requested_data done [01:00:07]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191973,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:00:07]process_action_free close_receipt [01:00:07]json_value_free [01:00:07]json_value_free done [01:00:07]process_json_proto returns [01:00:07]Send response to host [01:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191973,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:00:07]free response buf [01:00:07]execute_script done [01:00:07]execute_script returns [01:00:07]free content buf [01:00:07]Sock 6.Close socket [01:00:07]Sock 6.Thread stoped [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:39]accept exits with 5 [01:00:39]New connection [01:00:39]New thread 3066817892 created [01:00:39]Thread 3066961252 joined [01:00:39]Waiting for new connection... [01:00:39] Sock 5.Parse request [01:00:39]Sock 5.Check first char [01:00:39]Sock 5.First char is OK [01:00:39]request: POST /json_proto HTTP/1.0 [01:00:39]Method: POST [01:00:39]URL: /json_proto [01:00:39]Method is POST - this is cgi request [01:00:39]url: /json_proto [01:00:39]query_string will be loaded in cgi processing [01:00:39]execute_cgi json_proto POST (null) [01:00:39]execute_cgi path=json_proto method=POST [01:00:39]POST find Content-Length [01:00:39]Host: 172.17.63.131:8080 [01:00:39]Content-Length: 681 [01:00:39]Content-Type: application/json [01:00:39] [01:00:39]POST finish read [01:00:39]Found Content-Length = 681 [01:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:39]execute_script... [01:00: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)31284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:00:39]POST & json_proto [01:00:39]process_json_proto [01:00:39]json parsed OK: [01:00:39]protocol is kg_v1.0 [01:00:39]action value=close_receipt [01:00:39]process_action close_receipt [01:00:39]cmd_close_receipt [01:00:39]MH_GetDate [01:00:39]Write to MH i2c: F0 00 00 5B 40 8A [01:00:39]Write i2c OK [01:00:39]MH_I2C_Read... [01:00:39]Read from MH i2c: F0 [01:00:39]MH_I2C_Read... [01:00:39]Read from MH i2c: F0 09 00 [01:00:39]MH_I2C_Read... [01:00:39]Read from MH i2c: F0 09 00 5B 40 00 C8 90 1D 67 22 05 6E 64 68 [01:00:39]GetLastDocTimeStamp 1729990820 [01:00:39]current date 1729990856 [01:00:39]FM_GetShiftState [01:00:39]SAM_PROTO_GetShiftState [01:00:39]wFMCommunicate request_size=4 [01:00:39]MH_SAM_APDU [01:00:39]CAPDU: 80 13 01 00 [01:00:39]Write to MH i2c: E2 08 00 5C 40 80 13 01 00 00 00 00 00 19 [01:00:39]Write i2c OK [01:00:39]MH_I2C_Read... [01:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:39]Read from MH i2c: E2 [01:00:39]MH_I2C_Read... [01:00:39]Read from MH i2c: E2 0E 00 [01:00:39]MH_I2C_Read... [01:00:39]Read from MH i2c: E2 0E 00 5C 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 5A [01:00:39]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:00:39]wFMCommunicate OK [01:00:39]SAM_PROTO_GetShiftState done [01:00:39]FM_GetShiftState done [01:00:39]opened in 1729989159 [01:00:39]opened+sec_in_day 1730075559 [01:00:39]quantity*price = 120018 [01:00:39]sum+1 = 120020 [01:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 6 27.10.2024 01:00 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191974 ФПД: 191426623707754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010056&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191974&fm=191426623707754&tin=02508201610067®Number=0000000000091776&sum=120000 [01:00:40]StoreToDocumentArchive [01:00:40]shift 542 fd 191974 [01:00:40]save to /storage/0542/doc_00191974 [01:00:40]save last doc name /storage/0542/doc_00191974 to /storage/kkm_last_doc_name [01:00:40]save OK [01:00:40]Clear old archive folders... [01:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:00:40]tlvbuf is 01A24580 [01:00:40]SAM_PROTO_ClearQueue [01:00:40]wFMCommunicate request_size=4 [01:00:40]MH_SAM_APDU [01:00:40]CAPDU: 80 09 00 00 [01:00:40]Write to MH i2c: E2 08 00 69 40 80 09 00 00 00 00 00 00 1B [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 69 40 00 90 00 1D [01:00:40]RAPDU: 90 00 [01:00:40]wFMCommunicate OK [01:00:40]SAM_PROTO_ClearQueue done [01:00:40]KKMCreateOFDPacket [01:00:40]OFDProtocolAddRootSTLVToBuf [01:00:40]FM_MakeSignedData [01:00:40]FM_MakeSignedData [01:00:40]SAM_PROTO_SignData [01:00:40]wFMCommunicate request_size=4 [01:00:40]MH_SAM_APDU [01:00:40]CAPDU: 80 0D 01 02 [01:00:40]Write to MH i2c: E2 08 00 6A 40 80 0D 01 02 00 00 00 00 23 [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 6A 40 00 90 00 1E [01:00:40]RAPDU: 90 00 [01:00:40]wFMCommunicate OK [01:00:40]wFMCommunicate request_size=255 [01:00:40]MH_SAM_APDU [01:00: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C8 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 ED 02 00 35 04 06 00 AE [01:00:40]Write to MH i2c: E2 02 01 6B 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C8 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 ED 02 00 35 04 06 00 AE 00 00 43 [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 6B 40 00 90 00 1F [01:00:40]RAPDU: 90 00 [01:00:40]wFMCommunicate OK [01:00:40]wFMCommunicate request_size=10 [01:00:40]MH_SAM_APDU [01:00:40]CAPDU: 80 0D 02 02 05 19 FB E8 1A 6A [01:00:40]Write to MH i2c: E2 0D 00 6C 40 80 0D 02 02 05 00 19 FB E8 1A 6A 00 00 B0 [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]OFD Sender: No OFD packet to send [01:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 03 00 6C 40 00 90 00 20 [01:00:40]RAPDU: 90 00 [01:00:40]wFMCommunicate OK [01:00:40]wFMCommunicate request_size=4 [01:00:40]MH_SAM_APDU [01:00:40]CAPDU: 80 0D 03 02 [01:00:40]Write to MH i2c: E2 08 00 6D 40 80 0D 03 02 00 00 00 00 28 [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 0B 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 0B 00 6D 40 00 94 41 20 18 0D E7 78 E3 90 00 85 [01:00:40]RAPDU: 94 41 20 18 0D E7 78 E3 90 00 [01:00:40]wFMCommunicate OK [01:00:40]SAM_PROTO_SignData done [01:00:40]FM_MakeSignedData done [01:00:40]CreateOFDProtocolMessage [01:00:40]wFMCommunicate request_size=4 [01:00:40]MH_SAM_APDU [01:00:40]CAPDU: 80 11 00 00 [01:00:40]Write to MH i2c: E2 08 00 6E 40 80 11 00 00 00 00 00 00 28 [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:40]Read from MH i2c: E2 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 17 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: E2 17 00 6E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 7B [01:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:00:40]wFMCommunicate OK [01:00:40]CreateOFDProtocolMessage done [01:00:40]OFDSenderStorePacket 191974 [01:00:40]StoreOFDPacket docnum=191974 [01:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 76 CF 07 01 A1 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C8 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 ED 02 00 35 04 06 00 AE 19 FB E8 1A 6A 94 41 20 18 0D E7 78 E3 [01:00:40]CheckFolder [01:00:40]dirname=/storage/ofd_packets [01:00:40]CheckFolder done [01:00:40]ProducePacketName [01:00:40]name=ofd_packets/00191974 [01:00:40]NVStorageSaveData ofd_packets/00191974 [01:00:40]File name is /storage/ofd_packets/00191974 [01:00:40]Write 301 bytes [01:00:40]NVStorageSaveData done [01:00:40]OFDSenderStorePacket done [01:00:40]KKMCreateOFDPacket done [01:00:40]NVStorageSaveData kkm_last_timestamp [01:00:40]File name is /storage/kkm_last_timestamp [01:00:40]Write 4 bytes [01:00:40]NVStorageSaveData done [01:00:40]ExternCall_PrintAddStr [01:00:40]wPrintStart [01:00:40]Write to MH i2c: 01 00 00 6F 40 AF [01:00:40]Write i2c OK [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: 01 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: 01 07 00 [01:00:40]MH_I2C_Read... [01:00:40]Read from MH i2c: 01 07 00 6F 40 00 00 00 00 00 FF 0F C4 [01:00:40]RasterBufferAndPrint [01:00:40]line Счет N : (1)31284 [01:00:40]line ИНН: 02508201610067 [01:00:40]line Контрольно-Кассовый Чек [01:00:40]line ПРОДАЖА [01:00:40]line ТРК (МРК, ГНК) : 12 [01:00:40]line Товар: 2710124130 [01:00:40]line Аи-92-К-5 [01:00:40]line 17.940 * 66.90 [01:00:40]line = 1200.19 [01:00:40]line НДС 12% НСП 1% [01:00:40]line > о реализуемом товаре [01:00:40]line ОКРУГЛЕНИЕ: -0.19 [01:00:40]line ИТОГО: 1200.00 [01:00:40]line Внесено: 1200.00 [01:00:40]line СДАЧА: 0.00 [01:00:40]line НСП 1% : 10.62 [01:00:40]line НДС 12% : 127.45 [01:00:40]line Наличными: 1200.00 [01:00:40]line Безнал.: 0.00 [01:00:40]line Место: АЗС № 170 "Партнер Нефть" [01:00:40]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:00:40]line СНО: Общий режим [01:00:40]line Чек 6 27.10.2024 01:00 [01:00:40]line Смена: 542 ФФД: 1.0 [01:00:40]line ЗНМ: 0300000110 [01:00:40]line РНМ: 0000000000091776 [01:00:40]line Версия ККМ: 001 [01:00:40]line ФМ: 0000000000871754 [01:00:40]line ФД: 191974 [01:00:40]line ФПД: 191426623707754 [01:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T010056&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191974&fm=191426623707754&tin=02508201610067®Number=0000000000091776&sum=120000 [01:00:41]OFD Sender: Processing packet 191974 [packets to send 75, broken 74] [01:00:41]ProducePacketName [01:00:41]name=ofd_packets/00191974 [01:00:41]OFD Sender: To server: pG, [01:00:41]CommunicateWithHost lk.salyk.kg:30040 [01:00:41]ConnectInit lk.salyk.kg [01:00:41]written 0, free lines is 4095 [01:00:41]Connected sock=8 [01:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 76 CF 07 01 A1 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 C8 90 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 ED 02 00 35 04 06 00 AE 19 FB E8 1A 6A 94 41 20 18 0D E7 78 E3 [01:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AF AD 47 00 96 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E6 ED 02 00 F4 03 04 00 92 35 1D 67 B6 04 01 00 00 88 DA CE 01 28 EB 4A 39 [01:00:41]CommunicateWithHost err = 0 [01:00:41]CheckOFDResponse [01:00:41]1017 (14) - 77093643461234 [01:00:41]1041 (16) - 0000000000871754 [01:00:41]1040 (4) - 191974 [01:00:41]1012 (4) - 26.10.2024 18:31 [01:00:41]1206 (1) - 0 [01:00:41]OFD Sender: Remove packet 191974 [01:00:41]ProducePacketName [01:00:41]name=ofd_packets/00191974 [01:00:41]NVStorageDeleteData [01:00:41]Write to MH i2c: 01 00 00 9A 40 DA [01:00:41]Write i2c OK [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: 01 [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: 01 07 00 [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: 01 07 00 9A 40 00 00 00 00 00 AD 0C 9A [01:00:41]RasterBufferAndPrint [01:00:41]line [01:00:41]line [01:00:41]line [01:00:41]line [01:00:41]line [01:00:41]written 0, free lines is 3251 [01:00:41]MH_Cut [01:00:41]Write to MH i2c: D1 01 00 A1 40 01 B3 [01:00:41]Write i2c OK [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: D1 [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: D1 01 00 [01:00:41]MH_I2C_Read... [01:00:41]Read from MH i2c: D1 01 00 A1 40 00 B2 [01:00:41]Write to MH i2c: 01 00 00 A2 40 E2 [01:00:41]Write i2c OK [01:00:41]MH_I2C_Read... [01:00:42]OFD Sender: No OFD packet to send [01:00:42]*** Cut start [01:00:42]*** Partial cut [01:00:42]*** CUTSNS_PIN = 1 [01:00:42]*** CUTSNS_PIN = 0 [01:00:42]*** Brake cut motor [01:00:43]Read from MH i2c: 01 [01:00:43]MH_I2C_Read... [01:00:43]*** Stop cut motor [01:00:43]*** Cut end [01:00:43]Read from MH i2c: 01 07 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: 01 07 00 A2 40 00 00 00 00 00 FF 0F F7 [01:00:43]process_action close_receipt done [01:00:43]requested_data is exist [01:00:43]produce_requested_data [01:00:43]requested_item fm.sn is exist - process it [01:00:43]wFMCommunicate request_size=4 [01:00:43]MH_SAM_APDU [01:00:43]CAPDU: 80 11 00 00 [01:00:43]Write to MH i2c: E2 08 00 A3 40 80 11 00 00 00 00 00 00 5D [01:00:43]Write i2c OK [01:00:43]MH_I2C_Read... [01:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:00:43]Read from MH i2c: E2 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 17 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 17 00 A3 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 B0 [01:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:00:43]wFMCommunicate OK [01:00:43]requested_item fd.num is exist - process it [01:00:43]SAM_PROTO_GetFieldsCounters [01:00:43]wFMCommunicate request_size=4 [01:00:43]MH_SAM_APDU [01:00:43]CAPDU: 80 13 00 00 [01:00:43]Write to MH i2c: E2 08 00 A4 40 80 13 00 00 00 00 00 00 60 [01:00:43]Write i2c OK [01:00:43]MH_I2C_Read... [01:00:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:00:43]Read from MH i2c: E2 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 62 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 62 00 A4 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [01:00:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E6 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:00:43]wFMCommunicate OK [01:00:43]SAM_PROTO_GetFieldsCounters done [01:00:43]requested_item shift.num is exist - process it [01:00:43]requested_item shift.opened is exist - process it [01:00:43]req_shift_opened [01:00:43]FM_GetShiftState [01:00:43]SAM_PROTO_GetShiftState [01:00:43]wFMCommunicate request_size=4 [01:00:43]MH_SAM_APDU [01:00:43]CAPDU: 80 13 01 00 [01:00:43]Write to MH i2c: E2 08 00 A5 40 80 13 01 00 00 00 00 00 62 [01:00:43]Write i2c OK [01:00:43]MH_I2C_Read... [01:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:00:43]Read from MH i2c: E2 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 0E 00 [01:00:43]MH_I2C_Read... [01:00:43]Read from MH i2c: E2 0E 00 A5 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A3 [01:00:43]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:00:43]wFMCommunicate OK [01:00:43]SAM_PROTO_GetShiftState done [01:00:43]FM_GetShiftState done [01:00:43]req_shift_opened done [01:00:43]requested_item shift.open_date is exist - process it [01:00:43]req_shift_open_date [01:00:43]req_shift_open_date done [01:00:43]produce_requested_data done [01:00:43]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191974,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:00:43]process_action_free close_receipt [01:00:43]json_value_free [01:00:43]json_value_free done [01:00:43]process_json_proto returns [01:00:43]Send response to host [01:00:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191974,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:00:43]free response buf [01:00:43]execute_script done [01:00:43]execute_script returns [01:00:43]free content buf [01:00:43]Sock 5.Close socket [01:00:43]Sock 5.Thread stoped [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:46]accept exits with 6 [01:18:46]New connection [01:18:46]New thread 3066961252 created [01:18:46]Thread 3066817892 joined [01:18:46]Waiting for new connection... [01:18:46] Sock 6.Parse request [01:18:46]Sock 6.Check first char [01:18:46]Sock 6.First char is OK [01:18:46]request: POST /json_proto HTTP/1.0 [01:18:46]Method: POST [01:18:46]URL: /json_proto [01:18:46]Method is POST - this is cgi request [01:18:46]url: /json_proto [01:18:46]query_string will be loaded in cgi processing [01:18:46]execute_cgi json_proto POST (null) [01:18:46]execute_cgi path=json_proto method=POST [01:18:46]POST find Content-Length [01:18:46]Host: 172.17.63.131:8080 [01:18:46]Content-Length: 862 [01:18:46]Content-Type: application/json [01:18:46] [01:18:46]POST finish read [01:18:46]Found Content-Length = 862 [01:18:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:46]execute_script... [01:18: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)31285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:18:46]POST & json_proto [01:18:46]process_json_proto [01:18:46]json parsed OK: [01:18:46]protocol is kg_v1.0 [01:18:46]action value=close_receipt [01:18:46]process_action close_receipt [01:18:46]cmd_close_receipt [01:18:46]MH_GetDate [01:18:46]Write to MH i2c: F0 00 00 A6 40 D5 [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: F0 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: F0 09 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: F0 09 00 A6 40 00 08 95 1D 67 22 05 6E 64 F8 [01:18:47]GetLastDocTimeStamp 1729990856 [01:18:47]current date 1729991944 [01:18:47]FM_GetShiftState [01:18:47]SAM_PROTO_GetShiftState [01:18:47]wFMCommunicate request_size=4 [01:18:47]MH_SAM_APDU [01:18:47]CAPDU: 80 13 01 00 [01:18:47]Write to MH i2c: E2 08 00 A7 40 80 13 01 00 00 00 00 00 64 [01:18:47]Write i2c OK [01:18:47]MH_I2C_Read... [01:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:47]Read from MH i2c: E2 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 0E 00 [01:18:47]MH_I2C_Read... [01:18:47]Read from MH i2c: E2 0E 00 A7 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 A5 [01:18:47]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:18:47]wFMCommunicate OK [01:18:47]SAM_PROTO_GetShiftState done [01:18:47]FM_GetShiftState done [01:18:47]opened in 1729989159 [01:18:47]opened+sec_in_day 1730075559 [01:18:47]quantity*price = 50041 [01:18:47]sum+1 = 50042 [01:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 7 27.10.2024 01:19 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000871754 ФД: 191975 ФПД: 65245828118112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T011904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191975&fm=65245828118112&tin=02508201610067®Number=0000000000091776&sum=50041 [01:18:48]StoreToDocumentArchive [01:18:48]shift 542 fd 191975 [01:18:48]save to /storage/0542/doc_00191975 [01:18:48]save last doc name /storage/0542/doc_00191975 to /storage/kkm_last_doc_name [01:18:48]save OK [01:18:48]Clear old archive folders... [01:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:18:48]tlvbuf is 019924B0 [01:18:48]SAM_PROTO_ClearQueue [01:18:48]wFMCommunicate request_size=4 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 09 00 00 [01:18:48]Write to MH i2c: E2 08 00 B4 40 80 09 00 00 00 00 00 00 66 [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 B4 40 00 90 00 68 [01:18:48]RAPDU: 90 00 [01:18:48]wFMCommunicate OK [01:18:48]SAM_PROTO_ClearQueue done [01:18:48]KKMCreateOFDPacket [01:18:48]OFDProtocolAddRootSTLVToBuf [01:18:48]FM_MakeSignedData [01:18:48]FM_MakeSignedData [01:18:48]SAM_PROTO_SignData [01:18:48]wFMCommunicate request_size=4 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 0D 01 02 [01:18:48]Write to MH i2c: E2 08 00 B5 40 80 0D 01 02 00 00 00 00 6E [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]OFD Sender: No OFD packet to send [01:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 B5 40 00 90 00 69 [01:18:48]RAPDU: 90 00 [01:18:48]wFMCommunicate OK [01:18:48]wFMCommunicate request_size=255 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 08 95 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 ED 02 00 35 04 06 00 3B [01:18:48]Write to MH i2c: E2 02 01 B6 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 08 95 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 ED 02 00 35 04 06 00 3B 00 00 AD [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 B6 40 00 90 00 6A [01:18:48]RAPDU: 90 00 [01:18:48]wFMCommunicate OK [01:18:48]wFMCommunicate request_size=10 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 0D 02 02 05 57 3A 68 76 60 [01:18:48]Write to MH i2c: E2 0D 00 B7 40 80 0D 02 02 05 00 57 3A 68 76 60 00 00 4A [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 03 00 B7 40 00 90 00 6B [01:18:48]RAPDU: 90 00 [01:18:48]wFMCommunicate OK [01:18:48]wFMCommunicate request_size=4 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 0D 03 02 [01:18:48]Write to MH i2c: E2 08 00 B8 40 80 0D 03 02 00 00 00 00 73 [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 0B 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 0B 00 B8 40 00 45 12 20 F0 A8 46 F4 1C 90 00 D9 [01:18:48]RAPDU: 45 12 20 F0 A8 46 F4 1C 90 00 [01:18:48]wFMCommunicate OK [01:18:48]SAM_PROTO_SignData done [01:18:48]FM_MakeSignedData done [01:18:48]CreateOFDProtocolMessage [01:18:48]wFMCommunicate request_size=4 [01:18:48]MH_SAM_APDU [01:18:48]CAPDU: 80 11 00 00 [01:18:48]Write to MH i2c: E2 08 00 B9 40 80 11 00 00 00 00 00 00 73 [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:48]Read from MH i2c: E2 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 17 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: E2 17 00 B9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 C6 [01:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:18:48]wFMCommunicate OK [01:18:48]CreateOFDProtocolMessage done [01:18:48]OFDSenderStorePacket 191975 [01:18:48]StoreOFDPacket docnum=191975 [01:18:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 3B 07 01 37 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 08 95 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 ED 02 00 35 04 06 00 3B 57 3A 68 76 60 45 12 20 F0 A8 46 F4 1C [01:18:48]CheckFolder [01:18:48]dirname=/storage/ofd_packets [01:18:48]CheckFolder done [01:18:48]ProducePacketName [01:18:48]name=ofd_packets/00191975 [01:18:48]NVStorageSaveData ofd_packets/00191975 [01:18:48]File name is /storage/ofd_packets/00191975 [01:18:48]Write 301 bytes [01:18:48]NVStorageSaveData done [01:18:48]OFDSenderStorePacket done [01:18:48]KKMCreateOFDPacket done [01:18:48]NVStorageSaveData kkm_last_timestamp [01:18:48]File name is /storage/kkm_last_timestamp [01:18:48]Write 4 bytes [01:18:48]NVStorageSaveData done [01:18:48]ExternCall_PrintAddStr [01:18:48]wPrintStart [01:18:48]Write to MH i2c: 01 00 00 BA 40 FA [01:18:48]Write i2c OK [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 07 00 [01:18:48]MH_I2C_Read... [01:18:48]Read from MH i2c: 01 07 00 BA 40 00 00 00 00 00 FF 0F 0F [01:18:48]RasterBufferAndPrint [01:18:48]line Счет N : (1)31285 [01:18:48]line ИНН: 02508201610067 [01:18:48]line Контрольно-Кассовый Чек [01:18:48]line ПРОДАЖА [01:18:48]line ТРК (МРК, ГНК) : 12 [01:18:48]line Товар: 2710124130 [01:18:48]line Аи-92-К-5 [01:18:48]line 7.480 * 66.90 [01:18:48]line = 500.41 [01:18:48]line НДС 12% НСП 1% [01:18:48]line > о реализуемом товаре [01:18:48]line ИТОГО: 500.41 [01:18:48]line НСП 1% : 4.43 [01:18:48]line НДС 12% : 53.14 [01:18:48]line Наличными: 0.00 [01:18:48]line Безнал.: 500.41 [01:18:48]line Место: АЗС № 170 "Партнер Нефть" [01:18:48]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:18:48]line СНО: Общий режим [01:18:48]line Чек 7 27.10.2024 01:19 [01:18:48]line Смена: 542 ФФД: 1.0 [01:18:48]line ЗНМ: 0300000110 [01:18:48]line РНМ: 0000000000091776 [01:18:48]line Версия ККМ: 001 [01:18:48]line Платежная система: Кыргызкоммерцбанк [01:18:48]line ФМ: 0000000000871754 [01:18:48]line ФД: 191975 [01:18:48]line ФПД: 65245828118112 [01:18:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T011904&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191975&fm=65245828118112&tin=02508201610067®Number=0000000000091776&sum=50041 [01:18:48]written 0, free lines is 4095 [01:18:48]OFD Sender: Processing packet 191975 [packets to send 75, broken 74] [01:18:48]ProducePacketName [01:18:48]name=ofd_packets/00191975 [01:18:48]OFD Sender: To server: pG, [01:18:48]CommunicateWithHost lk.salyk.kg:30040 [01:18:48]ConnectInit lk.salyk.kg [01:18:48]Connected sock=9 [01:18:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 56 3B 07 01 37 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 08 95 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 ED 02 00 35 04 06 00 3B 57 3A 68 76 60 45 12 20 F0 A8 46 F4 1C [01:18:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 32 5C 47 00 73 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E7 ED 02 00 F4 03 04 00 D1 39 1D 67 B6 04 01 00 00 4C EB 63 03 C8 F9 1C 53 [01:18:49]CommunicateWithHost err = 0 [01:18:49]CheckOFDResponse [01:18:49]1017 (14) - 77093643461234 [01:18:49]1041 (16) - 0000000000871754 [01:18:49]1040 (4) - 191975 [01:18:49]1012 (4) - 26.10.2024 18:49 [01:18:49]1206 (1) - 0 [01:18:49]OFD Sender: Remove packet 191975 [01:18:49]ProducePacketName [01:18:49]name=ofd_packets/00191975 [01:18:49]NVStorageDeleteData [01:18:49]Write to MH i2c: 01 00 00 E4 40 24 [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: 01 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: 01 07 00 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: 01 07 00 E4 40 00 00 00 00 00 B9 0C F0 [01:18:49]RasterBufferAndPrint [01:18:49]line [01:18:49]line [01:18:49]line [01:18:49]line [01:18:49]line [01:18:49]written 0, free lines is 3262 [01:18:49]MH_Cut [01:18:49]Write to MH i2c: D1 01 00 EB 40 01 FD [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: D1 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: D1 01 00 [01:18:49]MH_I2C_Read... [01:18:49]Read from MH i2c: D1 01 00 EB 40 00 FC [01:18:49]Write to MH i2c: 01 00 00 EC 40 2C [01:18:49]Write i2c OK [01:18:49]MH_I2C_Read... [01:18:49]OFD Sender: No OFD packet to send [01:18:50]*** Cut start [01:18:50]*** Partial cut [01:18:50]*** CUTSNS_PIN = 1 [01:18:50]*** CUTSNS_PIN = 0 [01:18:50]*** Brake cut motor [01:18:50]Read from MH i2c: 01 [01:18:50]MH_I2C_Read... [01:18:50]*** Stop cut motor [01:18:50]*** Cut end [01:18:50]Read from MH i2c: 01 07 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: 01 07 00 EC 40 00 00 00 00 00 FF 0F 41 [01:18:50]process_action close_receipt done [01:18:50]requested_data is exist [01:18:50]produce_requested_data [01:18:50]requested_item fm.sn is exist - process it [01:18:50]wFMCommunicate request_size=4 [01:18:50]MH_SAM_APDU [01:18:50]CAPDU: 80 11 00 00 [01:18:50]Write to MH i2c: E2 08 00 ED 40 80 11 00 00 00 00 00 00 A7 [01:18:50]Write i2c OK [01:18:50]MH_I2C_Read... [01:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:18:50]Read from MH i2c: E2 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 17 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 17 00 ED 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 FA [01:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:18:50]wFMCommunicate OK [01:18:50]requested_item fd.num is exist - process it [01:18:50]SAM_PROTO_GetFieldsCounters [01:18:50]wFMCommunicate request_size=4 [01:18:50]MH_SAM_APDU [01:18:50]CAPDU: 80 13 00 00 [01:18:50]Write to MH i2c: E2 08 00 EE 40 80 13 00 00 00 00 00 00 AA [01:18:50]Write i2c OK [01:18:50]MH_I2C_Read... [01:18:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:18:50]Read from MH i2c: E2 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 62 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 62 00 EE 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [01:18:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E7 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:18:50]wFMCommunicate OK [01:18:50]SAM_PROTO_GetFieldsCounters done [01:18:50]requested_item shift.num is exist - process it [01:18:50]requested_item shift.opened is exist - process it [01:18:50]req_shift_opened [01:18:50]FM_GetShiftState [01:18:50]SAM_PROTO_GetShiftState [01:18:50]wFMCommunicate request_size=4 [01:18:50]MH_SAM_APDU [01:18:50]CAPDU: 80 13 01 00 [01:18:50]Write to MH i2c: E2 08 00 EF 40 80 13 01 00 00 00 00 00 AC [01:18:50]Write i2c OK [01:18:50]MH_I2C_Read... [01:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:18:50]Read from MH i2c: E2 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 [01:18:50]MH_I2C_Read... [01:18:50]Read from MH i2c: E2 0E 00 EF 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 ED [01:18:50]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:18:50]wFMCommunicate OK [01:18:50]SAM_PROTO_GetShiftState done [01:18:50]FM_GetShiftState done [01:18:50]req_shift_opened done [01:18:50]requested_item shift.open_date is exist - process it [01:18:50]req_shift_open_date [01:18:50]req_shift_open_date done [01:18:50]produce_requested_data done [01:18:50]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191975,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:18:50]process_action_free close_receipt [01:18:50]json_value_free [01:18:50]json_value_free done [01:18:50]process_json_proto returns [01:18:50]Send response to host [01:18:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191975,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:18:50]free response buf [01:18:50]execute_script done [01:18:50]execute_script returns [01:18:50]free content buf [01:18:50]Sock 6.Close socket [01:18:50]Sock 6.Thread stoped [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:05]accept exits with 5 [01:27:05]New connection [01:27:05]New thread 3066817892 created [01:27:05]Thread 3066961252 joined [01:27:05]Waiting for new connection... [01:27:05] Sock 5.Parse request [01:27:05]Sock 5.Check first char [01:27:05]Sock 5.First char is OK [01:27:05]request: POST /json_proto HTTP/1.0 [01:27:05]Method: POST [01:27:05]URL: /json_proto [01:27:05]Method is POST - this is cgi request [01:27:05]url: /json_proto [01:27:05]query_string will be loaded in cgi processing [01:27:05]execute_cgi json_proto POST (null) [01:27:05]execute_cgi path=json_proto method=POST [01:27:05]POST find Content-Length [01:27:05]Host: 172.17.63.131:8080 [01:27:05]Content-Length: 681 [01:27:05]Content-Type: application/json [01:27:05] [01:27:05]POST finish read [01:27:05]Found Content-Length = 681 [01:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:05]execute_script... [01:27: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)31286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:05]POST & json_proto [01:27:05]process_json_proto [01:27:05]json parsed OK: [01:27:05]protocol is kg_v1.0 [01:27:05]action value=close_receipt [01:27:05]process_action close_receipt [01:27:05]cmd_close_receipt [01:27:05]MH_GetDate [01:27:05]Write to MH i2c: F0 00 00 F0 40 1F [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: F0 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: F0 09 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: F0 09 00 F0 40 00 FB 96 1D 67 22 05 6E 64 36 [01:27:05]GetLastDocTimeStamp 1729991944 [01:27:05]current date 1729992443 [01:27:05]FM_GetShiftState [01:27:05]SAM_PROTO_GetShiftState [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 13 01 00 [01:27:05]Write to MH i2c: E2 08 00 F1 40 80 13 01 00 00 00 00 00 AE [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:05]Read from MH i2c: E2 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 0E 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 0E 00 F1 40 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 EF [01:27:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:27:05]wFMCommunicate OK [01:27:05]SAM_PROTO_GetShiftState done [01:27:05]FM_GetShiftState done [01:27:05]opened in 1729989159 [01:27:05]opened+sec_in_day 1730075559 [01:27:05]quantity*price = 100015 [01:27:05]sum+1 = 100017 [01:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 8 27.10.2024 01:27 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191976 ФПД: 42682930140066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T012723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191976&fm=42682930140066&tin=02508201610067®Number=0000000000091776&sum=100000 [01:27:06]StoreToDocumentArchive [01:27:06]shift 542 fd 191976 [01:27:06]save to /storage/0542/doc_00191976 [01:27:06]save last doc name /storage/0542/doc_00191976 to /storage/kkm_last_doc_name [01:27:06]save OK [01:27:06]Clear old archive folders... [01:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:27:06]tlvbuf is 0172E7D0 [01:27:06]SAM_PROTO_ClearQueue [01:27:06]wFMCommunicate request_size=4 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 09 00 00 [01:27:06]Write to MH i2c: E2 08 00 FE 40 80 09 00 00 00 00 00 00 B0 [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 03 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 03 00 FE 40 00 90 00 B2 [01:27:06]RAPDU: 90 00 [01:27:06]wFMCommunicate OK [01:27:06]SAM_PROTO_ClearQueue done [01:27:06]KKMCreateOFDPacket [01:27:06]OFDProtocolAddRootSTLVToBuf [01:27:06]FM_MakeSignedData [01:27:06]FM_MakeSignedData [01:27:06]SAM_PROTO_SignData [01:27:06]wFMCommunicate request_size=4 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 0D 01 02 [01:27:06]Write to MH i2c: E2 08 00 FF 40 80 0D 01 02 00 00 00 00 B8 [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 03 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 03 00 FF 40 00 90 00 B3 [01:27:06]RAPDU: 90 00 [01:27:06]wFMCommunicate OK [01:27:06]wFMCommunicate request_size=255 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 96 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 ED 02 00 35 04 06 00 26 [01:27:07]Write to MH i2c: E2 02 01 00 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 96 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 ED 02 00 35 04 06 00 26 00 00 81 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 00 41 00 90 00 B5 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=10 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 0D 02 02 05 D1 E4 E3 93 A2 [01:27:07]Write to MH i2c: E2 0D 00 01 41 80 0D 02 02 05 00 D1 E4 E3 93 A2 00 00 93 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 03 00 01 41 00 90 00 B6 [01:27:07]RAPDU: 90 00 [01:27:07]wFMCommunicate OK [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 0D 03 02 [01:27:07]Write to MH i2c: E2 08 00 02 41 80 0D 03 02 00 00 00 00 BE [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0B 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 0B 00 02 41 00 F9 E7 1A 5B 2A 15 2D 52 90 00 D2 [01:27:07]RAPDU: F9 E7 1A 5B 2A 15 2D 52 90 00 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_SignData done [01:27:07]FM_MakeSignedData done [01:27:07]CreateOFDProtocolMessage [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 11 00 00 [01:27:07]Write to MH i2c: E2 08 00 03 41 80 11 00 00 00 00 00 00 BE [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 17 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 17 00 03 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 11 [01:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:27:07]wFMCommunicate OK [01:27:07]CreateOFDProtocolMessage done [01:27:07]OFDSenderStorePacket 191976 [01:27:07]StoreOFDPacket docnum=191976 [01:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 0A 07 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 96 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 ED 02 00 35 04 06 00 26 D1 E4 E3 93 A2 F9 E7 1A 5B 2A 15 2D 52 [01:27:07]CheckFolder [01:27:07]dirname=/storage/ofd_packets [01:27:07]CheckFolder done [01:27:07]ProducePacketName [01:27:07]name=ofd_packets/00191976 [01:27:07]NVStorageSaveData ofd_packets/00191976 [01:27:07]File name is /storage/ofd_packets/00191976 [01:27:07]Write 301 bytes [01:27:07]NVStorageSaveData done [01:27:07]OFDSenderStorePacket done [01:27:07]KKMCreateOFDPacket done [01:27:07]NVStorageSaveData kkm_last_timestamp [01:27:07]File name is /storage/kkm_last_timestamp [01:27:07]Write 4 bytes [01:27:07]NVStorageSaveData done [01:27:07]ExternCall_PrintAddStr [01:27:07]wPrintStart [01:27:07]Write to MH i2c: 01 00 00 04 41 45 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 07 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 07 00 04 41 00 00 00 00 00 FF 0F 5A [01:27:07]RasterBufferAndPrint [01:27:07]line Счет N : (1)31286 [01:27:07]line ИНН: 02508201610067 [01:27:07]line Контрольно-Кассовый Чек [01:27:07]line ПРОДАЖА [01:27:07]line ТРК (МРК, ГНК) : 21 [01:27:07]line Товар: 2710124130 [01:27:07]line Аи-92-К-5 [01:27:07]line 14.950 * 66.90 [01:27:07]line = 1000.16 [01:27:07]line НДС 12% НСП 1% [01:27:07]line > о реализуемом товаре [01:27:07]line ОКРУГЛЕНИЕ: -0.16 [01:27:07]line ИТОГО: 1000.00 [01:27:07]line Внесено: 1000.00 [01:27:07]line СДАЧА: 0.00 [01:27:07]line НСП 1% : 8.85 [01:27:07]line НДС 12% : 106.21 [01:27:07]line Наличными: 1000.00 [01:27:07]line Безнал.: 0.00 [01:27:07]line Место: АЗС № 170 "Партнер Нефть" [01:27:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:27:07]line СНО: Общий режим [01:27:07]line Чек 8 27.10.2024 01:27 [01:27:07]line Смена: 542 ФФД: 1.0 [01:27:07]line ЗНМ: 0300000110 [01:27:07]line РНМ: 0000000000091776 [01:27:07]line Версия ККМ: 001 [01:27:07]line ФМ: 0000000000871754 [01:27:07]line ФД: 191976 [01:27:07]line ФПД: 42682930140066 [01:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T012723&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191976&fm=42682930140066&tin=02508201610067®Number=0000000000091776&sum=100000 [01:27:07]written 0, free lines is 4095 [01:27:07]OFD Sender: Processing packet 191976 [packets to send 75, broken 74] [01:27:07]ProducePacketName [01:27:07]name=ofd_packets/00191976 [01:27:07]OFD Sender: To server: pG, [01:27:07]CommunicateWithHost lk.salyk.kg:30040 [01:27:07]ConnectInit lk.salyk.kg [01:27:07]Connected sock=9 [01:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 C7 0A 07 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 FB 96 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 ED 02 00 35 04 06 00 26 D1 E4 E3 93 A2 F9 E7 1A 5B 2A 15 2D 52 [01:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 AD FC 47 00 F0 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E8 ED 02 00 F4 03 04 00 C4 3B 1D 67 B6 04 01 00 00 A6 6B 45 1F 13 3A 9D 2C [01:27:07]CommunicateWithHost err = 0 [01:27:07]CheckOFDResponse [01:27:07]1017 (14) - 77093643461234 [01:27:07]1041 (16) - 0000000000871754 [01:27:07]1040 (4) - 191976 [01:27:07]1012 (4) - 26.10.2024 18:58 [01:27:07]1206 (1) - 0 [01:27:07]OFD Sender: Remove packet 191976 [01:27:07]ProducePacketName [01:27:07]name=ofd_packets/00191976 [01:27:07]NVStorageDeleteData [01:27:07]Write to MH i2c: 01 00 00 2F 41 70 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 07 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: 01 07 00 2F 41 00 00 00 00 00 B8 0C 3B [01:27:07]RasterBufferAndPrint [01:27:07]line [01:27:07]line [01:27:07]line [01:27:07]line [01:27:07]line [01:27:07]written 0, free lines is 3262 [01:27:07]MH_Cut [01:27:07]Write to MH i2c: D1 01 00 36 41 01 49 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: D1 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: D1 01 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: D1 01 00 36 41 00 48 [01:27:07]Write to MH i2c: 01 00 00 37 41 78 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:08]OFD Sender: No OFD packet to send [01:27:08]*** Cut start [01:27:08]*** Partial cut [01:27:08]*** CUTSNS_PIN = 1 [01:27:08]*** CUTSNS_PIN = 0 [01:27:09]*** Brake cut motor [01:27:09]Read from MH i2c: 01 [01:27:09]MH_I2C_Read... [01:27:09]*** Stop cut motor [01:27:09]*** Cut end [01:27:09]Read from MH i2c: 01 07 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: 01 07 00 37 41 00 00 00 00 00 FF 0F 8D [01:27:09]process_action close_receipt done [01:27:09]requested_data is exist [01:27:09]produce_requested_data [01:27:09]requested_item fm.sn is exist - process it [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 11 00 00 [01:27:09]Write to MH i2c: E2 08 00 38 41 80 11 00 00 00 00 00 00 F3 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 17 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 17 00 38 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 46 [01:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:27:09]wFMCommunicate OK [01:27:09]requested_item fd.num is exist - process it [01:27:09]SAM_PROTO_GetFieldsCounters [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 13 00 00 [01:27:09]Write to MH i2c: E2 08 00 39 41 80 13 00 00 00 00 00 00 F6 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 62 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 62 00 39 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [01:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E8 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:09]wFMCommunicate OK [01:27:09]SAM_PROTO_GetFieldsCounters done [01:27:09]requested_item shift.num is exist - process it [01:27:09]requested_item shift.opened is exist - process it [01:27:09]req_shift_opened [01:27:09]FM_GetShiftState [01:27:09]SAM_PROTO_GetShiftState [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 13 01 00 [01:27:09]Write to MH i2c: E2 08 00 3A 41 80 13 01 00 00 00 00 00 F8 [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 0E 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 0E 00 3A 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 39 [01:27:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:27:09]wFMCommunicate OK [01:27:09]SAM_PROTO_GetShiftState done [01:27:09]FM_GetShiftState done [01:27:09]req_shift_opened done [01:27:09]requested_item shift.open_date is exist - process it [01:27:09]req_shift_open_date [01:27:09]req_shift_open_date done [01:27:09]produce_requested_data done [01:27:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191976,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:27:09]process_action_free close_receipt [01:27:09]json_value_free [01:27:09]json_value_free done [01:27:09]process_json_proto returns [01:27:09]Send response to host [01:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191976,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:27:09]free response buf [01:27:09]execute_script done [01:27:09]execute_script returns [01:27:09]free content buf [01:27:09]Sock 5.Close socket [01:27:09]Sock 5.Thread stoped [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:10]accept exits with 6 [01:37:10]New connection [01:37:10]New thread 3066961252 created [01:37:10]Thread 3066817892 joined [01:37:10]Waiting for new connection... [01:37:10] Sock 6.Parse request [01:37:10]Sock 6.Check first char [01:37:10]Sock 6.First char is OK [01:37:10]request: POST /json_proto HTTP/1.0 [01:37:10]Method: POST [01:37:10]URL: /json_proto [01:37:10]Method is POST - this is cgi request [01:37:10]url: /json_proto [01:37:10]query_string will be loaded in cgi processing [01:37:10]execute_cgi json_proto POST (null) [01:37:10]execute_cgi path=json_proto method=POST [01:37:10]POST find Content-Length [01:37:10]Host: 172.17.63.131:8080 [01:37:10]Content-Length: 676 [01:37:10]Content-Type: application/json [01:37:10] [01:37:10]POST finish read [01:37:10]Found Content-Length = 676 [01:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:10]execute_script... [01:37: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)31288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:37:10]POST & json_proto [01:37:10]process_json_proto [01:37:10]json parsed OK: [01:37:10]protocol is kg_v1.0 [01:37:10]action value=close_receipt [01:37:10]process_action close_receipt [01:37:10]cmd_close_receipt [01:37:10]MH_GetDate [01:37:10]Write to MH i2c: F0 00 00 3B 41 6B [01:37:10]Write i2c OK [01:37:10]MH_I2C_Read... [01:37:10]Read from MH i2c: F0 [01:37:10]MH_I2C_Read... [01:37:10]Read from MH i2c: F0 09 00 [01:37:10]MH_I2C_Read... [01:37:10]Read from MH i2c: F0 09 00 3B 41 00 58 99 1D 67 22 05 6E 64 E2 [01:37:10]GetLastDocTimeStamp 1729992443 [01:37:10]current date 1729993048 [01:37:10]FM_GetShiftState [01:37:10]SAM_PROTO_GetShiftState [01:37:10]wFMCommunicate request_size=4 [01:37:10]MH_SAM_APDU [01:37:10]CAPDU: 80 13 01 00 [01:37:10]Write to MH i2c: E2 08 00 3C 41 80 13 01 00 00 00 00 00 FA [01:37:10]Write i2c OK [01:37:10]MH_I2C_Read... [01:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:10]Read from MH i2c: E2 [01:37:10]MH_I2C_Read... [01:37:10]Read from MH i2c: E2 0E 00 [01:37:10]MH_I2C_Read... [01:37:10]Read from MH i2c: E2 0E 00 3C 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 3B [01:37:10]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:37:10]wFMCommunicate OK [01:37:10]SAM_PROTO_GetShiftState done [01:37:10]FM_GetShiftState done [01:37:10]opened in 1729989159 [01:37:10]opened+sec_in_day 1730075559 [01:37:10]quantity*price = 35055 [01:37:10]sum+1 = 35057 [01:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 9 27.10.2024 01:37 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191977 ФПД: 212055953097456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191977&fm=212055953097456&tin=02508201610067®Number=0000000000091776&sum=35000 [01:37:12]StoreToDocumentArchive [01:37:12]shift 542 fd 191977 [01:37:12]save to /storage/0542/doc_00191977 [01:37:12]save last doc name /storage/0542/doc_00191977 to /storage/kkm_last_doc_name [01:37:12]save OK [01:37:12]Clear old archive folders... [01:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:37:12]tlvbuf is 0172EBE0 [01:37:12]SAM_PROTO_ClearQueue [01:37:12]wFMCommunicate request_size=4 [01:37:12]MH_SAM_APDU [01:37:12]CAPDU: 80 09 00 00 [01:37:12]Write to MH i2c: E2 08 00 49 41 80 09 00 00 00 00 00 00 FC [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 49 41 00 90 00 FE [01:37:12]RAPDU: 90 00 [01:37:12]wFMCommunicate OK [01:37:12]SAM_PROTO_ClearQueue done [01:37:12]KKMCreateOFDPacket [01:37:12]OFDProtocolAddRootSTLVToBuf [01:37:12]FM_MakeSignedData [01:37:12]FM_MakeSignedData [01:37:12]SAM_PROTO_SignData [01:37:12]wFMCommunicate request_size=4 [01:37:12]MH_SAM_APDU [01:37:12]CAPDU: 80 0D 01 02 [01:37:12]Write to MH i2c: E2 08 00 4A 41 80 0D 01 02 00 00 00 00 04 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 4A 41 00 90 00 FF [01:37:12]RAPDU: 90 00 [01:37:12]wFMCommunicate OK [01:37:12]wFMCommunicate request_size=255 [01:37:12]MH_SAM_APDU [01:37: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 58 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 ED 02 00 35 04 06 00 C0 [01:37:12]Write to MH i2c: E2 02 01 4B 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 58 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 ED 02 00 35 04 06 00 C0 00 00 D9 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 4B 41 00 90 00 00 [01:37:12]RAPDU: 90 00 [01:37:12]wFMCommunicate OK [01:37:12]wFMCommunicate request_size=10 [01:37:12]MH_SAM_APDU [01:37:12]CAPDU: 80 0D 02 02 05 DD 1F C1 C2 F0 [01:37:12]Write to MH i2c: E2 0D 00 4C 41 80 0D 02 02 05 00 DD 1F C1 C2 F0 00 00 80 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 03 00 4C 41 00 90 00 01 [01:37:12]RAPDU: 90 00 [01:37:12]wFMCommunicate OK [01:37:12]wFMCommunicate request_size=4 [01:37:12]MH_SAM_APDU [01:37:12]CAPDU: 80 0D 03 02 [01:37:12]Write to MH i2c: E2 08 00 4D 41 80 0D 03 02 00 00 00 00 09 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 0B 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 0B 00 4D 41 00 8D DD 22 E8 B9 A2 0B 60 90 00 44 [01:37:12]RAPDU: 8D DD 22 E8 B9 A2 0B 60 90 00 [01:37:12]wFMCommunicate OK [01:37:12]SAM_PROTO_SignData done [01:37:12]FM_MakeSignedData done [01:37:12]CreateOFDProtocolMessage [01:37:12]wFMCommunicate request_size=4 [01:37:12]MH_SAM_APDU [01:37:12]CAPDU: 80 11 00 00 [01:37:12]Write to MH i2c: E2 08 00 4E 41 80 11 00 00 00 00 00 00 09 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:12]Read from MH i2c: E2 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 17 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: E2 17 00 4E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 5C [01:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:37:12]wFMCommunicate OK [01:37:12]CreateOFDProtocolMessage done [01:37:12]OFDSenderStorePacket 191977 [01:37:12]StoreOFDPacket docnum=191977 [01:37:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 2F 07 01 16 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 58 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 ED 02 00 35 04 06 00 C0 DD 1F C1 C2 F0 8D DD 22 E8 B9 A2 0B 60 [01:37:12]CheckFolder [01:37:12]dirname=/storage/ofd_packets [01:37:12]CheckFolder done [01:37:12]ProducePacketName [01:37:12]name=ofd_packets/00191977 [01:37:12]NVStorageSaveData ofd_packets/00191977 [01:37:12]File name is /storage/ofd_packets/00191977 [01:37:12]Write 301 bytes [01:37:12]NVStorageSaveData done [01:37:12]OFDSenderStorePacket done [01:37:12]KKMCreateOFDPacket done [01:37:12]NVStorageSaveData kkm_last_timestamp [01:37:12]File name is /storage/kkm_last_timestamp [01:37:12]Write 4 bytes [01:37:12]NVStorageSaveData done [01:37:12]ExternCall_PrintAddStr [01:37:12]wPrintStart [01:37:12]Write to MH i2c: 01 00 00 4F 41 90 [01:37:12]Write i2c OK [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: 01 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: 01 07 00 [01:37:12]MH_I2C_Read... [01:37:12]Read from MH i2c: 01 07 00 4F 41 00 00 00 00 00 FF 0F A5 [01:37:12]RasterBufferAndPrint [01:37:12]line Счет N : (1)31288 [01:37:12]line ИНН: 02508201610067 [01:37:12]line Контрольно-Кассовый Чек [01:37:12]line ПРОДАЖА [01:37:12]line ТРК (МРК, ГНК) : 12 [01:37:12]line Товар: 2710124130 [01:37:12]line Аи-92-К-5 [01:37:12]line 5.240 * 66.90 [01:37:12]line = 350.56 [01:37:12]line НДС 12% НСП 1% [01:37:12]line > о реализуемом товаре [01:37:12]line ОКРУГЛЕНИЕ: -0.56 [01:37:12]line ИТОГО: 350.00 [01:37:12]line Внесено: 350.00 [01:37:12]line СДАЧА: 0.00 [01:37:12]line НСП 1% : 3.10 [01:37:12]line НДС 12% : 37.23 [01:37:12]line Наличными: 350.00 [01:37:12]line Безнал.: 0.00 [01:37:12]line Место: АЗС № 170 "Партнер Нефть" [01:37:12]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:37:12]line СНО: Общий режим [01:37:12]line Чек 9 27.10.2024 01:37 [01:37:12]line Смена: 542 ФФД: 1.0 [01:37:12]line ЗНМ: 0300000110 [01:37:12]line РНМ: 0000000000091776 [01:37:12]line Версия ККМ: 001 [01:37:12]line ФМ: 0000000000871754 [01:37:12]line ФД: 191977 [01:37:12]line ФПД: 212055953097456 [01:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013728&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191977&fm=212055953097456&tin=02508201610067®Number=0000000000091776&sum=35000 [01:37:12]OFD Sender: Processing packet 191977 [packets to send 75, broken 74] [01:37:12]ProducePacketName [01:37:12]name=ofd_packets/00191977 [01:37:12]OFD Sender: To server: pG, [01:37:12]CommunicateWithHost lk.salyk.kg:30040 [01:37:12]ConnectInit lk.salyk.kg [01:37:12]written 0, free lines is 4095 [01:37:13]Connected sock=8 [01:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 24 2F 07 01 16 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 58 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 ED 02 00 35 04 06 00 C0 DD 1F C1 C2 F0 8D DD 22 E8 B9 A2 0B 60 [01:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 07 44 47 00 92 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 E9 ED 02 00 F4 03 04 00 21 3E 1D 67 B6 04 01 00 00 68 B6 6F FD 98 2B 77 CA [01:37:13]CommunicateWithHost err = 0 [01:37:13]CheckOFDResponse [01:37:13]1017 (14) - 77093643461234 [01:37:13]1041 (16) - 0000000000871754 [01:37:13]1040 (4) - 191977 [01:37:13]1012 (4) - 26.10.2024 19:08 [01:37:13]1206 (1) - 0 [01:37:13]OFD Sender: Remove packet 191977 [01:37:13]ProducePacketName [01:37:13]name=ofd_packets/00191977 [01:37:13]NVStorageDeleteData [01:37:13]Write to MH i2c: 01 00 00 7A 41 BB [01:37:13]Write i2c OK [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: 01 [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: 01 07 00 [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: 01 07 00 7A 41 00 00 00 00 00 A7 0C 75 [01:37:13]RasterBufferAndPrint [01:37:13]line [01:37:13]line [01:37:13]line [01:37:13]line [01:37:13]line [01:37:13]written 0, free lines is 3245 [01:37:13]MH_Cut [01:37:13]Write to MH i2c: D1 01 00 81 41 01 94 [01:37:13]Write i2c OK [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: D1 [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: D1 01 00 [01:37:13]MH_I2C_Read... [01:37:13]Read from MH i2c: D1 01 00 81 41 00 93 [01:37:13]Write to MH i2c: 01 00 00 82 41 C3 [01:37:13]Write i2c OK [01:37:13]MH_I2C_Read... [01:37:13]OFD Sender: No OFD packet to send [01:37:14]*** Cut start [01:37:14]*** Partial cut [01:37:14]*** CUTSNS_PIN = 1 [01:37:14]*** CUTSNS_PIN = 0 [01:37:14]*** Brake cut motor [01:37:14]Read from MH i2c: 01 [01:37:14]MH_I2C_Read... [01:37:14]*** Stop cut motor [01:37:14]*** Cut end [01:37:14]Read from MH i2c: 01 07 00 [01:37:14]MH_I2C_Read... [01:37:14]Read from MH i2c: 01 07 00 82 41 00 00 00 00 00 FF 0F D8 [01:37:14]process_action close_receipt done [01:37:14]requested_data is exist [01:37:14]produce_requested_data [01:37:14]requested_item fm.sn is exist - process it [01:37:14]wFMCommunicate request_size=4 [01:37:14]MH_SAM_APDU [01:37:14]CAPDU: 80 11 00 00 [01:37:14]Write to MH i2c: E2 08 00 83 41 80 11 00 00 00 00 00 00 3E [01:37:14]Write i2c OK [01:37:14]MH_I2C_Read... [01:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:37:14]Read from MH i2c: E2 [01:37:14]MH_I2C_Read... [01:37:14]Read from MH i2c: E2 17 00 [01:37:14]MH_I2C_Read... [01:37:14]Read from MH i2c: E2 17 00 83 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 91 [01:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:37:14]wFMCommunicate OK [01:37:14]requested_item fd.num is exist - process it [01:37:14]SAM_PROTO_GetFieldsCounters [01:37:14]wFMCommunicate request_size=4 [01:37:14]MH_SAM_APDU [01:37:14]CAPDU: 80 13 00 00 [01:37:14]Write to MH i2c: E2 08 00 84 41 80 13 00 00 00 00 00 00 41 [01:37:14]Write i2c OK [01:37:14]MH_I2C_Read... [01:37:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:37:15]Read from MH i2c: E2 [01:37:15]MH_I2C_Read... [01:37:15]Read from MH i2c: E2 62 00 [01:37:15]MH_I2C_Read... [01:37:15]Read from MH i2c: E2 62 00 84 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [01:37:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 E9 ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:37:15]wFMCommunicate OK [01:37:15]SAM_PROTO_GetFieldsCounters done [01:37:15]requested_item shift.num is exist - process it [01:37:15]requested_item shift.opened is exist - process it [01:37:15]req_shift_opened [01:37:15]FM_GetShiftState [01:37:15]SAM_PROTO_GetShiftState [01:37:15]wFMCommunicate request_size=4 [01:37:15]MH_SAM_APDU [01:37:15]CAPDU: 80 13 01 00 [01:37:15]Write to MH i2c: E2 08 00 85 41 80 13 01 00 00 00 00 00 43 [01:37:15]Write i2c OK [01:37:15]MH_I2C_Read... [01:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:37:15]Read from MH i2c: E2 [01:37:15]MH_I2C_Read... [01:37:15]Read from MH i2c: E2 0E 00 [01:37:15]MH_I2C_Read... [01:37:15]Read from MH i2c: E2 0E 00 85 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 84 [01:37:15]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:37:15]wFMCommunicate OK [01:37:15]SAM_PROTO_GetShiftState done [01:37:15]FM_GetShiftState done [01:37:15]req_shift_opened done [01:37:15]requested_item shift.open_date is exist - process it [01:37:15]req_shift_open_date [01:37:15]req_shift_open_date done [01:37:15]produce_requested_data done [01:37:15]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191977,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:37:15]process_action_free close_receipt [01:37:15]json_value_free [01:37:15]json_value_free done [01:37:15]process_json_proto returns [01:37:15]Send response to host [01:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191977,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:37:15]free response buf [01:37:15]execute_script done [01:37:15]execute_script returns [01:37:15]free content buf [01:37:15]Sock 6.Close socket [01:37:15]Sock 6.Thread stoped [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:05]accept exits with 5 [01:39:05]New connection [01:39:05]New thread 3066817892 created [01:39:05]Thread 3066961252 joined [01:39:05]Waiting for new connection... [01:39:05] Sock 5.Parse request [01:39:05]Sock 5.Check first char [01:39:05]Sock 5.First char is OK [01:39:05]request: POST /json_proto HTTP/1.0 [01:39:05]Method: POST [01:39:05]URL: /json_proto [01:39:05]Method is POST - this is cgi request [01:39:05]url: /json_proto [01:39:05]query_string will be loaded in cgi processing [01:39:05]execute_cgi json_proto POST (null) [01:39:05]execute_cgi path=json_proto method=POST [01:39:05]POST find Content-Length [01:39:05]Host: 172.17.63.131:8080 [01:39:05]Content-Length: 678 [01:39:05]Content-Type: application/json [01:39:05] [01:39:05]POST finish read [01:39:05]Found Content-Length = 678 [01:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:05]execute_script... [01:39: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)31287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:05]POST & json_proto [01:39:05]process_json_proto [01:39:05]json parsed OK: [01:39:05]protocol is kg_v1.0 [01:39:05]action value=close_receipt [01:39:05]process_action close_receipt [01:39:05]cmd_close_receipt [01:39:05]MH_GetDate [01:39:05]Write to MH i2c: F0 00 00 86 41 B6 [01:39:05]Write i2c OK [01:39:05]MH_I2C_Read... [01:39:05]Read from MH i2c: F0 [01:39:05]MH_I2C_Read... [01:39:05]Read from MH i2c: F0 09 00 [01:39:05]MH_I2C_Read... [01:39:05]Read from MH i2c: F0 09 00 86 41 00 CB 99 1D 67 22 05 6E 64 A0 [01:39:05]GetLastDocTimeStamp 1729993048 [01:39:05]current date 1729993163 [01:39:05]FM_GetShiftState [01:39:05]SAM_PROTO_GetShiftState [01:39:05]wFMCommunicate request_size=4 [01:39:05]MH_SAM_APDU [01:39:05]CAPDU: 80 13 01 00 [01:39:05]Write to MH i2c: E2 08 00 87 41 80 13 01 00 00 00 00 00 45 [01:39:05]Write i2c OK [01:39:05]MH_I2C_Read... [01:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:05]Read from MH i2c: E2 [01:39:05]MH_I2C_Read... [01:39:05]Read from MH i2c: E2 0E 00 [01:39:05]MH_I2C_Read... [01:39:05]Read from MH i2c: E2 0E 00 87 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 86 [01:39:05]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:39:05]wFMCommunicate OK [01:39:05]SAM_PROTO_GetShiftState done [01:39:05]FM_GetShiftState done [01:39:05]opened in 1729989159 [01:39:05]opened+sec_in_day 1730075559 [01:39:05]quantity*price = 200025 [01:39:05]sum+1 = 200026 [01:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 170 "Партнер Нефть" Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 СНО: Общий режим Чек 10 27.10.2024 01:39 Смена: 542 ФФД: 1.0 ЗНМ: 0300000110 РНМ: 0000000000091776 Версия ККМ: 001 ФМ: 0000000000871754 ФД: 191978 ФПД: 229161774210611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013923&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191978&fm=229161774210611&tin=02508201610067®Number=0000000000091776&sum=200000 [01:39:06]StoreToDocumentArchive [01:39:06]shift 542 fd 191978 [01:39:06]save to /storage/0542/doc_00191978 [01:39:06]save last doc name /storage/0542/doc_00191978 to /storage/kkm_last_doc_name [01:39:06]save OK [01:39:06]Clear old archive folders... [01:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:39:06]tlvbuf is 01A76AC0 [01:39:06]SAM_PROTO_ClearQueue [01:39:06]wFMCommunicate request_size=4 [01:39:06]MH_SAM_APDU [01:39:06]CAPDU: 80 09 00 00 [01:39:06]Write to MH i2c: E2 08 00 94 41 80 09 00 00 00 00 00 00 47 [01:39:06]Write i2c OK [01:39:06]MH_I2C_Read... [01:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:06]Read from MH i2c: E2 [01:39:06]MH_I2C_Read... [01:39:06]Read from MH i2c: E2 03 00 [01:39:06]MH_I2C_Read... [01:39:06]Read from MH i2c: E2 03 00 94 41 00 90 00 49 [01:39:06]RAPDU: 90 00 [01:39:06]wFMCommunicate OK [01:39:06]SAM_PROTO_ClearQueue done [01:39:06]KKMCreateOFDPacket [01:39:06]OFDProtocolAddRootSTLVToBuf [01:39:06]FM_MakeSignedData [01:39:06]FM_MakeSignedData [01:39:06]SAM_PROTO_SignData [01:39:06]wFMCommunicate request_size=4 [01:39:06]MH_SAM_APDU [01:39:06]CAPDU: 80 0D 01 02 [01:39:06]Write to MH i2c: E2 08 00 95 41 80 0D 01 02 00 00 00 00 4F [01:39:06]Write i2c OK [01:39:06]MH_I2C_Read... [01:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:07]Read from MH i2c: E2 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 95 41 00 90 00 4A [01:39:07]RAPDU: 90 00 [01:39:07]wFMCommunicate OK [01:39:07]wFMCommunicate request_size=255 [01:39:07]MH_SAM_APDU [01:39:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CB 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA ED 02 00 35 04 06 00 D0 6B E2 25 [01:39:07]Write to MH i2c: E2 02 01 96 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CB 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA ED 02 00 35 04 06 00 D0 6B E2 25 00 00 F4 [01:39:07]Write i2c OK [01:39:07]MH_I2C_Read... [01:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:07]Read from MH i2c: E2 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 96 41 00 90 00 4B [01:39:07]RAPDU: 90 00 [01:39:07]wFMCommunicate OK [01:39:07]wFMCommunicate request_size=7 [01:39:07]MH_SAM_APDU [01:39:07]CAPDU: 80 0D 02 02 02 DE 33 [01:39:07]Write to MH i2c: E2 0A 00 97 41 80 0D 02 02 02 00 DE 33 00 00 67 [01:39:07]Write i2c OK [01:39:07]MH_I2C_Read... [01:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:07]Read from MH i2c: E2 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 03 00 97 41 00 90 00 4C [01:39:07]RAPDU: 90 00 [01:39:07]wFMCommunicate OK [01:39:07]wFMCommunicate request_size=4 [01:39:07]MH_SAM_APDU [01:39:07]CAPDU: 80 0D 03 02 [01:39:07]Write to MH i2c: E2 08 00 98 41 80 0D 03 02 00 00 00 00 54 [01:39:07]Write i2c OK [01:39:07]MH_I2C_Read... [01:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:07]Read from MH i2c: E2 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 0B 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 0B 00 98 41 00 27 29 81 58 D7 8F 7C EC 90 00 4C [01:39:07]RAPDU: 27 29 81 58 D7 8F 7C EC 90 00 [01:39:07]wFMCommunicate OK [01:39:07]SAM_PROTO_SignData done [01:39:07]FM_MakeSignedData done [01:39:07]CreateOFDProtocolMessage [01:39:07]wFMCommunicate request_size=4 [01:39:07]MH_SAM_APDU [01:39:07]CAPDU: 80 11 00 00 [01:39:07]Write to MH i2c: E2 08 00 99 41 80 11 00 00 00 00 00 00 54 [01:39:07]Write i2c OK [01:39:07]MH_I2C_Read... [01:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:07]Read from MH i2c: E2 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 17 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: E2 17 00 99 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 A7 [01:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:39:07]wFMCommunicate OK [01:39:07]CreateOFDProtocolMessage done [01:39:07]OFDSenderStorePacket 191978 [01:39:07]StoreOFDPacket docnum=191978 [01:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7E 37 04 01 C6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CB 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA ED 02 00 35 04 06 00 D0 6B E2 25 DE 33 27 29 81 58 D7 8F 7C EC [01:39:07]CheckFolder [01:39:07]dirname=/storage/ofd_packets [01:39:07]CheckFolder done [01:39:07]ProducePacketName [01:39:07]name=ofd_packets/00191978 [01:39:07]NVStorageSaveData ofd_packets/00191978 [01:39:07]File name is /storage/ofd_packets/00191978 [01:39:07]Write 298 bytes [01:39:07]NVStorageSaveData done [01:39:07]OFDSenderStorePacket done [01:39:07]KKMCreateOFDPacket done [01:39:07]NVStorageSaveData kkm_last_timestamp [01:39:07]File name is /storage/kkm_last_timestamp [01:39:07]Write 4 bytes [01:39:07]NVStorageSaveData done [01:39:07]ExternCall_PrintAddStr [01:39:07]wPrintStart [01:39:07]Write to MH i2c: 01 00 00 9A 41 DB [01:39:07]Write i2c OK [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: 01 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: 01 07 00 [01:39:07]MH_I2C_Read... [01:39:07]Read from MH i2c: 01 07 00 9A 41 00 00 00 00 00 FF 0F F0 [01:39:07]RasterBufferAndPrint [01:39:07]line Счет N : (1)31287 [01:39:07]line ИНН: 02508201610067 [01:39:07]line Контрольно-Кассовый Чек [01:39:07]line ПРОДАЖА [01:39:07]line ТРК (МРК, ГНК) : 11 [01:39:07]line Товар: 2710194210 [01:39:07]line ДТ-К-5 [01:39:07]line 26.250 * 76.20 [01:39:07]line = 2000.25 [01:39:07]line НДС 12% НСП 1% [01:39:07]line > о реализуемом товаре [01:39:07]line ОКРУГЛЕНИЕ: -0.25 [01:39:07]line ИТОГО: 2000.00 [01:39:07]line Внесено: 2000.00 [01:39:07]line СДАЧА: 0.00 [01:39:07]line НСП 1% : 17.70 [01:39:07]line НДС 12% : 212.42 [01:39:07]line Наличными: 2000.00 [01:39:07]line Безнал.: 0.00 [01:39:07]line Место: АЗС № 170 "Партнер Нефть" [01:39:07]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:39:07]line СНО: Общий режим [01:39:07]line Чек 10 27.10.2024 01:39 [01:39:07]line Смена: 542 ФФД: 1.0 [01:39:07]line ЗНМ: 0300000110 [01:39:07]line РНМ: 0000000000091776 [01:39:07]line Версия ККМ: 001 [01:39:07]line ФМ: 0000000000871754 [01:39:07]line ФД: 191978 [01:39:07]line ФПД: 229161774210611 [01:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T013923&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191978&fm=229161774210611&tin=02508201610067®Number=0000000000091776&sum=200000 [01:39:07]OFD Sender: Processing packet 191978 [packets to send 75, broken 74] [01:39:07]ProducePacketName [01:39:07]name=ofd_packets/00191978 [01:39:07]OFD Sender: To server: pG, [01:39:07]CommunicateWithHost lk.salyk.kg:30040 [01:39:07]ConnectInit lk.salyk.kg [01:39:07]written 0, free lines is 4095 [01:39:07]Connected sock=8 [01:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0C 01 00 00 7E 37 04 01 C6 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CB 99 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA ED 02 00 35 04 06 00 D0 6B E2 25 DE 33 27 29 81 58 D7 8F 7C EC [01:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 00 54 47 00 9D 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EA ED 02 00 F4 03 04 00 94 3E 1D 67 B6 04 01 00 00 F0 E7 D4 3C FA 38 14 F5 [01:39:08]CommunicateWithHost err = 0 [01:39:08]CheckOFDResponse [01:39:08]1017 (14) - 77093643461234 [01:39:08]1041 (16) - 0000000000871754 [01:39:08]1040 (4) - 191978 [01:39:08]1012 (4) - 26.10.2024 19:10 [01:39:08]1206 (1) - 0 [01:39:08]OFD Sender: Remove packet 191978 [01:39:08]ProducePacketName [01:39:08]name=ofd_packets/00191978 [01:39:08]NVStorageDeleteData [01:39:08]Write to MH i2c: 01 00 00 C5 41 06 [01:39:08]Write i2c OK [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: 01 [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: 01 07 00 [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: 01 07 00 C5 41 00 00 00 00 00 AB 0C C4 [01:39:08]RasterBufferAndPrint [01:39:08]line [01:39:08]line [01:39:08]line [01:39:08]line [01:39:08]line [01:39:08]written 0, free lines is 3250 [01:39:08]MH_Cut [01:39:08]Write to MH i2c: D1 01 00 CC 41 01 DF [01:39:08]Write i2c OK [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: D1 [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: D1 01 00 [01:39:08]MH_I2C_Read... [01:39:08]Read from MH i2c: D1 01 00 CC 41 00 DE [01:39:08]Write to MH i2c: 01 00 00 CD 41 0E [01:39:08]Write i2c OK [01:39:08]MH_I2C_Read... [01:39:08]OFD Sender: No OFD packet to send [01:39:09]*** Cut start [01:39:09]*** Partial cut [01:39:09]*** CUTSNS_PIN = 1 [01:39:09]*** CUTSNS_PIN = 0 [01:39:09]*** Brake cut motor [01:39:09]Read from MH i2c: 01 [01:39:09]MH_I2C_Read... [01:39:09]*** Stop cut motor [01:39:09]*** Cut end [01:39:09]Read from MH i2c: 01 07 00 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: 01 07 00 CD 41 00 00 00 00 00 FF 0F 23 [01:39:09]process_action close_receipt done [01:39:09]requested_data is exist [01:39:09]produce_requested_data [01:39:09]requested_item fm.sn is exist - process it [01:39:09]wFMCommunicate request_size=4 [01:39:09]MH_SAM_APDU [01:39:09]CAPDU: 80 11 00 00 [01:39:09]Write to MH i2c: E2 08 00 CE 41 80 11 00 00 00 00 00 00 89 [01:39:09]Write i2c OK [01:39:09]MH_I2C_Read... [01:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:09]Read from MH i2c: E2 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 17 00 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 17 00 CE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 DC [01:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:39:09]wFMCommunicate OK [01:39:09]requested_item fd.num is exist - process it [01:39:09]SAM_PROTO_GetFieldsCounters [01:39:09]wFMCommunicate request_size=4 [01:39:09]MH_SAM_APDU [01:39:09]CAPDU: 80 13 00 00 [01:39:09]Write to MH i2c: E2 08 00 CF 41 80 13 00 00 00 00 00 00 8C [01:39:09]Write i2c OK [01:39:09]MH_I2C_Read... [01:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:09]Read from MH i2c: E2 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 62 00 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 62 00 CF 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [01:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EA ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:09]wFMCommunicate OK [01:39:09]SAM_PROTO_GetFieldsCounters done [01:39:09]requested_item shift.num is exist - process it [01:39:09]requested_item shift.opened is exist - process it [01:39:09]req_shift_opened [01:39:09]FM_GetShiftState [01:39:09]SAM_PROTO_GetShiftState [01:39:09]wFMCommunicate request_size=4 [01:39:09]MH_SAM_APDU [01:39:09]CAPDU: 80 13 01 00 [01:39:09]Write to MH i2c: E2 08 00 D0 41 80 13 01 00 00 00 00 00 8E [01:39:09]Write i2c OK [01:39:09]MH_I2C_Read... [01:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:09]Read from MH i2c: E2 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 0E 00 [01:39:09]MH_I2C_Read... [01:39:09]Read from MH i2c: E2 0E 00 D0 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 CF [01:39:09]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:39:09]wFMCommunicate OK [01:39:09]SAM_PROTO_GetShiftState done [01:39:09]FM_GetShiftState done [01:39:09]req_shift_opened done [01:39:09]requested_item shift.open_date is exist - process it [01:39:09]req_shift_open_date [01:39:09]req_shift_open_date done [01:39:09]produce_requested_data done [01:39:09]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191978,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:39:09]process_action_free close_receipt [01:39:09]json_value_free [01:39:09]json_value_free done [01:39:09]process_json_proto returns [01:39:09]Send response to host [01:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871754","fd.num":191978,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159}}} [01:39:09]free response buf [01:39:09]execute_script done [01:39:09]execute_script returns [01:39:09]free content buf [01:39:09]Sock 5.Close socket [01:39:09]Sock 5.Thread stoped [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:34]accept exits with 6 [01:45:34]New connection [01:45:34]New thread 3066961252 created [01:45:34]Thread 3066817892 joined [01:45:34]Waiting for new connection... [01:45:34] Sock 6.Parse request [01:45:34]Sock 6.Check first char [01:45:34]Sock 6.First char is OK [01:45:34]request: POST /json_proto HTTP/1.0 [01:45:34]Method: POST [01:45:34]URL: /json_proto [01:45:34]Method is POST - this is cgi request [01:45:34]url: /json_proto [01:45:34]query_string will be loaded in cgi processing [01:45:34]execute_cgi json_proto POST (null) [01:45:34]execute_cgi path=json_proto method=POST [01:45:34]POST find Content-Length [01:45:34]Host: 172.17.63.131:8080 [01:45:34]Content-Length: 676 [01:45:34]Content-Type: application/json [01:45:34] [01:45:34]POST finish read [01:45:34]Found Content-Length = 676 [01:45:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)31289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:34]execute_script... [01:45: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)31289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:45:34]POST & json_proto [01:45:34]process_json_proto [01:45:34]json parsed OK: [01:45:34]protocol is kg_v1.0 [01:45:34]action value=close_receipt [01:45:34]process_action close_receipt [01:45:34]cmd_close_receipt [01:45:34]MH_GetDate [01:45:34]Write to MH i2c: F0 00 00 D1 41 01 [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: F0 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: F0 09 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: F0 09 00 D1 41 00 4F 9B 1D 67 22 05 6E 64 71 [01:45:34]GetLastDocTimeStamp 1729993163 [01:45:34]current date 1729993551 [01:45:34]FM_GetShiftState [01:45:34]SAM_PROTO_GetShiftState [01:45:34]wFMCommunicate request_size=4 [01:45:34]MH_SAM_APDU [01:45:34]CAPDU: 80 13 01 00 [01:45:34]Write to MH i2c: E2 08 00 D2 41 80 13 01 00 00 00 00 00 90 [01:45:34]Write i2c OK [01:45:34]MH_I2C_Read... [01:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:34]Read from MH i2c: E2 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 [01:45:34]MH_I2C_Read... [01:45:34]Read from MH i2c: E2 0E 00 D2 41 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 D1 [01:45:34]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:45:34]wFMCommunicate OK [01:45:34]SAM_PROTO_GetShiftState done [01:45:34]FM_GetShiftState done [01:45:34]opened in 1729989159 [01:45:34]opened+sec_in_day 1730075559 [01:45:34]quantity*price = 52048 [01:45:34]sum+1 = 52049 [01:45:34]Check (price>sum+1) || (price+1 о реализуемом товаре [01:45:35]line ОКРУГЛЕНИЕ: -0.48 [01:45:35]line ИТОГО: 520.00 [01:45:35]line Внесено: 520.00 [01:45:35]line СДАЧА: 0.00 [01:45:35]line НСП 1% : 4.61 [01:45:35]line НДС 12% : 55.27 [01:45:35]line Наличными: 520.00 [01:45:35]line Безнал.: 0.00 [01:45:35]line Место: АЗС № 170 "Партнер Нефть" [01:45:35]line Адрес: 720001, с. Орукту, трасса Чаткал-Ала Бука, 40.895315, 73.002522 [01:45:35]line СНО: Общий режим [01:45:35]line Чек 11 27.10.2024 01:45 [01:45:35]line Смена: 542 ФФД: 1.0 [01:45:35]line ЗНМ: 0300000110 [01:45:35]line РНМ: 0000000000091776 [01:45:35]line Версия ККМ: 001 [01:45:35]line ФМ: 0000000000871754 [01:45:35]line ФД: 191979 [01:45:35]line ФПД: 191693664123007 [01:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T014551&type=1&operation_type=1&fn_number=0000000000871754&fd_number=191979&fm=191693664123007&tin=02508201610067®Number=0000000000091776&sum=52000 [01:45:36]OFD Sender: Processing packet 191979 [packets to send 75, broken 74] [01:45:36]ProducePacketName [01:45:36]name=ofd_packets/00191979 [01:45:36]OFD Sender: To server: pG, [01:45:36]CommunicateWithHost lk.salyk.kg:30040 [01:45:36]ConnectInit lk.salyk.kg [01:45:36]written 0, free lines is 4095 [01:45:36]Connected sock=9 [01:45:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0F 01 00 00 A4 A3 07 01 9B 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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 4F 9B 1D 67 0E 04 04 00 1E 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB ED 02 00 35 04 06 00 AE 58 28 C1 78 7F 17 FC CA 85 41 F9 E4 0B [01:45:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 4F 00 00 00 DA CC 47 00 DE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 10 04 04 00 EB ED 02 00 F4 03 04 00 19 40 1D 67 B6 04 01 00 00 09 7B 0D 2B F8 6C 92 93 [01:45:36]CommunicateWithHost err = 0 [01:45:36]CheckOFDResponse [01:45:36]1017 (14) - 77093643461234 [01:45:36]1041 (16) - 0000000000871754 [01:45:36]1040 (4) - 191979 [01:45:36]1012 (4) - 26.10.2024 19:16 [01:45:36]1206 (1) - 0 [01:45:36]OFD Sender: Remove packet 191979 [01:45:36]ProducePacketName [01:45:36]name=ofd_packets/00191979 [01:45:36]NVStorageDeleteData [01:45:36]Write to MH i2c: 01 00 00 10 42 52 [01:45:36]Write i2c OK [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: 01 [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: 01 07 00 [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: 01 07 00 10 42 00 00 00 00 00 BB 0C 20 [01:45:36]RasterBufferAndPrint [01:45:36]line [01:45:36]line [01:45:36]line [01:45:36]line [01:45:36]line [01:45:36]written 0, free lines is 3269 [01:45:36]MH_Cut [01:45:36]Write to MH i2c: D1 01 00 17 42 01 2B [01:45:36]Write i2c OK [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: D1 [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: D1 01 00 [01:45:36]MH_I2C_Read... [01:45:36]Read from MH i2c: D1 01 00 17 42 00 2A [01:45:36]Write to MH i2c: 01 00 00 18 42 5A [01:45:36]Write i2c OK [01:45:36]MH_I2C_Read... [01:45:37]OFD Sender: No OFD packet to send [01:45:37]*** Cut start [01:45:37]*** Partial cut [01:45:37]*** CUTSNS_PIN = 1 [01:45:37]*** CUTSNS_PIN = 0 [01:45:37]*** Brake cut motor [01:45:38]Read from MH i2c: 01 [01:45:38]MH_I2C_Read... [01:45:38]*** Stop cut motor [01:45:38]*** Cut end [01:45:38]Read from MH i2c: 01 07 00 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: 01 07 00 18 42 00 00 00 00 00 FF 0F 6F [01:45:38]process_action close_receipt done [01:45:38]requested_data is exist [01:45:38]produce_requested_data [01:45:38]requested_item fm.sn is exist - process it [01:45:38]wFMCommunicate request_size=4 [01:45:38]MH_SAM_APDU [01:45:38]CAPDU: 80 11 00 00 [01:45:38]Write to MH i2c: E2 08 00 19 42 80 11 00 00 00 00 00 00 D5 [01:45:38]Write i2c OK [01:45:38]MH_I2C_Read... [01:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:38]Read from MH i2c: E2 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 17 00 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 17 00 19 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 28 [01:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 90 00 [01:45:38]wFMCommunicate OK [01:45:38]requested_item fd.num is exist - process it [01:45:38]SAM_PROTO_GetFieldsCounters [01:45:38]wFMCommunicate request_size=4 [01:45:38]MH_SAM_APDU [01:45:38]CAPDU: 80 13 00 00 [01:45:38]Write to MH i2c: E2 08 00 1A 42 80 13 00 00 00 00 00 00 D8 [01:45:38]Write i2c OK [01:45:38]MH_I2C_Read... [01:45:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:38]Read from MH i2c: E2 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 62 00 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 62 00 1A 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [01:45:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 37 36 10 04 04 00 EB ED 02 00 0E 04 04 00 1E 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:45:38]wFMCommunicate OK [01:45:38]SAM_PROTO_GetFieldsCounters done [01:45:38]requested_item shift.num is exist - process it [01:45:38]requested_item shift.opened is exist - process it [01:45:38]req_shift_opened [01:45:38]FM_GetShiftState [01:45:38]SAM_PROTO_GetShiftState [01:45:38]wFMCommunicate request_size=4 [01:45:38]MH_SAM_APDU [01:45:38]CAPDU: 80 13 01 00 [01:45:38]Write to MH i2c: E2 08 00 1B 42 80 13 01 00 00 00 00 00 DA [01:45:38]Write i2c OK [01:45:38]MH_I2C_Read... [01:45:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:38]Read from MH i2c: E2 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 0E 00 [01:45:38]MH_I2C_Read... [01:45:38]Read from MH i2c: E2 0E 00 1B 42 00 09 00 01 27 8A 1D 67 00 00 00 00 90 00 1B [01:45:38]RAPDU: 09 00 01 27 8A 1D 67 00 00 00 00 90 00 [01:45:38]wFMCommunicate OK [01:45:38]SAM_PROTO_GetShiftState done [01:45:38]FM_GetShiftState done [01:45:38]req_shift_opened done [01:45:38]requested_item shift.open_date is exist - process it [01:45:38]req_shift_open_date [01:45:38]req_shift_open_date done [01:45:38]produce_requested_data done [01:45:38]produce_requested_data return {"fm.sn":"0000000000871754","fd.num":191979,"shift.num":542,"shift.opened":1,"shift.open_date":1729989159} [01:45:38]process_action_free close_receipt [01:45:38]json_value_free [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:49]ConnectInit Can't connect to host [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:52]ConnectInit Can't connect to host [01:56:57]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:16]ConnectInit Can't connect to host [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send